/* The public landing page (/), from the canvas's Landing artboard. A full-width
   page, not the phone shell; tokens only, like app.css. */

.landing { display: grid; background: var(--bg); }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left)); }
.band { background: var(--surface); }
.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); padding-block: var(--space-5); }
.brand-link { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-link .brand-logo { height: 34px; }
.brand-link:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.site-lang { position: relative; }
.site-lang > summary { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--space-3); color: var(--muted); font-weight: 600; cursor: pointer; list-style: none; }
.site-lang > summary::-webkit-details-marker { display: none; }
.site-lang > summary::after { content: "▾"; margin-inline-start: 6px; }
/* Open, a clear layer over the whole page belongs to the summary: a tap anywhere outside the
   menu taps the summary and closes it, with no script (the page has none). The menu sits above. */
.site-lang[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 9; cursor: default; }
.site-lang-menu { position: absolute; inset-inline-end: 0; top: 100%; z-index: 10; display: grid; min-width: 11rem; max-width: calc(100vw - 2 * var(--space-4)); padding: var(--space-1); border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--bg); box-shadow: var(--shadow); }
.site-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 var(--space-3); color: var(--muted); font-weight: 600; text-decoration: none; }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 48px 72px; }
.hero-copy { flex: 999 1 460px; min-width: 0; display: grid; gap: var(--space-5); }
.pill { justify-self: start; padding: 6px var(--space-3); border-radius: var(--radius-pill); background: var(--surface); font-size: var(--text-s); font-weight: 700; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 7vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 span { color: var(--accent); }
.lede { max-width: 34em; font-size: 19px; line-height: 1.5; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.small { font-size: 14px; color: var(--muted); }

.hero-phone { flex: 1 1 320px; display: flex; justify-content: center; }
.phone { width: min(320px, 100%); border-radius: 36px; border: 10px solid var(--strong); background: var(--bg); overflow: hidden; display: grid; gap: 14px; padding: 20px 16px 16px; }
.phone .stats { gap: var(--space-2); }
.phone .stat { padding: 10px; border-radius: 12px; }
.phone .stat .value { font-size: 16px; }
.phone .speak { padding: var(--space-4) var(--space-2); gap: 10px; }
.phone .mic { width: 76px; height: 76px; margin: 0; box-shadow: none; }
.phone .row { padding: 10px var(--space-3); }
.phone .title { font-size: 12px; }
.phone .meta { font-size: 10px; }

.section { padding-block: 72px; display: grid; gap: var(--space-6); }
.section h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -0.01em; }
.section .lede { font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-4); }
.card-step, .card-say, .shape { display: grid; align-content: start; gap: var(--space-3); padding: 24px; border-radius: var(--radius-l); }
.card-step { background: var(--bg); }
.card-step .num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.card-step h3, .shape h3 { font-size: 20px; font-weight: 700; }
.card-step p, .promise p, .shape p { font-size: var(--text-m); line-height: 1.5; color: var(--muted); }
.warn-word { color: var(--warn-ink); font-weight: 700; }
.card-say { border: 1px solid var(--border); }
.card-say .kind { font-size: var(--text-s); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.card-say .kind.in { color: var(--accent); }
.card-say .kind.out { color: var(--warn-ink); }
.card-say .said { font-size: 18px; font-weight: 700; }
.card-say .goes { color: var(--muted); }
.promise { display: grid; align-content: start; gap: var(--space-2); }
.promise h3 { font-size: 18px; font-weight: 700; }
.shape { border: 1px solid var(--border); }
.shape.strong { background: var(--strong); color: var(--strong-ink); border-color: var(--strong); }
.shape.strong p { color: var(--muted-on-strong); }

.final { padding-bottom: 72px; }
.final-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-5); padding: 48px 32px; border-radius: 28px; background: var(--accent); color: var(--accent-ink); }
.final-card div { flex: 999 1 360px; min-width: 0; display: grid; gap: var(--space-2); }
.final-card h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; }
.final-card p { color: var(--on-accent-muted); font-size: var(--text-l); }
.btn.on-accent { background: var(--bg); color: var(--accent-hover); }
.btn.on-accent:hover { background: var(--surface); color: var(--accent-hover); }

.site-foot { border-top: 1px solid var(--border); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-5); font-size: 14px; color: var(--muted); }
.site-foot strong { color: var(--ink); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.phone .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* On a phone: the logo, the language and Sign in on one row, Sign in at the top right; the
   language menu hangs from the right, on the screen (its max-width) */
@media (max-width: 560px) {
  .site-nav a[href^="#"] { display: none; }
  .site-head { flex-wrap: nowrap; gap: var(--space-2); padding-block: var(--space-4); }
  .brand-link { min-width: 0; flex-shrink: 1; }
  .brand-link .brand-logo { height: 28px; }
  .site-nav { flex-wrap: nowrap; gap: var(--space-1); flex-shrink: 0; }
  .site-lang > summary { padding: 0 var(--space-2); }
  .site-lang > summary { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: var(--touch); }
  .site-nav .btn { padding-inline: var(--space-3); white-space: nowrap; }
}
