/* PrioAgenda — landing design system (index + privacy + terms + contact) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* brand — steel/slate blue (sober, desaturated; distinct from WhatsApp green) */
  --brand: #3d5a80;          /* steel blue */
  --brand-600: #4a6a93;      /* gradient light stop */
  --brand-500: #6e8bb0;      /* highlight */
  --brand-end: #355d83;      /* gradient end (subtle shift) */
  --brand-dark: #2e4767;     /* hover */
  --brand-tint: #e7ecf3;     /* soft fill */
  --brand-tint-2: #cdd8e6;
  --brand-wash: #eef2f7;     /* hero / section wash */

  --ink: #1e2638;
  --text: #2a3346;
  --muted: #5f6878;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --white: #ffffff;
  --border: #e4e8f0;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --grad: linear-gradient(120deg, var(--brand-600) 0%, var(--brand) 55%, var(--brand-end) 100%);
  --grad-text: linear-gradient(120deg, var(--brand-500) 0%, var(--brand) 60%, var(--brand-end) 100%);

  --shadow-sm: 0 1px 2px rgba(20,30,50,.04), 0 2px 10px rgba(61,90,128,.06);
  --shadow-md: 0 10px 34px rgba(61,90,128,.12);
  --shadow-lg: 0 28px 64px rgba(61,90,128,.20);
  --glow: 0 8px 24px rgba(61,90,128,.28);

  --maxw: 1080px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- NAV (shared) ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.5rem;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand-lockup { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
  box-shadow: var(--glow);
}
.logo { font-size: 1.2rem; font-weight: 800; color: var(--brand); letter-spacing: -.5px; }
.logo span { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .2s var(--ease); }
.nav-link:hover { color: var(--brand); }
.nav-cta {
  background: var(--grad);
  color: #fff;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 600;
  text-decoration: none;
  box-shadow: var(--glow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(61,90,128,.38); }
.back { color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .2s var(--ease); }
.back:hover { color: var(--brand); }

/* ---------- BUTTONS (shared) ---------- */
.btn-primary {
  background: var(--grad);
  color: #fff;
  padding: .95rem 2.1rem;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1.02rem;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: var(--glow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(61,90,128,.4); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--surface);
  color: var(--brand-dark);
  padding: .95rem 2.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1.02rem;
  text-decoration: none;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand-tint-2); color: var(--brand); }

/* ---------- ENTRANCE ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; animation: fadeUp .7s var(--ease) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .14s; }
.d3 { animation-delay: .23s; } .d4 { animation-delay: .32s; } .d5 { animation-delay: .42s; }

/* ---------- HERO (home) ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: radial-gradient(60% 60% at 50% 0%, var(--brand-wash) 0%, transparent 70%), var(--bg);
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0; pointer-events: none; }
.blob-1 { width: 360px; height: 360px; background: var(--brand-tint-2); top: -120px; left: -80px; }
.blob-2 { width: 320px; height: 320px; background: #d6e0ec; top: 40px; right: -100px; opacity: .45; }
.hero > *:not(.blob) { position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface);
  color: var(--brand-dark);
  font-size: .8rem; font-weight: 600;
  padding: .4rem 1rem .4rem .75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  letter-spacing: .2px;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 0 rgba(110,139,176,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(110,139,176,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(110,139,176,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,139,176,0); }
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  max-width: 760px;
  margin: 0 auto 1.25rem;
  color: var(--ink);
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2.25rem;
}
.cta-group { display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }
.microcopy { margin-top: 1.1rem; font-size: .85rem; color: var(--muted); display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; }
.microcopy span { display: inline-flex; align-items: center; gap: .4rem; }
.microcopy .tick { color: var(--brand); font-weight: 800; }

/* ---------- MOCKUP (generic chat, brand-colored — not WhatsApp UI) ---------- */
.mockup-wrap { display: flex; justify-content: center; padding: 3.5rem 1.5rem 0; position: relative; z-index: 1; }
.chat-card {
  background: var(--surface);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  max-width: 370px; width: 100%;
  font-size: .9rem; overflow: hidden;
  border: 1px solid var(--border);
}
.chat-header { display: flex; align-items: center; gap: .75rem; background: var(--grad); padding: .85rem 1rem; color: #fff; }
.avatar { width: 40px; height: 40px; background: rgba(255,255,255,.22); border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.chat-name { font-weight: 600; font-size: .95rem; color: #fff; }
.chat-status { font-size: .75rem; color: rgba(255,255,255,.82); }
.chat-body {
  background: #f3f5f9;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.msg { display: flex; flex-direction: column; }
.msg.user { align-items: flex-end; }
.msg.bot  { align-items: flex-start; }
.bubble { padding: .5rem .7rem .4rem; border-radius: 14px; max-width: 82%; line-height: 1.4; box-shadow: var(--shadow-sm); }
.msg.user .bubble { background: var(--brand-tint); color: var(--ink); border-bottom-right-radius: 4px; }
.msg.bot  .bubble { background: #fff; color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble .meta { display: block; text-align: right; font-size: .62rem; color: var(--muted); margin-top: .15rem; }
.bubble .check { color: var(--brand); letter-spacing: -2px; }

/* ---------- TRUST ---------- */
.trust { max-width: var(--maxw); margin: 3.5rem auto 0; padding: 0 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.trust-label { font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.trust-logos { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: center; color: var(--ink); font-weight: 600; opacity: .7; }
.trust-logos .sep { color: var(--border); }

/* ---------- SECTION primitives ---------- */
section.block { max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.5rem; }
.section-label { text-align: center; font-size: .78rem; font-weight: 700; color: var(--brand); letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: .75rem; }
.section-title { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.8px; color: var(--ink); margin-bottom: 3rem; }

/* ---------- FEATURES ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-tint-2); }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 14px; background: var(--brand-wash); border: 1px solid var(--brand-tint); margin-bottom: 1.1rem; }
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .45rem; color: var(--ink); }
.card p { color: var(--muted); font-size: .92rem; }

/* ---------- HOW ---------- */
.how { background: linear-gradient(180deg, var(--brand-wash) 0%, var(--bg) 100%); }
.steps { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.5rem; box-shadow: var(--shadow-sm); }
.step-num { min-width: 42px; height: 42px; background: var(--grad); color: #fff; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; box-shadow: var(--glow); }
.step-body h4 { font-weight: 700; margin-bottom: .25rem; color: var(--ink); }
.step-body p { color: var(--muted); font-size: .92rem; }

/* ---------- CTA panel ---------- */
.cta-section { padding: 5.5rem 1.5rem; }
.cta-panel {
  max-width: 880px; margin: 0 auto; text-align: center;
  background: var(--grad);
  border-radius: 28px;
  padding: 4rem 2rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(255,255,255,.16) 0%, transparent 60%); pointer-events: none; }
.cta-panel h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.8px; margin-bottom: 1rem; position: relative; }
.cta-panel p { color: rgba(255,255,255,.9); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; position: relative; }
.btn-light { background: #fff; color: var(--brand-dark); padding: .95rem 2.2rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 1.02rem; text-decoration: none; display: inline-block; box-shadow: 0 10px 28px rgba(0,0,0,.18); transition: transform .2s var(--ease), box-shadow .2s var(--ease); position: relative; }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.24); }

/* ---------- INNER PAGES (privacy / terms / contact) ---------- */
main { max-width: 740px; margin: 3rem auto; padding: 0 1.5rem 5rem; }
main.narrow { max-width: 560px; }
main h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.5px; margin-bottom: .5rem; color: var(--ink); }
main .sub { color: var(--muted); margin-bottom: 2.5rem; }
main .meta { color: var(--muted); font-size: .875rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
main h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--ink); }
main p { color: #3c4456; margin-bottom: 1rem; }
main ul { padding-left: 1.5rem; color: #3c4456; margin-bottom: 1rem; }
main ul li { margin-bottom: .4rem; }
main a { color: var(--brand); }

/* contact form */
main label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; margin-top: 1.25rem; }
main input, main textarea {
  width: 100%; padding: .75rem .9rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text);
}
main input:focus, main textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(61,90,128,.18); }
main textarea { resize: vertical; min-height: 130px; }
main .btn-primary { width: 100%; justify-content: center; margin-top: 1.75rem; }
.alt { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.email-row { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; flex-wrap: wrap; }
.email-val { font-weight: 600; color: var(--text); }
.btn-copy { background: var(--brand-tint); color: var(--brand-dark); border: none; padding: .4rem .9rem; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .2s var(--ease); }
.btn-copy:hover { background: var(--brand-tint-2); }

/* ---------- FOOTER (shared, variants) ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2rem; background: var(--surface); font-size: .85rem; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--brand); }
.site-footer--home { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-legal { font-size: .8rem; color: var(--muted); text-align: right; line-height: 1.5; }
.site-footer--inner { text-align: center; }
.site-footer--inner a { margin: 0 .75rem; }
.site-footer--inner .footer-legal { text-align: center; margin-top: .75rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .nav-right .nav-link { display: none; }
  .site-footer--home { flex-direction: column; align-items: flex-start; }
  .footer-legal { text-align: left; }
}

/* ---------- MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
