/* ============================================================
   Entavi - Marketing site (entavi.app)
   Direction: "Soft Haven" - teal, light & airy, Figtree.
   Tokens mirror the design system's colors_and_type.css.
   ============================================================ */
:root {
  /* Brand: teal scale */
  --teal-50:  #ECFBF8;
  --teal-100: #D2F4EE;
  --teal-200: #A6E9DD;
  --teal-300: #5BD3C6;
  --teal-400: #20C2B0;
  --teal-500: #0FB5A6;
  --teal-600: #0E9C8F;
  --teal-700: #0E7C72;
  --teal-800: #0C5F58;
  --teal-900: #0C4943;

  /* Ink + neutrals */
  --ink:       #143036;
  --slate-700: #2E4A50;
  --slate-600: #3C5A60;
  --slate-500: #4B6A6F;
  --slate-400: #6E8A8E;
  --slate-300: #9DB3B6;
  --slate-200: #C7D8D8;
  --line:      #E5EFEE;
  --line-soft: #EFF6F5;

  /* Surfaces */
  --surface:   #FFFFFF;
  --surface-2: #F4FBFA;
  --surface-3: #ECF5F4;

  /* Semantic */
  --success:    #14A06E;
  --success-bg: #E4F6EE;

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 28px; --r-pill: 999px;

  /* Soft, teal-tinted shadows */
  --shadow-xs: 0 1px 2px rgba(15,123,114,.06);
  --shadow-sm: 0 2px 6px rgba(15,123,114,.08);
  --shadow-md: 0 8px 24px -16px rgba(15,123,114,.30), 0 2px 6px rgba(15,123,114,.05);
  --shadow-lg: 0 18px 40px -22px rgba(15,123,114,.45), 0 2px 6px rgba(15,123,114,.06);
  --shadow-xl: 0 32px 64px -28px rgba(12,95,88,.40), 0 4px 12px rgba(15,123,114,.06);

  /* Type families */
  --font-sans: 'Figtree', ui-sans-serif, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--font-sans); color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* Lucide icons render into <i data-lucide>; normalize sizing */
[data-lucide] { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }

/* buttons */
.btn { border: none; cursor: pointer; border-radius: var(--r-pill); font-family: inherit; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; transition: transform .12s ease, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn [data-lucide] { width: 18px; height: 18px; }
.btn-primary { background: var(--teal-500); color: #fff; box-shadow: 0 12px 26px -12px rgba(15,181,166,.75); }
.btn-primary:hover { background: var(--teal-600); }
.btn-ghost { background: var(--teal-50); color: var(--teal-700); }
.btn-ghost:hover { background: var(--teal-100); }
.btn-on-dark { background: #fff; color: var(--ink); box-shadow: 0 12px 26px -14px rgba(0,0,0,.5); }
.btn-on-dark:hover { background: #F1FAF9; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.eyebrow { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--teal-600); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow [data-lucide] { width: 15px; height: 15px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav .row { display: flex; align-items: center; gap: 14px; height: 70px; }
.nav .brand { display: flex; align-items: center; gap: 10px; }
.nav .brand img { width: 30px; height: 30px; }
.nav .brand .wm { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--teal-700); }
.nav .links { display: flex; gap: 28px; margin-left: 32px; }
.nav .links a { font-size: 14.5px; font-weight: 600; color: var(--slate-500); transition: color .15s; }
.nav .links a:hover { color: var(--ink); }
.nav .spacer { flex: 1; }
.nav .navcta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .nav .links { display: none; } }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1100px 620px at 72% -6%, var(--teal-50), var(--surface) 56%); padding: 78px 0 64px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 60px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 0; text-wrap: balance; }
.hero h1 .accent { color: var(--teal-600); }
.hero .sub { font-size: 18px; line-height: 1.55; color: var(--slate-500); margin: 20px 0 30px; max-width: 46ch; }
.hero .cta-row { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; }
.hero .reassure { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.hero .reassure .item { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--slate-500); }
.hero .reassure .item [data-lucide] { width: 16px; height: 16px; color: var(--success); }
@media (max-width: 860px) { .hero .grid { grid-template-columns: 1fr; gap: 40px; } }

/* QR hero card */
.qrhero { justify-self: center; position: relative; margin-top: 14px; }
.qrhero .card { background: var(--surface); border-radius: var(--r-2xl); box-shadow: var(--shadow-xl); padding: 28px 28px 22px; width: 332px; text-align: center; position: relative; z-index: 2; }
.qrhero .card .tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--slate-400); }
.qrhero .card h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 5px 0 16px; }
.qrhero .qrbox { position: relative; width: 196px; height: 196px; margin: 0 auto 16px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; }
.qrhero .qrbox canvas, .qrhero .qrbox img { display: block; }
.qrhero .qrbox .mk { position: absolute; width: 42px; height: 42px; border-radius: 12px; left: 50%; top: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 5px #fff; }
.qrhero .codeline { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-3); border-radius: var(--r-pill); padding: 9px 15px; font-family: var(--font-mono); font-size: 13px; color: var(--slate-600); }
.qrhero .codeline [data-lucide] { width: 14px; height: 14px; color: var(--teal-600); }
.qrhero .float { position: absolute; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 11px 14px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.qrhero .float .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.qrhero .float .ic [data-lucide] { width: 18px; height: 18px; }
.qrhero .float .t { font-size: 13px; font-weight: 700; line-height: 1.15; }
.qrhero .float .d { font-size: 11.5px; color: var(--slate-400); }
.qrhero .f1 { top: 118px; left: -46px; }
.qrhero .f2 { bottom: 64px; right: -42px; }
@media (max-width: 420px) { .qrhero .f1, .qrhero .f2 { display: none; } }

/* ---------- Section header ---------- */
.sec { padding: 84px 0; }
.sec.tint { background: var(--surface-2); }
.sec-head { text-align: center; max-width: 60ch; margin: 0 auto 52px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.025em; margin: 12px 0 0; text-wrap: balance; }
.sec-head p { font-size: 17px; line-height: 1.55; color: var(--slate-500); margin: 14px auto 0; max-width: 50ch; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 24px; box-shadow: var(--shadow-xs); }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--teal-50); color: var(--teal-700); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.step .ic { color: var(--teal-500); margin: 18px 0 12px; }
.step .ic [data-lucide] { width: 28px; height: 28px; }
.step h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 7px; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--slate-500); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow-xs); transition: box-shadow .2s, transform .2s; }
.pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar .ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--teal-50); color: var(--teal-600); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pillar .ic [data-lucide] { width: 23px; height: 23px; }
.pillar h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.pillar p { font-size: 14.5px; line-height: 1.55; color: var(--slate-500); margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.ccol { border-radius: var(--r-xl); padding: 28px 26px; }
.ccol.ord { background: var(--surface); border: 1px solid var(--line); }
.ccol.ent { background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.ccol .cap { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.ccol .cap [data-lucide] { width: 16px; height: 16px; }
.ccol .cap img { width: 18px; height: 18px; border-radius: 5px; }
.ccol.ord .cap { color: var(--slate-400); }
.ccol.ent .cap { color: var(--teal-300); }
.ccol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ccol li { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; line-height: 1.45; }
.ccol li [data-lucide] { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.ccol.ord li { color: var(--slate-500); }
.ccol.ord li [data-lucide] { color: var(--slate-300); }
.ccol.ent li [data-lucide] { color: var(--teal-300); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Philosophy (dark) ---------- */
.philo { background: var(--ink); color: #fff; padding: 96px 0; text-align: center; overflow: hidden; }
.philo .scrim { position: absolute; inset: 0; background: radial-gradient(800px 420px at 50% 30%, rgba(15,181,166,.18), transparent 70%); }
.philo .inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.philo .glyph { display: inline-flex; margin-bottom: 26px; }
.philo blockquote { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.025em; line-height: 1.18; margin: 0; text-wrap: balance; }
.philo blockquote .accent { color: var(--teal-300); }
.philo .by { margin-top: 22px; color: rgba(255,255,255,.55); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); transition: border-color .2s ease; }
.qa.open { border-color: var(--teal-100); }
.qa button { width: 100%; text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 16px; padding: 22px 4px; }
.qa button:focus-visible { outline: 3px solid var(--teal-100); outline-offset: 4px; border-radius: var(--r-md); }
.qa .q { flex: 1; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.qa .chev { color: var(--slate-400); transition: transform .32s cubic-bezier(.22,1,.36,1), color .2s ease; flex: none; display: flex; }
.qa .chev [data-lucide] { width: 20px; height: 20px; }
.qa.open .chev { transform: rotate(180deg); color: var(--teal-600); }
.qa .a { height: 0; overflow: hidden; opacity: 0; transform: translateY(-6px); transition: height .34s cubic-bezier(.22,1,.36,1), opacity .24s ease, transform .34s cubic-bezier(.22,1,.36,1); will-change: height; }
.qa.open .a { opacity: 1; transform: translateY(0); }
.qa .a p { font-size: 15px; line-height: 1.6; color: var(--slate-500); margin: 0; padding: 0 4px 22px; max-width: 62ch; }
@media (prefers-reduced-motion: reduce) {
  .qa,
  .qa .chev,
  .qa .a {
    transition: none;
  }
  .qa .a {
    transform: none;
  }
}

/* ---------- Final CTA ---------- */
.final { padding: 92px 0; }
.final .card { background: linear-gradient(160deg, var(--teal-500), var(--teal-700)); border-radius: var(--r-2xl); padding: 60px 40px; text-align: center; color: #fff; box-shadow: 0 40px 80px -36px rgba(12,95,88,.6); position: relative; overflow: hidden; }
.final .card .glyphbg { position: absolute; right: -30px; bottom: -40px; opacity: .12; }
.final .card h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.025em; margin: 0; position: relative; }
.final .card p { font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.86); margin: 14px auto 28px; max-width: 42ch; position: relative; }
.final .card .cta-row { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 46px 0 40px; }
.footer .top { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer .brand img { width: 28px; height: 28px; }
.footer .brand .wm { font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: var(--teal-700); }
.footer .blurb { font-size: 13.5px; color: var(--slate-400); max-width: 30ch; line-height: 1.55; }
.footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer .col h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); margin: 0 0 14px; font-weight: 700; }
.footer .col a { display: block; font-size: 14px; font-weight: 600; color: var(--slate-600); margin-bottom: 11px; }
.footer .col a:hover { color: var(--teal-700); }
.footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--slate-400); }
.footer .legal .made { display: inline-flex; align-items: center; gap: 7px; }
.footer .legal .made [data-lucide] { width: 14px; height: 14px; color: var(--teal-500); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
