/* VoiceLingo website. Colors come from the app: paper background, the green "I say" button and the
   dark "They say" button. Headlines use Familjen Grotesk (Latin, self-hosted); everything else and all
   CJK text use the system fonts the app uses. */
@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk.woff2") format("woff2-variations"), url("/fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --paper: #F2F3F5;
  --white: #FFFFFF;
  --ink: #15181C;
  --ink-2: #3B4048;
  --muted: #5E646D;
  --line: rgba(21, 24, 28, .12);
  --green: #1FA35B;
  --green-btn: #16834A;
  --green-ink: #0E6B39;
  --mint: #E3F4EA;
  --slate: #23282E;
  --slate-2: #2E343B;
  --slate-ink: #E8EDEA;
  --slate-muted: #A3ABA6;
  --display: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, .them-title { text-wrap: balance; word-break: auto-phrase; }
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3 { word-break: keep-all; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }

/* ───── buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--green-btn); color: #fff; font: 600 1rem/1 var(--text); text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--green-ink); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-quiet:hover { background: var(--white); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: .92rem; }

/* ───── header (sits on the dark "their side" of the hero) ───── */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(35, 40, 46, .94); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); color: var(--slate-ink); padding-top: env(safe-area-inset-top); }
.bar-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem/1 var(--display); letter-spacing: -.01em; margin-right: auto; }
.brand img { border-radius: 9px; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.nav { display: flex; gap: 22px; font-size: .94rem; }
.nav a { text-decoration: none; color: var(--slate-muted); }
.nav a:hover { color: var(--slate-ink); }
.lang select { appearance: none; -webkit-appearance: none; background: var(--slate-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A3ABA6' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 10px; color: var(--slate-ink); border: 0; border-radius: 999px; font: 500 .9rem/1 var(--text); padding: 10px 32px 10px 14px; cursor: pointer; }

/* ───── hero ───── */
.hero { position: relative; }
.hero-them { background: radial-gradient(120% 140% at 85% 0%, #2CBF6C 0%, rgba(44, 191, 108, 0) 55%), linear-gradient(160deg, #127A42 0%, #0F6C3A 60%, #0E6236 100%); color: #EFFBF4; padding: clamp(40px, 7vw, 84px) 0 clamp(64px, 9vw, 104px); }
.them-text { width: fit-content; max-width: 100%; margin-left: auto; transform: rotate(180deg); transform-origin: 50% 50%; }
.them-title { max-width: 13em; font: 700 clamp(1.9rem, 4.6vw, 3.4rem)/1.08 var(--display); letter-spacing: -.02em; }
.them-note { margin-top: 14px; color: rgba(239, 251, 244, .72); font-size: .95rem; }

.seam { position: relative; height: 0; z-index: 2; }
.seam-in { display: flex; gap: 12px; transform: translateY(-50%); }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; border-radius: 22px; color: #fff; min-width: 170px; }
.pill svg { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .2); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; flex: none; }
.pill span { display: flex; flex-direction: column; line-height: 1.25; }
.pill b { font-size: 1rem; }
.pill small { font-size: .82rem; opacity: .85; }
.pill-me { background: var(--green); box-shadow: 0 10px 24px rgba(31, 163, 91, .28); }
.pill-them { background: var(--slate-2); box-shadow: 0 10px 24px rgba(21, 24, 28, .25); border: 1px solid rgba(255, 255, 255, .08); }

.hero-you { padding: clamp(72px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero-you h1 { font: 700 clamp(2.6rem, 7.4vw, 5.6rem)/1.02 var(--display); letter-spacing: -.035em; max-width: 12em; }
html[lang="zh-CN"] .hero-you h1, html[lang="ja"] .hero-you h1, html[lang="ko"] .hero-you h1,
html[lang="th"] .hero-you h1, html[lang="vi"] .hero-you h1 { letter-spacing: -.01em; line-height: 1.15; }
.lead { margin-top: 24px; max-width: 34em; font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.langs { margin-top: 36px; color: var(--muted); font-size: .92rem; }
.langs-note { margin-top: 8px; max-width: 42em; }
.hero-grid .hero-main h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); max-width: 11em; }
html[lang="zh-CN"] .hero-grid .hero-main h1, html[lang="ja"] .hero-grid .hero-main h1 { word-break: keep-all; }
.hero-you { padding-top: clamp(64px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-phone { max-width: 300px; justify-self: end; transform: rotate(3deg); }
.highlights { list-style: none; padding: 0; margin: clamp(48px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.highlights li { background: var(--white); border-radius: 22px; padding: 22px 20px 24px; box-shadow: 0 1px 2px rgba(21, 24, 28, .05), 0 12px 30px -18px rgba(21, 24, 28, .25); }
.hl-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--mint); font-size: 1.45rem; margin-bottom: 14px; }
.highlights h3 { font: 700 1.08rem/1.3 var(--display); letter-spacing: -.01em; }
html[lang="zh-CN"] .highlights h3, html[lang="ja"] .highlights h3, html[lang="ko"] .highlights h3 { letter-spacing: 0; }
.highlights p { margin-top: 8px; color: var(--ink-2); font-size: .94rem; line-height: 1.55; }
.hl-pro { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: var(--green); color: #fff; font: 700 .68rem/1.6 var(--text); vertical-align: 2px; }
.langs-list { color: var(--ink); font-weight: 500; }

/* The partner side turns to face the other person once, on load. */
@media (prefers-reduced-motion: no-preference) {
  .them-text { animation: turn 1.1s cubic-bezier(.6, 0, .2, 1) .45s both; }
  @keyframes turn { from { transform: rotate(0deg); opacity: .2; } 40% { opacity: 1; } to { transform: rotate(180deg); } }
}

/* ───── sections ───── */
.sec { --section-pad: clamp(64px, 9vw, 120px); padding: var(--section-pad) 0; }
.sec-white { background: var(--white); }
#how { background: #E2EDF2; }
.feature-bands { padding: 0; }
.feature-band { padding: clamp(36px, 5vw, 64px) 0; }
.feature-band:first-child { padding-top: var(--section-pad); }
.feature-band:last-child { padding-bottom: var(--section-pad); }
.feature-band-camera { background: var(--paper); }
.feature-band-context { background: #EAF5EE; }
.sec h2, .dl h2 { font: 700 clamp(1.9rem, 3.8vw, 3rem)/1.1 var(--display); letter-spacing: -.025em; max-width: 16em; }
html[lang="zh-CN"] .sec h2, html[lang="ja"] .sec h2, html[lang="ko"] .sec h2, html[lang="zh-CN"] .dl h2, html[lang="ja"] .dl h2, html[lang="ko"] .dl h2 { letter-spacing: 0; line-height: 1.25; }
.body { margin-top: 20px; max-width: 32em; font-size: 1.1rem; color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 7vw, 96px); align-items: center; }
.split-flip { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.split-flip > figure { order: -1; }

.phone { background: #1C1F23; padding: 9px; border-radius: 42px; box-shadow: 0 30px 60px -24px rgba(21, 24, 28, .35); }
.phone img { border-radius: 33px; width: 100%; }

/* How it works: a real sequence, so it is numbered. */
.steps { list-style: none; padding: 0; margin-top: 40px; counter-reset: step; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem/1 var(--display); color: var(--green-ink); background: var(--mint); }
.steps li:nth-child(3)::before { color: var(--slate-ink); background: var(--slate); }
.steps h3 { font-size: 1.15rem; line-height: 1.35; padding-top: 9px; }
.steps p { margin-top: 4px; color: var(--ink-2); max-width: 30em; }

.plans { width: 100%; max-width: 760px; margin-top: 40px; border-collapse: collapse; font-size: 1rem; }
.plans th, .plans td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plans thead th { font: 700 1.2rem/1.2 var(--display); padding-bottom: 12px; }
.plans tbody th { font-weight: 500; color: var(--ink-2); width: 40%; }
.plans .col-pro { background: var(--mint); color: var(--green-ink); font-weight: 600; }
.plans thead .col-pro { border-radius: 14px 14px 0 0; }
.plans tbody tr:last-child .col-pro { border-radius: 0 0 14px 14px; border-bottom: 0; }
.plans .no { color: var(--muted); }
.plans .price { display: block; margin-top: 6px; font: 600 1rem/1.3 var(--text); }
.prices { max-width: 760px; margin-top: 24px; }
.prices summary { cursor: pointer; color: var(--green-ink); font-weight: 600; width: fit-content; }
.prices table { margin-top: 12px; border-collapse: collapse; font-size: .95rem; }
.prices th, .prices td { text-align: left; padding: 8px 28px 8px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.prices td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin-top: 28px; }
.way { position: relative; border-radius: 18px; padding: 22px 20px 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.way.way-best { box-shadow: inset 0 0 0 2px var(--green, #1FA35B); background: linear-gradient(150deg, #F3FCF7, #E7F7EE); }
.way h3 { font: 700 1.15rem/1.3 var(--display); margin: 0 0 6px; }
.way p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.55; }
.way .way-price { font: 800 1.6rem/1.2 var(--display); color: var(--green-ink, #0E6B39); margin: 4px 0 2px; }
.way .way-sub { color: var(--muted); font-size: .85rem; margin-bottom: 10px; }
.way-tag { position: absolute; top: -11px; left: 18px; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--green, #1FA35B); color: #fff; }
.way-tag.trip { background: #F5A524; }
.way-passes { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.way-passes li { border-radius: 12px; background: var(--mint, #E8F6EE); padding: 10px 6px; text-align: center; overflow-wrap: anywhere; }
.way-passes b { display: block; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.way-passes span { display: block; font: 800 1.1rem/1.3 var(--display); color: var(--green-ink, #0E6B39); }
.way-passes small { display: block; font-size: .72rem; color: var(--muted); }
#priceList th, #priceList td { padding: 6px 10px; text-align: left; font-size: .9rem; }
#priceList thead th { color: var(--muted); font-weight: 600; }
details.prices { max-width: 100%; overflow-x: auto; }
@media (max-width: 640px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .plans { table-layout: fixed; overflow-wrap: anywhere; }
  #priceList th, #priceList td { padding: 6px 4px; font-size: .78rem; }
}
.note { margin-top: 20px; color: var(--muted); font-size: .92rem; max-width: 40em; }

/* ───── download (the dark side again) ───── */
.dl { background: var(--slate); color: var(--slate-ink); padding: clamp(64px, 9vw, 112px) 0; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 56px); margin-top: 44px; align-items: start; }
.dl-col h3 { font: 700 1.5rem/1.2 var(--display); }
.req { margin-top: 4px; color: var(--slate-muted); font-size: .92rem; min-height: 1.5em; }
.store { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 16px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; text-align: center; line-height: 1.3; }
.store:hover { background: var(--mint); }
.store-apk { background: var(--green-btn); color: #fff; }
.store-apk:hover { background: var(--green-ink); }
.store.is-soon { background: transparent; color: var(--slate-muted); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16); cursor: default; font-weight: 500; }
.apk-info { margin-top: 14px; color: var(--slate-muted); font-size: .88rem; }
.apk-info p + p { margin-top: 6px; }
.sha code { display: block; margin-top: 2px; font-size: .74rem; word-break: break-all; color: var(--slate-ink); opacity: .8; }
.qr { text-align: center; max-width: 160px; }
.qr img { background: #fff; padding: 10px; border-radius: 16px; margin: 0 auto; }
.qr figcaption { margin-top: 10px; font-size: .82rem; color: var(--slate-muted); }

.foot { background: var(--slate); color: var(--slate-muted); border-top: 1px solid rgba(255, 255, 255, .08); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: .9rem; }
.foot-in { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.foot-brand { display: flex; align-items: center; gap: 8px; color: var(--slate-ink); font-weight: 600; }
.foot-brand img { border-radius: 6px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-right: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--slate-ink); }

/* ───── narrow screens ───── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { display: none; }
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .dl-grid { grid-template-columns: 1fr 1fr; }
  .qr { display: none; }
}
@media (max-width: 520px) {
  .highlights { grid-template-columns: 1fr; gap: 12px; }
  .highlights li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 18px; }
  .hl-ic { grid-row: span 2; margin: 0; }
  .highlights p { margin-top: 4px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .bar-in { gap: 10px; height: 58px; }
  .brand span { font-size: 1.1rem; }
  .lang select { padding: 9px 28px 9px 12px; font-size: .85rem; }
  .btn-small { display: none; }
  .split, .split-flip { grid-template-columns: 1fr; }
  .split-flip > figure { order: 0; }
  .phone { max-width: 300px; margin: 0 auto; border-radius: 38px; }
  .phone img { border-radius: 30px; }
  .dl-grid { grid-template-columns: 1fr; }
  .pill { min-width: 0; flex: 1; padding: 10px 14px 10px 10px; border-radius: 18px; gap: 10px; }
  .pill svg { width: 34px; height: 34px; padding: 8px; }
  .plans th, .plans td { padding: 14px 8px; font-size: .94rem; }
}

/* German compound words must wrap inside the existing cards and comparison columns. */
html[lang="de"] :is(h1,h2,h3,.plans th,.plans td,.doc p,.doc li,.doc summary){hyphens:auto;overflow-wrap:anywhere}
html[lang="de"] .plans{table-layout:fixed}

/* Consistent language popup across tablet, phone and desktop browsers. */
.bar .language-picker { position: relative; display: flex; align-items: center; flex: none; margin: 0; }
.language-picker select[hidden] { display: none; }
.language-picker-button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 132px; height: 38px; padding: 0 14px; border: 1px solid rgba(232,237,234,.18);
  border-radius: 999px; background: var(--slate-2); color: var(--slate-ink); font: 500 14px/1 var(--text); cursor: pointer;
}
.language-picker-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-picker-button svg { flex: none; }
.language-picker-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  width: 208px; max-width: calc(100vw - 32px); max-height: min(432px,calc(100dvh - 100px));
  overflow-y: auto; overscroll-behavior: contain; padding: 6px;
  border: 1px solid #dce2de; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 12px 32px #15181c29;
}
.language-picker-menu[hidden] { display: none; }
.language-picker-option {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px;
  padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  text-align: left; font: 500 16px/1.4 var(--text); cursor: pointer;
}
.language-picker-option:hover { background: var(--paper); }
.language-picker-option[aria-selected="true"] { background: var(--mint); color: var(--green-ink); }
.language-picker-option[aria-selected="true"]::after { content: '✓'; margin-left: 12px; }
.language-picker-option:focus-visible { outline-offset: -3px; }
@media(max-width:720px){.language-picker-button{width:112px;height:44px;gap:8px;padding:0 10px}}
