/* mumle.app — one stylesheet for every page.
   Colours are Mumle's own AppTheme tokens (Mumle/Design/AppTheme.swift in the app repo),
   so the site looks like the app. No web fonts, no external resources.
   Light only for now (HH 2026-11-22). The dark tokens and the <picture> sources for the
   *-dark.svg wordmarks were removed in the commit "Turn off dark mode for now"; restore
   them from there when dark mode comes back. */

:root {
  --bg: #F5F1EA;          /* detailSurface */
  --surface: #FFFCF8;     /* panelSurface */
  --chrome: #ECE4D8;      /* sidebarSurface */
  --ink: #2B241E;
  --muted: #7A6D61;       /* appMuted */
  --accent: #D97757;      /* appAccent */
  --accent-soft: #F4E3DA; /* appAccentSoft */
  --plus: #4C6B8D;        /* statusInfo, the Plus blue */
  --plus-soft: rgba(76, 107, 141, 0.10);
  --border: rgba(0, 0, 0, 0.12);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header: wordmark home link on the left, language switch on the right. */
.site-header { padding: 20px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* The app icon is the home button on every page (HH 2026-11-22); the wordmark is in the front
   pages' word entry. 44 points is also Apple's smallest comfortable tap target. */
.home { display: block; border-radius: 10px; }
.home img { display: block; width: 44px; height: 44px; }
.lang {
  font-size: 15px; color: var(--ink); text-decoration: none;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  white-space: nowrap;
}
.lang:hover { border-color: var(--accent); }

/* Hero */
/* Text first, then the screenshot across the full width, so the app is large enough to read
   (HH 2026-11-22: the screenshots needed more room than a half-width column gave them). */
.hero { padding: 40px 0 24px; display: grid; gap: 36px; }
@media (min-width: 880px) { .hero { padding-top: 56px; } }
.hero-text { max-width: 44em; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 16px; font-weight: 700; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.store-soon {
  display: inline-block; padding: 11px 18px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px;
}
.store .note { font-size: 15px; color: var(--muted); }

/* The soft line from the iPhone recording screen, on the front pages and the 404 page. Its three
   paths are drawn still in the HTML; /assets/mumle-wave.js makes them move. */
.mumle-wave { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; overflow: visible; }
.mumle-wave path { fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }

/* The word: the dictionary vignette from the iPhone welcome screen (OnboardingWelcomeStep in the
   app repo) — the word, its pronunciation in a quiet serif, and the gloss in italics. */
/* Opens the hero, above the Mac screenshot; the headline and text follow under it. */
.word { text-align: center; padding: 8px 0; }
.word .mumle-wave { margin-bottom: 18px; }
.word-entry { margin: 0; font-size: 22px; line-height: 1.3; }
/* The word is the wordmark itself, on its own line, with the pronunciation under it — as in the app. */
.word-entry dfn { display: block; font-style: normal; margin-bottom: 4px; }
.word-entry dfn img { display: block; height: 48px; width: auto; margin: 0 auto; }
.word-ipa { font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif; font-weight: 700; color: var(--muted); font-size: 18px; }
.word-pos { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 8px; letter-spacing: 0.02em; }
.word-gloss { font-family: ui-serif, "New York", Georgia, serif; font-style: italic; font-size: 19px; color: var(--muted); margin: 4px 0 16px; }
.word-note { max-width: 30em; margin: 0 auto; }

/* Sections */
section { padding: 40px 0; }
section + section { border-top: 1px solid var(--border); }
h2 { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.005em; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }

/* Private and cloud side by side, equal weight: that is the point of the section. */
.choice { display: grid; gap: 16px; }
@media (min-width: 720px) { .choice { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.card .kicker { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }

/* Same idea as the hero: the text, then the Mac and iPhone pair at full width. On wide
   screens the two short text blocks sit side by side so the section does not grow tall. */
.split { display: grid; gap: 32px; }
@media (min-width: 880px) {
  .split > div:first-child { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .split > div:first-child > :nth-child(1) { grid-area: 1 / 1; }
  .split > div:first-child > :nth-child(2) { grid-area: 2 / 1; }
  .split > div:first-child > :nth-child(3) { grid-area: 1 / 2; margin-top: 0 !important; }
  .split > div:first-child > :nth-child(4) { grid-area: 2 / 2; }
}

/* A Mac with an iPhone standing in front of it, drawn in CSS so real screenshots drop into
   the two .screen boxes later. Sizes are in container units (cqw) so the pair keeps its
   proportions at every width. The frames are dark graphite, like the real devices. */
.devices { container-type: inline-size; position: relative; padding-bottom: 3cqw; }
.devices .screen {
  background: var(--surface); color: var(--muted); font-size: clamp(9px, 2.2cqw, 14px); line-height: 1.4;
  display: grid; place-items: center; text-align: center; padding: 8px; overflow: hidden;
}
.mac { width: 80cqw; margin: 0 5cqw 0 auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18)); }
.mac-lid {
  background: #1d1d1f; padding: 1.4cqw 1.4cqw 2.2cqw; border-radius: 2cqw 2cqw 0.6cqw 0.6cqw;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.mac-lid .screen { aspect-ratio: 16 / 10; border-radius: 0.5cqw; }
/* A real screenshot fills its screen edge to edge; the placeholder text and padding go. */
.devices .screen:has(img) { padding: 0; }
.devices .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mac-base {
  position: relative; height: 1.8cqw; width: 92cqw; margin-left: -6cqw;
  background: linear-gradient(#e3e3e5, #b9b9bd 55%, #8e8e93); border-radius: 0.3cqw 0.3cqw 1.6cqw 1.6cqw / 0.3cqw 0.3cqw 1.2cqw 1.2cqw;
}
.mac-base::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 14cqw; height: 0.7cqw; transform: translateX(-50%);
  background: #a1a1a6; border-radius: 0 0 0.8cqw 0.8cqw;
}
/* The hero shows the Mac alone, centred, with the base spanning the full width. */
.devices.solo { padding-bottom: 0; }
.devices.solo .mac { width: 88cqw; margin: 0 auto; }
.devices.solo .mac-base { width: 100cqw; }
.iphone {
  position: absolute; left: 0; bottom: 0; width: 25cqw;
  background: #1d1d1f; padding: 1cqw; border-radius: 4.4cqw;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10) inset, 0 0 0 0.35cqw #3a3a3c, 0 14px 30px rgba(0, 0, 0, 0.30);
}
.iphone .screen { position: relative; aspect-ratio: 9 / 19.5; border-radius: 3.5cqw; }
.iphone .screen::before {
  content: ""; position: absolute; top: 1.2cqw; left: 50%; width: 7.5cqw; height: 2.1cqw; transform: translateX(-50%);
  background: #000; border-radius: 999px;
}

/* Mumle and Mumle Plus */
.plans { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.plan.plus { border-color: var(--plus); box-shadow: 0 0 0 1px var(--plus) inset; }
.plan .mark { display: block; height: 26px; width: auto; margin: 0 0 14px; }
.plan ul { margin: 0 0 14px; padding-left: 20px; }
.plan li { margin-bottom: 4px; }
.plan .price { font-weight: 600; margin: 0; }
.plan .price span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

/* Text pages (privacy, support, terms) */
.page { max-width: 720px; padding: 24px 0 48px; }
.page h1 { font-size: clamp(28px, 4.4vw, 38px); line-height: 1.15; margin: 8px 0 8px; }
.page h2 { font-size: 21px; margin: 32px 0 8px; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.summary ul { margin: 6px 0 0; padding-left: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
th { font-weight: 600; }
/* On a phone a four-column table scrolls sideways and hides its last column, so each row
   becomes a small block with the column name in front of every value. */
@media (max-width: 600px) {
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack table, .stack tbody, .stack tr, .stack td { display: block; }
  .stack tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .stack td { border: 0; padding: 2px 0; }
  .stack td::before { content: attr(data-label) ": "; font-weight: 600; }
  .stack td:first-child { font-weight: 600; }
  .stack td:first-child::before { content: none; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 15px; color: var(--muted); text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 10px; }
.site-footer a { color: var(--ink); }
.site-footer a[aria-current="page"] { font-weight: 600; text-decoration: none; }

/* The 404 page: the soft line from the app's recording screen, then the message. The page holds
   it in Norwegian and English; a script in its head sets data-lang on <html>, and the other
   language is hidden. Without the script both show, the English one set apart below. */
.lost { max-width: 640px; margin: 0 auto; padding: 32px 0 56px; text-align: center; }
.lost .mumle-wave { margin-bottom: 20px; }
.lost-code { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 6px; }
.lost h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 12px; }
.lost .lead { font-size: 19px; color: var(--muted); margin: 0 auto 24px; max-width: 30em; }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; }
.button {
  display: inline-block; padding: 11px 20px; border-radius: 12px;
  /* The accent darkened a little: white on the plain accent is only about 3:1, below the 4.5:1
     that text of this size needs. */
  background: color-mix(in srgb, var(--accent) 80%, #000); color: #fff; font-weight: 600; text-decoration: none;
}
.button:hover { background: color-mix(in srgb, var(--accent) 70%, #000); }
.lost-other { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
html[data-lang] .lost-other { margin-top: 0; padding-top: 0; border-top: 0; }
html[data-lang="nb"] .lost-en, html[data-lang="en"] .lost-nb { display: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Simulator screenshots already carry the Dynamic Island, so the drawn one steps aside. */
.iphone .screen:has(img)::before { display: none; }
