/* MEKEN website. Colours and type follow the app's design system
   (Sources/MEKEN/DesignSystem/MKTokens.swift, MKType.swift): Literata for
   headings, Onest for text, the MK light and dark palettes, vermilion brand. */

@font-face { font-family: "Literata"; src: url("/fonts/Literata-36ptMedium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #E9F1F4;
  --sheet: #FFFFFF;
  --card: #F3F7F9;
  --selected: #D6E5EB;
  --ink: #0E2430;
  --ink-2: #3D5560;
  --ink-3: #587380;
  --line: #C9D8DE;
  --accent: #D9361C;
  --accent-text: #B42318;
  --button: #D9361C;
  --brand: #F04126;
  --gold: #E7A93B;
  --ok: #1F7A4D;
  --hero: #0E2430;
  --on-hero: #E8F0F3;
  --on-hero-2: #9FB6BF;
  --shadow: 0 1px 2px rgb(14 36 48 / 6%), 0 12px 40px rgb(14 36 48 / 10%);
  --radius: 16px;
  --radius-lg: 28px;
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B161C;
    --sheet: #111F27;
    --card: #172A33;
    --selected: #1F3641;
    --ink: #E8F0F3;
    --ink-2: #9FB6BF;
    --ink-3: #7F98A2;
    --line: #24404C;
    --accent: #FF5A3C;
    --accent-text: #FF7A5E;
    --ok: #3FBF7F;
    --hero: #17303B;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 48px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }
.eyebrow { font-weight: 600; font-size: 14px; color: var(--accent-text); margin-bottom: 16px; letter-spacing: 0.01em; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 40em; }
.center .lead { margin-left: auto; margin-right: auto; }
.fine { font-size: 14px; color: var(--ink-3); }
.notice { margin-top: 20px; display: inline-block; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--ink); font-size: 15px; }
.placeholder { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1.5px dashed var(--ink-3); font: 500 15px/1.6 var(--sans); color: var(--ink-2); letter-spacing: 0; }
kbd, .key { font-family: var(--sans); }
.key {
  display: inline-block;
  padding: 0.04em 0.28em 0.08em;
  margin: 0 0.04em;
  border-radius: 0.18em;
  background: var(--gold);
  color: #0E2430;
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 0.16em;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: inset 0 -0.06em 0 rgb(14 36 48 / 18%);
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px; border-radius: 12px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.button:active { transform: translateY(1px); }
.button.primary { background: var(--button); color: #fff; }
.button.primary:hover { background: color-mix(in srgb, var(--button) 86%, #000); color: #fff; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--ink); color: var(--ink); }
.button.small { min-height: 38px; padding: 8px 14px; font-size: 15px; border-radius: 10px; }
.button.large { min-height: 54px; padding: 14px 26px; font-size: 17px; border-radius: 14px; }
.button .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.cta-row.center { justify-content: center; }
.link-arrow { font-weight: 600; color: var(--accent-text); text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 20px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.mark { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav a:hover { background: var(--selected); color: var(--ink); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.langs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.langs a { padding: 4px 9px; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.langs a[aria-current] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgb(14 36 48 / 12%); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 22px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 960px) {
  .bar { gap: 12px; }
  .menu-toggle { display: grid; place-items: center; }
  .bar-end { margin-left: auto; }
  .bar-end .langs { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgb(14 36 48 / 12%); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 18px; border-radius: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent); }
  .nav a:hover { background: none; }
}
@media (max-width: 420px) { .brand span { display: none; } }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; font-size: clamp(40px, 5.4vw, 70px); }
.hero .fine { margin-top: 4px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.demo { margin: 0; position: relative; padding-bottom: 36px; }
.demo-window { background: var(--sheet); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.demo-chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.demo-chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.demo-chrome span { margin-left: 10px; }
.demo-thread { padding: 22px 20px 4px; min-height: 76px; }
.bubble { display: inline-block; max-width: 85%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--card); font-size: 15px; color: var(--ink-2); }
.demo-said { margin: 14px 20px 0; min-height: 66px; font-size: 15px; color: var(--ink-3); font-style: normal; }
.said-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.demo-said [data-demo-said] { color: var(--ink-3); }
.demo-field { margin: 12px 16px 18px; padding: 14px 16px; min-height: 84px; border-radius: 14px; border: 1.5px solid var(--line); font-size: 17px; line-height: 1.45; color: var(--ink); transition: border-color .3s; }
.demo[data-phase="listening"] .demo-field { border-color: var(--gold); }
.demo[data-phase="done"] .demo-field { border-color: var(--line); }
.field-text { white-space: pre-wrap; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.18em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-pill {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px;
  border-radius: 999px; background: #0E2430; color: #E8F0F3; box-shadow: 0 10px 30px rgb(14 36 48 / 30%);
}
.demo-pill .mark { width: 22px; height: 22px; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.wave i { width: 3px; height: 6px; border-radius: 2px; background: #9FB6BF; transition: height .2s; }
.demo[data-phase="listening"] .wave i { background: #F04126; animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -.7s !important; } .wave i:nth-child(3) { animation-delay: -.2s !important; }
.wave i:nth-child(4) { animation-delay: -.5s !important; } .wave i:nth-child(5) { animation-delay: -.1s !important; }
.wave i:nth-child(6) { animation-delay: -.6s !important; } .wave i:nth-child(7) { animation-delay: -.3s !important; }
@keyframes wave { 0%, 100% { height: 5px; } 50% { height: 20px; } }
.pill-key kbd { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #E7A93B; color: #0E2430; font-size: 13px; font-weight: 600; transition: transform .15s; }
.demo[data-phase="listening"] .pill-key kbd { transform: translateY(1px); box-shadow: inset 0 2px 0 rgb(14 36 48 / 25%); }
@media (prefers-reduced-motion: reduce) { .caret, .demo[data-phase="listening"] .wave i { animation: none; } }

/* Screens */
.shot-band { padding: 8px 0 clamp(48px, 8vw, 112px); }
.window-frame { border-radius: var(--radius); overflow: hidden; background: var(--sheet); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.window-frame img { width: 100%; }

/* Sections */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section.tight { padding-top: 24px; }
.section.tinted { background: var(--card); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 20px; }
.section.dark { background: var(--hero); color: var(--on-hero); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.section.dark + .section { margin-top: 0; }
.section.dark .eyebrow { color: #FF7A5E; }
.section.dark .lead, .section.dark .fine, .section.dark figcaption { color: var(--on-hero-2); }
.section.dark .ticks li::before { background-color: #FF7A5E; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--sheet); border-radius: var(--radius); padding: 28px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.steps h3 { margin: 18px 0 10px; }
.steps p { color: var(--ink-2); font-size: 16px; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--button); color: #fff; font: 500 22px/1 var(--serif); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.apps { margin-top: 48px; text-align: center; }
.apps > p:first-child { font-weight: 600; margin-bottom: 16px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line); font-size: 15px; font-weight: 500; }

.ticks { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.section.dark .ticks li { color: var(--on-hero); }
.ticks.columns { grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin-top: 56px; }
@media (max-width: 760px) { .ticks.columns { grid-template-columns: 1fr; } }

.languages { padding-top: 0; }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: var(--sheet); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow); }
.lang-grid .lead { margin-top: 20px; }
.hello { display: grid; gap: 4px; font: 500 clamp(44px, 7vw, 92px)/1.05 var(--serif); letter-spacing: -0.03em; }
.hello span:nth-child(1) { color: var(--accent); }
.hello span:nth-child(2) { color: var(--ink); }
.hello span:nth-child(3) { color: var(--ink-3); }
@media (max-width: 860px) { .lang-grid { grid-template-columns: 1fr; } .hello { order: -1; } }

.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(56px, 8vw, 104px); }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font: 500 clamp(26px, 3vw, 36px)/1.15 var(--serif); letter-spacing: -0.015em; margin-bottom: 16px; }
.feature-copy > p { color: var(--ink-2); font-size: 18px; }
.feature-copy h2 { margin-bottom: 8px; }
.wrap.feature { margin-bottom: 0; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-copy { order: 0; } }

.cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(56px, 8vw, 104px); }
.card { background: var(--sheet); border-radius: var(--radius); padding: 26px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); }
.phones figure { margin: 0; }
.phones picture { border-radius: 18px; overflow: hidden; background: var(--sheet); box-shadow: 0 20px 50px rgb(0 0 0 / 35%); }
.phones figcaption { margin-top: 16px; font-size: 15px; }
.phones figcaption b { color: var(--on-hero); font-weight: 600; }
@media (max-width: 760px) {
  .phones { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .phones figure { scroll-snap-align: center; }
}

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--sheet); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { font: 500 30px/1.1 var(--serif); }
.price { font: 500 34px/1.2 var(--serif); margin: 16px 0 4px; min-height: 42px; }
.plan-sub { color: var(--ink-3); font-size: 15px; }
.plan .ticks { margin-top: 20px; }
.plan .ticks li { font-size: 16px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 44em; }
.faq a { color: var(--accent-text); }

/* Final CTA and footer */
.final-cta { padding: clamp(72px, 10vw, 140px) 0; text-align: center; }
.final-cta .mark.big { width: 64px; height: 64px; margin: 0 auto 28px; }
.final-cta .lead { margin: 20px auto 0; }
.site-footer { background: var(--hero); color: var(--on-hero); padding: 64px 0 32px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--on-hero); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 16px; color: var(--on-hero-2); max-width: 22em; font-size: 15px; }
.site-footer h2 { font: 600 14px/1.4 var(--sans); letter-spacing: 0.02em; color: var(--on-hero-2); margin-bottom: 12px; }
.site-footer nav a { display: block; padding: 6px 0; text-decoration: none; color: var(--on-hero); font-size: 15px; }
.site-footer nav a:hover { color: #FF7A5E; }
.footer-end { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(232 240 243 / 14%); font-size: 14px; color: var(--on-hero-2); }
.site-footer .langs { background: transparent; border-color: rgb(232 240 243 / 20%); }
.site-footer .langs a { color: var(--on-hero-2); }
.site-footer .langs a[aria-current] { background: rgb(232 240 243 / 14%); color: var(--on-hero); box-shadow: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } .footer-end { flex-direction: column-reverse; align-items: flex-start; } }

/* Inner pages */
.page-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 20px; }
.install { list-style: none; counter-reset: step; display: grid; gap: 14px; margin-top: 24px; }
.install > li { counter-increment: step; position: relative; background: var(--sheet); border-radius: var(--radius); padding: 22px 24px 22px 76px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.install > li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--card); color: var(--ink); font: 500 20px/1 var(--serif); }
.install > li.attention { border: 2px solid var(--gold); }
.install > li.attention::before { background: var(--gold); color: #0E2430; }
.install h3 { margin-bottom: 6px; }
.install p { color: var(--ink-2); }
.install .fine { margin-top: 12px; }
.substeps { margin: 12px 0 0 20px; display: grid; gap: 6px; color: var(--ink-2); }
.section h2 + .install { margin-top: 24px; }
.wrap.narrow > h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 8px; }
.wrap.narrow > h2 + .ticks { margin-top: 20px; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.platform { background: var(--sheet); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.platform h2 { font-size: 30px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.platform p { color: var(--ink-2); }
.platform .fine { margin-top: 10px; }
.platform.soon { background: transparent; border-style: dashed; }
.badge { font: 600 13px/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: var(--selected); color: var(--ink-2); letter-spacing: 0; }
@media (max-width: 760px) { .platforms { grid-template-columns: 1fr; } .install > li { padding-left: 64px; } .install > li::before { left: 16px; } }

.providers { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 16px; }
.provider { padding: 9px 16px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.provider.soon { color: var(--ink-3); border-style: dashed; background: transparent; }

.code-box { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 10px 10px 10px 20px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--line); }
.code-box code { font: 600 26px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.12em; }
.copy-status { display: block; min-height: 1.4em; margin-top: 8px; font-size: 14px; color: var(--ok); }

.welcome .check { width: 72px; height: 72px; margin: 0 auto 28px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.welcome .check circle { stroke: color-mix(in srgb, var(--ok) 35%, transparent); }

/* Legal */
.legal { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 120px); }
.legal h1 { font-size: clamp(34px, 4.6vw, 52px); margin: 20px 0 12px; }
.draft-flag { display: inline-block; padding: 8px 14px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 28%, transparent); border: 1.5px dashed var(--gold); font-weight: 600; font-size: 15px; }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 48px 0 14px; }
.legal h3 { margin: 24px 0 8px; font-size: 17px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0 22px; display: grid; gap: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; color: var(--ink); }
.legal td { color: var(--ink-2); }
.legal .toc { margin-top: 28px; padding: 20px 24px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); }
.legal .toc ol { margin-left: 20px; display: grid; gap: 4px; }
.legal .todo { background: color-mix(in srgb, var(--gold) 30%, transparent); padding: 0 4px; border-radius: 4px; color: var(--ink); }
@media (max-width: 600px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; } .legal td:first-child { font-weight: 600; color: var(--ink); } }

/* 404 */
.not-found { min-height: 100vh; display: grid; place-items: center; padding: 48px 0; }
.not-found .brand { justify-content: center; margin-bottom: 24px; }
.big-404 { font: 500 clamp(96px, 18vw, 180px)/1 var(--serif); color: var(--accent); letter-spacing: -0.04em; }
.not-found h1, .not-found h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 28px 0 8px; }
.not-found section p { color: var(--ink-2); }
.not-found section a { color: var(--accent-text); }
.not-found .fine { margin-top: 40px; }

/* Spacing fixes after review */
.plans + p { margin-top: 36px; }
.section.dark > .wrap > .fine { margin-top: 28px; }
.feature-copy .ticks + p { margin-top: 28px; }
.section.dark { border-radius: var(--radius-lg); margin: 0 clamp(0px, 1.2vw, 16px); }
@media (max-width: 600px) { .section.dark { border-radius: 20px; margin: 0; } }
.nav-langs { display: none; }
@media (max-width: 960px) { .nav .nav-langs { display: inline-flex; align-self: flex-start; margin-top: 16px; } .nav .nav-langs a { border: 0; padding: 8px 14px; font-size: 15px; } }
