/* Somewhen site — applied from design/Somewhen Landing.dc.html
   using tokens from design/Somewhen Design System.dc.html (v2 palette). */

:root {
  color-scheme: light;
  --navy-950: #0A162E;
  --navy-900: #0F2247;
  --navy-800: #152B52;
  --navy-700: #1E3A6E;
  --navy-500: #2E4F8F;
  --sun-600: #ED7B2F;
  --sun-400: #FF9E45;
  --cream: #FFF6EA;
  --pin: #E86A8A;
  --ink: rgba(46, 43, 87, .7);
  --ink-soft: rgba(46, 43, 87, .65);
  --ink-faint: rgba(46, 43, 87, .45);
  --hairline: rgba(46, 43, 87, .1);
  --mono: ui-monospace, Menlo, monospace;
  --serif: 'Young Serif', Georgia, serif;
  --round: 'Baloo 2', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  font: 17px/1.65 -apple-system, system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sun-600); text-decoration: none; }
a:hover { color: var(--navy-700); text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: .85em;
  color: var(--navy-800);
  background: rgba(46, 43, 87, .07);
  padding: 1px 5px;
  border-radius: 5px;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

/* ---------- masthead ---------- */

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }

.wordmark {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font-family: var(--serif); font-weight: 400; font-size: 20px;
  color: var(--navy-800);
}
a.wordmark:hover { color: var(--navy-800); text-decoration: none; }

.logo-tile {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
}
.logo-tile svg { display: block; }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; border-radius: 20px; padding: 0 22px;
  background: var(--navy-800); color: var(--cream);
  font-family: var(--round); font-weight: 600; font-size: 14px;
  white-space: nowrap;
}
a.btn-pill:hover { background: var(--navy-700); color: var(--cream); text-decoration: none; }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  display: flex; gap: 64px; align-items: center; flex-wrap: wrap;
  padding-top: 56px; padding-bottom: 72px;
}

.hero-halo {
  position: absolute; right: -80px; top: 10px;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 77, .38), rgba(255, 201, 77, 0) 65%);
}

.spark { position: absolute; border-radius: 50%; }

.hero-copy { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 22px; position: relative; }

.dict-card {
  display: flex; flex-direction: column; gap: 3px; align-self: flex-start;
  background: #fff; border: 1px solid rgba(46, 43, 87, .12); border-radius: 12px;
  padding: 13px 18px; box-shadow: 0 2px 10px rgba(46, 43, 87, .07);
}
.dict-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.dict-word { font-family: var(--serif); font-size: 19px; color: var(--navy-800); }
.dict-ipa { font: 11px var(--mono); color: var(--ink-faint); }
.dict-pos { font: italic 12px Georgia, serif; color: rgba(46, 43, 87, .55); }
.dict-def { font: italic 13.5px/1.4 Georgia, serif; color: var(--ink); }
.dict-note { font: 600 11.5px var(--round); color: var(--pin); }

.hero-title {
  margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5.2vw, 52px); line-height: 1.12;
  color: var(--navy-800); text-wrap: pretty;
}

.hero-sub { margin: 0; max-width: 460px; font-size: 17px; line-height: 1.65; color: var(--ink); text-wrap: pretty; }

.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-store {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; border-radius: 26px; padding: 0 28px;
  background: var(--navy-950); color: var(--cream);
  font-family: var(--round); font-weight: 600; font-size: 16px;
  white-space: nowrap;
}

.cta-note { font: 12px var(--mono); color: var(--ink-faint); }

/* ---------- phone mockup ---------- */

.hero-phone { flex: none; width: 300px; display: flex; justify-content: center; position: relative; margin: 0 auto; }

.phone {
  width: 280px; height: 576px; border-radius: 44px;
  border: 9px solid var(--navy-950); background: #F2F2F7;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 60px rgba(46, 43, 87, .25);
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px; border-radius: 11px; background: var(--navy-950); z-index: 2;
}
.phone-head { padding: 44px 16px 0; display: flex; align-items: center; gap: 8px; }
.phone-head .logo-tile { width: 26px; height: 26px; border-radius: 6px; }
.phone-app-name { font-size: 23px; font-weight: 700; color: #1a1a1a; }

.phone-card { margin: 10px 14px 0; background: #fff; border-radius: 18px; padding: 11px 15px; }
.phone-card.primary { padding: 14px 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }

.ring-row { display: flex; align-items: center; gap: 14px; }
.ring { position: relative; width: 68px; height: 68px; flex: none; }
.ring-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: ui-rounded, system-ui, sans-serif; font-size: 15px; font-weight: 700; color: #1a1a1a;
}
.ring-count { font-family: ui-rounded, system-ui, sans-serif; font-size: 16px; font-weight: 700; color: #1a1a1a; white-space: nowrap; }
.ring-count span { font-weight: 500; color: rgba(60, 60, 67, .5); }
.ring-caption { font-size: 12px; color: rgba(60, 60, 67, .6); white-space: nowrap; }

.queue-row {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  background: #F2F2F7; border-radius: 10px; padding: 0 12px; height: 38px;
}
.queue-row .q-label { font-size: 12.5px; font-weight: 600; flex: 1; color: #1a1a1a; }
.queue-row .q-count { font-size: 12.5px; color: rgba(60, 60, 67, .6); }

.phone-cta {
  margin-top: 8px; height: 40px; border-radius: 20px;
  background: var(--navy-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}

.phone-caption { font-size: 12px; color: rgba(60, 60, 67, .6); }
.phone-line { font-size: 12px; font-weight: 600; color: #1a1a1a; margin-top: 2px; white-space: nowrap; }

.thumbs { display: flex; gap: 7px; margin-top: 8px; }
.thumb {
  width: 44px; height: 44px; border-radius: 8px;
  background: repeating-linear-gradient(45deg, #EDE4D4, #EDE4D4 4px, #F6F0E4 4px, #F6F0E4 8px);
}
.thumb-dest { font-size: 11px; color: rgba(60, 60, 67, .5); margin-top: 8px; font-family: var(--mono); }

.lastrun-head { display: flex; justify-content: space-between; }
.lastrun-head .lr-label { font-size: 12.5px; font-weight: 600; color: #1a1a1a; }
.lastrun-head .lr-time { font-size: 11px; color: rgba(60, 60, 67, .5); }
.lastrun-stats { font-size: 11.5px; color: rgba(60, 60, 67, .6); margin-top: 3px; white-space: nowrap; }

/* ---------- marquee band ---------- */

.band {
  background: var(--sun-400); padding: 15px 48px;
  display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap;
}
.band span { font-family: var(--serif); font-size: 16px; color: var(--navy-800); }
.band svg { flex: none; }

/* ---------- feature trio ---------- */

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px; padding-top: 72px; padding-bottom: 72px;
}
.feature { display: flex; flex-direction: column; gap: 12px; }
.feature h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--navy-800); }
.feature p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.feature code { font-size: 12px; background: none; padding: 0; color: inherit; }

/* ---------- recap (navy) ---------- */

.recap { background: var(--navy-950); padding: 80px 0; }
.recap-inner { display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }

.recap-card {
  flex: none; width: 300px; margin: 0 auto;
  background: #201D3A; border-radius: 22px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
  animation: swFloat 7s ease-in-out infinite;
}
.recap-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.recap-card-label { font: 600 10px var(--mono); letter-spacing: .14em; color: rgba(255, 246, 234, .5); }
.recap-card-year { font-family: var(--serif); font-size: 22px; color: var(--sun-400); }
.recap-card svg { max-width: 100%; height: auto; }

.recap-timeline { position: relative; height: 28px; margin: 0 2px; }
.recap-timeline .tl-track { position: absolute; top: 8px; left: 0; right: 0; height: 2px; border-radius: 1px; background: rgba(255, 246, 234, .2); }
.recap-timeline .tl-dot { position: absolute; border-radius: 50%; }
.recap-timeline .tl-year { position: absolute; top: 17px; font: 9px var(--mono); color: rgba(255, 246, 234, .5); }

.recap-card-stat { font-family: ui-rounded, system-ui, sans-serif; font-size: 14px; font-weight: 700; color: var(--cream); line-height: 1.5; }
.recap-card-cta {
  height: 36px; border-radius: 18px; background: var(--sun-400); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--round); font-size: 13px; font-weight: 700;
}

.recap-copy { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 18px; }
.kicker { font: 600 11px var(--mono); letter-spacing: .12em; color: var(--sun-600); }
.recap-copy h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 38px); line-height: 1.2; color: var(--cream); text-wrap: pretty; }
.recap-copy p { margin: 0; max-width: 480px; font-size: 16px; line-height: 1.7; color: rgba(255, 246, 234, .7); text-wrap: pretty; }
.recap-quote { font: italic 14px Georgia, serif; color: rgba(255, 246, 234, .5); }

/* ---------- content sections (purpose / Google data / FAQ) ---------- */

.section { padding-top: 72px; }
.section:last-of-type { padding-bottom: 24px; }
.section > h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 32px); line-height: 1.25; color: var(--navy-800); text-wrap: pretty; }
.section > p { margin: 0 0 18px; max-width: 720px; font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.section strong { color: var(--navy-800); font-weight: 600; }

.card {
  background: #fff; border-radius: 24px; padding: 20px 24px;
  border: 1px solid rgba(46, 43, 87, .08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.steps { max-width: 760px; }
.steps .row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.steps .row p { margin: 0; font-size: 15px; line-height: 1.6; }
.num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: rgba(237, 123, 47, .15); color: var(--sun-600);
  font-family: ui-rounded, var(--round); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps .hairline { height: 1px; background: var(--hairline); margin-left: 38px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; max-width: 860px; }
.grid-2 .card h3 { margin: 8px 0 6px; font-size: 17px; font-weight: 600; color: var(--navy-800); }
.grid-2 .card p { margin: 0; font-size: 14.5px; line-height: 1.65; }

.faq { max-width: 760px; }
.faq h3 { margin: 26px 0 6px; font-size: 17px; font-weight: 600; color: var(--navy-800); }
.faq p { margin: 0; font-size: 15px; line-height: 1.65; }

/* ---------- closing CTA ---------- */

.closing {
  max-width: 720px; margin: 0 auto; padding: 80px 48px 72px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.closing h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 38px); line-height: 1.25; color: var(--navy-800); }
.closing p { margin: 0; max-width: 440px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); text-wrap: pretty; }
.closing .btn-store { height: 50px; border-radius: 25px; font-size: 15px; margin-top: 6px; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--hairline); padding-top: 26px; padding-bottom: 26px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 15px; color: var(--navy-800); }
.footer-brand .logo-tile { width: 24px; height: 24px; border-radius: 6px; }
.footer-brand .copyright { font: 11px var(--mono); color: rgba(46, 43, 87, .4); margin-left: 6px; }
.footer-links { display: flex; gap: 20px; font: 12px var(--mono); }
.footer-links a, .footer-links span { color: rgba(46, 43, 87, .55); }
.footer-links a:hover { color: var(--sun-600); }

/* ---------- document pages (privacy) ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: 24px 0 48px; }
.doc h1 { margin: 18px 0 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.5vw, 40px); line-height: 1.2; color: var(--navy-800); }
.doc .updated { margin: 0 0 26px; font: 12px var(--mono); color: rgba(46, 43, 87, .5); }
.doc h2 { margin: 34px 0 10px; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--navy-800); }
.doc p, .doc li { font-size: 16px; line-height: 1.7; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--navy-800); font-weight: 600; }

/* ---------- animation ---------- */

@keyframes swFloat { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-9px) rotate(.4deg); } }
@keyframes swMarch { to { stroke-dashoffset: -90; } }
@keyframes swHalo { 0%, 100% { opacity: .15; transform: scale(1); } 50% { opacity: .4; transform: scale(1.35); } }
@keyframes swPop { 0% { opacity: 0; transform: scale(0); } 60% { opacity: 1; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes swFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
