/* Shello landing page. Colours and type follow docs/brand.md. */

/* Fonts: the same files and rules the app gets from @fontsource-variable (src/main.tsx).
   Thai, Japanese and other scripts use the system font, as in the app. */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --brand: #1673ad;
  --brand-deep: #143a7a;
  --brand-soft: #e4f2fa;
  --lagoon: #2fc1c8;
  --lagoon-ink: #0f7f89;
  --lagoon-soft: #dcf5f5;
  --pearl: #fcf8f7;
  --coral: #ffab95;
  --coral-ink: #a8402f;
  --coral-soft: #ffe9e2;
  --orchid: #7a58bd;
  --orchid-soft: #efe9fb;
  --blush: #ffd3e2;
  --ink: #1d2a3a;
  --muted: #5b6878;
  --line: #e3e8ee;
  --white: #fff;
  --gradient: linear-gradient(160deg, #143a7a 0%, #1673ad 55%, #2fc1c8 100%);
  /* Same stacks as --font-display and --font-sans in src/index.css. */
  --display: 'Bricolage Grotesque Variable', 'Figtree Variable', ui-sans-serif, system-ui, sans-serif;
  --sans: 'Figtree Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 24px 60px -20px rgb(20 58 122 / 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Sections land below the sticky header instead of under it. */
[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--brand-deep); margin: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.1; font-weight: 800; }
h3 { font-family: var(--sans); font-size: 18px; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.section { padding: 96px 0; }
.section-lede { color: var(--muted); font-size: 18px; max-width: 600px; margin: 16px auto 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--white); text-decoration: none; font-weight: 600;
  border-radius: 999px; padding: 12px 22px; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--brand-deep); }
.btn-small { padding: 8px 16px; font-size: 14px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center-row { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0b1626; color: var(--white); text-decoration: none;
  border-radius: 14px; padding: 10px 18px 10px 14px; min-width: 172px;
  border: 1px solid rgb(255 255 255 / 0.15);
  transition: transform .15s;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font: 600 18px/1.1 var(--sans); }
.store small { font-size: 11px; font-weight: 500; opacity: .85; }
.store.light { background: var(--white); color: var(--brand-deep); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(252 248 247 / 0.85); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgb(227 232 238 / 0.7);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 22.5%; }
.wordmark { font: 800 24px/1 var(--display); letter-spacing: -0.025em; color: var(--brand-deep); }
/* "Travel Phrasebook" under the wordmark (docs/brand.md): Figtree semibold caps, wide tracking, grey.
   Beside the icon it's one word per line, so it's no wider than the wordmark, as in the app header. */
.lockup { display: flex; flex-direction: column; line-height: 1; }
.subtitle { display: block; font: 600 10px/1.15 var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 3px; }
.lockup .subtitle { width: min-content; }
.cta-lockup { margin: 0 0 28px; }
.cta-lockup .wordmark { display: block; font-size: 48px; color: var(--white); }
.cta-lockup .subtitle { font-size: 14px; letter-spacing: 0.2em; margin-top: 8px; color: rgb(255 255 255 / 0.8); }
.cta .cta-lockup { margin-top: 0; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }

/* Hero */
.hero { position: relative; background: var(--gradient); color: var(--white); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgb(255 211 226 / 0.25), transparent 60%),
    radial-gradient(500px 300px at 10% 90%, rgb(47 193 200 / 0.35), transparent 60%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 140px; }
.hero .eyebrow { color: var(--lagoon-soft); }
.hero h1 { color: var(--white); font-size: clamp(48px, 8vw, 84px); line-height: 1; font-weight: 800; }
.lede { font-size: 19px; line-height: 1.6; margin-top: 24px; max-width: 540px; color: rgb(255 255 255 / 0.9); }
.fine { margin-top: 18px; font-size: 14px; color: rgb(255 255 255 / 0.75); }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px; color: var(--pearl); }

/* Phone mockups */
.hero-phone, .how-phone { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; aspect-ratio: 9 / 19; background: #0b1626; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgb(255 255 255 / 0.08);
  transform: rotate(2deg);
}
.phone.small { transform: rotate(-2deg); }
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 36px;
  background: var(--pearl); color: var(--ink); padding: 44px 14px 0; display: flex; flex-direction: column;
}
.screen::before { content: ''; position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 86px; height: 24px; background: #0b1626; border-radius: 999px; }
.app-head { flex: none; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.app-head img { border-radius: 22.5%; }
.app-word { display: block; font: 800 17px/1 var(--display); color: var(--brand-deep); letter-spacing: -0.02em; }
.app-sub { display: block; font-size: 6.5px; line-height: 1.15; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.app-flag { margin-left: auto; font-size: 20px; }
.chips { flex: none; display: flex; gap: 6px; overflow: hidden; margin-bottom: 12px; }
.chip { flex: none; font-size: 10.5px; padding: 5px 9px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); white-space: nowrap; }
.chip.on { background: var(--brand); color: var(--white); border-color: var(--brand); }
.cards { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow: hidden; }
.pcard { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pmeaning { padding: 10px; font-weight: 600; font-size: 12px; line-height: 1.3; }
.ppanel { background: var(--brand-soft); color: var(--brand-deep); padding: 9px 10px; display: flex; flex-direction: column; }
.pnative { font-size: 14px; line-height: 1.35; }
.proman { font-size: 10px; color: var(--muted); margin-top: 1px; }
.psounds { font-size: 10px; font-style: italic; color: var(--muted); }
.pactions { display: flex; justify-content: flex-end; gap: 4px; margin-top: 6px; }
.pactions span { background: var(--white); border-radius: 7px; padding: 2px 6px; font-size: 11px; }
.pactions .playing { box-shadow: 0 0 0 2px var(--lagoon); }
.pactions .saved { color: var(--coral-ink); background: var(--coral-soft); }
.tabbar { flex: none; display: flex; justify-content: space-around; margin: 10px -14px 0; padding: 10px 0 18px; border-top: 1px solid var(--line); background: rgb(252 248 247 / .95); font-size: 10px; color: var(--muted); font-weight: 500; }
.tab.on { color: var(--brand); font-weight: 700; }

.bubble {
  position: absolute; background: var(--white); color: var(--brand-deep); font-weight: 600;
  padding: 10px 16px; border-radius: 20px; box-shadow: var(--shadow); font-size: 18px;
  animation: float 6s ease-in-out infinite;
}
.bubble::after { content: ''; position: absolute; bottom: -6px; width: 14px; height: 14px; background: inherit; rotate: 45deg; border-radius: 3px; }
.b1 { top: 12%; left: -4%; } .b1::after { left: 18px; }
.b2 { top: 48%; right: -6%; animation-delay: -2s; background: var(--coral-soft); color: var(--coral-ink); } .b2::after { right: 18px; }
.b3 { bottom: 10%; left: 0; animation-delay: -4s; background: var(--lagoon-soft); color: var(--lagoon-ink); } .b3::after { left: 24px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Stats */
.stats { padding: 8px 0 0; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats-inner div { text-align: center; padding: 20px 8px; }
.stats strong { display: block; font: 800 44px/1 var(--display); color: var(--brand-deep); letter-spacing: -0.015em; }
.stats span { color: var(--muted); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.ficon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 24px; margin-bottom: 18px; }
.ficon.brand { background: var(--brand-soft); }
.ficon.lagoon { background: var(--lagoon-soft); }
.ficon.coral { background: var(--coral-soft); color: var(--coral-ink); }
.ficon.orchid { background: var(--orchid-soft); }
.ficon.pearl { background: #f3ecea; }

/* How it works */
.how { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps { margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.steps li { display: flex; gap: 18px; }
.step { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--white); font: 800 20px/1 var(--display); }
.steps p { color: var(--muted); margin-top: 4px; }
.fc-count { text-align: center; font-size: 11px; color: var(--muted); margin: 6px 0 12px; }
.flashcard { background: var(--brand-soft); border-radius: 22px; padding: 28px 16px 18px; text-align: center; color: var(--brand-deep); flex: 1; max-height: 330px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.fc-meaning { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.fc-native { font-size: 30px; font-weight: 600; }
.fc-roman { font-size: 13px; font-weight: 500; }
.fc-sounds { font-size: 12px; font-style: italic; color: var(--muted); }
.fc-play { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.fc-play span { background: var(--white); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.fc-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fc-buttons span { text-align: center; padding: 10px; border-radius: 14px; font-size: 12px; font-weight: 600; }
.fc-again { background: var(--white); border: 1px solid var(--line); }
.fc-got { background: var(--brand); color: var(--white); }
.readiness { margin-top: auto; margin-bottom: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 11px; color: var(--muted); }
.readiness strong { color: var(--orchid); }
.readiness .bar { grid-column: 1 / -1; height: 6px; background: var(--orchid-soft); border-radius: 999px; overflow: hidden; }
.readiness .bar i { display: block; height: 100%; background: var(--orchid); border-radius: inherit; }

/* Languages */
.langs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 48px; }
.langs li { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.langs span { font-size: 26px; line-height: 1; }
.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.topics li { background: var(--brand-soft); color: var(--brand-deep); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }

/* Reviews */
.reviews-section { background: linear-gradient(180deg, var(--pearl), var(--brand-soft)); }
.placeholder-note { display: table; margin: 16px auto 0; background: #fff6d6; color: #7a5600; border: 1px dashed #d9b44a; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.review { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; }
.sample { position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7a5600; background: #fff6d6; border-radius: 999px; padding: 3px 8px; }
.stars { color: #f2a93b; letter-spacing: 2px; font-size: 18px; }
.review blockquote { margin: 14px 0 20px; font-size: 16px; line-height: 1.55; }
.who { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orchid-soft); color: var(--orchid); font-weight: 700; }

/* FAQ */
.faq { margin-top: 48px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--brand); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* CTA */
.cta { padding: 0 20px 96px; }
.cta-inner { background: var(--gradient); color: var(--white); border-radius: 32px; padding: 72px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-inner img { margin: 0 auto 24px; border-radius: 22.5%; box-shadow: 0 16px 40px -12px rgb(0 0 0 / .4); }
.cta h2 { color: var(--white); }
.cta h2 + p { margin-top: 12px; font-size: 18px; color: rgb(255 255 255 / .85); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--white); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-brand p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--brand); }
.copy { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }

/* Responsive */
@media (max-width: 1000px) {
  .features, .reviews { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; min-height: 44px; padding: 10px 18px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 56px; padding-bottom: 160px; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero .store-buttons { justify-content: center; }
  .hero-phone { margin-top: 16px; }
  .how-inner { grid-template-columns: 1fr; gap: 48px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .section { padding: 64px 0; }
  .section-lede { font-size: 17px; }
  .hero-inner { padding-top: 40px; padding-bottom: 150px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.1em; }
  .lede { font-size: 17px; }
  /* Features: icon beside the text, so eight cards don't take eight screens. */
  .features { gap: 12px; margin-top: 40px; }
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px; border-radius: 20px; }
  .feature:hover { transform: none; box-shadow: none; }
  .ficon { grid-row: span 2; width: 44px; height: 44px; font-size: 20px; border-radius: 14px; margin: 0; }
  .feature p { margin-top: 4px; }
  /* Languages: two to a row. */
  .langs { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 36px; }
  .langs li { padding: 12px; gap: 10px; font-size: 14px; line-height: 1.25; border-radius: 14px; }
  .langs span { font-size: 22px; }
  .topics li { font-size: 13px; }
  .reviews { margin-top: 36px; gap: 12px; }
  .review { padding: 24px 20px; }
  .faq summary { font-size: 16px; padding: 18px 0; }
  .faq details { padding: 0 18px; }
  .cta-inner { padding: 48px 20px; border-radius: 28px; }
  .cta-lockup .wordmark { font-size: 40px; }
  .footer-links a { display: inline-block; padding: 6px 0; }
  .features, .reviews { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .bubble { font-size: 15px; padding: 8px 12px; }
  .b1 { left: 0; } .b2 { right: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .store { min-width: 0; flex: 1 1 160px; justify-content: center; }
  .cta { padding: 0 16px 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble { animation: none; }
  .feature, .store { transition: none; }
}
