/* =====================================================================
   sara care — sistema visual
   Identidade calma, orgânica e humana. Verde-sálvia + creme + terracota.
   Fraunces (display) · DM Sans (texto). CSS em camadas.
   ===================================================================== */

@layer reset, tokens, base, layout, components, motion, responsive;

/* ====================== RESET ====================== */
@layer reset {
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
  body { min-height: 100svh; }
  img, svg, video { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  ul { list-style: none; }
  button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
  :focus-visible { outline: 3px solid color-mix(in oklab, var(--sage) 55%, transparent); outline-offset: 3px; border-radius: 6px; }
  ::selection { background: color-mix(in oklab, var(--sage) 26%, transparent); color: var(--ink); }
}

/* ====================== TOKENS ====================== */
@layer tokens {
  :root {
    /* paleta da marca (kit) */
    --sage: #5B8C7E;
    --sage-l: #82a99d;
    --sage-d: #3c6055;
    --sage-600: #4a7568;
    --moss: #2F4A42;
    --moss-d: #22372f;
    --cream: #F4EFE6;
    --cream-2: #ece4d6;
    --paper: #fbf8f2;
    --terra: #D98E73;
    --terra-d: #c9785b;
    --terra-deep: #b5613f;
    --terra-50: #f7e7df;
    --gold: #cda85f;
    --ink: #28332e;
    --body: #55615b;
    --muted: #5f685f;
    --line: #e2dac9;
    --line-2: #d8cfba;
    --line-dk: rgba(244,239,230,.16);

    /* raios */
    --r-xs: 9px; --r-sm: 13px; --r: 18px; --r-lg: 26px; --r-xl: 34px; --r-pill: 999px;

    /* sombras em camadas (tom musgo, calor sálvia) */
    --sh-xs: 0 1px 2px rgba(40,51,46,.05);
    --sh-sm: 0 2px 8px rgba(47,74,66,.07);
    --sh: 0 14px 34px -12px rgba(47,74,66,.18);
    --sh-lg: 0 30px 70px -22px rgba(47,74,66,.30);
    --sh-sage: 0 16px 38px -12px color-mix(in oklab, var(--sage) 55%, transparent);
    --sh-terra: 0 16px 36px -12px color-mix(in oklab, var(--terra-deep) 55%, transparent);

    /* tipografia */
    --serif: 'Fraunces', 'Georgia', serif;
    --sans: 'DM Sans', system-ui, -apple-system, sans-serif;

    /* escala fluida */
    --step--1: clamp(.83rem, .8rem + .15vw, .92rem);
    --step-0: clamp(1.02rem, .98rem + .2vw, 1.13rem);
    --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
    --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
    --step-4: clamp(2.7rem, 2rem + 3.4vw, 4.9rem);
    --step-5: clamp(3.2rem, 2.2rem + 4.6vw, 6rem);

    /* ritmo */
    --maxw: 1180px;
    --maxw-narrow: 880px;
    --gutter: clamp(20px, 5vw, 40px);
    --nav-h: 78px;
    --section-y: clamp(72px, 10vw, 134px);

    --ease: cubic-bezier(.22,.68,.18,1);
    --ease-out: cubic-bezier(.16,1,.3,1);
  }
}

/* ====================== BASE ====================== */
@layer base {
  body {
    font-family: var(--sans);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--body);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
  }

  /* atmosfera: mesh orgânico sálvia/terracota + grão fino */
  body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
      radial-gradient(46% 40% at 82% 6%, color-mix(in oklab, var(--sage) 20%, transparent), transparent 70%),
      radial-gradient(40% 36% at 6% 22%, color-mix(in oklab, var(--terra) 14%, transparent), transparent 72%),
      radial-gradient(50% 50% at 50% 108%, color-mix(in oklab, var(--sage-l) 18%, transparent), transparent 70%);
  }
  body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  }

  h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--ink);
    font-weight: 540;
    line-height: 1.06;
    letter-spacing: -.018em;
    font-optical-sizing: auto;
    text-wrap: balance;
  }
  h1 { font-size: var(--step-5); font-variation-settings: 'opsz' 144; }
  h2 { font-size: var(--step-3); font-variation-settings: 'opsz' 90; }
  h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -.01em; }
  p { text-wrap: pretty; }
  em { font-style: italic; }
  strong, b { font-weight: 600; color: var(--ink); }
}

/* ====================== LAYOUT ====================== */
@layer layout {
  .wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
  .wrap--narrow { max-width: var(--maxw-narrow); }
  .section { padding-block: var(--section-y); position: relative; }
  .center { text-align: center; }

  .head { max-width: 640px; margin-bottom: clamp(44px, 6vw, 68px); }
  .head--center { margin-inline: auto; text-align: center; }
  .head h2 { margin-block: 16px 18px; }

  .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sans); font-size: var(--step--1); font-weight: 600;
    text-transform: uppercase; letter-spacing: .2em; color: var(--sage-d);
  }
  .eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--terra); border-radius: 2px; }
  .head--center .eyebrow { justify-content: center; }

  .lead { font-size: var(--step-1); font-weight: 400; line-height: 1.5; color: var(--body); max-width: 60ch; letter-spacing: -.005em; }
  .lead--sm { font-size: var(--step-0); }
}

/* ====================== COMPONENTS ====================== */
@layer components {

  /* ---- botões ---- */
  .btn {
    --pad: 14px 26px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: var(--pad); border-radius: var(--r-pill);
    font-family: var(--sans); font-weight: 600; font-size: var(--step-0);
    letter-spacing: -.01em; white-space: nowrap;
    border: 1.5px solid transparent;
    transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .2s, color .2s, border-color .2s;
  }
  .btn svg { width: 19px; height: 19px; }
  .btn:active { transform: translateY(0) scale(.98); }
  .btn--primary { background: var(--sage-600); color: var(--paper); box-shadow: var(--sh-sage); }
  .btn--primary:hover { background: var(--sage-d); transform: translateY(-3px); box-shadow: 0 22px 46px -14px color-mix(in oklab, var(--sage) 70%, transparent); }
  .btn--terra { background: var(--terra-deep); color: #fff; box-shadow: var(--sh-terra); }
  .btn--terra:hover { background: #a85636; transform: translateY(-3px); }
  .btn--dark { background: var(--moss); color: var(--cream); }
  .btn--dark:hover { background: var(--moss-d); transform: translateY(-3px); box-shadow: var(--sh-lg); }
  .btn--ghost { background: color-mix(in oklab, var(--paper) 60%, transparent); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(6px); }
  .btn--ghost:hover { border-color: var(--sage); color: var(--sage-d); background: var(--paper); transform: translateY(-3px); }
  .btn--paper { background: var(--paper); color: var(--moss); }
  .btn--paper:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
  .btn--lg { --pad: 17px 34px; font-size: var(--step-1); }
  .btn--block { width: 100%; }
  .btn .arrow { transition: transform .3s var(--ease); }
  .btn:hover .arrow { transform: translateX(4px); }

  /* ---- nav ---- */
  .nav {
    position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
    background: color-mix(in oklab, var(--cream) 78%, transparent);
    backdrop-filter: saturate(150%) blur(16px); -webkit-backdrop-filter: saturate(150%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .35s, box-shadow .35s, background .35s;
  }
  .nav[data-scrolled="true"] { border-bottom-color: var(--line); box-shadow: var(--sh-sm); background: color-mix(in oklab, var(--cream) 88%, transparent); }
  .nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px; }

  .brand { display: inline-flex; align-items: center; gap: 11px; }
  .brand__mark {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    background: var(--sage); color: var(--paper);
    display: grid; place-items: center;
    font-family: var(--serif); font-weight: 560; font-size: 26px; line-height: 1;
    box-shadow: var(--sh-sage);
  }
  .brand__name { font-family: var(--serif); font-weight: 560; font-size: 1.6rem; color: var(--moss); letter-spacing: -.02em; line-height: 1; }
  .brand__name i { font-style: normal; font-weight: 400; color: var(--sage); }

  .nav__menu { display: flex; align-items: center; gap: 4px; }
  .nav__menu a { padding: 9px 15px; border-radius: var(--r-pill); font-size: .97rem; font-weight: 500; color: var(--body); transition: background .2s, color .2s; }
  .nav__menu a:hover { background: color-mix(in oklab, var(--sage) 12%, transparent); color: var(--sage-d); }
  .nav__cta { display: flex; align-items: center; gap: 12px; }

  .burger { display: none; width: 46px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--paper); place-items: center; }
  .burger svg { width: 22px; height: 22px; color: var(--ink); }
  .nav__mobile {
    display: none; position: absolute; inset: var(--nav-h) 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh);
    padding: 16px var(--gutter) 26px; flex-direction: column; gap: 4px;
  }
  .nav__mobile[data-open="true"] { display: flex; }
  .nav__mobile a:not(.btn) { padding: 13px; border-radius: 12px; font-weight: 500; color: var(--ink); }
  .nav__mobile a:not(.btn):hover { background: var(--cream); }
  .nav__mobile .btn { margin-top: 8px; }

  /* ---- hero ---- */
  .hero { padding-block: clamp(40px, 6vw, 76px) clamp(60px, 9vw, 112px); overflow: clip; }
  .hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
  .hero__blob {
    position: absolute; z-index: -1; width: 620px; height: 620px; right: -120px; top: -90px;
    background: radial-gradient(circle at 35% 35%, color-mix(in oklab, var(--sage-l) 50%, transparent), transparent 62%);
    filter: blur(8px); border-radius: 47% 53% 60% 40% / 50% 44% 56% 50%;
    opacity: .5; pointer-events: none;
  }
  .pill {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: var(--step--1); font-weight: 600; color: var(--sage-d);
    background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-xs);
    padding: 8px 16px 8px 12px; border-radius: var(--r-pill); margin-bottom: 26px;
  }
  .pill svg { width: 16px; height: 16px; color: var(--sage); }
  .pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 4px color-mix(in oklab, var(--terra) 22%, transparent); }
  .hero h1 { margin-bottom: 24px; }
  .hero h1 em { color: var(--sage); font-style: italic; }
  .hero .lead { margin-bottom: 34px; }
  .hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
  .trust { display: flex; flex-wrap: wrap; gap: 10px 24px; }
  .trust li { display: flex; align-items: center; gap: 8px; font-size: .94rem; font-weight: 500; color: var(--body); }
  .trust svg { width: 18px; height: 18px; color: var(--sage); flex: none; }

  /* ---- mockup do app ---- */
  .shot { position: relative; }
  .frame { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; }
  .frame__bar { display: flex; align-items: center; gap: 11px; padding: 13px 18px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
  .dots { display: flex; gap: 7px; }
  .dots i { width: 11px; height: 11px; border-radius: 50%; }
  .dots i:nth-child(1){ background: var(--terra); } .dots i:nth-child(2){ background: var(--gold); } .dots i:nth-child(3){ background: var(--sage); }
  .frame__url { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .73rem; color: var(--muted); padding: 6px 14px; text-align: center; }
  .appui { display: grid; grid-template-columns: 64px 1fr; min-height: 396px; }
  .appui__rail { background: color-mix(in oklab, var(--cream) 60%, var(--paper)); border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
  .appui__rail .d { width: 36px; height: 36px; border-radius: 11px; background: color-mix(in oklab, var(--sage) 12%, transparent); display: grid; place-items: center; color: var(--sage); }
  .appui__rail .d svg { width: 18px; height: 18px; }
  .appui__rail .d.on { background: var(--sage); color: var(--paper); box-shadow: var(--sh-sage); }
  .appui__main { padding: 20px; }
  .appui__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .appui__title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
  .reclabel { display: inline-flex; align-items: center; gap: 7px; font-size: .7rem; font-weight: 600; color: var(--terra-deep); background: var(--terra-50); padding: 5px 11px; border-radius: var(--r-pill); }
  .reclabel i { width: 8px; height: 8px; border-radius: 50%; background: var(--terra-deep); animation: blink 1.4s infinite; }

  .recorder { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 16px 8px 8px; margin-bottom: 16px; }
  .recorder__mic { width: 36px; height: 36px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; flex: none; animation: micpulse 1.9s infinite; }
  .recorder__mic svg { width: 18px; height: 18px; color: var(--paper); }
  .wave { display: flex; align-items: center; gap: 3px; height: 30px; flex: 1; }
  .wave i { width: 3px; flex: none; border-radius: 3px; background: var(--sage); animation: wv 1.1s ease-in-out infinite; }
  .recorder__t { font-size: .74rem; font-weight: 600; color: var(--body); font-variant-numeric: tabular-nums; flex: none; }
  .scriptline { font-size: .8rem; color: var(--muted); background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 14px; line-height: 1.55; font-style: italic; }
  .scriptline b { color: var(--body); font-weight: 600; font-style: normal; }
  .aibox { border: 1px dashed color-mix(in oklab, var(--sage) 42%, transparent); background: linear-gradient(180deg, color-mix(in oklab, var(--sage) 7%, var(--paper)), var(--paper)); border-radius: var(--r-sm); padding: 14px; }
  .aibox__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 700; color: var(--sage-d); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
  .aibox__tag svg { width: 14px; height: 14px; }
  .kv { display: grid; grid-template-columns: 92px 1fr; gap: 8px; font-size: .74rem; margin-bottom: 7px; }
  .kv span { color: var(--muted); font-weight: 500; }
  .kv b { color: var(--ink); font-weight: 600; }
  .meas { display: flex; gap: 7px; margin-top: 11px; flex-wrap: wrap; }
  .meas i { font-style: normal; font-size: .67rem; font-weight: 700; color: var(--sage-d); background: color-mix(in oklab, var(--sage) 13%, transparent); border-radius: 7px; padding: 4px 9px; }

  .float { position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--sh-lg); padding: 13px 17px; display: flex; align-items: center; gap: 12px; animation: float 6s ease-in-out infinite; }
  .float--a { right: -28px; top: 120px; }
  .float--b { left: -32px; bottom: 38px; animation-delay: 1.6s; }
  .float__ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; }
  .float__ic svg { width: 21px; height: 21px; }
  .float small { display: block; font-size: .66rem; color: var(--muted); font-weight: 500; }
  .float b { font-size: .9rem; color: var(--ink); font-family: var(--serif); }

  /* ---- faixa de público (musgo) ---- */
  .band { background: var(--moss); color: #ccd6cf; overflow: hidden; }
  .band__label { text-align: center; font-size: .85rem; font-weight: 500; letter-spacing: .03em; color: #b4c3bc; margin-bottom: 26px; }
  .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; margin-inline: auto; }
  .chip { display: inline-flex; align-items: center; gap: 9px; font-size: .96rem; font-weight: 500; color: #eef3ef; background: rgba(244,239,230,.06); border: 1px solid var(--line-dk); padding: 11px 19px; border-radius: var(--r-pill); transition: background .2s, border-color .2s, transform .2s; }
  .chip:hover { background: rgba(244,239,230,.12); border-color: color-mix(in oklab, var(--terra) 55%, transparent); transform: translateY(-3px); }
  .chip svg { width: 18px; height: 18px; color: var(--terra); }

  /* ---- cards de problema ---- */
  .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; gap: 18px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
  .pcard:hover { transform: translateY(-5px); box-shadow: var(--sh); }
  .pcard__ic { width: 50px; height: 50px; border-radius: 14px; background: color-mix(in oklab, var(--terra) 16%, var(--paper)); color: var(--terra-d); display: grid; place-items: center; flex: none; }
  .pcard__ic svg { width: 24px; height: 24px; }
  .pcard h3 { margin-bottom: 7px; font-size: 1.12rem; }
  .pcard p { font-size: .96rem; color: var(--body); }

  /* ---- recursos (bento) ---- */
  .bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; position: relative; overflow: hidden; }
  .feat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--sage) 9%, transparent), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
  .feat:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--line-2); }
  .feat:hover::after { opacity: 1; }
  .feat__ic { width: 58px; height: 58px; border-radius: 16px; background: var(--cream-2); color: var(--sage-d); display: grid; place-items: center; margin-bottom: 20px; transition: transform .3s var(--ease); }
  .feat:hover .feat__ic { transform: scale(1.06) rotate(-3deg); }
  .feat__ic svg { width: 27px; height: 27px; }
  .feat h3 { margin-bottom: 10px; position: relative; }
  .feat p { font-size: .95rem; position: relative; }
  .feat--hl { background: var(--moss); border-color: var(--moss); }
  .feat--hl h3 { color: var(--cream); }
  .feat--hl p { color: #b9c6bf; }
  .feat--hl .feat__ic { background: var(--sage); color: var(--paper); }

  /* ---- IA split + demo ---- */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(38px, 5vw, 64px); align-items: center; }
  .checklist { display: grid; gap: 16px; margin-top: 28px; }
  .checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--step-0); }
  .checklist .ck { width: 28px; height: 28px; border-radius: 9px; background: color-mix(in oklab, var(--sage) 14%, transparent); color: var(--sage-d); display: grid; place-items: center; flex: none; margin-top: 2px; }
  .checklist .ck svg { width: 15px; height: 15px; }

  .demo { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
  .demo__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
  .demo__title { font-family: var(--serif); font-size: .98rem; font-weight: 600; color: var(--ink); }
  .demo__body { padding: 20px; }
  .demo__label { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 7px; }
  .demo__script { font-size: .94rem; font-style: italic; color: var(--body); line-height: 1.5; min-height: 4.2em; margin-bottom: 18px; }
  .demo__script .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--sage); margin-left: 1px; vertical-align: text-bottom; animation: caretblink 1s step-end infinite; }
  .demo__script .caret[hidden] { display: none; }
  .demo__ai { border-top: 1px dashed var(--line); padding-top: 16px; }
  .demo__aitag { display: inline-flex; align-items: center; gap: 7px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sage-d); margin-bottom: 14px; opacity: 0; transform: translateY(4px); transition: opacity .4s, transform .4s; }
  .demo__aitag svg { width: 14px; height: 14px; }
  .demo__aitag.show { opacity: 1; transform: none; }
  .demo__fld { display: grid; grid-template-columns: 108px 1fr; gap: 10px; align-items: baseline; font-size: .88rem; padding: 8px 0; border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent); opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .demo__fld:last-child { border-bottom: none; }
  .demo__fld.show { opacity: 1; transform: none; }
  .demo__fld span { color: var(--muted); font-weight: 500; }
  .demo__meas { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; }
  .demo__meas.show { opacity: 1; transform: none; }
  .demo__meas i { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--sage-d); background: color-mix(in oklab, var(--sage) 13%, transparent); border-radius: 8px; padding: 5px 11px; }
  .demo.resetting .demo__script, .demo.resetting .demo__aitag, .demo.resetting .demo__fld, .demo.resetting .demo__meas { transition: opacity .5s ease; opacity: 0; }

  /* ---- como funciona (passos) ---- */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
  .steps::before { content: ""; position: absolute; top: 34px; left: 16.6%; right: 16.6%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 7px, transparent 7px 16px); z-index: 0; }
  .step { position: relative; z-index: 1; text-align: center; }
  .step__n { width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--sage); color: var(--sage-d); font-family: var(--serif); font-size: 1.6rem; font-weight: 600; display: grid; place-items: center; box-shadow: var(--sh-sm); }
  .step h3 { margin-bottom: 9px; }
  .step p { font-size: .96rem; }

  /* ---- segurança ---- */
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .tcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
  .tcard:hover { transform: translateY(-4px); box-shadow: var(--sh); }
  .tcard__ic { width: 54px; height: 54px; border-radius: 15px; background: var(--cream-2); color: var(--sage-d); display: grid; place-items: center; margin: 0 auto 15px; }
  .tcard__ic svg { width: 25px; height: 25px; }
  .tcard h3 { font-size: 1.05rem; margin-bottom: 7px; }
  .tcard p { font-size: .89rem; color: var(--muted); }

  /* ---- planos ---- */
  .plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
  .plan { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 28px; transition: transform .3s var(--ease), box-shadow .3s; }
  .plan:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
  .plan--hl { background: var(--moss); border-color: var(--moss); position: relative; box-shadow: var(--sh-lg); }
  .plan--hl .plan__name, .plan--hl .plan__price b, .plan--hl .plan__cur { color: var(--cream); }
  .plan--hl .plan__desc, .plan--hl .plan__per, .plan--hl .plan__cycle { color: #aebbb4; }
  .plan--hl .plan__feats li { color: #dde5e0; }
  .plan--hl .plan__feats b { color: #fff; }
  .plan--hl .plan__line { background: var(--line-dk); }
  .plan--hl .ck { background: color-mix(in oklab, var(--sage) 42%, transparent); color: #dff0e8; }
  .plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--terra-deep); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 6px 18px; border-radius: var(--r-pill); box-shadow: var(--sh-terra); }
  .plan__name { font-family: var(--serif); font-size: 1.38rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
  .plan__desc { font-size: .88rem; color: var(--muted); min-height: 42px; }
  .plan__price { display: flex; align-items: baseline; gap: 5px; margin: 18px 0 3px; }
  .plan__cur { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); align-self: flex-start; margin-top: 9px; }
  .plan__price b { font-family: var(--serif); font-size: 2.9rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
  .plan__per { font-size: .9rem; color: var(--muted); }
  .plan__cycle { font-size: .8rem; color: var(--muted); min-height: 20px; }
  .plan__trial { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: .8rem; font-weight: 600; color: var(--sage-d); background: color-mix(in oklab, var(--sage) 13%, var(--paper)); border: 1px solid color-mix(in oklab, var(--sage) 26%, transparent); padding: 6px 13px; border-radius: var(--r-pill); }
  .plan__trial svg { width: 14px; height: 14px; flex: none; }
  .plan--hl .plan__trial { color: #dff0e8; background: color-mix(in oklab, var(--sage) 30%, transparent); border-color: color-mix(in oklab, var(--sage-l) 40%, transparent); }
  .plan__quote { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1; margin: 18px 0 3px; }
  .plan--hl .plan__quote { color: var(--cream); }
  .plan__line { height: 1px; background: var(--line); margin: 24px 0; }
  .plan__feats { display: grid; gap: 13px; margin-bottom: 28px; flex: 1; }
  .plan__feats li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; }
  .plan__feats .ck { width: 22px; height: 22px; border-radius: 7px; background: color-mix(in oklab, var(--sage) 13%, transparent); color: var(--sage-d); display: grid; place-items: center; flex: none; margin-top: 1px; }
  .plan__feats .ck svg { width: 13px; height: 13px; }
  .plan__feats .ck--off { background: color-mix(in oklab, var(--muted) 16%, transparent); color: var(--muted); }
  .plan__feats li.off { color: var(--muted); }

  .billing { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font-weight: 600; font-size: .95rem; color: var(--muted); }
  .billing .lbl.on { color: var(--ink); }
  .switch { position: relative; width: 56px; height: 31px; border-radius: var(--r-pill); background: var(--sage); flex: none; transition: background .2s; }
  .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: #fff; transition: transform .28s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.22); }
  .switch[aria-checked="true"]::after { transform: translateX(25px); }
  .billing .save { font-size: .76rem; font-weight: 700; color: var(--terra-deep); background: var(--terra-50); padding: 3px 10px; border-radius: var(--r-pill); }

  /* ---- faq ---- */
  .faq { max-width: 820px; margin-inline: auto; }
  .qa { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); margin-bottom: 14px; overflow: hidden; transition: box-shadow .25s, border-color .25s; }
  .qa[data-open="true"] { box-shadow: var(--sh); border-color: var(--line-2); }
  .qa__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 24px; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--ink); text-align: left; }
  .qa__q svg { width: 23px; height: 23px; color: var(--sage); flex: none; transition: transform .3s var(--ease); }
  .qa[data-open="true"] .qa__q svg { transform: rotate(45deg); }
  .qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
  .qa[data-open="true"] .qa__a { grid-template-rows: 1fr; }
  .qa__a > div { overflow: hidden; }
  .qa__a p { padding: 0 24px 23px; font-size: .98rem; color: var(--body); }

  /* ---- cta ---- */
  .cta { background: var(--moss); overflow: hidden; }
  .cta__leaf { position: absolute; opacity: .1; color: var(--cream); }
  .cta__leaf--1 { top: -34px; right: 4%; width: 240px; transform: rotate(18deg); }
  .cta__leaf--2 { bottom: -54px; left: 2%; width: 210px; transform: rotate(-30deg); }
  .cta__in { position: relative; z-index: 1; text-align: center; max-width: 680px; margin-inline: auto; }
  .cta h2 { color: var(--cream); margin-bottom: 18px; }
  .cta h2 em { color: var(--terra); font-style: italic; }
  .cta p { color: #bdc9c2; font-size: var(--step-1); margin-bottom: 34px; }
  .cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 24px; }
  .cta__note { font-size: .9rem; color: #aebdb5; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; }
  .cta__note span { display: inline-flex; align-items: center; gap: 7px; }
  .cta__note svg { width: 16px; height: 16px; color: var(--terra); }

  /* ---- footer ---- */
  .footer { background: var(--moss-d); color: #9fb0a8; padding: 64px 0 30px; }
  .footer__top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dk); }
  .footer .brand__name { color: var(--cream); }
  .footer .brand__name i { color: var(--sage-l); }
  .footer__desc { font-size: .92rem; max-width: 32ch; color: #9fb0a8; margin-top: 16px; }
  .footer__col h4 { font-family: var(--sans); color: var(--cream); font-size: .98rem; margin-bottom: 15px; font-weight: 600; }
  .footer__col a { display: block; font-size: .92rem; color: #9fb0a8; padding: 5px 0; transition: color .2s; }
  .footer__col a:hover { color: var(--cream); }
  .footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 26px; font-size: .85rem; color: #aebdb5; }
  .footer__bottom em { color: var(--terra); font-style: italic; }

  /* ---- whatsapp flutuante ---- */
  .wa { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; box-shadow: var(--sh-sage); transition: transform .3s var(--ease), opacity .3s var(--ease), background .2s; }
  .wa:hover { transform: scale(1.08); background: var(--sage-600); }
  .wa svg { width: 29px; height: 29px; color: var(--paper); }
  .wa--hidden { opacity: 0; transform: translateY(20px) scale(.85); pointer-events: none; }

  .skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--paper); color: var(--sage-d); padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; box-shadow: var(--sh); }
  .skip:focus { left: 24px; }

  /* ---- galeria antes / depois (slider) ---- */
  .evo { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
  .evo__copy .lead { margin-top: 16px; }
  .evo__points { display: grid; gap: 14px; margin-top: 26px; }
  .evo__points li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-0); }
  .evo__points .dot { width: 26px; height: 26px; border-radius: 8px; background: color-mix(in oklab, var(--sage) 14%, transparent); color: var(--sage-d); display: grid; place-items: center; flex: none; margin-top: 1px; }
  .evo__points .dot svg { width: 15px; height: 15px; }
  .evo__points b { color: var(--ink); font-weight: 600; }

  .ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); user-select: none; touch-action: pan-y; }
  .ba__pane { position: absolute; inset: 0; }
  .ba__pane svg { width: 100%; height: 100%; display: block; }
  .ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
  .ba__tag { position: absolute; top: 14px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: 5px 12px; border-radius: var(--r-pill); backdrop-filter: blur(4px); }
  .ba__tag--before { left: 14px; background: color-mix(in oklab, var(--moss) 78%, transparent); color: var(--cream); }
  .ba__tag--after { right: 14px; background: color-mix(in oklab, var(--sage) 86%, transparent); color: var(--paper); }
  .ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: var(--paper); transform: translateX(-50%); box-shadow: 0 0 0 1px color-mix(in oklab, var(--moss) 20%, transparent); cursor: ew-resize; }
  .ba__grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--paper); box-shadow: var(--sh); display: grid; place-items: center; color: var(--sage-d); }
  .ba__grip svg { width: 22px; height: 22px; }
  .ba__range { position: absolute; inset: 0; opacity: 0; cursor: ew-resize; margin: 0; width: 100%; }

  /* ---- faixa de prova social ---- */
  .proof { background: var(--moss); color: var(--cream); border-radius: var(--r-xl); padding: clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
  .proof__leaf { position: absolute; opacity: .08; color: var(--cream); pointer-events: none; }
  .proof__quote { font-family: var(--serif); font-weight: 500; font-size: var(--step-2); line-height: 1.28; max-width: 22ch; position: relative; }
  .proof__quote .mk { color: var(--terra); }
  .proof__by { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
  .proof__av { width: 52px; height: 52px; border-radius: 50%; background: var(--sage); color: var(--paper); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; flex: none; }
  .proof__name { font-weight: 600; color: #fff; }
  .proof__role { font-size: var(--step--1); color: #aebbb4; }
  .proof__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-dk); position: relative; }
  .proof__stat b { display: block; font-family: var(--serif); font-weight: 560; font-size: var(--step-3); color: var(--terra); line-height: 1; }
  .proof__stat span { display: block; font-size: var(--step--1); color: #aebbb4; margin-top: 8px; }
  .proof__note { font-size: .72rem; color: #8ba093; margin-top: 22px; position: relative; }
}

/* ====================== MOTION ====================== */
@layer motion {
  @keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
  @keyframes micpulse { 0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--sage) 45%,transparent)} 70%{box-shadow:0 0 0 11px transparent} 100%{box-shadow:0 0 0 0 transparent} }
  @keyframes wv { 0%,100%{height:18%} 50%{height:90%} }
  @keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
  @keyframes caretblink { 0%,100%{opacity:1} 50%{opacity:0} }

  @keyframes shimmer { 0%{background-position:-160% 0} 100%{background-position:260% 0} }

  /* reveal base — sobe + leve blur, mais cinematográfico */
  .reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out), filter .85s var(--ease-out); will-change: opacity, transform; }
  .reveal.in { opacity: 1; transform: none; filter: blur(0); }
  /* variantes direcionais (opt-in via data-anim) */
  .reveal[data-anim="left"]  { transform: translateX(-38px); }
  .reveal[data-anim="right"] { transform: translateX(38px); }
  .reveal[data-anim="scale"] { transform: scale(.94); }
  .reveal[data-anim="left"].in, .reveal[data-anim="right"].in, .reveal[data-anim="scale"].in { transform: none; }
  /* stagger */
  .reveal[data-d="1"] { transition-delay: .08s; }
  .reveal[data-d="2"] { transition-delay: .16s; }
  .reveal[data-d="3"] { transition-delay: .24s; }
  .reveal[data-d="4"] { transition-delay: .32s; }
  .reveal[data-d="5"] { transition-delay: .40s; }

  /* filhos com stagger automático (define --i no item) */
  .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * .08s); }
  .stagger.in > * { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal, .stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
    html { scroll-behavior: auto; }
  }
}

/* ====================== RESPONSIVE ====================== */
@layer responsive {
  @media (max-width: 980px) {
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .shot { max-width: 520px; margin-inline: auto; width: 100%; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .evo { grid-template-columns: 1fr; gap: 40px; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; gap: 30px; }
    .steps::before { display: none; }
    .plans { grid-template-columns: repeat(2, 1fr); max-width: 620px; margin-inline: auto; gap: 18px; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
  }
  @media (max-width: 760px) {
    .nav__menu, .nav__cta .btn { display: none; }
    .burger { display: grid; }
    .grid-2, .bento { grid-template-columns: 1fr; }
    .float { display: none; }
  }
  @media (max-width: 620px) {
    .plans { grid-template-columns: 1fr; max-width: 420px; }
  }
  @media (max-width: 540px) {
    .grid-4 { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: 1fr; }
    .hero__cta .btn { flex: 1; }
    .proof__stats { grid-template-columns: 1fr; gap: 22px; }
  }
}
