/* forgedtemple.com — design system per the B1 brief (v1).
   Discipline rules: one typeface, one accent, ONE gradient (hero), one filled
   button per viewport region. Dark bands are exactly three: hero, closing CTA,
   footer. Accent is rationed: CTAs, badges, checks, arrow-links — never fills. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground-page: #ffffff;
  --ground-alt: #f6f7f9;
  --ground-dark: #0f1626;
  --ground-floor: #0a0e18;
  --surface-dark-1: #141c30;
  --surface-dark-2: #1a2338;
  --surface-card: #ffffff;
  --surface-tint: #fdf3e7;
  --ink-1: #10141d;
  --ink-2: #4b5265;
  --ink-3: #6e7687;
  --ink-inv-1: #f5f7fb;
  --ink-inv-2: #aeb6c8;
  --ink-inv-3: #7d8598;
  --line-light: #e6e8ee;
  --line-dark: rgba(255, 255, 255, 0.08);
  --accent: #e5892f;
  --accent-hover: #cf781f;
  --accent-ink-on: #10141d;
  --accent-glow: rgba(229, 137, 47, 0.2);
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 20, 29, 0.06);
  --shadow-md: 0 4px 16px rgba(16, 20, 29, 0.08);
  --shadow-screenshot: 0 24px 64px -16px rgba(15, 22, 38, 0.35);
  --shadow-dark: 0 32px 80px -24px rgba(0, 0, 0, 0.6);
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Consolas, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink-2); background: var(--ground-page); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; }

/* ── type scale ── */
h1, h2, h3 { color: var(--ink-1); text-wrap: balance; }
.display-xl { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
.display { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
.heading { font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.subhead { font-size: 20px; line-height: 1.5; font-weight: 400; color: var(--ink-2); }
.small { font-size: 13px; line-height: 1.5; font-weight: 500; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 16px; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--ink-inv-1); }
.on-dark .subhead, .on-dark p { color: var(--ink-inv-2); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: var(--r-md); font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink-on); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--line-light); color: var(--ink-1); }
.btn-ghost:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.on-dark .btn-ghost { border-color: var(--line-dark); color: var(--ink-inv-1); }
.on-dark .btn-ghost:hover { border-color: var(--ink-inv-3); }
.btn-pill { border-radius: var(--r-pill); height: 40px; padding: 0 20px; font-size: 14px; }
.arrow-link { color: var(--accent); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.arrow-link::after { content: '→'; transition: transform 0.15s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ── nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 64px; transition: background 0.25s ease, border-color 0.25s ease; border-bottom: 1px solid transparent; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 32px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--ink-inv-1); }
.nav-brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; color: var(--ink-inv-2); }
.nav-links a:hover { color: var(--ink-inv-1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 14px; font-weight: 500; color: var(--ink-inv-2); }
.nav-login:hover { color: var(--ink-inv-1); }
.nav.scrolled { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line-light); }
.nav.scrolled .nav-brand, .nav.scrolled .nav-links a, .nav.scrolled .nav-login { color: var(--ink-1); }
.nav.scrolled .nav-links a { color: var(--ink-2); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-login:hover { color: var(--ink-1); }
/* light-page variant: nav starts scrolled-style */
.nav.light { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line-light); }
.nav.light .nav-brand, .nav.light .nav-login { color: var(--ink-1); }
.nav.light .nav-links a { color: var(--ink-2); }
.nav.light .nav-links a:hover { color: var(--ink-1); }
.nav-burger { display: none; margin-left: auto; background: none; border: none; color: currentColor; font-size: 24px; cursor: pointer; }

/* ── hero (the one gradient) ── */
.hero { background: radial-gradient(60% 50% at 50% 30%, rgba(229, 137, 47, 0.22) 0%, rgba(229, 137, 47, 0.05) 45%, transparent 70%), linear-gradient(180deg, #0a0e18 0%, #0f1626 100%); padding: 160px 0 0; text-align: center; overflow: hidden; }
.hero .subhead { max-width: 560px; margin: 20px auto 0; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--ink-inv-3); }
.hero-visual { position: relative; max-width: 1080px; margin: 64px auto -2px; padding: 0 24px; }

/* ── screenshot frames ── */
.frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-light); box-shadow: var(--shadow-screenshot); background: var(--ground-dark); }
.on-dark .frame, .hero .frame { border-color: var(--line-dark); box-shadow: var(--shadow-dark); }
.frame-bar { height: 28px; background: var(--surface-dark-1); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-inv-3); opacity: 0.5; }
.frame img { width: 100%; }
.shot-ph { aspect-ratio: 16 / 9.6; background: linear-gradient(160deg, #141c30 0%, #0f1626 55%, #121a2e 100%); display: flex; align-items: center; justify-content: center; color: var(--ink-inv-3); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.phone { width: 230px; border-radius: 36px; background: #10141d; padding: 10px; box-shadow: var(--shadow-screenshot); border: 1px solid var(--line-light); }
.phone-screen { border-radius: 28px; overflow: hidden; background: #0f1626; }
.phone .shot-ph { aspect-ratio: 9 / 19; font-size: 11px; }
.hero-phone { position: absolute; right: 4%; bottom: -40px; width: 200px; }

/* ── sections ── */
.section { padding: 128px 0; }
.section.alt { background: var(--ground-alt); }
.section.slim { padding: 64px 0; }
.section.dark { background: var(--ground-dark); }
.dark-cta { background: radial-gradient(60% 50% at 50% 20%, rgba(229, 137, 47, 0.11) 0%, transparent 70%), var(--ground-dark); text-align: center; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-head .subhead { margin-top: 14px; }

/* capability strip */
.cap-strip { display: flex; justify-content: center; flex-wrap: wrap; }
.cap-strip .cap { padding: 8px 32px; border-left: 1px solid var(--line-light); text-align: center; }
.cap-strip .cap:first-child { border-left: none; }
.cap-strip .t { font-weight: 650; color: var(--ink-1); font-size: 15px; }
.cap-strip .s { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* audience split cards */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--surface-card); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .ico { font-size: 26px; margin-bottom: 14px; display: block; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 18px; }

/* feature rows */
.feature { display: grid; grid-template-columns: 2fr 3fr; gap: 64px; align-items: center; }
.feature.flip .f-copy { order: 2; }
.feature.flip .f-visual { order: 1; }
.f-copy h2 { margin-bottom: 14px; }
.f-copy p { margin-bottom: 20px; max-width: 44ch; }
.f-visual.center { display: flex; justify-content: center; }

/* founder note */
.founder { text-align: center; }
.founder blockquote { font-size: 24px; line-height: 1.45; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-1); }
.founder .who { margin-top: 20px; font-size: 13px; color: var(--ink-3); }

/* ── pricing ── */
.toggle-row { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 40px 0 8px; }
.toggle { display: inline-flex; background: var(--ground-alt); border: 1px solid var(--line-light); border-radius: var(--r-pill); padding: 4px; }
.toggle button { border: none; background: transparent; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 18px; border-radius: var(--r-pill); cursor: pointer; color: var(--ink-2); }
.toggle button.active { background: var(--ink-1); color: #fff; }
.toggle-badge { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--surface-tint); border-radius: var(--r-pill); padding: 3px 10px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; align-items: stretch; }
.tier { background: var(--surface-card); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; position: relative; }
.tier.highlight { border-color: var(--accent); box-shadow: var(--shadow-md); }
.tier-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--surface-tint); color: var(--accent); font-size: 12px; font-weight: 700; border-radius: var(--r-pill); padding: 4px 14px; white-space: nowrap; }
.tier h3 { font-size: 20px; }
.tier .desc { font-size: 13px; color: var(--ink-3); margin: 4px 0 20px; }
.tier .price { font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--ink-1); line-height: 1; }
.tier .price small { font-size: 15px; font-weight: 500; color: var(--ink-3); font-family: var(--font); }
.tier .cadence { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; min-height: 18px; }
.tier .seats { font-size: 14px; color: var(--ink-2); margin: 14px 0 20px; font-weight: 600; }
.tier .seats b { font-family: var(--mono); color: var(--ink-1); }
.tier .btn { width: 100%; margin-bottom: 22px; }
.tier ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.tier li { padding-left: 26px; position: relative; }
.tier li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.contact-row { text-align: center; margin-top: 32px; font-size: 14px; color: var(--ink-2); }
.reassure { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 24px; }
.consumer-card { display: flex; gap: 32px; align-items: center; background: var(--surface-card); border: 1px solid var(--line-light); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); }

/* ── FAQ ── */
.faq-list { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 4px; font-weight: 600; color: var(--ink-1); font-size: 16px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .a { padding: 0 4px 22px; font-size: 15px; max-width: 65ch; }

/* ── app store badge placeholder ── */
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #3a3a3c; border-radius: 10px; padding: 9px 18px; }
.store-badge .apple { font-size: 26px; line-height: 1; }
.store-badge .txt { text-align: left; line-height: 1.15; }
.store-badge .txt .s { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.02em; }
.store-badge .txt .b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

/* ── footer ── */
.footer { background: var(--ground-dark); padding: 96px 0 40px; color: var(--ink-inv-2); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-inv-3); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.footer a:hover { color: var(--ink-inv-1); }
.footer-bar { border-top: 1px solid var(--line-dark); margin-top: 64px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-inv-3); }
.footer-bar .links { display: flex; gap: 18px; }

/* legal pages */
.legal { padding: 140px 0 96px; }
.legal .narrow > h1 { margin-bottom: 8px; }
.legal .updated { font-size: 13px; color: var(--ink-3); margin-bottom: 40px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 22px; margin: 10px 0; }

/* ── motion ── */
.rise { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .rise { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ── */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 128px; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .f-copy { order: 1; }
  .feature.flip .f-visual { order: 2; }
  .split-grid, .tiers, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-phone { display: none; }
  .consumer-card { flex-direction: column; text-align: center; }
  .nav-links, .nav-login { display: none; }
  .nav-burger { display: block; }
  .nav-sheet { position: fixed; inset: 64px 0 0; background: var(--ground-dark); z-index: 99; display: none; padding: 32px 24px; }
  .nav-sheet.open { display: block; }
  .nav-sheet a { display: block; padding: 14px 0; font-size: 18px; font-weight: 600; color: var(--ink-inv-1); border-bottom: 1px solid var(--line-dark); }
  .nav-sheet .btn { width: 100%; margin-top: 24px; }
}
