/* =====================================================================
   Vendor Buddy — Landing Page v3 (light only)
   Palette is strictly: white, black #0a0a0a, yellow #FFE400, pop #BC5917.
   Fonts: Cabinet Grotesk (display) + Satoshi (body)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-offset: #fafafa;
  --color-surface-2: #f5f5f5;
  --color-border: #e8e8e8;
  --color-divider: #f0f0f0;

  --color-ink: #0a0a0a;
  --color-text: #171717;
  --color-text-muted: #525252;
  --color-text-faint: #a3a3a3;
  --color-text-inverse: #ffffff;

  --color-primary: #ffe400;          /* brand yellow */
  --color-primary-hover: #f4cf00;
  --color-accent: #0a0a0a;           /* black accent */
  --color-pop: #BC5917;              /* pop — replaces the old emerald */
  --color-pop-soft: #fdf3ee;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.16);
  --shadow-yellow: 0 8px 24px rgba(255,228,0,.35);
  --shadow-card: 0 2px 12px rgba(0,0,0,.06);

  --text-xs: clamp(.75rem, .7rem + .25vw, .875rem);
  --text-sm: clamp(.875rem, .83rem + .22vw, 1rem);
  --text-base: clamp(1rem, .96rem + .2vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  --text-hero: clamp(2.6rem, 1.4rem + 5.2vw, 4.75rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: .4rem; --radius-md: .65rem; --radius-lg: 1rem; --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition: 180ms cubic-bezier(.16, 1, .3, 1);

  --content-narrow: 760px;
  --content-default: 1120px;
  --content-wide: 1240px;

  --font-display: 'Cabinet Grotesk', 'Trebuchet MS', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: light;
}

body {
  min-height: 100dvh; line-height: 1.6;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; text-wrap: balance; letter-spacing: -.02em; }
p, li, figcaption { text-wrap: pretty; }

::selection { background: var(--color-primary); color: #0a0a0a; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

a { color: inherit; text-decoration: none; transition: color var(--transition); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: #0a0a0a; color: var(--color-primary); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-6); }
.container--narrow { max-width: var(--content-narrow); }
.container--wide { max-width: var(--content-wide); }
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }

.eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text); margin-bottom: var(--space-4); }
.eyebrow--center { display: block; text-align: center; }
.eyebrow--on-dark { color: var(--color-primary); }
.eyebrow--pop { color: var(--color-pop); }

.section__title { font-size: var(--text-2xl); font-weight: 800; max-width: 20ch; }
.section__title--center { margin-inline: auto; text-align: center; max-width: 26ch; }
.section__intro { text-align: center; color: var(--color-text-muted); max-width: 52ch; margin: var(--space-4) auto 0; }
.section__head { margin-bottom: var(--space-12); }

/* ---------- Design flares ---------- */
/* Yellow swatch behind a key phrase. `clone` keeps the swatch whole across wraps. */
.hl {
  background: var(--color-primary);
  color: #0a0a0a;
  font-weight: 700;
  padding: .06em .28em;
  margin-inline: -.06em;
  border-radius: .2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.pop { color: var(--color-pop); font-weight: 700; }
.ul { text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: .18em; text-underline-offset: .12em; text-decoration-skip-ink: none; }
.ul--pop { text-decoration-color: var(--color-pop); text-decoration-thickness: .1em; }

/* Shared checkmark: filled yellow disc with a black tick.
   A bare yellow glyph on white sits near 1.3:1 contrast, so it needs the disc. */
.ps-check,
.beta__check,
.tb__icon { display: inline-grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: #0a0a0a; font-weight: 800; flex-shrink: 0; }
.ps-check { width: 18px; height: 18px; font-size: .65rem; }
.beta__check { width: 22px; height: 22px; font-size: .75rem; }
.tb__icon { width: 20px; height: 20px; font-size: .7rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm); line-height: 1; padding: var(--space-3) var(--space-5); border-radius: var(--radius-full); border: 2px solid transparent; transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition); text-align: center; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

.btn--primary { background: var(--color-primary); color: #0a0a0a; box-shadow: var(--shadow-yellow); }
.btn--primary:hover { background: var(--color-primary-hover); }

.btn--ink { background: #0a0a0a; color: #ffffff; }
.btn--ink:hover { opacity: .88; }

.btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn--ghost:hover { background: #0a0a0a; color: #ffffff; border-color: #0a0a0a; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 80; background: color-mix(in oklab, var(--color-bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--transition), box-shadow var(--transition); }
.header.is-scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; }
.footer__logo { height: 38px; width: auto; margin-bottom: var(--space-4); }

.nav__list { display: flex; align-items: center; gap: var(--space-8); }
.nav__list a { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }
.nav__list a:hover { color: var(--color-text); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; border-radius: var(--radius-sm); }
.nav-toggle__bar { width: 22px; height: 2.5px; background: var(--color-text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(var(--space-12), 5vw, var(--space-20)); padding-bottom: clamp(var(--space-16), 6vw, var(--space-24)); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -12%; top: -8%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle at center, color-mix(in oklab, var(--color-primary) 50%, transparent), transparent 68%); filter: blur(8px); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(var(--space-10), 5vw, var(--space-20)); align-items: center; }
.hero__copy { max-width: 36rem; }
.hero__title { font-size: var(--text-hero); font-weight: 800; margin-bottom: var(--space-5); color: var(--color-text); }
.hero__lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 34ch; margin-bottom: var(--space-8); line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.hero__trust .dot { display: inline-flex; align-items: center; }
/* Yellow needs a dark ring to stay visible against white. */
.hero__trust .dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 2px #0a0a0a; margin-right: var(--space-3); }

.hero__media { position: relative; }
.hero__media > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

/* Floating data cards */
.floatcard { position: absolute; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 4px; }
.floatcard--score { left: -5%; top: 12%; width: 150px; }
.floatcard--roi { right: -4%; top: 52%; width: 140px; }
.floatcard--deadline { left: 8%; bottom: -6%; }
.floatcard__label { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.floatcard__value { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--color-text); line-height: 1; }
.floatcard__value--pop { color: var(--color-pop); }
.floatcard__unit { font-size: .8rem; color: var(--color-text-muted); font-weight: 500; }
.floatcard__bar { height: 6px; border-radius: var(--radius-full); background: var(--color-surface-2); overflow: hidden; margin-top: 4px; }
.floatcard__bar i { display: block; height: 100%; background: var(--color-primary); }
.floatcard__note { font-size: var(--text-xs); color: var(--color-text-faint); }
.floatcard__pill { display: inline-block; font-size: var(--text-xs); font-weight: 700; color: #fff; background: #0a0a0a; padding: 5px 12px; border-radius: var(--radius-full); }

/* ---------- Proof strip ---------- */
.proof-strip { border-block: 1px solid var(--color-border); background: var(--color-surface-offset); }
.proof-strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-6) var(--space-8); padding-block: var(--space-5); }
.proof-strip__label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--color-text-faint); white-space: nowrap; }
.proof-strip__list { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); }
.proof-strip__list li { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }

/* ---------- Problem ---------- */
.problem__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(var(--space-8), 4vw, var(--space-16)); align-items: center; }
.problem__lead { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-6); max-width: 52ch; }
.problem__list { display: grid; gap: var(--space-4); }
.problem__list li { padding-left: var(--space-6); position: relative; color: var(--color-text-muted); }
.problem__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 2px; background: var(--color-pop); }
.problem__list li strong { color: var(--color-text); }

.problem__statcard { background: #0a0a0a; color: #fafafa; border-radius: var(--radius-lg); padding: var(--space-8); position: relative; }
.statcard__mark { font-size: 2rem; color: var(--color-primary); }
.statcard__quote { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.4; margin-block: var(--space-3); }
.statcard__quote em { color: var(--color-primary); font-style: normal; font-weight: 700; }
.statcard__attr { font-size: var(--text-sm); color: #a3a3a3; }

/* ---------- How it works / steps ---------- */
.steps { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
.step { display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: var(--space-8); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); }
.step:nth-child(even) .step__body { order: 3; }
.step:nth-child(even) .step__ui { order: 2; }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--color-primary); -webkit-text-stroke: 1px var(--color-text); }
.step__body h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step__body p { color: var(--color-text-muted); max-width: 42ch; }
.step__ui { display: flex; justify-content: center; }
/* Whole screenshot, never cropped: intrinsic ratio, height follows width. */
.step__shot { width: 100%; max-width: 420px; height: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-md); background: var(--color-surface); }
.how__cta { text-align: center; margin-top: var(--space-12); }

/* ---------- Showcase (tool cards) ---------- */
.showcase__title { font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--space-4); }
.showcase__lead { color: var(--color-text-muted); margin-bottom: var(--space-6); }
.showcase__bullets { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.showcase__bullets li { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--color-text); font-weight: 500; }
.showcase__bullets .ps-check { margin-top: .28em; }

/* ---------- Tools section ---------- */
.tools-section { background: var(--color-surface-offset); border-block: 1px solid var(--color-border); padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.tools-section__head { margin-bottom: clamp(var(--space-12), 5vw, var(--space-20)); }

/* Two tools side by side */
.tools-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.tools-duo > * { min-width: 0; }
.tool-card { display: flex; flex-direction: column; gap: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 3vw, var(--space-10)); box-shadow: var(--shadow-card); height: 100%; }
.tool-card__cta { align-self: flex-start; }

/* ---------- Mac/Apple-style browser window ---------- */
.macwindow { border-radius: 12px; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: var(--shadow-lg); }
.macwindow__bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); }
.macwindow__lights { display: inline-flex; gap: 7px; flex-shrink: 0; }
.macwindow__lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.macwindow__lights i:nth-child(1) { background: var(--color-pop); }
.macwindow__lights i:nth-child(2) { background: var(--color-primary); }
.macwindow__lights i:nth-child(3) { background: #0a0a0a; }
/* min-width:0 lets the nowrap URL actually ellipsize instead of forcing the bar wide. */
.macwindow__url { flex: 1 1 auto; min-width: 0; font-size: var(--text-xs); color: var(--color-text-faint); font-family: var(--font-body); margin-left: var(--space-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.macwindow__body { padding: var(--space-3); background: var(--color-surface-offset); }
.macwindow__body img { width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ---------- Beta closing line ---------- */
.beta__closing { margin-top: var(--space-6); font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-primary); }

/* ---------- Feature grid ---------- */
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.feat-mini { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: transform var(--transition), box-shadow var(--transition); }
.feat-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feat-mini__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-surface-offset); font-size: 1.3rem; margin-bottom: var(--space-4); }
.feat-mini h3 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.feat-mini p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- Framework (Six Signals) ---------- */
.framework__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.fw { padding: var(--space-6); border-left: 3px solid var(--color-primary); }
.fw__num { font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm); color: var(--color-text-faint); letter-spacing: .08em; }
.fw h3 { font-size: var(--text-base); margin-block: var(--space-2); display: flex; align-items: center; gap: var(--space-2); }
.fw p { font-size: var(--text-sm); color: var(--color-text-muted); }
.fw__icon { font-size: 1.35rem; line-height: 1; }

/* ---------- Beta trust banner ---------- */
.beta { background: #0a0a0a; color: #fafafa; }
.beta__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(var(--space-8), 4vw, var(--space-16)); align-items: center; padding-block: clamp(var(--space-12), 5vw, var(--space-20)); }
.beta__title { font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--space-3); }
.beta__lead { color: #a3a3a3; max-width: 48ch; }
.beta__perks { display: grid; gap: var(--space-3); }
.beta__perks li { display: flex; align-items: center; gap: var(--space-3); font-weight: 500; }

/* ---------- Testimonials ---------- */
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.testimonial { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); position: relative; }
.testimonial::before { content: "\201C"; position: absolute; top: var(--space-3); right: var(--space-5); font-family: var(--font-display); font-size: 3.5rem; line-height: 1; color: var(--color-primary); opacity: .4; }
.testimonial blockquote { font-size: var(--text-lg); line-height: 1.5; margin-bottom: var(--space-6); }
.testimonial figcaption { display: flex; align-items: center; gap: var(--space-3); }
.avatar { width: 42px; height: 42px; border-radius: var(--radius-full); display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: .9rem; background: var(--a); color: var(--b); flex-shrink: 0; }
.testimonial__meta { font-size: var(--text-sm); color: var(--color-text-muted); }
.testimonial__meta strong { color: var(--color-text); }

/* ---------- App store section ---------- */
.appstore { background: #f5f5f5; border-block: 1px solid var(--color-border); }
.appstore__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(var(--space-10), 4vw, var(--space-16)); align-items: center; }

/* iPhone frames built in CSS around real screenshots */
/* basis 0 keeps all three on one row and lets them shrink to the column width. */
.phones { display: flex; justify-content: center; align-items: center; gap: var(--space-4); }
.phone { position: relative; flex: 1 1 0; min-width: 0; max-width: 216px; aspect-ratio: 9 / 19.5; background: #0a0a0a; border: 12px solid #0a0a0a; border-radius: 40px; box-shadow: var(--shadow-lg); overflow: hidden; }
.phone__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 46%; height: 22px; background: #0a0a0a; border-radius: 0 0 14px 14px; z-index: 2; }
.phone__screen { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #ffffff; display: block; }
/* Each source shot is landscape, so anchor the crop on the region that reads
   as a phone screen rather than letting it centre on empty chrome. */
.phone__screen--discover { object-position: left top; }
.phone__screen--score { object-position: right top; }
.phone__screen--calc { object-position: right top; }
.phones__caption { width: 100%; text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }

/* App details card */
.appcard { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 3vw, var(--space-10)); box-shadow: var(--shadow-md); }
.appcard__head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-6); }
.appcard__icon { width: 80px; height: 80px; border-radius: 18px; background: #0a0a0a; display: grid; place-items: center; padding: 10px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.appcard__icon img { width: 100%; height: auto; }
.appcard__name { font-size: var(--text-lg); font-weight: 800; }
.appcard__dev { font-size: var(--text-sm); color: var(--color-text-muted); }
.appcard__badge { display: inline-block; margin-top: var(--space-2); font-size: var(--text-xs); font-weight: 700; background: var(--color-primary); color: #0a0a0a; padding: 3px 10px; border-radius: var(--radius-full); }
.appcard__desc { color: var(--color-text-muted); margin-bottom: var(--space-6); }
.appcard__subhead { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-faint); margin-bottom: var(--space-3); }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.pills li { font-size: var(--text-sm); font-weight: 600; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 5px 14px; }
.appinfo { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3) var(--space-6); font-size: var(--text-sm); }
.appinfo dt { color: var(--color-text-muted); }
.appinfo dd { font-weight: 600; color: var(--color-text); }

/* Download cards */
.download { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: clamp(var(--space-10), 4vw, var(--space-16)); }
.dlcard { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 3vw, var(--space-8)); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--space-4); }
.dlcard__head { display: flex; align-items: center; gap: var(--space-3); }
.dlcard__logo { width: 44px; height: 44px; border-radius: var(--radius-md); background: #0a0a0a; color: var(--color-primary); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.dlcard__head h3 { font-size: var(--text-lg); }
.dlcard__steps { display: grid; gap: var(--space-3); counter-reset: dlstep; padding: 0; }
.dlcard__steps li { position: relative; padding-left: var(--space-10); color: var(--color-text-muted); font-size: var(--text-sm); }
.dlcard__steps li::before { counter-increment: dlstep; content: counter(dlstep); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--color-primary); color: #0a0a0a; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.dlcard__cta { align-self: flex-start; margin-top: auto; }

/* ---------- Pricing ---------- */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-4); align-items: stretch; }
.plan { position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; }
.plan--featured { border: 2px solid #0a0a0a; box-shadow: var(--shadow-md); transform: scale(1.02); }
.plan--vip { background: #0a0a0a; color: #fafafa; border-color: #0a0a0a; }
.plan__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: #0a0a0a; font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-full); white-space: nowrap; }
.plan__head h3 { font-size: var(--text-xl); }
.plan__positioning { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); min-height: 2.4em; }
.plan--vip .plan__positioning { color: color-mix(in oklab, currentColor 72%, transparent); }
.plan__price { margin-top: var(--space-4); display: flex; align-items: baseline; gap: var(--space-2); }
.plan__price strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); color: var(--color-text); }
.plan--vip .plan__price strong { color: var(--color-primary); }
.plan__price span { font-size: var(--text-sm); color: var(--color-text-muted); }
.plan--vip .plan__price span { color: color-mix(in oklab, currentColor 65%, transparent); }
.plan__alt { font-size: var(--text-sm); color: var(--color-text-faint); margin-top: 2px; }
.plan__features { margin-top: var(--space-6); display: grid; gap: var(--space-3); flex-grow: 1; }
.plan__features li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-base); color: var(--color-text-muted); }
.plan--vip .plan__features li { color: color-mix(in oklab, currentColor 78%, transparent); }
.plan__features .ps-check { margin-top: .28em; }
.plan__cta { margin-top: var(--space-8); width: 100%; }
.trustbadges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-6); margin-top: var(--space-10); }
.trustbadges li { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }

/* ---------- FAQ ---------- */
.faq { background: var(--color-surface-offset); }
.accordion { display: grid; gap: var(--space-3); }
.acc { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-6); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { font-size: var(--text-base); font-family: var(--font-body); font-weight: 700; }
.acc__icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--color-text); border-radius: 2px; transition: transform var(--transition); }
.acc__icon::before { width: 14px; height: 2.5px; transform: translate(-50%, -50%); }
.acc__icon::after { width: 2.5px; height: 14px; transform: translate(-50%, -50%); }
.acc[open] .acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc__panel { padding: 0 var(--space-6) var(--space-5); }
.acc__panel p { color: var(--color-text-muted); max-width: 70ch; }

/* ---------- Final CTA ---------- */
.finalcta { background: #0a0a0a; text-align: center; padding-block: clamp(var(--space-20), 8vw, var(--space-32)); position: relative; overflow: hidden; }
.finalcta::before, .finalcta::after { content: ""; position: absolute; border-radius: 50%; background: color-mix(in oklab, var(--color-primary) 10%, transparent); }
.finalcta::before { width: 320px; height: 320px; top: -120px; left: -80px; }
.finalcta::after { width: 260px; height: 260px; bottom: -120px; right: -60px; }
.finalcta__inner { position: relative; }
.finalcta__quote { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); color: var(--color-primary); margin-bottom: var(--space-5); }
.finalcta__title { font-size: var(--text-2xl); font-weight: 800; color: #fafafa; margin-bottom: var(--space-3); }
.finalcta__sub { color: #a3a3a3; margin-bottom: var(--space-8); font-weight: 500; }
.finalcta__btn { background: var(--color-primary); color: #0a0a0a; }
.finalcta__btn:hover { background: var(--color-primary-hover); }

/* ---------- Footer ---------- */
.footer { background: #0a0a0a; color: #fafafa; padding-top: clamp(var(--space-16), 6vw, var(--space-24)); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-10); }
.footer__tagline { color: #a3a3a3; font-size: var(--text-sm); max-width: 28ch; }
.footer h4 { font-family: var(--font-body); font-weight: 700; font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: #a3a3a3; margin-bottom: var(--space-4); }
.footer ul { display: grid; gap: var(--space-3); }
.footer ul a { font-size: var(--text-sm); color: #d4d4d4; }
.footer ul a:hover { color: var(--color-primary); }
.footer__bottom { margin-top: clamp(var(--space-12), 5vw, var(--space-20)); padding-block: var(--space-6); border-top: 1px solid #2a2a2a; }
.footer__bottom p { font-size: var(--text-sm); color: #737373; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--color-bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--color-border); }
.mobile-cta__btn { width: 100%; }

/* ---------- Scroll reveal ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .floatcard--score { left: 0; }
  .floatcard--roi { right: 0; }
  .problem__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .framework__grid { grid-template-columns: 1fr 1fr; }
  .proof__grid { grid-template-columns: 1fr 1fr; }
  /* Screenshots stay visible below the copy instead of being dropped. */
  .step { grid-template-columns: auto 1fr; }
  .step__ui { grid-column: 1 / -1; display: flex; }
  .step:nth-child(even) .step__body { order: 0; }
  .step:nth-child(even) .step__ui { order: 0; }
  .tools-duo { grid-template-columns: 1fr; }
  .appstore__grid { grid-template-columns: 1fr; }
  .beta__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 760px) {
  .nav, .header__actions .btn--sm { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 auto; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: var(--space-6) var(--space-6) var(--space-8); box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform var(--transition), opacity var(--transition); }
  .mobile-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-nav ul { display: grid; gap: var(--space-4); }
  .mobile-nav a:not(.btn) { font-size: var(--text-lg); font-weight: 500; }
  .mobile-nav .btn { margin-top: var(--space-3); }

  .floatcard { display: none; }
  /* Three phones abreast at this width would be ~110px each — stack instead. */
  .phones { flex-direction: column; gap: var(--space-6); }
  .phone { flex: 0 0 auto; width: 100%; max-width: 260px; }
  .features__grid { grid-template-columns: 1fr; }
  .framework__grid { grid-template-columns: 1fr; }
  .diffs__grid, .proof__grid { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; }
  .appcard__head { flex-wrap: wrap; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .plan--featured { transform: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .mobile-cta { display: block; }
  body { padding-bottom: 76px; }
  .finalcta__btn, .hero__cta .btn { width: 100%; }
  .hero__cta { flex-direction: column; }
  .brand__logo { height: 26px; }
  .proof-strip__list { gap: var(--space-3) var(--space-6); }
  .step { grid-template-columns: 1fr; gap: var(--space-5); padding: var(--space-6); }
}

@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }
}

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