/* ============================================================================
   HyppieFlow — LANDING SYSTEM (molecules)
   Marketing components, rebuilt on top of brand-foundation (colors_and_type.css).
   Every value references a foundation token. Works in both themes.
   ========================================================================== */

/* ───────── BUTTONS (marketing) ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-text); font-weight: var(--fw-semibold);
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-md); transition: background var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-base), border-color var(--motion-fast);
}
.btn :where(svg, i) { width: 1.15em; height: 1.15em; }
.btn-lg { font-size: 17px; padding: 15px 26px; min-height: 52px; }
.btn-md { font-size: 15px; padding: 12px 20px; min-height: 46px; }
.btn-sm { font-size: 14px; padding: 9px 16px; min-height: 40px; }      /* nav-cta */

.btn-primary {
  position: relative; overflow: hidden;
  background-image: linear-gradient(177deg, var(--accent-5) 0%, var(--accent-6) 48%, var(--accent-7) 100%);
  color: var(--accent-fg);
  box-shadow: var(--elev-1), inset 0 1px 0 rgba(255,255,255,0.30), inset 0 -1px 0 rgba(0,0,0,0.14);
}
/* faint fractal-noise grain — gives the fill a soft, slightly tactile surface */
.btn-primary::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.10; mix-blend-mode: soft-light;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { background-image: linear-gradient(177deg, var(--accent-6) 0%, var(--accent-7) 52%, var(--accent-8) 100%); }
.btn-primary:active { background-image: linear-gradient(177deg, var(--accent-7), var(--accent-8)); transform: translateY(1px); box-shadow: var(--elev-1), inset 0 1px 2px rgba(0,0,0,0.22); }

.btn-secondary { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--accent-6); color: var(--accent-ink); }
.btn-secondary:active { transform: translateY(1px); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text-primary); background: color-mix(in srgb, var(--text-primary) 7%, transparent); }

.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ───────── SECTIONS / WRAPPERS ───────── */
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section-light  { background: var(--surface-base); }   /* used inside [data-theme="light"] */
.section-light-2{ background: var(--surface-sunken); }
.section-dark   { background: var(--surface-base); }    /* used inside [data-theme="dark"] */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head .sec-label { display: block; margin-bottom: 14px; }
.sec-title { margin-bottom: 18px; }
.sec-lead { color: var(--text-muted); }
/* gradient seam between light & dark sections */
.seam { height: 96px; margin-bottom: -96px; position: relative; z-index: 1; pointer-events: none; }
.seam-to-dark  { background: linear-gradient(to bottom, transparent, var(--n-10)); }
.seam-to-light { background: linear-gradient(to bottom, var(--n-10), transparent); }

/* ───────── CARDS ───────── */
.card { background: var(--surface-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card); box-shadow: var(--elev-1); }

.problem-card { padding: 28px; border-radius: var(--radius-card);
  background: var(--surface-elevated); border: 1px solid var(--border-subtle); }
.problem-card .q { font-family: var(--font-display); font-weight: 600; font-size: 23px;
  line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 12px; }
.problem-card .cap { color: var(--text-subtle); font-size: 15px; line-height: 1.55; }

.feature-card { padding: 28px; border-radius: var(--radius-card);
  background: var(--surface-elevated); border: 1px solid var(--border-subtle); box-shadow: var(--elev-1);
  transition: transform var(--motion-base) var(--ease-standard), box-shadow var(--motion-base); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--elev-2); }
.feature-card .ficon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-2); color: var(--accent-8); margin-bottom: 18px; }
[data-theme="dark"] .feature-card .ficon { background: var(--accent-9); color: var(--accent-4); }
.feature-card .ficon svg { width: 24px; height: 24px; }
.feature-card h4 { margin-bottom: 8px; font-size: 19px; }
.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }

.audience-card { padding: 24px; border-radius: var(--radius-card);
  background: var(--surface-elevated); border: 1px solid var(--border-subtle);
  display: flex; gap: 16px; align-items: flex-start; }
.audience-card .av { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; }
.audience-card .role { font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.audience-card .desc { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* glass card — over photography */
.glass-card { background: var(--glass-bg); -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--glass-border);
  border-radius: var(--radius-card); padding: 24px; box-shadow: var(--elev-2); }

/* tester slot — partner logo / photo placeholder */
.tester-slot { aspect-ratio: 3/2; border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-strong); background: var(--surface-overlay);
  display: grid; place-items: center; color: var(--text-subtle); font-size: 13px;
  gap: 8px; text-align: center; }
.tester-slot svg { width: 26px; height: 26px; opacity: 0.7; }
.tester-slot.filled { border-style: solid; overflow: hidden; padding: 0; }
.tester-slot.filled img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── PILLS / BADGES ───────── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: var(--radius-full); font-size: 13px; font-weight: var(--fw-medium); }
.pill svg { width: 14px; height: 14px; }
.pill-accent { background: var(--accent-2); color: var(--accent-8); }
[data-theme="dark"] .pill-accent { background: var(--accent-9); color: var(--accent-4); }
.pill-warning { background: var(--warning-2); color: var(--warning-5); }
.pill-neutral { background: color-mix(in srgb, var(--text-primary) 8%, transparent); color: var(--text-muted); }
.pill-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted); }

/* ───────── ROADMAP / TIMELINE ───────── */
.roadmap { position: relative; padding-left: 40px; }
.roadmap::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border-default); }
.rm-item { position: relative; padding-bottom: 36px; }
.rm-item:last-child { padding-bottom: 0; }
.rm-node { position: absolute; left: -40px; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; }
.rm-node svg { width: 15px; height: 15px; }
.rm-done { background: var(--accent-6); color: var(--accent-fg); }
.rm-now  { background: var(--accent-6); color: var(--accent-fg); box-shadow: 0 0 0 0 var(--accent-4); animation: rm-pulse 2s var(--ease-standard) infinite; }
.rm-future { background: transparent; border: 2px dashed var(--border-strong); color: var(--text-subtle); }
@keyframes rm-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-4) 60%, transparent); } 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.rm-item h4 { margin-bottom: 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rm-item p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.rm-here { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: var(--radius-full); background: var(--accent-6); color: var(--accent-fg); }
.rm-recruit { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: var(--radius-full); background: var(--warning-2); color: var(--warning-5); }
/* copilot accent inset */
.copilot { margin-top: 14px; padding: 16px 18px; border-left: 3px solid var(--accent-6);
  background: var(--accent-2); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
[data-theme="dark"] .copilot { background: var(--accent-9); }
.copilot .ct { font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--accent-ink); }
.copilot p { font-size: 14px; color: var(--text-muted); }

/* ───────── NAV ───────── */
.nav { position: sticky; top: 0; z-index: var(--z-sticky); transition: border-color var(--motion-base), background var(--motion-base); }
.nav.scrolled { background: color-mix(in srgb, var(--surface-base) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-subtle); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 20px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.nav-brand .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-6); color: var(--accent-fg); display: grid; place-items: center; }
.nav-brand .mark svg, .nav-brand .mark .ic { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none; padding: 8px 12px; border-radius: var(--radius-full); transition: color var(--motion-fast), background var(--motion-fast); }
.nav-links a:hover { color: var(--text-primary); background: color-mix(in srgb, var(--text-primary) 6%, transparent); }

/* ───────── FOOTER (dark) ───────── */
.footer { background: var(--surface-sunken); padding: 64px 0 40px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer a { color: var(--text-muted); text-decoration: none; font-size: 14px; display: block; padding: 5px 0; }
.footer a:hover { color: var(--text-primary); }
.footer-sign { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); color: var(--text-subtle); font-size: 13px; }

/* ───────── FORM FIELDS (pulled from app, re-skinned to landing type) ───────── */
.field { margin-bottom: 18px; }
.field-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-muted); margin-bottom: 7px; }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-text); font-size: 16px; color: var(--text-primary);
  background: var(--field-bg); border: 1.5px solid var(--field-border); border-radius: var(--radius-md);
  padding: 13px 15px; min-height: 50px; outline: none; transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: none; cursor: pointer; display: flex; align-items: center; }
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-6); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-6) 22%, transparent); }
.input.is-error, .textarea.is-error { border-color: var(--alert-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--alert-3) 20%, transparent); }
.field-help { font-size: 13px; color: var(--text-subtle); margin-top: 6px; }
.field-error { font-size: 13px; color: var(--alert-fg); margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.field-error svg { width: 14px; height: 14px; }
.input:disabled, .select:disabled, .textarea:disabled { opacity: 0.5; cursor: not-allowed; }
.select-wrap { position: relative; }
.select-wrap .chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-subtle); pointer-events: none; }

/* waitlist inline (email + role) */
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist .input, .waitlist .select-wrap { flex: 1; min-width: 180px; }

/* ───────── COMPARISON TABLE ───────── */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--divider); }
.cmp thead th { font-family: var(--font-text); font-weight: 600; font-size: 14px; color: var(--text-muted); }
.cmp tbody td:first-child, .cmp thead th:first-child { color: var(--text-primary); font-weight: 500; }
.cmp .col-us { background: var(--accent-2); }
[data-theme="dark"] .cmp .col-us { background: var(--accent-9); }
.cmp thead .col-us { border-radius: var(--radius-md) var(--radius-md) 0 0; color: var(--accent-ink); font-weight: 700; }
.cmp tbody tr:last-child .col-us { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.cmp-mark { display: inline-grid; place-items: center; width: 24px; height: 24px; }
.cmp-mark svg { width: 19px; height: 19px; }
.cmp-yes { color: var(--accent-6); }
.cmp-part { color: var(--warning-3); }
.cmp-no { color: var(--text-disabled); }
/* mobile: stacked cards */
.cmp-cards { display: none; }
.cmp-card { background: var(--surface-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 20px; margin-bottom: 14px; }
.cmp-card.us { border-color: var(--accent-6); border-width: 2px; }
.cmp-card h4 { margin-bottom: 14px; }
.cmp-card .crow { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--divider); font-size: 14px; }
.cmp-card .crow:last-child { border-bottom: 0; }

/* ───────── FAQ ACCORDION ───────── */
.faq { border-top: 1px solid var(--divider); }
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-q { width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-family: var(--font-text); font-weight: 600; font-size: 18px; color: var(--text-primary); }
.faq-q .chev { width: 20px; height: 20px; color: var(--text-subtle); flex-shrink: 0; transition: transform var(--motion-base) var(--ease-standard); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--motion-slow) var(--ease-standard); }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { color: var(--text-muted); font-size: 16px; line-height: 1.6; padding-bottom: 22px; max-width: 64ch; }

/* ───────── PHOTO SLOTS ───────── */
.photo { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-overlay); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-16x9 { aspect-ratio: 16/9; }
.photo-1x1  { aspect-ratio: 1/1; }
.photo-screen { aspect-ratio: 393/850; }
.photo-empty { display: grid; place-items: center; color: var(--text-subtle); font-size: 13px; gap: 8px; }
.photo-empty svg { width: 30px; height: 30px; opacity: 0.6; }
.photo-overlay::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,14,18,0.78) 0%, rgba(8,14,18,0.2) 45%, transparent 70%); }
.photo-cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fcfefe; }
