/* MeterForge site styles
   Colours come from the app's own palette (Source/Theme.h in the app repo).
   Dark is the default; the light set below follows the visitor's system setting. */

:root {
  --bg: #0f1013;
  --bg-alt: #131519;
  --panel: #17191e;
  --panel-2: #1e2128;
  --slot: #262a32;
  --line: #353a45;
  --hairline: #2c3039;
  --text: #e6e8ee;
  --text-dim: #9aa0ad;
  --accent: #ff5a1f;
  --accent-ink: #0b0c0f;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --cyan: #36b3c9;
  --green: #7dff8a;
  --amber: #ffc94a;
  --violet: #b07cff;
  --pink: #f07ac0;
  --shot-border: #2c3039;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  --radius: 14px;
  --radius-small: 8px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --container: 1180px;
  --header-h: 64px;
  --gutter: 24px;
  --violet-ink: var(--violet);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfcfd;
    --bg-alt: #eef1f5;
    --panel: #ffffff;
    --panel-2: #eceff3;
    --slot: #e1e5ea;
    --line: #b4bcc8;
    --hairline: #d8dde5;
    --text: #191c22;
    --text-dim: #4d5462;
    --accent: #c7380a;
    --accent-ink: #ffffff;
    --accent-soft: rgba(199, 56, 10, 0.10);
    --cyan: #086d81;
    --green: #137335;
    --amber: #8a5800;
    --violet: #7a45d6;
    --pink: #c02d8a;
    --shot-border: #2c3039;
    --shadow: 0 30px 70px -24px rgba(25, 28, 34, 0.45);
    color-scheme: light;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px); }
html.menu-open, html.lb-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.5rem; font-weight: 750; }
h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius-small);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container-narrow { max-width: 820px; }

.accent { color: var(--accent); }
.cyan { color: var(--cyan); }
.green { color: var(--green); }
.amber { color: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 10px;
  font: 700 1rem/1 var(--font); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 24px -10px var(--accent);
}
@media (hover: hover) { .btn:hover { filter: brightness(1.08); transform: translateY(-1px); } }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.95rem; box-shadow: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled, html.menu-open .site-header { border-bottom-color: var(--hairline); }
html.menu-open .site-header { background: var(--bg); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 2px; list-style: none; }
.site-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--text-dim); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.site-nav a:hover { color: var(--text); background: var(--panel-2); }
.site-nav .nav-cta { display: none; }
.menu-toggle { display: none; }

/* Hero */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 18%, rgba(255, 90, 31, 0.22), transparent 70%),
    radial-gradient(520px 340px at 12% 8%, rgba(54, 179, 201, 0.14), transparent 70%);
}
.hero-copy { position: relative; text-align: center; max-width: 1040px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 24px; padding: 6px 14px 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  font: 600 0.82rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 90, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); }
}
.hero h1 { font-size: clamp(2.1rem, 8.4vw, 4rem); font-weight: 850; letter-spacing: -0.03em; margin: 0 auto 20px; max-width: 980px; text-wrap: balance; }
.lead { font-size: clamp(1.06rem, 2vw, 1.3rem); color: var(--text-dim); max-width: 680px; margin: 0 auto 32px; }

/* Notify form */
.notify-form {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  max-width: 520px; margin: 0 auto;
}
.notify-form input[type="email"] {
  min-width: 0; min-height: 52px; padding: 0 16px;
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font: 16px/1.2 var(--font);
  -webkit-appearance: none; appearance: none;
}
.notify-form input[type="email"]::placeholder { color: var(--text-dim); opacity: 0.85; }
.notify-form input[type="email"]:focus-visible { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
.notify-form input[aria-invalid="true"] { border-color: var(--accent); }
.form-note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 0.95rem; color: var(--text-dim); }
.form-note.is-ok { color: var(--green); font-weight: 600; }
.form-note.is-error { color: var(--accent); font-weight: 600; }
.form-status:empty { margin: 0; }
.ts-slot { grid-column: 1 / -1; }
.ts-slot:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* LCD readout, like the app's transport bar */
.lcd {
  display: inline-grid; grid-template-columns: repeat(4, auto); gap: 0;
  margin: 40px auto 0; list-style: none;
  background: #0a0b0e; border: 1px solid #23262e; border-radius: 12px;
  font-family: var(--mono); text-align: left;
}
.lcd li { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; padding: 10px 20px; border-left: 1px solid #23262e; }
.lcd li:first-child { border-left: 0; }
.lcd-label { grid-column: 1 / -1; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #8b919e; font-weight: 700; }
.lcd-value { font-size: 1.35rem; font-weight: 700; }
.lcd-sub { font-size: 0.85rem; color: #8b919e; }
.lcd .accent { color: #ff5a1f; }
.lcd .cyan { color: #36b3c9; }
.lcd .green { color: #7dff8a; }
.lcd .amber { color: #ffc94a; }

/* Screenshot window */
.hero-shot { position: relative; margin-top: 56px; }
.window {
  margin: 0 auto; max-width: 1100px;
  border-radius: 12px 12px 0 0; overflow: hidden;
  background: #0f1013; border: 1px solid var(--shot-border); border-bottom: 0;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: #1a1c21; border-bottom: 1px solid #2c3039; }
.window-bar span { width: 12px; height: 12px; border-radius: 50%; background: #3a3f4b; }
.window-bar span:nth-child(1) { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-bar em { margin: 0 auto; padding-right: 52px; font: 600 0.85rem var(--font); font-style: normal; color: #8b919e; }


/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--hairline); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head p { color: var(--text-dim); font-size: 1.1rem; text-wrap: pretty; }
.section-head p.eyebrow { color: var(--accent); }
.eyebrow { font: 700 0.85rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center;
  margin-bottom: 104px;
}
.feature-flip .feature-text { order: 2; }
.feature-wide { grid-template-columns: 1fr; gap: 36px; }
.feature-wide .feature-text { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 56px; align-items: end; }
.feature-wide .feature-text p:last-child { margin-bottom: 0; }
.feature-wide .ticks { margin: 0 0 4px; }
.feature-text p { color: var(--text-dim); max-width: 62ch; text-wrap: pretty; }
.tag { display: inline-block; font: 700 0.85rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.tag.accent { color: var(--accent); }
.tag.cyan { color: var(--cyan); }
.tag.green { color: var(--green); }
.tag.amber { color: var(--amber); }
.tag.pink { color: var(--pink); }
.tag.violet { color: var(--violet); }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.ticks { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); font-size: 1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent); box-shadow: 0 0 10px -1px var(--accent);
}
.shot {
  margin: 0; justify-self: center; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--shot-border); background: #0f1013;
  box-shadow: var(--shadow);
}
.shot-narrow { max-width: 460px; }
.shot img, .card-shot img { width: 100%; height: auto; }

.subhead { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 24px 0 40px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 20px; overflow: hidden;
}
.card-shot { border-radius: var(--radius-small); border: 1px solid var(--shot-border); margin-bottom: 18px; background: #0f1013; overflow: hidden; align-self: start; }
.card:not(.card-wide) .card-shot { min-height: 0; }
.card p { color: var(--text-dim); font-size: 1rem; margin: 0; }
.card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 28px; align-items: center; }
.card-wide .card-shot { grid-row: span 2; margin-bottom: 0; align-self: center; }
.card-wide h4 { align-self: end; }
.card-wide p { align-self: start; }

.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; list-style: none; }
.mini-grid li { padding: 22px; border: 1px solid var(--hairline); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), transparent); }
.mini-grid h4 { margin-bottom: 6px; }
.mini-grid p { margin: 0; color: var(--text-dim); font-size: 1rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 28px 24px; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--radius); }
.steps li::after {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--accent);
}
.steps li:nth-child(2)::after { background: var(--amber); }
.steps li:nth-child(3)::after { background: var(--pink); }
.steps li:nth-child(4)::after { background: var(--cyan); }
.step-num { display: block; font: 700 2.2rem/1 var(--mono); color: var(--text-dim); opacity: 0.5; margin-bottom: 18px; }
.steps h3 { font-size: 1.25rem; }
.steps p { color: var(--text-dim); font-size: 1rem; margin: 0; }

/* Styles */
.styles-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; max-width: 1040px; margin: 0 auto; }
.styles { text-align: left; }
.styles-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font: 700 0.85rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin: 32px 0 14px; }
.styles-label:first-child { margin-top: 0; }
.new-note { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; letter-spacing: 0.06em; color: var(--text); }
.new-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li {
  position: relative; padding: 9px 16px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  font-weight: 650; font-size: 1rem; line-height: 1.3;
}
.chips-cyan li { background: color-mix(in srgb, var(--cyan) 13%, transparent); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }
.chips-violet li { background: color-mix(in srgb, var(--violet) 13%, transparent); border-color: color-mix(in srgb, var(--violet) 45%, transparent); }
.chips li.is-new { border-color: var(--accent); padding-left: 28px; }
.chips li.is-new::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); }
.shot-menu { max-width: 320px; justify-self: center; }
.fine { font-size: 0.875rem; color: var(--text-dim); margin-top: 28px; }

/* Call to action */
.cta { position: relative; overflow: hidden; text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 300px at 50% 30%, rgba(255, 90, 31, 0.16), transparent 70%);
}
.cta-inner { position: relative; max-width: 680px; }
.cta-logo { margin: 0 auto 24px; border-radius: 26px; filter: drop-shadow(0 18px 40px rgba(255, 90, 31, 0.25)); }
.cta p { color: var(--text-dim); font-size: 1.1rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--hairline); border-radius: 12px; }
.faq details[open] { border-color: var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  display: block; min-height: 56px; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 1.05rem; line-height: 1.35; border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--text-dim); max-width: 66ch; }

/* Footer */
.site-footer { padding: 56px 0 calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hairline); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand img { border-radius: 8px; }
.site-footer nav { justify-self: end; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 0 12px; list-style: none; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--text-dim); text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.copyright { grid-column: 1 / -1; margin: 18px 0 0; color: var(--text-dim); font-size: 1rem; }
.site-footer .fine { grid-column: 1 / -1; margin: 0; max-width: 80ch; }

/* Privacy and other text pages */
.page { padding: 56px 0 96px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 850; letter-spacing: -0.03em; }
.page h2 { font-size: 1.35rem; font-weight: 750; margin-top: 2.2em; }
.page p, .page li { color: var(--text-dim); }
.page strong { color: var(--text); }
.page ul { padding-left: 1.3em; display: grid; gap: 8px; margin-bottom: 1em; }
.page code { font: 0.9em var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--panel-2); color: var(--text); overflow-wrap: anywhere; }
.page .updated { font: 600 0.9rem var(--mono); color: var(--text-dim); letter-spacing: 0.04em; }
.summary-box { margin: 28px 0 8px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--hairline); border-left: 4px solid var(--accent); border-radius: 12px; }
.summary-box p { margin: 0; color: var(--text); }
.not-found { text-align: center; padding: 120px 0; }
.not-found .big { font: 800 clamp(4rem, 14vw, 8rem)/1 var(--mono); color: var(--accent); margin-bottom: 12px; letter-spacing: -0.04em; }

/* Scroll reveal (only when scripts run, and never when reduced motion is asked for) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }


/* Tap to enlarge (buttons added around screenshots by main.js) */
.zoom { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.zoom::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(11, 12, 15, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 2h5v5M7 16H2v-5M16 2l-5.5 5.5M2 16l5.5-5.5'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.25); pointer-events: none;
}
.zoom:focus-visible { outline-offset: -3px; }
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(8, 9, 11, 0.94); color: #e6e8ee; overflow: hidden;
}
.lightbox:not([open]) { display: none; }
.lightbox[open] { display: flex; flex-direction: column; animation: lb-in 0.18s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
}
.lb-hint { margin: 0; font-size: 0.95rem; color: #aab0bc; }
.lb-close { min-width: 48px; min-height: 48px; padding: 0 18px; border: 1px solid #4a505c; border-radius: 10px; background: #1e2128; color: #fff; font: 700 1rem var(--font); cursor: pointer; }
.lb-close:focus-visible, .lb-scroll:focus-visible { outline: 3px solid #36b3c9; outline-offset: 2px; }
.lb-scroll {
  flex: 1; min-height: 0; overflow: auto; display: grid; place-items: center; touch-action: pan-x pan-y pinch-zoom; overscroll-behavior: contain;
  padding: 0 max(8px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
}
.lb-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; background: #0f1013; }
.lb-scroll.is-natural { place-items: start center; }
.lb-scroll.is-natural .lb-img { max-width: none; max-height: none; }

/* Phones menu, shared by the pages */
@media (min-width: 901px) {
  .menu-toggle { display: none !important; }
}

/* Tablet and below */
@media (max-width: 1000px) {
  .feature { grid-template-columns: 1fr; gap: 32px; margin-bottom: 72px; }
  .feature-flip .feature-text { order: 0; }
  .feature-wide .feature-text { grid-template-columns: 1fr; }
  .feature-wide .ticks { margin-top: 8px; }
  .shot-narrow { max-width: 420px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-template-columns: 1fr; }
  .card-wide .card-shot { grid-row: auto; margin-bottom: 18px; }
  .card-wide h4, .card-wide p { align-self: auto; }
  .mini-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .styles-layout { grid-template-columns: 1fr; gap: 36px; }
  .shot-menu { max-width: 280px; }
}

/* Navigation collapses into a menu */
@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .header-inner { gap: 8px; }
  .header-cta { display: none; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 48px; height: 48px; margin: 0 -10px 0 auto; padding: 0; border: 0; border-radius: 10px;
    background: transparent; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; }
  .menu-icon::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

  /* with scripts: a full-width panel under the header; without: a plain wrapped row of links */
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; z-index: 49;
    height: calc(100vh - var(--header-h) - env(safe-area-inset-top, 0px));
    height: calc(100dvh - var(--header-h) - env(safe-area-inset-top, 0px));
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav li { border-bottom: 1px solid var(--hairline); }
  .js .site-nav a { min-height: 56px; padding: 0 4px; font-size: 1.15rem; color: var(--text); border-radius: 0; }
  .js .site-nav .nav-cta { display: block; border: 0; padding-top: 20px; }
  .js .site-nav .nav-cta a { justify-content: center; padding: 0 22px; color: var(--accent-ink); font-size: 1.05rem; border-radius: 10px; min-height: 56px; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-top: 6px; padding-bottom: 6px; }
  html:not(.js) .site-nav { order: 3; flex-basis: 100%; margin: 0; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
  html:not(.js) .header-cta { display: inline-flex; margin-left: auto; }

}

/* Phones and small tablets */
@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 36px 0 0; }
  .status { font-size: 0.78rem; letter-spacing: 0.04em; }
  .hero-shot { margin-top: 36px; margin-bottom: 36px; }
  .window { border-radius: 12px; border-bottom: 1px solid var(--shot-border); }
  .lcd { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; max-width: 360px; margin-top: 32px; }
  .lcd li { padding: 12px 18px; }
  .lcd li:nth-child(3) { border-left: 0; }
  .lcd li:nth-child(n+3) { border-top: 1px solid #23262e; }
  .feature { gap: 24px; margin-bottom: 56px; }
  .feature h3 { font-size: 1.55rem; }
  .shot-narrow { max-width: 100%; }
  .card-grid, .steps { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mini-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .site-footer nav { justify-self: start; margin-left: -8px; }
  .faq summary { padding-left: 18px; }
  .faq details p { padding: 0 18px 20px; }
}

@media (max-width: 560px) {
  .notify-form { grid-template-columns: 1fr; }
  .notify-form .btn { width: 100%; }
  .mini-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 17px; line-height: 1.55; }
  .window-bar { height: 26px; }
  .window-bar span { width: 9px; height: 9px; }
  .window-bar em { display: none; }
  .form-note { font-size: 1rem; }
  .chips { gap: 8px; }
  .chips li { padding: 8px 14px; font-size: 1rem; }
  .card { padding: 16px; }
  .steps li { padding: 24px 20px; }
  .summary-box { padding: 18px; }
  .section-head p { font-size: 1.05rem; }
}

/* Phones turned sideways and other short screens */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 52px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 28px; }
  .hero-shot { margin-top: 28px; }
  .section-head { margin-bottom: 32px; }
  .feature { margin-bottom: 48px; }
  .js .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .js .site-nav a { min-height: 48px; }
  .js .site-nav .nav-cta { grid-column: 1 / -1; padding-top: 12px; }
  .lb-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Hero headline: one sentence per line on narrow screens */
@media (max-width: 900px) {
  .hero h1 .h-line { display: block; }
}
@media (max-width: 640px) {
  .shot-menu { display: none; }
}

/* Expected price under the sign-up heading */
.price-note { margin-top: 6px; color: var(--text-dim); }
.price-note strong { color: var(--accent); font-weight: 700; }
