/* ==========================================================
   OnlineCannaDoc — landing page styles
   Colors are set once here. Change them to match your logo.
   ========================================================== */
:root {
  --ivory: #f5f1e8;
  --paper: #fbf9f4;
  --sand: #ebe4d4;
  --ink: #111712;
  --ink-2: #2b332d;
  --muted: #646d66;
  --night: #101713;
  --night-2: #172119;
  --sage: #5e7f5b;
  --sage-soft: #dfe8db;
  --accent: #d6ef7a;     /* citron highlight */
  --accent-ink: #1d2a12;
  --line: rgba(17, 23, 18, 0.12);
  --line-light: rgba(245, 241, 232, 0.14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 26px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--pad); }

.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 5.6vw, 4.8rem); line-height: 1; letter-spacing: -0.02em; }
em { font-style: italic; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.eyebrow--light { color: var(--accent); }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 500; background: var(--night); display: grid; place-items: center; pointer-events: none; }
.loader__inner { font-family: var(--serif); color: var(--ivory); font-size: clamp(2.4rem, 7vw, 5rem); display: flex; gap: .3em; overflow: hidden; line-height: 1.1; }
.loader__word { display: inline-block; }
.loader__word--it { font-style: italic; color: var(--accent); }
/* safety net: the loader always clears itself even if scripts fail */
.loader { animation: loaderOut .8s var(--ease) 2.4s forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* fixed menu must not be trapped by the blurred header */
html .header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; transform: none; }

/* ---------- Progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--sage); transform: scaleX(0); transform-origin: left; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), background .35s, color .35s, border-color .35s, box-shadow .5s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--ink); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::after { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn svg.ico-fill { fill: currentColor; stroke: none; }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--lg { padding: 18px 30px; font-size: 1rem; }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark::after { background: var(--sage); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 18px 40px -18px rgba(120,150,40,.55); }
.btn--accent:hover { color: var(--ivory); }
.btn--line { border: 1.5px solid var(--line); color: var(--ink); background: rgba(255,255,255,.4); }
.btn--line:hover { color: var(--ivory); border-color: var(--ink); }
.btn--line-light { border: 1.5px solid var(--line-light); color: var(--ivory); }
.btn--line-light::after { background: var(--ivory); }
.btn--line-light:hover { color: var(--ink); }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 18px 0; transition: transform .6s var(--ease), padding .4s var(--ease), background .4s, box-shadow .4s; }
.header.is-scrolled { padding: 10px 0; background: rgba(245,241,232,.78); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-110%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; position: relative; z-index: 2; }
.brand__img { height: 40px; width: auto; }
.brand__text { display: none; font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand__text b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.3em; color: var(--sage); margin: 0 1px; }
.brand--text .brand__text, .brand:not(:has(img)) .brand__text { display: inline; }
.brand--light { color: var(--ivory); }
.brand--light .brand__text b { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 32px; font-size: .94rem; font-weight: 500; }
.nav a { position: relative; color: var(--ink-2); overflow: hidden; }
.nav a span { display: inline-block; transition: transform .5s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__phone { display: none; }

.header__right { display: flex; align-items: center; gap: 18px; position: relative; z-index: 2; }
.hphone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .94rem; }
.hphone svg { width: 18px; height: 18px; fill: var(--sage); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); position: relative; }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--ivory); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:nth-child(1) { top: 19px; } .burger i:nth-child(2) { top: 26px; }
.burger.is-open i:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.burger.is-open i:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
.hero__glow { position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214,239,122,.55), rgba(94,127,91,.18) 55%, transparent 75%); filter: blur(10px); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 0 rgba(94,127,91,.6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(94,127,91,0); } 100% { box-shadow: 0 0 0 0 rgba(94,127,91,0); } }

.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.3rem, 8.4vw, 7.6rem); line-height: .95; letter-spacing: -0.03em; margin: 28px 0 26px; }
.hero__title em { display: block; color: var(--sage); }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 520px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin-top: 30px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.hero__ticks li { display: flex; align-items: center; gap: 8px; }
.hero__ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e7f5b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }

.hero__scroll { position: absolute; left: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 12px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.hero__scroll i { width: 46px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: line 2s var(--ease) infinite; }
@keyframes line { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Phone art */
.hero__art { position: relative; display: grid; place-items: center; min-height: 560px; }
.ring { position: absolute; width: min(520px, 110%); aspect-ratio: 1; animation: spin 40s linear infinite; }
.ring text { font-family: var(--sans); font-size: 9.2px; font-weight: 700; letter-spacing: 3.2px; fill: var(--sage); }
@keyframes spin { to { transform: rotate(360deg); } }
.phone { position: relative; width: 270px; aspect-ratio: 9 / 18.5; border-radius: 44px; background: var(--ink); padding: 11px; box-shadow: 0 60px 90px -40px rgba(17,23,18,.55), 0 0 0 1px rgba(255,255,255,.06) inset; transform: rotate(-6deg); }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 20px; background: #000; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: linear-gradient(180deg, #23302a, #121a15); display: flex; flex-direction: column; justify-content: space-between; padding: 54px 14px 14px; }
.call { position: relative; flex: 1; border-radius: 22px; background: radial-gradient(90% 70% at 50% 30%, #3b5246, #1a241e); overflow: hidden; display: flex; flex-direction: column; }
.call__top { display: flex; justify-content: space-between; padding: 12px 12px 0; font-size: .66rem; font-weight: 600; color: rgba(245,241,232,.85); }
.call__live { display: inline-flex; align-items: center; gap: 6px; }
.call__live i { width: 6px; height: 6px; border-radius: 50%; background: #ff6b5b; animation: ping 1.6s infinite; }
.call__time { font-variant-numeric: tabular-nums; }
.call__doc { flex: 1; display: grid; place-items: end center; }
.call__doc svg { width: 72%; fill: rgba(214,239,122,.18); stroke: rgba(214,239,122,.55); stroke-width: 1.2; }
.call__self { position: absolute; right: 10px; top: 36px; width: 54px; height: 74px; border-radius: 12px; background: linear-gradient(160deg, #5e7f5b, #2b3a2e); border: 1.5px solid rgba(255,255,255,.25); }
.call__bar { display: flex; justify-content: center; gap: 12px; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.call__bar span { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); }
.call__bar .end { background: #ff6b5b; }
.result { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; background: var(--paper); }
.result b { display: block; font-size: .78rem; }
.result small { font-size: .66rem; color: var(--muted); }
.result__check { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.result__check svg { width: 16px; fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.chip { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(251,249,244,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: 0 30px 50px -28px rgba(17,23,18,.4); font-size: .86rem; line-height: 1.25; }
.chip b { display: block; }
.chip small { color: var(--muted); font-size: .75rem; }
.chip__ico { width: 38px; height: 38px; border-radius: 12px; background: var(--sage-soft); display: grid; place-items: center; }
.chip__ico svg { width: 19px; fill: none; stroke: var(--sage); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip--a { left: -4%; top: 22%; }
.chip--b { right: -2%; bottom: 18%; }

/* ---------- Ticker ---------- */
.ticker { background: var(--night); color: var(--ivory); overflow: hidden; padding: 26px 0; }
.ticker__track { display: flex; align-items: center; gap: 44px; width: max-content; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; will-change: transform; }
.ticker__track i { color: var(--accent); font-style: normal; font-size: .7em; }
html:not(.has-motion) .ticker__track { animation: tick 35s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Intro statement ---------- */
.intro { padding: clamp(100px, 14vw, 190px) 0; }
.intro__text { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.12; letter-spacing: -0.015em; max-width: 1100px; }
.intro__text .w { opacity: .14; transition: opacity .2s linear; }
html:not(.has-motion) .intro__text .w { opacity: 1; }

/* ---------- How it works ---------- */
.how { background: var(--night); color: var(--ivory); overflow: hidden; }
.how__pin { padding: clamp(90px, 11vw, 140px) 0; }
.how__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 60px; }
.how__head .h2 em { color: var(--accent); }
.how__meter { width: 220px; height: 2px; background: var(--line-light); flex: none; margin-bottom: 16px; }
.how__meter span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.how__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.scard { position: relative; background: var(--night-2); border: 1px solid var(--line-light); border-radius: var(--r); padding: 34px 30px; min-height: 380px; display: flex; flex-direction: column; transition: border-color .5s, transform .6s var(--ease); }
.scard:hover { border-color: rgba(214,239,122,.4); }
.scard__num { font-family: var(--serif); font-size: 5.4rem; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(245,241,232,.3); margin-bottom: 30px; }
.scard__ico { width: 54px; height: 54px; border-radius: 16px; background: rgba(214,239,122,.1); display: grid; place-items: center; margin-bottom: 22px; }
.scard__ico svg { width: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scard h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.05; margin-bottom: 14px; }
.scard p { color: rgba(245,241,232,.66); font-size: .98rem; }
.scard__tag { margin-top: auto; padding-top: 24px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.scard--cta { background: var(--accent); color: var(--accent-ink); border-color: transparent; justify-content: flex-end; }
.scard--cta h3 { font-size: 2.6rem; }
.scard--cta p { color: rgba(29,42,18,.75); margin-bottom: 26px; }
.scard--cta .btn--accent { background: var(--accent-ink); color: var(--accent); box-shadow: none; align-self: flex-start; }
.scard--cta .btn--accent::after { background: var(--ivory); }
.scard--cta .btn--accent:hover { color: var(--accent-ink); }

/* Horizontal pinned layout (desktop + motion only) */
html.has-motion .how.is-horizontal .how__track { display: flex; width: max-content; gap: 24px; padding-left: max(var(--pad), calc((100vw - 1280px) / 2 + var(--pad))); padding-right: 12vw; margin: 0; }
/* The pinned panel is sized to the screen height, so the whole section is
   visible before it starts sliding — works on 13" laptops and big monitors alike. */
html.has-motion .how.is-horizontal .how__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(76px, 11vh, 120px) 0 clamp(28px, 6vh, 64px); }
html.has-motion .how.is-horizontal .how__head { margin-bottom: clamp(22px, 5vh, 56px); }
html.has-motion .how.is-horizontal .how__head .h2 { font-size: clamp(2.2rem, 7.4vh, 4.8rem); }
html.has-motion .how.is-horizontal .eyebrow { margin-bottom: clamp(10px, 2vh, 22px); }
html.has-motion .how.is-horizontal .scard { width: min(440px, 34vw); min-height: 0; height: clamp(300px, 50vh, 440px); flex: none; padding: clamp(22px, 3.6vh, 34px) 30px; }
html.has-motion .how.is-horizontal .scard__num { font-size: clamp(3rem, 8.5vh, 5.4rem); margin-bottom: clamp(10px, 2.6vh, 30px); }
html.has-motion .how.is-horizontal .scard__ico { width: clamp(42px, 6vh, 54px); height: clamp(42px, 6vh, 54px); margin-bottom: clamp(12px, 2.4vh, 22px); }
html.has-motion .how.is-horizontal .scard h3 { font-size: clamp(1.6rem, 3.6vh, 2rem); margin-bottom: clamp(8px, 1.4vh, 14px); }
html.has-motion .how.is-horizontal .scard--cta h3 { font-size: clamp(2rem, 4.6vh, 2.6rem); }
html.has-motion .how.is-horizontal .scard p { font-size: clamp(.9rem, 1.9vh, .98rem); }
html.has-motion .how.is-horizontal .scard__tag { padding-top: 14px; }

/* ---------- Lead form popup ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(16,23,19,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel { position: relative; width: min(520px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 30px; padding: clamp(28px, 5vw, 46px); box-shadow: 0 50px 100px -30px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__x { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, transform .5s var(--ease); }
.modal__x:hover { background: var(--sand); transform: rotate(90deg); }
.modal__x i { position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--ink); }
.modal__x i:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.modal__x i:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.modal .eyebrow { margin-bottom: 14px; }
.modal__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 6vw, 3.1rem); line-height: 1; letter-spacing: -0.02em; }
.modal__title em { color: var(--sage); }
.modal__sub { color: var(--muted); margin: 14px 0 26px; font-size: .98rem; }

.lead { display: grid; gap: 14px; }
.field { position: relative; }
.field input, .field select { width: 100%; height: 60px; padding: 22px 18px 6px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white, #fff);
  font: inherit; font-size: 1rem; color: var(--ink); outline: none; appearance: none; -webkit-appearance: none; transition: border-color .3s, box-shadow .3s; }
.field select { cursor: pointer; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111712' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center/18px no-repeat; }
.field label { position: absolute; left: 19px; top: 19px; font-size: 1rem; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; }
.field input:focus, .field select:focus { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(94,127,91,.14); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field.has-value label, .field select:focus + label { transform: translateY(-10px) scale(.76); color: var(--sage); }
.field__err { display: none; color: #b3402f; font-size: .82rem; font-weight: 600; margin: 6px 4px 0; }
.field.is-bad input, .field.is-bad select { border-color: #d0604e; }
.field.is-bad .field__err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.lead__btn { width: 100%; margin-top: 6px; }
.lead__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.lead__btn.is-loading .lead__label { opacity: .6; }
.lead__btn.is-loading .lead__spin { display: inline-block; }
.lead__error { display: none; color: #b3402f; font-size: .88rem; font-weight: 600; text-align: center; }
.lead__error.is-on { display: block; }
.lead__consent { font-size: .74rem; line-height: 1.5; color: var(--muted); text-align: center; }

.modal__view--done { text-align: center; padding: 10px 0; }
.done__check { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 24px; }
.done__check svg { width: 32px; fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.modal__view--done:not([hidden]) .done__check svg { animation: draw .7s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__ctas { display: grid; gap: 10px; margin-top: 8px; }

@media (max-width: 560px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel { width: 100%; border-radius: 28px 28px 0 0; max-height: 94svh; padding: 34px 20px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); }
  .modal.is-open .modal__panel { transform: none; }
  .field input, .field select { font-size: 16px; } /* stops iPhone from zooming in */
}

/* ---------- Why us ---------- */
.why { padding: clamp(100px, 12vw, 160px) 0; }
.why__head { max-width: 860px; margin-bottom: 70px; }
.why__head .h2 em { color: var(--sage); }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feat { position: relative; padding: 40px 34px 46px 0; border-bottom: 1px solid var(--line); }
.feat:not(:nth-child(3n+1)) { padding-left: 34px; border-left: 1px solid var(--line); }
.feat::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.feat:hover::before { transform: scaleX(1); }
.feat__n { font-size: .8rem; font-weight: 700; color: var(--sage); letter-spacing: .1em; }
.feat h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.1; margin: 22px 0 12px; }
.feat p { color: var(--muted); font-size: .98rem; }
.feat a { color: var(--sage); font-weight: 700; white-space: nowrap; }

/* ---------- Conditions ---------- */
.conds { background: var(--sand); padding: clamp(90px, 11vw, 140px) 0; }
.conds__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.conds .h2 em { color: var(--sage); }
.conds__note { color: var(--muted); margin-top: 24px; max-width: 460px; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.tags li { padding: 14px 22px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .98rem; transition: background .35s, color .35s, transform .5s var(--ease); }
.tags li:hover { background: var(--ink); color: var(--ivory); transform: translateY(-3px); }
.tags li:last-child { background: transparent; border-style: dashed; color: var(--muted); }

/* ---------- What you need ---------- */
.ready { padding: clamp(100px, 12vw, 160px) 0; }
.ready__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.ready__card { background: var(--night); color: var(--ivory); border-radius: 32px; padding: clamp(36px, 5vw, 60px); }
.ready__card .h2 { margin-bottom: 36px; }
.ready__card .h2 em { color: var(--accent); }
.check { list-style: none; display: grid; gap: 4px; }
.check li { display: flex; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line-light); }
.check span { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light); display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--accent); flex: none; }
.check b { display: block; font-weight: 600; }
.check small { color: rgba(245,241,232,.6); font-size: .9rem; }
.ready__side h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; margin-bottom: 20px; }
.ready__side p { color: var(--muted); margin-bottom: 30px; }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); }
.link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .5s var(--ease); }
.link:hover svg { transform: translateX(6px); }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 clamp(100px, 12vw, 160px); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); }
.faq__head { position: sticky; top: 110px; align-self: start; }
.faq__head .h2 em { color: var(--sage); }
.faq__head p { color: var(--muted); margin-top: 22px; }
.faq__head a { color: var(--sage); font-weight: 700; white-space: nowrap; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.2; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background .4s, transform .6s var(--ease); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .6s var(--ease), background .4s; }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i { background: var(--ink); transform: rotate(180deg); }
.qa[open] summary i::before, .qa[open] summary i::after { background: var(--ivory); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { color: var(--muted); padding: 0 60px 28px 0; }

/* ---------- Final CTA ---------- */
.final { padding: 0 0 clamp(40px, 6vw, 70px); }
.final__box { position: relative; overflow: hidden; isolation: isolate; border-radius: 36px; background: var(--night); color: var(--ivory); text-align: center; padding: clamp(80px, 12vw, 150px) 24px; }
.final__orb { position: absolute; z-index: -1; width: 680px; height: 680px; left: 50%; top: 60%; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(214,239,122,.35), rgba(94,127,91,.25) 50%, transparent 75%); }
.final__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 7.6vw, 6.6rem); line-height: .98; letter-spacing: -0.03em; max-width: 1000px; margin: 0 auto; }
.final__title em { color: var(--accent); }
.final__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(245,241,232,.7); padding: 70px 0 36px; margin-top: clamp(40px, 6vw, 70px); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; font-weight: 600; font-size: .94rem; }
.footer__nav a:hover { color: var(--accent); }
.footer__big { font-family: var(--serif); font-size: clamp(4rem, 17vw, 15rem); line-height: .9; letter-spacing: -0.04em; color: var(--ivory); margin: 60px 0 40px; white-space: nowrap; }
.footer__big::first-letter { color: var(--accent); }
.footer__legal { display: grid; gap: 10px; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: .82rem; color: rgba(245,241,232,.45); }

/* ---------- Mobile bar ---------- */
.mbar { display: none; }

/* ---------- Fallback reveal (when motion libs are absent) ---------- */
html.no-motion .fade-up { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.no-motion .fade-up.is-in { opacity: 1; transform: none; }

/* Split-word headline helpers */
.split .ln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .ln > span { display: inline-block; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro__text .w { opacity: 1 !important; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .hphone span { display: none; }
  .how__track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .header__right .btn { display: none; }
  .hphone { width: 46px; height: 46px; border-radius: 50%; background: var(--sage-soft); justify-content: center; }

  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 100px var(--pad) 40px;
    background: var(--ivory); font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 3.6rem); font-weight: 400; line-height: 1.15;
    clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav a { color: var(--ink); }
  .nav a::after { display: none; }
  .nav a span { transform: translateY(110%); transition: transform .8s var(--ease); }
  .nav.is-open a span { transform: none; }
  .nav.is-open a:nth-child(2) span { transition-delay: .05s; }
  .nav.is-open a:nth-child(3) span { transition-delay: .1s; }
  .nav.is-open a:nth-child(4) span { transition-delay: .15s; }
  .nav.is-open a:nth-child(5) span { transition-delay: .2s; }
  .nav__phone { display: block; margin-top: 24px; font-family: var(--sans); font-size: 1.1rem; font-weight: 700; color: var(--sage) !important; }

  .hero { min-height: auto; padding: 120px 0 70px; }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__art { min-height: 500px; }
  .hero__scroll { display: none; }

  .how__head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .how__meter { display: none; }
  .how__track { grid-template-columns: 1fr; }
  .scard { min-height: 0; }
  .scard__num { font-size: 4rem; margin-bottom: 20px; }

  .feats { grid-template-columns: 1fr; }
  .feat, .feat:not(:nth-child(3n+1)) { padding: 32px 0 34px; border-left: 0; }

  .conds__grid, .ready__grid, .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }

  .footer { padding-bottom: 120px; }

  .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 250; gap: 8px; padding: 7px;
    border-radius: 999px; background: rgba(16,23,19,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px -16px rgba(0,0,0,.45); transform: translateY(150%); transition: transform .7s var(--ease); }
  .mbar.is-visible { transform: none; }
  .mbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
  .mbar__call { color: var(--ivory); }
  .mbar__call svg { width: 17px; fill: var(--accent); }
  .mbar__go { background: var(--accent); color: var(--accent-ink); }
}

@media (max-width: 560px) {
  .brand__img { height: 34px; }
  .brand__text { font-size: 1.04rem; }
  .hero__ctas .btn { width: 100%; }
  .hero__art { min-height: 440px; }
  .phone { width: 220px; border-radius: 38px; }
  .phone__screen { border-radius: 29px; padding-top: 48px; }
  .chip { padding: 9px 14px 9px 9px; font-size: .78rem; }
  .chip__ico { width: 32px; height: 32px; }
  .chip--a { left: 0; top: 14%; }
  .chip--b { right: 0; bottom: 12%; }
  .qa__a p { padding-right: 0; }
  .final__ctas .btn { width: 100%; }
  .final__box { border-radius: 28px; }
  .tags li { padding: 11px 17px; font-size: .9rem; }
}

/* Touch screens: don't leave hover effects "stuck" after a tap */
@media (hover: none) {
  .btn:hover::after { transform: translateY(101%); }
  .btn:hover, .magnetic:hover { transform: none; }
  .btn--accent:hover { color: var(--accent-ink); }
  .btn--line:hover { color: var(--ink); border-color: var(--line); }
  .btn--line-light:hover { color: var(--ivory); }
  .scard--cta .btn--accent:hover { color: var(--accent); }
  .tags li:hover { background: var(--paper); color: var(--ink); transform: none; }
  .btn:active { transform: scale(.97); }
}

/* ---------- Compact lead form: fits the screen with no scrolling ---------- */
.modal__panel { overflow: hidden; padding: clamp(22px, 4.2vh, 40px) clamp(22px, 4vw, 40px); }
.modal__x { top: 14px; right: 14px; width: 38px; height: 38px; }
.modal .eyebrow { margin-bottom: clamp(6px, 1.2vh, 12px); font-size: .72rem; }
.modal__title { font-size: clamp(1.9rem, 5.2vh, 2.8rem); padding-right: 40px; }
.modal__sub { margin: clamp(6px, 1.2vh, 10px) 0 clamp(14px, 2.6vh, 22px); font-size: .92rem; line-height: 1.5; }
.lead { gap: clamp(8px, 1.4vh, 12px); grid-template-columns: 1fr 1fr; }
.lead > .field, .lead > .lead__btn, .lead > .lead__error, .lead > .lead__consent { grid-column: 1 / -1; }
.lead > .field:nth-of-type(2), .lead > .field:nth-of-type(3) { grid-column: auto; }
.field input, .field select { height: clamp(50px, 7vh, 58px); padding: 18px 16px 2px; border-radius: 14px; }
.field select { padding-right: 40px; }
.field label { left: 17px; top: 50%; transform: translateY(-50%); font-size: .98rem; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field.has-value label, .field select:focus + label { transform: translateY(calc(-50% - 11px)) scale(.76); }
.field__err { position: absolute; right: 12px; top: 6px; margin: 0; font-size: .7rem; background: var(--paper); padding: 0 4px; border-radius: 4px; }
.field.is-bad .field__err { display: block; }
.lead__btn { margin-top: 2px; padding-top: clamp(14px, 2.2vh, 18px); padding-bottom: clamp(14px, 2.2vh, 18px); }
.lead__consent { font-size: .68rem; line-height: 1.45; }
.done__check { width: clamp(56px, 9vh, 72px); height: clamp(56px, 9vh, 72px); margin-bottom: clamp(14px, 2.6vh, 24px); }

@media (max-width: 560px) {
  .lead { grid-template-columns: 1fr; }
  .lead > .field:nth-of-type(2), .lead > .field:nth-of-type(3) { grid-column: 1 / -1; }
  .modal__panel { max-height: 100svh; overflow: hidden; padding: 24px 18px calc(16px + env(safe-area-inset-bottom)); }
  .modal__title { font-size: clamp(1.8rem, 4.6vh, 2.4rem); }
  .modal__sub { font-size: .88rem; }
  .field input, .field select { height: clamp(48px, 6.6vh, 56px); }
}
.field.is-bad label { transform: translateY(calc(-50% - 11px)) scale(.76); color: #b3402f; }
