/* ============================================================
   CARYBIT.COM
   Product-forward homepage.
   Route B brand: Aubergine (#3D233E) primary on warm Paper,
   Hanken Grotesk type. Aubergine is the only accent; green
   carries real system meaning only.
   ============================================================ */
:root {
  color-scheme: light;
  --brand-aubergine: #3D233E;
  --brand-aubergine-deeper: #351E36;
  --brand-aubergine-soft: #4B2A4C;
  --brand-aubergine-tint: color-mix(in srgb, var(--brand-aubergine) 9%, var(--brand-surface));
  --brand-paper: #FAF6F1;
  --brand-surface: #FFFDF9;
  --brand-stone: #DAD0C9;
  --dark: #251526;
  --paper: var(--brand-paper);
  --soft: var(--brand-paper);
  --ink: #171019;
  --ink-strong: #171019;
  --muted: #6B5A6D;
  --faint: #6B5A6D;
  --line: #E8DED7;
  --card: #fefefe;
  --green: #2E7D32;
  --font-primary: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(23, 16, 25, 0.06);
  --shadow-md: 0 14px 34px rgba(23, 16, 25, 0.10);
  --shadow-lg: 0 28px 72px rgba(23, 16, 25, 0.15);
  --maxw: 1180px;
  --hero-maxw: 1460px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./brand-assets/fonts/hanken-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("./brand-assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
body { margin: 0; font-family: var(--font-primary); color: var(--ink); background: var(--paper); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
img { max-width: 100%; display: block; }

.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; padding: 0.65rem 0.9rem; background: var(--ink-strong); color: oklch(0.99 0.004 350); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--brand-aubergine); outline-offset: 2px; }
.hero :focus-visible, .snav :focus-visible, .section--dark :focus-visible { outline-color: var(--brand-surface); }

/* ---------- primitives ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(1.25rem, 5vw, 4rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--brand-aubergine); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 16px; height: 1.5px; background: var(--brand-aubergine); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 52px; padding: 0 1.5rem; border-radius: var(--radius-md); font-family: var(--font-primary); font-size: 0.96rem; font-weight: 650; cursor: pointer; transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
.btn--primary { background: var(--brand-aubergine-soft); color: var(--brand-paper); border: 1px solid var(--brand-aubergine-soft); box-shadow: var(--shadow-sm); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--brand-aubergine-deeper); border-color: var(--brand-aubergine-deeper); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink-strong); border: 1px solid var(--line); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--brand-aubergine); color: var(--brand-aubergine); transform: translateY(-2px); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- sections ---------- */
.section { padding: clamp(2.8rem, 5.5vw, 4.6rem) 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--brand-aubergine); color: var(--brand-surface); }
.section--dark .section__head h2 { color: var(--brand-surface); }
.section--dark .eyebrow { color: var(--brand-stone); }
.section--dark .eyebrow::before { background: var(--brand-stone); }
.section__head { max-width: 720px; }
.section__head h2 { margin-top: 1rem; color: var(--ink-strong); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -0.02em; }
.section__head p { margin-top: 1rem; max-width: 62ch; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

/* ---------- hero ---------- */
.hero { max-width: none; margin: 0; padding-block: clamp(2.2rem, 5vw, 4rem); padding-inline: max(clamp(1.25rem, 5vw, 4rem), calc((100vw - var(--hero-maxw)) / 2 + clamp(1.25rem, 5vw, 4rem))); }
.hero-brand { display: block; width: max-content; max-width: 100%; margin: 0 0 clamp(1.8rem, 3.5vw, 2.8rem); }
.hero-brand img { display: block; height: 32px; width: auto; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1.3fr); align-items: center; gap: clamp(1.2rem, 2.6vw, 2.2rem); }
.hero-inner > * { min-width: 0; }
.hero h1 { margin-top: 1.1rem; color: var(--brand-surface); font-size: clamp(2.3rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.hero .lede { margin-top: 1.2rem; max-width: 52ch; color: color-mix(in srgb, var(--brand-paper) 88%, var(--brand-stone)); font-size: clamp(1.02rem, 1.3vw, 1.16rem); line-height: 1.62; }
.hero .lede b { color: var(--brand-surface); font-weight: 600; }
.hero .actions { margin-top: 1.7rem; }
.hero .microcopy { margin-top: 0.9rem; font-size: 0.84rem; color: color-mix(in srgb, var(--brand-paper) 70%, var(--brand-stone)); }
.hero .microcopy b { color: var(--brand-surface); font-weight: 700; }
.hero {
  background: var(--brand-aubergine);
  color: var(--brand-surface);
}
.hero .eyebrow { color: var(--brand-stone); }
.hero .eyebrow::before { background: var(--brand-stone); }
.hero .btn--primary { background: var(--brand-surface); color: var(--ink); border-color: var(--brand-surface); box-shadow: 0 12px 30px rgba(18, 9, 18, 0.28); }
.hero .btn--primary:hover, .hero .btn--primary:focus-visible { background: var(--brand-paper); border-color: var(--brand-paper); transform: translateY(-2px); }
.hero .btn--ghost { color: var(--brand-surface); border-color: color-mix(in srgb, var(--brand-stone) 45%, transparent); }
.hero .btn--ghost:hover, .hero .btn--ghost:focus-visible { color: var(--brand-stone); border-color: var(--brand-stone); }

.hero-media { display: block; max-width: 100%; }
.hero-media img { width: 100%; height: auto; display: block; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { margin-inline: calc(-1 * clamp(1.25rem, 5vw, 4rem)); }
  .hero-media img { border-radius: 0; box-shadow: none; }
}

/* ---------- guarantee ---------- */
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(2rem, 4vw, 3.2rem); border: 1px solid var(--brand-aubergine); border-radius: 20px; background: var(--brand-aubergine); box-shadow: var(--shadow-lg); }
.guar-seal { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 50%; background: var(--brand-surface); color: var(--brand-aubergine); box-shadow: 0 18px 44px rgba(23, 16, 25, 0.4); flex-shrink: 0; }
.guar-seal .x2 { font-family: var(--mono); font-size: 2.4rem; font-weight: 800; line-height: 1; }
.guar-seal .gl { font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.25rem; opacity: 0.75; }
.guar-body .eyebrow { margin-bottom: 0.2rem; color: var(--brand-stone); }
.guar-body .eyebrow::before { background: var(--brand-stone); }
.guar-body h2 { margin-top: 0.6rem; color: var(--brand-surface); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.guar-body p { margin-top: 0.9rem; color: color-mix(in srgb, var(--brand-paper) 88%, var(--brand-stone)); font-size: 1.05rem; line-height: 1.6; max-width: 62ch; }
.guar-body p b { color: var(--brand-surface); }
@media (max-width: 720px) { .guarantee { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- leak: people ---------- */
.analytics-media img { width: 100%; height: auto; display: block; }

/* ---------- product cards (what you get) ---------- */
.pcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.3rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 720px) { .pcards { grid-template-columns: 1fr; } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; display: flex; flex-direction: column; gap: 1.1rem; box-shadow: 0 18px 44px rgba(23, 16, 25, 0.06); }
.pcard__img img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }

.pcard__txt strong { display: block; font-size: 1.08rem; color: var(--ink-strong); margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.pcard__txt p { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
.pcard__label { display: inline-block; margin-bottom: 0.55rem; color: var(--brand-aubergine); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
/* two-customer decision visual */


/* ---------- footer ---------- */
.site-footer { background: var(--brand-aubergine); }
.site-footer__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--maxw); margin: 0 auto; padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.25rem, 5vw, 4rem); }
.site-footer__brand { display: inline-flex; }
.site-footer__brand img { display: block; height: 26px; width: auto; }
.site-footer__copy { color: color-mix(in srgb, var(--brand-paper) 70%, var(--brand-stone)); font-size: 0.9rem; }
@media (max-width: 560px) { .site-footer__in { flex-direction: column; gap: 1rem; text-align: center; } }

/* ---------- button sizes ---------- */
.btn--sm { min-height: 42px; padding: 0 1.15rem; font-size: 0.88rem; }
.btn--lg { min-height: 56px; padding: 0 1.7rem; font-size: 1rem; }

/* ---------- leak beat ---------- */
.leak { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.leak > * { min-width: 0; }
@media (max-width: 860px) { .leak { grid-template-columns: 1fr; } }

/* ---------- who-it's-for: fit-check ---------- */
.fitcheck { list-style: none; counter-reset: fc; margin: clamp(1.6rem, 3.5vw, 2.6rem) 0 0; padding: 0; max-width: 900px; }
.fitcheck__item { counter-increment: fc; position: relative; padding: clamp(1.2rem, 2.6vw, 1.7rem) 0 clamp(1.2rem, 2.6vw, 1.7rem) 3.4rem; border-top: 1px solid var(--line); }
.fitcheck__item::before { content: counter(fc, decimal-leading-zero); position: absolute; left: 0; top: clamp(1.2rem, 2.6vw, 1.7rem); font-family: var(--mono); font-weight: 800; font-size: 0.95rem; color: var(--brand-aubergine); letter-spacing: 0.02em; }
.fitcheck__say { margin: 0; font-size: clamp(1.18rem, 1.9vw, 1.55rem); font-weight: 700; color: var(--ink-strong); line-height: 1.32; letter-spacing: -0.015em; }
.fitcheck__do { margin: 0.45rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* ---------- works-with-your-stack ---------- */
.stack { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.1rem 2.4rem; margin-top: 1.4rem; }
.stack img { height: 26px; width: auto; opacity: 0.55; filter: grayscale(1); transition: opacity 160ms var(--ease); }
/* per-logo optical balance (each lockup carries different mark/wordmark proportions) */
.stack img:nth-of-type(1) { height: 27px; } /* shopify */
.stack img:nth-of-type(2) { height: 24px; } /* klaviyo */
.stack img:nth-of-type(3) { height: 26px; } /* recharge */
.stack img:nth-of-type(4) { height: 20px; } /* postscript (wordmark only) */
.stack img:nth-of-type(5) { height: 26px; } /* gorgias */
.stack img:nth-of-type(6) { height: 29px; } /* judge.me (two-line lockup) */
.stack img:hover { opacity: 0.9; }
.stack .logo-text { font-weight: 700; font-size: 1.05rem; color: var(--faint); letter-spacing: -0.01em; }
.stack-more { margin: 1.4rem auto 0; max-width: 52ch; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* ---------- ROI stat cards (placeholder) ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(2rem, 4vw, 3rem); }
.stat { padding: 0 clamp(1rem, 2.5vw, 2.4rem); text-align: center; }
.stat + .stat { border-left: 1px solid color-mix(in srgb, var(--brand-stone) 20%, transparent); }
.stat .big { font-family: var(--mono); font-size: clamp(2.4rem, 5.2vw, 3.4rem); font-weight: 800; color: var(--brand-surface); line-height: 1; }
.stat .lbl { margin-top: 0.5rem; color: color-mix(in srgb, var(--brand-paper) 84%, var(--brand-stone)); font-size: 0.98rem; }
.stat-drv { margin-top: 0.55rem; color: color-mix(in srgb, var(--brand-paper) 58%, var(--brand-stone)); font-size: 0.82rem; line-height: 1.45; }
.stats-basis { margin-top: clamp(1.6rem, 3vw, 2.4rem); text-align: center; color: color-mix(in srgb, var(--brand-paper) 56%, var(--brand-stone)); font-size: 0.8rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; gap: 1.8rem; } .stat + .stat { border-left: 0; } }

/* ---------- proof quote (lead-in to results) ---------- */
.proof-quote { margin: 1.1rem 0 0; max-width: 760px; }
.proof-quote blockquote { margin: 0; color: var(--brand-surface); font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.proof-quote figcaption { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--brand-stone); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: clamp(2rem, 4vw, 3rem) 0 0; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; padding: 1.1rem 0; font-weight: 650; color: var(--ink-strong); font-size: 1.02rem; list-style: none; transition: color 160ms var(--ease); }
.faq-list summary:hover { color: var(--brand-aubergine); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; color: var(--brand-aubergine); font-size: 1.3rem; line-height: 1; transition: transform 160ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.98rem; line-height: 1.6; max-width: 64ch; }
.faq-steps { margin: 0 0 1.1rem; padding-left: 1.2rem; max-width: 64ch; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.faq-steps li { margin: 0.35rem 0; }
.faq-steps li::marker { color: var(--brand-aubergine); }
.faq-cta { text-align: left; margin-top: clamp(2rem, 4vw, 3rem); }
.faq-cta p { color: var(--muted); margin-bottom: 0.9rem; }
.cta-note { margin: 0.9rem 0 0; font-size: 0.84rem; color: var(--muted); }
.cta-note b { color: var(--ink-strong); font-weight: 700; }

/* ---------- founder's note ---------- */
.founder-note { max-width: 760px; }
.founder-note .section__head { margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.founder-quote { margin: 0; color: var(--ink); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; }
.founder-quote + .founder-quote { margin-top: 0.9rem; }
.founder-byline { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.8rem; }
.founder-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--brand-stone); box-shadow: var(--shadow-sm); }
.founder-avatar--ph { display: inline-flex; align-items: center; justify-content: center; background: var(--brand-aubergine); color: var(--brand-surface); font-family: var(--mono); font-weight: 800; font-size: 1.05rem; }
.founder-byline__name { font-weight: 700; color: var(--ink-strong); font-size: 1rem; line-height: 1.2; }
.founder-byline__role { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-aubergine); margin-top: 0.2rem; }

/* ---------- sticky CTA nav ---------- */
.snav { position: fixed; inset: 0 0 auto 0; z-index: 60; transform: translateY(-100%); transition: transform 320ms var(--ease); background: var(--brand-aubergine); box-shadow: 0 8px 24px rgba(18, 9, 18, 0.22); }
.snav.is-visible { transform: translateY(0); }
.snav__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--maxw); margin: 0 auto; padding: 0.6rem clamp(1.25rem, 5vw, 4rem); }
.snav__brand { display: inline-flex; }
.snav__brand img { display: block; height: 24px; width: auto; }
.snav__cta { display: flex; align-items: center; gap: 0.75rem; }
.snav__note { font-size: 0.78rem; color: color-mix(in srgb, var(--brand-paper) 78%, var(--brand-stone)); white-space: nowrap; }
.snav__note b { color: var(--brand-surface); font-weight: 700; }
@media (max-width: 640px) {
  .snav__cta { flex-direction: column-reverse; align-items: flex-end; gap: 0.4rem; }
  .snav__note { text-align: right; }
}
.snav .btn--primary { background: var(--brand-surface); color: var(--ink); border-color: var(--brand-surface); box-shadow: none; }
.snav .btn--primary:hover, .snav .btn--primary:focus-visible { background: var(--brand-paper); border-color: var(--brand-paper); transform: translateY(-1px); }
@media (max-width: 520px) { .snav__brand { display: none; } .snav__in { justify-content: center; } .snav__cta { width: 100%; align-items: center; } .snav .btn { width: 100%; } .snav__note { text-align: center; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
