/* GLYDETO site styles. Values come from ../tokens.css (see DESIGN.md). */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/instrument-sans-latin.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/oswald-600-latin.woff) format('woff'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--font-text); font-size: var(--fs-body); line-height: var(--lh-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-hover); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-4); top: -60px; z-index: 50; background: var(--text); color: var(--night); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--space-4); }
.wrap { max-width: var(--content); margin: 0 auto; }

/* Boards: plain uppercase text until site.js turns them into tiles */
.board { margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; line-height: 1.15; letter-spacing: 0.02em; }
.board.tiled { letter-spacing: 0; line-height: 1; }
.board.eb { font-size: var(--fs-eyebrow); color: var(--green); }
.board.eb.y { color: var(--green); }
.board.h2 { font-size: var(--fs-h2); }
.board.center .sf-row { justify-content: center; }

/* Nav */
.nav { position: relative; z-index: 5; max-width: var(--content-nav); margin: 0 auto; padding: 22px var(--space-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text); min-height: var(--tap-min); }
.brand img { width: 40px; height: 40px; border-radius: var(--radius-icon); }
.brand .board { font-size: var(--fs-logo); }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-7); font-weight: 500; font-size: var(--fs-nav); }
.nav nav a { color: var(--text-2); text-decoration: none; min-height: var(--tap-min); display: inline-flex; align-items: center; }
.nav nav a:hover { color: var(--text); }
.btn-nav { padding: 0 20px; border-radius: var(--radius-pill); background: var(--text); color: var(--night) !important; font-weight: 600; }
.btn-nav:hover { background: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 56px; padding: 0 28px; border-radius: var(--radius-pill); font-weight: 600; font-size: 18px; text-decoration: none; transition: background .2s, border-color .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn-secondary { background: var(--pill); color: var(--text); border: 1px solid var(--line-pill); }
.btn-secondary:hover { background: var(--pill-hover); color: var(--text); }
/* Pre-launch App Store notice: a plain status pill, deliberately unlike Apple's badge (no black box, no Apple logo).
   On launch, replace each .store-soon with Apple's official "Download on the App Store" badge. */
.store-soon { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; margin: 0; padding: 0 24px; border-radius: var(--radius-pill); border: 1.5px dashed var(--line-store-hover); color: var(--text-2); font-size: 17px; font-weight: 500; }
.store-soon::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.on-green .store-soon { border-color: rgba(6, 40, 20, .6); color: var(--green-ink); }
.on-green .store-soon::before { background: var(--green-ink); }
.on-green :focus-visible, .on-cream :focus-visible { box-shadow: 0 0 0 3px var(--night); }

/* Hero */
.hero { position: relative; padding: var(--space-8) var(--space-6) 0; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 900px; opacity: .55; pointer-events: none; }
.hero-copy { position: relative; max-width: 1000px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.hero h1 { font-size: var(--fs-hero); }
.lede { margin: 0; max-width: var(--measure); font-size: var(--fs-lede); line-height: var(--lh-lede); color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: var(--space-2); }
.price-note { margin: 0; font-size: var(--fs-caption); color: var(--text-3); }
.phones { position: relative; max-width: 1100px; margin: 72px auto 0; display: flex; justify-content: center; align-items: flex-end; gap: var(--space-7); height: 620px; }
.phone { flex-shrink: 0; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone.side { width: 270px; height: 560px; border-radius: 44px; padding: 9px; }
.phone.side img { border-radius: 36px; }
.phone.l { transform: rotate(-6deg) translateY(24px); }
.phone.r { transform: rotate(6deg) translateY(24px); }
.phone.main { width: 300px; height: 620px; border-radius: 48px; padding: 10px; position: relative; z-index: 1; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 0 1px var(--line-pill); }
.phone.main img { border-radius: 39px; }
@media (max-width: 900px) {
  .phones { height: auto; gap: 0; }
  .phone.side { display: none; }
  .phone.main { width: min(300px, 78vw); height: auto; aspect-ratio: 300 / 620; }
}

/* Lines strip */
.strip { border-block: 1px solid var(--line-section); background: var(--platform); padding: 26px var(--space-6); }
.strip ul { max-width: var(--content-nav); margin: 0 auto; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3) 30px; font-weight: 600; font-size: 16px; color: var(--text-2); }
.strip li:first-child { color: var(--muted); font-weight: 500; }

/* Journey track */
#journey { position: relative; }
#journey > section { padding-left: var(--space-10); }
.jr-clip { position: absolute; inset: 0; overflow: hidden; z-index: 3; pointer-events: none; }
.jr-rail { position: absolute; top: 0; bottom: 0; left: 30px; width: 40px; background: linear-gradient(to right, transparent 9px, #C3CAD2 9px, #7D868F 13px, transparent 13px, transparent 27px, #C3CAD2 27px, #7D868F 31px, transparent 31px), repeating-linear-gradient(to bottom, #4A535D 0 7px, #2C3640 7px 8px, transparent 8px 19px), linear-gradient(to right, transparent 3px, rgba(20, 24, 29, .92) 3px, rgba(20, 24, 29, .92) 37px, transparent 37px); }
.jr-fill { position: absolute; top: 0; left: 48px; width: 4px; height: 100%; transform-origin: top; transform: scaleY(0); will-change: transform; border-radius: 2px; background: var(--green); box-shadow: 0 0 14px rgba(61, 220, 132, .7); }
.jr-stop { position: absolute; left: 50px; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--night); border: 3px solid var(--muted); z-index: 1; transition: background .3s, border-color .3s, box-shadow .3s; }
.jr-stop.on { background: var(--green); border-color: #fff; box-shadow: 0 0 0 6px rgba(61, 220, 132, .22); }
.jr-stop.here { animation: jrPulse 1.4s ease-out infinite; }
@keyframes jrPulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 100% { box-shadow: 0 0 0 20px rgba(61, 220, 132, 0); } }
.jr-train { position: absolute; left: 50px; top: 0; width: 32px; margin-left: -13px; z-index: 2; transform: translateY(-440px); transition: transform .12s linear; will-change: transform; }
.jr-train img { display: block; width: 32px; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.jr-train::after { content: ''; position: absolute; left: 50%; bottom: -70px; width: 44px; height: 80px; margin-left: -24px; background: radial-gradient(ellipse at top, rgba(242, 244, 245, .28), rgba(242, 244, 245, 0) 70%); }
@media (max-width: 700px) {
  #journey > section { padding-left: 60px; }
  .jr-rail { left: 6px; } .jr-fill { left: 24px; } .jr-stop, .jr-train { left: 26px; }
}

/* Feature sections */
.feature { padding: var(--space-11) var(--space-6); }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split.rev { flex-wrap: wrap-reverse; }
.copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.media { flex: 1.3 1 480px; min-width: 0; }
.copy p { margin: 0; color: var(--text-2); max-width: 520px; }
.copy h3, .stack h3 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: var(--space-10); }
.ticks { margin: var(--space-1) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: #E3E6E9; }
.ticks li { display: flex; gap: var(--space-3); align-items: baseline; }
.ticks li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; transform: translateY(-1px); }
.shot { display: block; width: 100%; height: auto; border-radius: var(--radius-card); border: var(--border-shot); box-shadow: var(--shadow-shot); transition: transform var(--dur-lift) var(--ease-lift); }
.shot:hover { transform: translateY(-4px) scale(1.01); }
figure { margin: 0; }
.cap { margin: var(--space-3) var(--space-1) 0; font-size: var(--fs-caption); line-height: var(--lh-caption); color: var(--text-3); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-6); }
.overlay { position: relative; padding-bottom: 120px; }
.overlay .top { position: absolute; right: -12px; bottom: 0; width: min(78%, 520px); }
@media (max-width: 700px) { .overlay .top { right: 0; } }

.on-cream { background: var(--cream); color: var(--text); border-block: 1px solid var(--line-section); }
.on-cream .copy p, .on-cream .lead-cream { color: var(--cream-body); }
.on-cream .cap { color: var(--text-3); }

.widgets { width: 100%; max-width: 540px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
.widgets img { display: block; height: auto; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .5)); }
.frames { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--space-5); }
.frames .shot { border-radius: var(--radius-frame); }

/* Little things */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-5); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-7); display: flex; flex-direction: column; gap: var(--space-3); }
.card h3 { margin: 0; font-size: var(--fs-title); font-weight: 600; line-height: 1.3; }
.card p { margin: 0; color: var(--text-3); font-size: 16px; }
.card svg { width: 28px; height: 28px; }

/* CTA band */
.cta { padding: 0 var(--space-6) var(--space-11); }
.band { max-width: var(--content); margin: 0 auto; border-radius: var(--radius-band); background: var(--green-deep); padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-6); }
.band > * { position: relative; }
.band .bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; }
.band h2 { font-size: var(--fs-cta); max-width: 900px; }
.band p { margin: 0; color: var(--green-deep-text); max-width: 560px; }
.band .price-note { color: var(--green-ink); }
.band .price-note a { color: var(--green-ink) !important; }
.band :focus-visible { box-shadow: 0 0 0 3px var(--green), 0 0 0 5px var(--green-ink); }
.band-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }

/* Footer */
.foot { border-top: 1px solid var(--line-section); padding: var(--space-9) var(--space-6) var(--space-8); }
.foot-top { max-width: var(--content); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-brand { flex: 1 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.foot-brand p { margin: 0; color: var(--text-3); font-size: var(--fs-caption); }
.foot-cols { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.foot-cols div { display: flex; flex-direction: column; gap: 0; font-size: 16px; }
.foot-cols p { margin: 0 0 var(--space-1); font-weight: 600; }
.foot-cols a { color: var(--text-3); text-decoration: none; min-height: var(--tap-min); display: inline-flex; align-items: center; }
.foot-cols a:hover { color: var(--text); }
.legal { max-width: var(--content); margin: var(--space-8) auto 0; padding-top: var(--space-6); border-top: 1px solid var(--line-section); color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: var(--space-2); }
.legal p { margin: 0; }

/* Document pages (support, privacy, terms) */
.doc { max-width: 720px; margin: 0 auto; padding: var(--space-8) var(--space-6) var(--space-11); }
.doc .board.h1 { font-size: clamp(28px, 4.4vw, 52px); margin-bottom: var(--space-4); }
.doc .updated { color: var(--muted); font-size: var(--fs-caption); margin: 0 0 var(--space-8); }
.doc h2 { font-size: 24px; line-height: 1.3; font-weight: 600; margin: var(--space-8) 0 var(--space-3); }
.doc h3 { font-size: 19px; font-weight: 600; margin: var(--space-6) 0 var(--space-2); }
.doc p, .doc li { color: var(--text-2); max-width: 66ch; }
.doc p { margin: 0 0 var(--space-4); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 var(--space-4); }
.doc li { margin-bottom: var(--space-2); }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-6); font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: var(--space-3); border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--space-7); margin: 0 0 var(--space-8); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.contact-card p { margin: 0; }
.contact-card .btn { background: var(--green); color: var(--green-ink); }
.contact-card .btn:hover { background: var(--green-hover); color: var(--green-ink); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: var(--space-4) 0; font-weight: 600; font-size: 18px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); min-height: var(--tap-min); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--green); font-weight: 600; }
details[open] summary::after { content: '−'; }
details > div { padding: 0 0 var(--space-4); }
.todo { background: rgba(61, 220, 132, .16); color: var(--green); border-radius: 4px; padding: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  .shot, .jr-train, .jr-stop, .btn { transition: none; }
  .shot:hover { transform: none; }
  .jr-stop.here { animation: none; }
}
@media (max-width: 700px) {
  .nav nav a.wide { display: none; }
  .nav { padding: var(--space-4); flex-wrap: nowrap; }
  .nav nav { gap: var(--space-4); flex-wrap: nowrap; }
  .brand { gap: var(--space-2); }
  .brand img { width: 34px; height: 34px; }
  .nav .brand .board { font-size: 15px; }
  .btn-nav { padding: 0 16px; }
}
@media (max-width: 380px) { .nav .brand .board { display: none; } }
@media (max-width: 600px) {
  .hero .lede { text-align: left; }
}
.band .sf.gb { background: var(--night); color: var(--green); }
