:root {
  color-scheme: light;
  --gold: #c79538;
  --ink: #211c19;
  --muted: #675f58;
  --paper: #f3f4f5;
  --line: rgba(33, 28, 25, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "Hanken Grotesk", "Segoe UI", sans-serif; line-height: 1.5; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: "Spectral", Georgia, serif; font-weight: 500; letter-spacing: -.035em; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 18px; top: -80px; padding: 11px 16px; border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.skip-link:focus { top: 18px; }

.eyebrow { color: var(--gold); font-family: "Hanken Grotesk", sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

/* Header */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; border-bottom: 1px solid transparent; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.site-header { color: var(--ink); background: rgba(255,255,255,.97); }
.site-header.scrolled { border-color: var(--line); background: rgba(255,255,255,.99); }
.nav-row { min-height: 78px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img, .footer-brand img { border-radius: 11px; }
.brand span { width: 128px; font-family: "Spectral", Georgia, serif; font-size: .98rem; font-weight: 600; line-height: 1.03; }
.site-header nav { display: flex; gap: 28px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.site-header nav a { padding: 10px 0; }
.site-header nav a:hover { color: #000; }
.nav-cta { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; border-radius: 3px; color: #fff; background: var(--ink); font-size: .88rem; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.nav-cta:hover { background: #000; transform: translateY(-2px); }

/* Hero */
.hero { position: relative; min-height: 880px; display: grid; align-items: center; overflow: hidden; padding: 128px 0 88px; color: var(--ink); background: var(--paper); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr .82fr; gap: clamp(64px, 9vw, 132px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 11px; }
.hero-copy .eyebrow { color: #69645f; }
.hero-copy .eyebrow > span { width: 24px; height: 2px; background: var(--gold); }
h1 { max-width: 740px; margin-top: 24px; font-size: clamp(4rem, 7vw, 6.6rem); line-height: .94; }
h1 em { color: var(--ink); font-weight: 400; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: .07em; text-underline-offset: .12em; }
.hero-lead { max-width: 600px; margin-top: 30px; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.28rem); }
.store-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store-button { position: relative; min-width: 210px; min-height: 66px; display: grid; grid-template-columns: 28px 1fr; align-content: center; column-gap: 11px; padding: 10px 50px 11px 17px; border: 1px solid rgba(0,0,0,.08); border-radius: 5px; color: #fff; box-shadow: none; transition: transform .18s ease, filter .18s ease; }
.store-button.app-store, .closing-links .app-store { background: #0877bd; }
.store-button.play-store, .closing-links .play-store { background: #01875f; }
.store-button:hover, .closing-links a:hover { filter: brightness(.9); transform: translateY(-2px); }
.store-icon { grid-row: 1 / 3; align-self: center; justify-self: center; }
.store-kicker { grid-column: 2; font-size: .67rem; font-weight: 600; letter-spacing: .025em; line-height: 1.1; }
.store-button strong { grid-column: 2; font-size: 1.17rem; line-height: 1.2; }
.store-arrow { position: absolute; right: 17px; top: 50%; color: rgba(255,255,255,.65); transform: translateY(-50%); }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.hero-note img { border-radius: 10px; }
.hero-note p { display: grid; font-size: .84rem; line-height: 1.25; }
.hero-note strong { color: var(--ink); }
.hero-note span { margin-top: 3px; color: var(--muted); }

.app-visual { position: relative; min-height: 650px; display: grid; place-items: center; }
.phone-frame { position: relative; z-index: 2; width: 336px; overflow: hidden; border: 1px solid #c9cccf; border-radius: 28px; background: #fff; box-shadow: 0 24px 60px rgba(20,24,27,.13); }
.phone-frame img { width: 100%; height: auto; }

/* The path */
.why { padding: 118px 0 104px; background: #fff; }
.why-heading { display: grid; grid-template-columns: .34fr 1fr; gap: 64px; align-items: start; }
.why-heading .eyebrow { padding-top: 14px; }
.why-heading h2 { max-width: 820px; font-size: clamp(2.7rem, 4.8vw, 4.6rem); line-height: 1.02; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 62px; }
.path-card { min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; padding: 27px; border: 1px solid #d8d5d1; border-top-width: 6px; border-radius: 2px; background: #fff; }
.path-card > span { width: 39px; height: 39px; display: grid; place-items: center; border: 0; border-bottom: 2px solid currentColor; font-size: .72rem; font-weight: 700; }
.path-card div > p { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.path-card h3 { margin-top: 5px; font-size: 2.25rem; }
.path-card small { display: block; margin-top: 9px; color: var(--muted); font-size: .9rem; }
.path-card.foundation { color: #8b641f; border-top-color: var(--gold); }
.path-card.formation { color: #9a4841; border-top-color: #9a4841; }
.path-card.application { color: #244c42; border-top-color: #244c42; }
.feature-line { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 54px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .86rem; font-weight: 600; }
.feature-line i { width: 18px; height: 1px; background: var(--gold); }

/* Closing */
.closing { padding: 86px 0; background: var(--paper); }
.closing-card { position: relative; min-height: 310px; display: grid; grid-template-columns: 80px 1fr auto; gap: 34px; align-items: center; overflow: hidden; padding: 48px; border: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: #fff; box-shadow: 12px 12px 0 var(--gold); }
.closing-card > img { position: relative; z-index: 1; border-radius: 20px; }
.closing-card > div { position: relative; z-index: 1; }
.closing-card .eyebrow { color: #e8c979; }
.closing-card h2 { max-width: 690px; margin-top: 12px; font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1.02; }
.closing-links { min-width: 190px; display: grid; gap: 9px; }
.closing-links a { min-height: 52px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 3px; color: #fff; background: var(--ink); font-weight: 700; transition: transform .18s ease, background .18s ease; }
.closing-links a:hover { transform: translateX(3px); }

/* Footer */
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); background: #eef0f1; }
.footer-row { min-height: 54px; display: grid; grid-template-columns: 1fr auto auto; gap: 42px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand strong { font-family: "Spectral", Georgia, serif; font-size: .94rem; }
.site-footer nav { display: flex; gap: 20px; color: var(--ink); font-size: .82rem; font-weight: 600; }
.site-footer p { color: var(--muted); font-size: .78rem; }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: 118px; }
  .hero-grid { grid-template-columns: 1fr 400px; gap: 38px; }
  h1 { font-size: clamp(3.5rem, 7vw, 5.5rem); }
  .app-visual { min-height: 610px; }
  .phone-frame { width: 306px; }
  .closing-card { grid-template-columns: 68px 1fr; }
  .closing-links { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 30px, 1180px); }
  .nav-row { min-height: 68px; gap: 12px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { width: 112px; font-size: .87rem; }
  .site-header nav { display: none; }
  .nav-cta { min-height: 40px; padding: 0 14px; font-size: .8rem; }
  .hero { padding: 108px 0 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow, .store-actions, .hero-note { justify-content: center; }
  h1 { margin-inline: auto; font-size: clamp(3.2rem, 14vw, 4.8rem); }
  .hero-lead { margin-inline: auto; }
  .app-visual { min-height: 600px; }
  .phone-frame { width: 292px; }
  .why { padding: 82px 0 74px; }
  .why-heading { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .why-heading .eyebrow { padding: 0; }
  .why-heading h2 { font-size: clamp(2.55rem, 10vw, 3.7rem); }
  .path-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .path-card { min-height: 172px; flex-direction: row; align-items: flex-start; }
  .path-card div { margin-top: auto; text-align: right; }
  .feature-line { flex-wrap: wrap; gap: 12px 16px; margin-top: 34px; }
  .closing { padding: 54px 0; }
  .closing-card { grid-template-columns: 1fr; gap: 22px; padding: 30px 24px; text-align: center; }
  .closing-card > img { margin-inline: auto; }
  .closing-links { grid-column: auto; grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; gap: 22px; justify-items: center; text-align: center; }
  .site-footer nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 460px) {
  .nav-cta span { display: none; }
  .hero-copy .eyebrow { font-size: .64rem; letter-spacing: .1em; }
  h1 { font-size: clamp(3rem, 15vw, 4rem); }
  .hero-lead { font-size: 1rem; }
  .store-actions { display: grid; }
  .store-button { width: min(290px, 100%); text-align: left; }
  .app-visual { min-height: 535px; }
  .phone-frame { width: 260px; border-radius: 22px; }
  .path-card { min-height: 160px; padding: 21px; }
  .feature-line i:nth-of-type(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
