/* studcalc.app — Ruban direction: paper, ink, tape-measure yellow. Allo Sharp (SIL OFL 1.1), self-hosted. */
@font-face { font-family: "Allo Sharp"; src: url("/fonts/AlloSharp-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Allo Sharp"; src: url("/fonts/AlloSharp-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Allo Sharp"; src: url("/fonts/AlloSharp-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Allo Sharp"; src: url("/fonts/AlloSharp-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --paper: #F4F3EF; --ink: #15171A; --tape: #FFC629; --night: #15171A; --keypad: #1C1F24;
  --card: #FFFFFF; --muted: #5B5F66; --line: #E6E4DE; --soft: #C9CCD1; --ok: #1F8A47; --bad: #B4410C;
  --ic-ink: #15171A; --ic-yellow: #FFC629; --ic-light: #F4F3EF; --ic-on-yellow: #15171A; --ic-side: #4A4E55;
  --input: #FFFFFF; --font: "Allo Sharp", -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111316; --ink: #F4F3EF; --card: #1C1F24; --muted: #A3A7AE; --line: #2E323A; --input: #15171A; --ok: #4CC27A; --bad: #FF8A5B;
    --ic-ink: #F4F3EF; --ic-light: #1C1F24; --ic-on-yellow: #1C1F24; --ic-side: #A9ADB4; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--font); font-variant-numeric: tabular-nums; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--tape); color: #15171A; padding: 8px 12px; z-index: 9; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 0; font: 700 17px var(--font); letter-spacing: 0.03em; text-decoration: none; cursor: pointer; }
.btn--tape { background: var(--tape); color: #15171A; }
.btn--ink { background: #15171A; color: var(--tape); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 15px; border-radius: 10px; }
.btn--lg { font-size: 19px; padding: 14px 22px; }
@media (prefers-color-scheme: dark) { .btn--ink { background: var(--tape); color: #15171A; } }

/* Header */
.top { background: var(--night); color: #F4F3EF; }
.top__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 54px; letter-spacing: 0.01em; line-height: 1; }
.brand__word { display: inline-flex; align-items: baseline; line-height: 1; }
.brand__t { height: 0.74em; width: auto; margin: 0 0.02em; }
.top__links { display: flex; flex-wrap: wrap; gap: 4px 22px; flex: 1 1 auto; font-weight: 600; }
.top__links a { text-decoration: none; padding: 6px 0; }
.top__links a:hover { color: var(--tape); }
@media (max-width: 640px) { .top__links { order: 3; flex-basis: 100%; font-size: 15px; gap: 4px 18px; } .top__nav .btn { margin-left: auto; } }

/* Hero */
.hero { background: var(--night); color: #F4F3EF; }
.hero__home, .hero__calc { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.hero__calc { align-items: flex-start; padding-top: 24px; padding-bottom: 40px; }
.hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.4vw, 64px); }
.hero--calc h1 { font-size: clamp(34px, 4.6vw, 56px); }
.kicker, .trust { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: 0.12em; color: var(--tape); }
.lede, .answer { margin: 0; font-size: 20px; color: #C9CCD1; max-width: 34em; }
.answer { font-size: 19px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: #C9CCD1; font-size: 15px; }
.hero--plain .wrap { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.hero--plain h1 { margin: 0; }
.hero--plain .lede a { color: var(--tape); }
.crumbs { font-size: 14px; color: #C9CCD1; } .crumbs a { color: #F4F3EF; }
.disclose { margin: 0; font-size: 15px; color: #C9CCD1; }

/* Calculator card */
.calc { flex: 1 1 420px; min-width: 0; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.25); }
.calc__kicker { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: 0.1em; color: var(--muted); }
.calc__label { font-size: 14px; color: var(--muted); font-weight: 600; }
.calc__expr { font: 700 26px var(--font); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; background: var(--input); color: var(--ink); width: 100%; }
.calc__big { font-weight: 800; font-size: clamp(40px, 9vw, 56px); line-height: 1; text-align: right; overflow-wrap: anywhere; }
.calc__sub { margin: 0; text-align: right; color: var(--muted); font-size: 15px; font-weight: 600; }
.calc__hint { margin: 0; font-size: 14px; color: var(--muted); }
.calc__error { margin: 0; color: var(--bad); font-weight: 600; font-size: 15px; }
.tape { height: 26px; border-radius: 4px; background-color: var(--tape); background-image: repeating-linear-gradient(90deg, #15171A 0 1.5px, transparent 1.5px 10px), repeating-linear-gradient(90deg, #15171A 0 2px, transparent 2px 80px); background-size: 100% 8px, 100% 15px; background-repeat: no-repeat; }
.calc__fields { display: grid; gap: 8px; margin: 0; }
.field { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 10px; background: var(--card); border-radius: 12px; padding: 6px 6px 6px 14px; }
.field[hidden] { display: none; }
.field label { font-weight: 600; font-size: 16px; }
.field__in { display: flex; align-items: center; gap: 6px; }
.field input, .field select, .calc__units select { width: 100%; min-height: 44px; font: 700 18px var(--font); color: var(--ink); background: var(--input); border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 10px; text-align: right; }
.field select { text-align: left; }
.field input[aria-invalid="true"] { border-color: var(--bad); color: var(--bad); }
.field__unit { color: var(--muted); font-weight: 600; font-size: 15px; min-width: 1.4em; }
.calc__results { margin: 0; background: var(--card); border-radius: 14px; overflow: hidden; }
.res { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.res:first-child { border-top: 0; }
.res dt { font-weight: 600; } .res dd { margin: 0; font-weight: 700; text-align: right; }
.res--main { background: var(--tape); color: #15171A; padding: 12px 14px; }
.res--main dd { font-weight: 800; font-size: 24px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks li { background: var(--card); border-radius: 999px; padding: 8px 12px 8px 34px; font-weight: 600; font-size: 14px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--ok); }
.checks li::after { content: "✓"; position: absolute; left: 14px; top: 50%; margin-top: -11px; color: #fff; font-size: 13px; font-weight: 800; }
.checks li.bad::before { background: var(--bad); } .checks li.bad::after { content: "!"; left: 17px; }
.calc__units { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); font-weight: 600; }
.calc__units label { display: flex; align-items: center; gap: 8px; }
.calc__units select { width: auto; min-height: 36px; font-size: 15px; text-align: left; }
.calc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.calc__actions .btn { flex: 1 1 160px; min-height: 44px; font-size: 15px; }

/* Home blocks */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-top: 48px; }
.why__card { background: var(--card); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.why__card strong { font-weight: 800; font-size: 21px; line-height: 1.2; margin-top: 8px; } .why__card > span:last-child { color: var(--muted); font-size: 16px; }
.why__card a { font-weight: 700; color: var(--ink); text-decoration-color: var(--tape); text-decoration-thickness: 2px; }
/* Icon tile: icons sit in a rounded tile instead of floating */
.ic-tile { display: inline-grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 18px; background: rgba(255,198,41,0.18); box-shadow: inset 0 0 0 1px rgba(255,198,41,0.45); }
.ic-tile--lg { width: 76px; height: 76px; border-radius: 22px; margin-bottom: 16px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding-top: 44px; }
.shots figure { margin: 0; text-align: center; color: var(--muted); font-weight: 600; font-size: 15px; }
.shots img { width: 100%; max-width: 280px; height: auto; border-radius: 32px; box-shadow: 0 12px 40px rgba(0,0,0,0.18); }
.trades { padding-top: 44px; padding-bottom: 20px; }
.trades h2 { font-size: 40px; margin: 0 0 18px; }
.trades__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.trade { background: var(--card); border-radius: 16px; padding: 0 18px 8px; display: flex; flex-direction: column; overflow: hidden; }
.trade h3 { margin: 0 0 6px; font-size: 22px; }
.trade a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.trade a:last-child { border-bottom: 0; } .trade a:hover span { text-decoration: underline; }
.trade small { color: var(--muted); font-size: 14px; }

/* Article */
.prose { max-width: 820px; padding-top: 36px; padding-bottom: 36px; }
.prose--wide { max-width: 1200px; }
.prose h2 { font-size: 30px; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink); }
.example { background: var(--card); border-left: 6px solid var(--tape); padding: 14px 16px; border-radius: 6px; }
.diagram { margin: 0; background: var(--keypad); border-radius: 22px; padding: 14px; }
.diagram svg { display: block; width: 100%; height: auto; font: 600 12px var(--font); }
.diagram text { fill: #F4F3EF; }
.dg-line { fill: none; stroke: var(--tape); stroke-width: 3; stroke-linejoin: round; }
.dg-dash { stroke: #6B7079; stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.dg-fill { fill: rgba(255,198,41,0.18); stroke: var(--tape); stroke-width: 3; stroke-linejoin: round; }
.dg-tape { fill: var(--tape); } .dg-tick { stroke: #15171A; stroke-width: 1.5; } .dg-mark { stroke: #FF5A36; stroke-width: 2; }
.ref { margin: 24px 0; overflow-x: auto; }
.ref table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 12px; overflow: hidden; font-size: 16px; }
.ref caption { text-align: left; font-weight: 800; font-size: 19px; padding: 0 0 10px; }
.ref th, .ref td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.ref thead th { background: #15171A; color: #F4F3EF; font-size: 14px; border-top: 0; }
.ref tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.ref--wide table { min-width: 860px; }
.ref figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
details { background: var(--card); border-radius: 12px; padding: 4px 16px; margin: 8px 0; }
summary { font-weight: 700; cursor: pointer; padding: 10px 0; }
details p { margin: 0 0 12px; }
.app-note { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: var(--card); border-radius: 16px; padding: 16px; margin: 32px 0; }
.app-note img { border-radius: 14px; }
.app-note div { flex: 1 1 260px; display: flex; flex-direction: column; } .app-note span { color: var(--muted); font-size: 15px; }
.related { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.related a { display: flex; flex-direction: column; background: var(--card); border-radius: 12px; padding: 14px; text-decoration: none; }
.related span { color: var(--muted); font-size: 14px; }
.method-line { font-size: 14px; color: var(--muted); margin-top: 32px; }

/* Bands and footer */
.band { background: var(--tape); color: #15171A; }
.band__in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.band h2 { margin: 0; font-size: clamp(30px, 4vw, 46px); flex: 1 1 420px; }
.band__side { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; }
.band .btn--ink { background: #15171A; color: var(--tape); }
.foot { padding: 36px 0 28px; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.foot h2 { font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.foot a { text-decoration: none; color: var(--muted); } .foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__note { font-size: 14px; color: var(--muted); margin-top: 24px; }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .calc { padding: 14px; border-radius: 14px; }
  .field { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding-left: 12px; }
  .hero__calc { gap: 18px; padding-top: 18px; }
  .answer { font-size: 17px; }
  .prose h2 { font-size: 26px; }
  /* Phone: the result reads first, like a calculator display, so it is visible without scrolling. */
  .calc[data-type="form"] .calc__results { order: -1; }
  .calc[data-type="form"] .tape { order: -1; height: 18px; }
  .hero--calc .trust { display: none; }
  .hero--calc h1 { font-size: 32px; }
  .calc__fields { gap: 0; background: var(--card); border-radius: 14px; overflow: hidden; }
  .field { border-radius: 0; padding: 4px 6px 4px 12px; border-top: 1px solid var(--line); }
  .field:first-child { border-top: 0; }
  .field input, .field select { min-height: 40px; font-size: 17px; border-color: transparent; background: transparent; }
  .field input:focus { border-color: var(--ink); }
  .res { padding: 8px 12px; }
  .top__nav { padding-top: 8px; padding-bottom: 8px; }
}

/* Bubble level */
.dg-vial { fill: #2E323A; stroke: #3D424B; stroke-width: 2; } .dg-bubble { fill: var(--tape); } .dg-tick-light { stroke: #F4F3EF; stroke-width: 2; }
.level { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.level__read { font-weight: 800; font-size: clamp(48px, 12vw, 72px); line-height: 1; }
.level__read.is-level { color: var(--ok); }
.level__sub { margin: 0; font-weight: 700; color: var(--muted); }
.vial { position: relative; width: min(240px, 70vw); aspect-ratio: 1; border-radius: 50%; background: var(--keypad); box-shadow: inset 0 0 0 2px #3D424B; }
.vial::before, .vial::after { content: ""; position: absolute; background: #3D424B; }
.vial::before { left: 50%; top: 0; bottom: 0; width: 1.5px; } .vial::after { top: 50%; left: 0; right: 0; height: 1.5px; }
.vial__ring { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(244,243,239,0.8); z-index: 1; }
.vial__bubble { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; background: var(--tape); z-index: 2; transition: transform 0.12s linear, background 0.2s; }
.vial--tube { aspect-ratio: auto; width: 100%; height: 60px; border-radius: 30px; }
.vial--tube::before, .vial--tube::after { display: none; }
.vial--tube .vial__ring { width: 96px; height: 50px; margin: -25px -48px; border-radius: 0; box-shadow: inset 2px 0 0 rgba(244,243,239,0.8), inset -2px 0 0 rgba(244,243,239,0.8); }
.vial--tube .vial__bubble { width: 84px; height: 38px; margin: -19px -42px; border-radius: 19px; }
.is-level .vial__bubble { background: var(--ok); }
.level__face { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.level__convert { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }

[hidden] { display: none !important; }

/* Icons (two-tone set shared with the app). The header and heroes are always dark: dark-mode icon colours there. */
.ic { flex: none; display: inline-block; vertical-align: middle; }
.top, .hero { --ic-ink: #F4F3EF; --ic-light: #1C1F24; --ic-on-yellow: #1C1F24; --ic-side: #A9ADB4; }
.top__links a { display: inline-flex; align-items: center; gap: 7px; }
.trade a { align-items: center; justify-content: flex-start; gap: 12px; }
.trade a small { margin-left: auto; }
.related a { gap: 4px; }
.related .ic { margin-bottom: 6px; }
.h1-ic { display: flex; align-items: center; gap: 14px; }
@media (max-width: 520px) { .h1-ic .ic { width: 36px; height: 36px; } }

.btn--ic { gap: 8px; }
.calc__actions .btn--ic { flex: 1 1 120px; }
.trade h3 { display: flex; align-items: center; gap: 10px; }
.calc__kicker--ic { display: flex; align-items: center; gap: 8px; }
.btn--tape .ic { --ic-ink: #15171A; --ic-light: #F4F3EF; --ic-on-yellow: #15171A; --ic-yellow: #F4F3EF; }
/* The calculator card sits in the dark hero but has the page's own ground: give it the page's icon colours back. */
.calc { --ic-ink: #15171A; --ic-light: #F4F3EF; --ic-on-yellow: #15171A; --ic-side: #4A4E55; }
@media (prefers-color-scheme: dark) { .calc { --ic-ink: #F4F3EF; --ic-light: #1C1F24; --ic-on-yellow: #1C1F24; --ic-side: #A9ADB4; } }
.calc .btn--tape .ic { --ic-ink: #15171A; --ic-light: #F4F3EF; --ic-on-yellow: #15171A; --ic-yellow: #F4F3EF; }

/* Home: app presentation */
.hero__shots { flex: 1 1 380px; min-width: 0; }
.hero__shots .shots-row { justify-content: center; }
.facts { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.facts li { background: rgba(244,243,239,0.08); border-radius: 10px; padding: 8px 12px; font-size: 15px; color: #C9CCD1; display: flex; flex-direction: column; }
.facts strong { color: var(--tape); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.shots-row { margin: 0; display: flex; gap: 16px; align-items: flex-end; }
/* iPhone mockup: black frame, titanium edge, Dynamic Island, side buttons */
.device { position: relative; display: block; flex: none; width: min(240px, 44vw); aspect-ratio: 1 / 2.099; background: #0B0C0E; border-radius: 17% / 8.1%; box-shadow: 0 0 0 1.5px #4A4E56, inset 0 0 0 1px #2A2D33, 0 22px 50px rgba(0,0,0,0.28); }
.device::after { content: ""; position: absolute; left: 50%; top: 2.9%; width: 30%; height: 3.4%; transform: translateX(-50%); background: #000; border-radius: 999px; z-index: 1; }
.device::before { content: ""; position: absolute; right: -1.2%; top: 25%; width: 1.2%; height: 11%; background: #3A3D43; border-radius: 0 2px 2px 0; }
.shot { position: absolute; left: 3.2%; top: 1.525%; width: 93.6%; height: auto; border-radius: 13.8% / 6.35%; }
.features-list { display: flex; flex-direction: column; gap: 48px; padding-top: 56px; }
.feature { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; }
.feature--flip { flex-direction: row-reverse; }
.feature__text { flex: 1 1 380px; min-width: 0; }
.feature__text h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 12px; }
.feature__text p { margin: 0 0 12px; font-size: 18px; }
.feature .shots-row { flex: 0 1 auto; margin: 0 auto; }
.h2-ic { display: flex; align-items: center; gap: 12px; }
.more { font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--tape); }
.try { padding-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.try h2 { font-size: 36px; margin: 0; }
.try .calc { max-width: 640px; box-shadow: none; background: var(--card); }
.trade .trade__h { margin: 0 -18px 6px; padding: 14px 18px; font-size: 21px; display: flex; align-items: center; gap: 10px; background: rgba(255,198,41,0.16); border-bottom: 1px solid rgba(255,198,41,0.38); }

/* Content pages and hubs */
.dek { max-width: 46em; }
.updated { margin: 0; font-size: 14px; color: #A9ADB4; }
.hero--plain .h1-ic .ic { flex: none; }
.hero--plain .hero__page { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.hero__page .hero__shots { flex: 0 1 340px; margin: 0 auto; }
.content .shots-row { margin: 24px 0; justify-content: center; flex-wrap: wrap; }
.content h3 { font-size: 21px; margin: 28px 0 8px; }
.content table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: 12px; overflow: hidden; font-size: 15px; }
.content th, .content td { text-align: left; padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.content thead th { background: #15171A; color: #F4F3EF; font-size: 13px; border-top: 0; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.table-wrap table { min-width: 560px; }
.callout { background: var(--card); border-left: 6px solid var(--tape); padding: 12px 16px; border-radius: 6px; margin: 20px 0; }
.callout p { margin: 0; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin: 4px 0; }
.content code { background: var(--card); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.sources { font-size: 15px; }
.hub { padding-top: 32px; padding-bottom: 32px; }
.hub__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.hub__list a { display: flex; flex-direction: column; gap: 4px; background: var(--card); border-radius: 16px; padding: 16px; text-decoration: none; height: 100%; }
.hub__list strong { font-size: 18px; } .hub__list span { color: var(--muted); font-size: 15px; }

/* Embeds */
.embed { padding: 12px; max-width: 720px; margin: 0 auto; }
.embed .calc { box-shadow: none; }
.embed__by { text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 520px) {
  .feature__text p { font-size: 16px; }
  .device { width: min(200px, 44vw); }
  .facts { grid-template-columns: 1fr 1fr; }
}
.hero__shots .shots-row { gap: 4%; }
.hero__shots .shots-row { align-items: flex-start; }
.hero__shots .shots-row { gap: 0; padding: 12px 0 24px; }
.hero__shots .device { width: 48%; max-width: 270px; }
.hero__shots .device:first-child { z-index: 2; transform: rotate(-4deg); box-shadow: 0 0 0 1.5px #4A4E56, inset 0 0 0 1px #2A2D33, 18px 30px 60px rgba(0,0,0,0.55); }
.hero__shots .device + .device { z-index: 1; margin: 64px 0 0 -14%; transform: rotate(5deg); }
.shots-row { max-width: 100%; }
@media (max-width: 520px) {
  .hero--plain .h1-ic { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 32px; }
  .hero--plain .h1-ic .ic { width: 36px; height: 36px; }
  .top__links { gap: 4px 12px; font-size: 14px; }
  .top__links a { gap: 4px; }
  .top__links .ic { width: 16px; height: 16px; }
  .h2-ic { font-size: 26px; }
}
@media (max-width: 520px) {
  .top__links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .top__links::-webkit-scrollbar { display: none; }
}

/* Header: links centred in a light translucent pill */
@media (min-width: 641px) {
  .top__nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .top__nav .brand { justify-self: start; }
  .top__nav .btn { justify-self: end; }
}
.top__links { flex: 0 1 auto; justify-content: center; gap: 2px; padding: 4px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; }
.top__links a { padding: 6px 14px; border-radius: 999px; }
.top__links a:hover { background: rgba(255,255,255,0.08); }
@media (max-width: 640px) { .top__links { justify-content: flex-start; } .top__links a { padding: 5px 10px; } }
@media (max-width: 640px) { .brand { font-size: 44px; } }
@media (max-width: 400px) { .brand { font-size: 38px; } }
