/* The Quiet art direction (as in the Quiet Nordpass app): dark surfaces,
   needle orange, Outfit for headings, Figtree for text. */
@font-face { font-family: Outfit; src: url(fonts/Outfit.ttf) format("truetype"); font-display: swap; font-weight: 100 900; }
@font-face { font-family: Figtree; src: url(fonts/Figtree.ttf) format("truetype"); font-display: swap; font-weight: 300 900; }

:root {
  --surface: #0B0D10; --raised: #14181D; --sunken: #1C2128; --line: #262C34;
  --ink: #F3F4F5; --muted: #A5A7A7; --needle: #FF8A1F; --on-needle: #1A0C00;
  --success: #4CC38A; --caution: #FBBF24; --danger: #F24C4C;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--surface); color: var(--ink);
  font: 16px/1.5 Figtree, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
h1, h2 { font-family: Outfit, Figtree, sans-serif; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { max-width: 34rem; margin: 0 auto; padding: 20px 16px 40px; display: grid; gap: 14px; }
.brand { display: flex; align-items: center; gap: 14px; padding: 8px 2px 6px; }
.logo { border-radius: 12px; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 12px; }
.row { display: flex; align-items: center; justify-content: space-between; }
button {
  font: 600 1rem/1 Figtree, sans-serif; border: 0; border-radius: 14px; padding: 15px 18px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .08s, opacity .15s;
}
button:active { transform: scale(.98); }
button:disabled { opacity: .4; cursor: default; }
.primary { background: var(--needle); color: var(--on-needle); width: 100%; }
.ghost { background: var(--sunken); color: var(--ink); padding: 10px 14px; }
.danger { color: var(--danger); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checks li { padding-left: 26px; position: relative; }
.checks li::before { position: absolute; left: 0; font-weight: 700; }
.checks .ok::before { content: "✓"; color: var(--success); }
.checks .bad::before { content: "✗"; color: var(--danger); }
.checks .warn::before { content: "?"; color: var(--caution); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.sentence { background: var(--sunken); border-radius: 14px; padding: 12px 14px; font-weight: 600; }
.log {
  margin: 0; background: var(--sunken); border-radius: 14px; padding: 12px; max-height: 22rem; overflow: auto;
  font: 12px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; color: var(--ink);
}
.foot { text-align: center; font-size: .9rem; }
.grow { flex: 1; }
.lang { display: flex; gap: 4px; background: var(--sunken); border-radius: 12px; padding: 3px; }
.lang button { padding: 8px 10px; font-size: .85rem; background: transparent; color: var(--muted); border-radius: 9px; }
.lang button[aria-pressed="true"] { background: var(--needle); color: var(--on-needle); }
