/* ImmersiveFM site styles (2026-11-02): the shared parts, from the agreed
   /download mock (https://claude.ai/artifact/Wab77hqpp2Dz7di2vE5Xns).
   Palette: identity v1 (charcoal, lime #C8F03C); amber is for warnings only.
   Pages on it: download.html, calm-dark.html (with /site.js for the
   download-started panel), index.html. Pages link it as /style.css?v=N:
   bump N in every page when this file changes, so browsers fetch it again. */

:root {
  color-scheme: dark;
  --night: #121212; --panel: #181818; --raised: #1C1C1C; --white: #EDEDED; --soft: #CFCFCF;
  --lime: #C8F03C; --lime-hover: #DAF77A; --lime-wash: #1F2610;
  --steel: #9E9E9E; --edge: #282828; --edge-strong: #3A3A3A;
  --amber: #F2B544; --amber-edge: #3A3220; --amber-text: #D9D2C0;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --maxw: 1040px;
}
* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--white); font: 17px/1.6 var(--sans); }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: var(--lime-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
code, pre { font-family: var(--mono); font-size: 13.5px; }
img { max-width: 100%; height: auto; }   /* never distorted, even when a page rule is missing */

/* ---- header, footer ---------------------------------------------------- */
.site-header, main, .site-footer { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px 8px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--white); text-decoration: none; }
.wordmark img { display: block; }
.wordmark span { color: var(--steel); font-weight: 700; }
.site-nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--steel); text-decoration: none; }
.site-nav a:hover { color: var(--white); }
.site-nav a.pill { color: var(--night); background: var(--white); font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.site-nav a.pill:hover { background: #fff; color: var(--night); }
.site-footer { padding-block: 28px 48px; color: var(--steel); font-size: 14px; }
.site-footer a { color: var(--steel); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- type ---------------------------------------------------------------- */
h1 { font-weight: 800; font-size: clamp(32px, 5.5vw, 48px); letter-spacing: -0.02em; line-height: 1.1; margin: 44px 0 10px; text-wrap: balance; }
h2 { font-weight: 800; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-weight: 700; font-size: 17px; margin: 22px 0 6px; }
.lede { color: var(--steel); font-size: 18px; margin: 0; }
.fine, .muted { color: var(--steel); }
.fine { font-size: 14px; }
.block { margin-top: 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; }
ol, ul { padding-left: 22px; } li { margin: 6px 0; }

/* ---- boxes: news (lime), warning (amber) --------------------------------- */
.notice { background: var(--panel); border: 1px solid var(--edge); border-left: 4px solid var(--lime); border-radius: 8px; padding: 14px 18px; margin: 16px 0 24px; font-size: 15.5px; }
.notice strong { color: var(--lime); }
.warning { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--amber-edge); border-radius: 10px; padding: 12px 16px; margin: 24px 0 0; font-size: 15px; color: var(--amber-text); }
.warning svg { flex: none; margin-top: 2px; }
.warning strong { color: var(--amber); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--night); background: var(--lime); padding: 2px 8px; border-radius: 999px; line-height: 1.5; vertical-align: middle; }
.tag.amber { background: var(--amber); }

/* ---- buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 22px; border-radius: 10px; background: var(--lime); color: var(--night); font: 700 17px var(--sans); text-decoration: none; text-align: center; border: 0; cursor: pointer; }
.btn:hover { filter: brightness(1.08); color: var(--night); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid var(--lime); color: var(--lime); font-weight: 700; font-size: 16px; text-decoration: none; background: transparent; }
.btn-outline:hover { background: var(--lime-wash); color: var(--lime); }

/* ---- download cards ---------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-title { font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-sub { color: var(--steel); font-size: 14px; }
.card p { margin: 0; }
.card .note { font-size: 14px; color: var(--steel); }
.verify { border-top: 1px solid var(--edge); padding-top: 12px; }
.verify > summary { color: var(--steel); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.verify-body { margin-top: 10px; font-size: 13.5px; color: var(--steel); }
.hash { display: block; background: var(--night); border: 1px solid var(--edge); border-radius: 8px; padding: 8px 10px; color: var(--white); word-break: break-all; }
.verify-body p { margin: 8px 0 0; }

/* ---- folding rows (details) -------------------------------------------------- */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.chev { flex: none; transition: transform .15s; }
details[open] > summary .chev { transform: rotate(90deg); }
.folds { margin-top: 44px; border-top: 1px solid var(--edge); }
.fold { border-bottom: 1px solid var(--edge); padding: 18px 0; }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 18px; }
.fold-body { padding-top: 6px; }
.fold-body > :last-child { margin-bottom: 0; }
dl dt { font-weight: 700; margin-top: 16px; } dl dd { margin: 4px 0 0; color: var(--steel); }

/* ---- support strip -------------------------------------------------------- */
.support { margin-top: 40px; padding: 32px; background: var(--panel); border: 1px solid var(--edge); border-radius: 18px; scroll-margin-top: 16px; }
.support > p { margin: 0 0 22px; color: var(--steel); font-size: 16px; }
.support .cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.support .card { background: var(--night); padding: 22px; gap: 10px; }
.support .card p { font-size: 15.5px; color: var(--soft); }
.support .card .btn-outline { margin-top: auto; align-self: flex-start; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--lime-wash); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---- feature card (image + text) ----------------------------------------- */
.feature { margin-top: 24px; display: flex; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--white); }
.feature:hover { border-color: var(--edge-strong); color: var(--white); }
.feature img { flex: 1 1 260px; width: 300px; height: 170px; object-fit: cover; display: block; }
.feature-text { flex: 999 1 320px; padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.feature-text .tag { align-self: flex-start; }
.feature-title { font-weight: 700; font-size: 19px; }
.feature-text .card-sub { font-size: 15px; }
.feature-text .go { color: var(--lime); font-weight: 600; }

/* ---- numbered steps ------------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps > li { margin: 0; background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 20px; }
.step-n { width: 32px; height: 32px; border-radius: 999px; background: var(--lime); color: var(--night); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.step-title { font-weight: 700; }
.steps .card-sub { font-size: 15px; }
.steps code { overflow-wrap: anywhere; }

/* ---- screenshot gallery --------------------------------------------------------- */
.shots { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 28px 0 0; }
.shots.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 40px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--edge); border-radius: 10px; }
.shots figcaption { color: var(--steel); font-size: 14px; margin-top: 6px; }
kbd { font-family: var(--mono); font-size: 13px; background: var(--panel); border: 1px solid var(--edge-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; color: var(--white); }

/* ---- "your download has started" panel ----------------------------------------- */
.started { position: fixed; right: 24px; bottom: 24px; width: min(440px, calc(100% - 32px)); background: var(--raised); border: 1px solid var(--edge-strong); border-radius: 16px; padding: 20px 22px; box-shadow: 0 18px 48px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 10px; z-index: 10; }
.started[hidden] { display: none; }
.started-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.started-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.started p { margin: 0; color: var(--soft); font-size: 15px; }
.started-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.started-actions .btn-outline { font-size: 15px; padding: 9px 16px; }
.started-actions .quiet { color: var(--steel); text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 8px; }
.close { appearance: none; background: none; border: 0; color: var(--steel); cursor: pointer; width: 44px; height: 44px; margin: -12px -12px -12px 0; font-size: 24px; line-height: 1; }
.close:hover { color: var(--white); }
@media (max-width: 520px) { .started { right: 16px; bottom: 16px; } .support { padding: 22px 18px; } }

/* ---- homepage (the agreed mock's third artboard) ------------------------------- */
.site-nav a.pill-lime { color: var(--night); background: var(--lime); font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.site-nav a.pill-lime:hover { color: var(--night); filter: brightness(1.08); }
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero-side { flex: 1 1 400px; min-width: 0; }
.hero h1 { margin: 20px 0 16px; font-size: clamp(36px, 5.6vw, 54px); letter-spacing: -0.025em; line-height: 1.05; }
.hero h1 .lime { color: var(--lime); }
.hero .lede { color: #BDBDBD; font-size: 19px; margin: 0 0 26px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--edge); background: var(--panel); border-radius: 999px; padding: 5px 14px; font-size: 14px; color: var(--steel); }
.badge strong { color: var(--white); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.actions .btn-outline { min-height: 52px; font-size: 17px; padding: 13px 22px; }
.quote-card { background: var(--panel); border: 1px solid #2F3A14; border-radius: 14px; padding: 26px 28px; }
.quote-who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--lime); color: var(--night); font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.quote-card blockquote { margin: 0; font-size: 19px; line-height: 1.5; }
.quote-card .name { color: var(--lime); font-weight: 600; }
.proof { margin: 48px 0 0; }
.proof img { display: block; width: 100%; border: 1px solid var(--edge); border-radius: 14px; }
.proof figcaption, .shot figcaption { color: var(--steel); font-size: 14px; margin-top: 8px; }
.part { margin-top: 88px; scroll-margin-top: 16px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); margin: 0 0 10px; }
.part > h2 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.part > .intro { margin: 0 0 24px; color: #BDBDBD; max-width: 760px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.tile-card { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 22px; position: relative; }
.tile-card h3 { font-size: 18px; margin: 12px 0 4px; }
.tile-card.plain h3 { margin-top: 0; }
.tile-card p { margin: 0; color: var(--steel); font-size: 15px; }
.tile-card.pick { border: 1.5px solid var(--lime); }
.tile-card > .tag.float { position: absolute; top: -11px; left: 20px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; border: 1px solid var(--edge); border-radius: 12px; }
.wide-card { margin-top: 16px; display: flex; gap: 16px; align-items: flex-start; }
.wide-card h3 { margin: 0 0 4px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: stretch; }
.tier { background: var(--panel); border: 1px solid var(--edge); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.tier.pick { border: 1.5px solid var(--lime); }
.tier > .tag.float { position: absolute; top: -11px; left: 16px; }
.tier-name { font-weight: 700; }
.tier-price { font-weight: 800; font-size: 26px; line-height: 1.2; }
.tier-price small { font-size: 14px; color: var(--steel); font-weight: 500; }
.tier p { margin: 0; color: var(--steel); font-size: 14px; }
.tag.dark { background: #2A2A2A; color: var(--lime); }
.after-tiers { margin-top: 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.after-tiers span { color: var(--steel); font-size: 15px; }
.big-feature { margin-top: 88px; display: flex; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--edge); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--white); }
.big-feature:hover { border-color: var(--edge-strong); color: var(--white); }
.big-feature picture { flex: 1 1 460px; display: block; min-width: 0; }
.big-feature img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: left top; }
.big-feature-text { flex: 1 1 320px; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.big-feature-text .tag { align-self: flex-start; }
.big-feature-text h2 { margin: 0; font-size: 26px; line-height: 1.2; }
.big-feature-text p { margin: 0; color: var(--steel); font-size: 16px; }
.big-feature-text .go { color: var(--lime); font-weight: 700; }
.pair { margin-top: 24px; }
.pair .tile-card { padding: 28px; }
.pair h2 { font-size: 22px; margin: 0; }
.pair p { font-size: 16px; margin: 10px 0 18px; }
.pair p:last-child { margin-bottom: 0; }
