/* LoopToSong site styles: a control room. Charcoal ground, sage for type and metal, orange only for the main action
   and a live state. One small label style (12px / 600 / uppercase / 0.06em / muted); nav and footer links in sentence case. */

@font-face {
  font-family: "Archivo";
  src: url("/vendor/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/vendor/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/vendor/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  /* the "t" ramp was teal; it is now the sage of painted metal (the names stay so every page follows) */
  --t300: #F4F3EC;
  --t400: #F4F3EC;
  --t500: #E4E5E0;
  --t600: #C9CCC5;
  --t700: #A9ADA8;
  --t800: #70736E;
  --t900: #3A3C3A;
  --t950: #263028;
  --t-bold: #232423;
  /* the second colour is orange, kept for what matters: actions, peaks, warnings (ink on it stays above 5:1) */
  --amber: #F06A3B;
  --amber-2: #D9572B;
  --amber-soft: rgba(240, 106, 59, 0.14);
  --amber-line: rgba(240, 106, 59, 0.55);
  --amber-fill: linear-gradient(180deg, #F27548 0%, #F06A3B 55%, #E35E30 100%);
  --on-teal: #222322;
  /* actions: orange, pressed like a hardware key */
  --fill: linear-gradient(180deg, #F27548 0%, #F06A3B 55%, #E35E30 100%);
  --fill-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.18), 0 10px 20px -12px rgba(0, 0, 0, 0.7);
  /* selected: sage, the calm colour */
  --sel: linear-gradient(180deg, #F4F3EC 0%, #F4F3EC 60%, #E4E5E0 100%);
  --sel-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.14);
  /* screens are slatted, like the panel inside a hatch */
  --screen: repeating-linear-gradient(180deg, #282A28 0 7px, #1E1F1E 7px 10px);
  --glow-sm: 0 0 8px rgba(240, 106, 59, 0.55);

  /* charcoal */
  --bg: linear-gradient(180deg, #2C2D2C 0%, #2A2B2A 40%, #252625 100%);
  --bg-flat: #2A2B2A;
  --panel: #323432;
  --key: #3A3C3A;
  --line: #464946;
  --border: #6D736E;
  --text: #ECEDE8;
  --head: #F4F3EC;
  --muted: #A9ADA8;
  --accent: var(--t400);
  --inv: #F4F3EC;
  --inv-text: #222322;
  --key-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  --device: #2E302E;
  --device-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
  /* the ribbed wall and the crate, for the pages that show them */
  --rib: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0.22)), repeating-linear-gradient(90deg, #E4E5E0 0 5px, #F4F3EC 5px 8px, #ECEDE8 8px 12px, #A3BFA8 12px 14px);
  --orange: #F06A3B;
  --ink: #222322;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-flat);
  background-image: var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { opacity: 0.85; }
:focus-visible { outline: 2px solid var(--t500); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.display { font-family: Archivo, system-ui, sans-serif; font-stretch: 100%; font-weight: 700; letter-spacing: -0.03em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

.led { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--t500); flex: none; }

/* top bar */
.topbar {
  background: linear-gradient(90deg, var(--t800), var(--t950));
  color: var(--t300);
  text-align: center;
  padding: 10px 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

/* nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { text-decoration: none; font-family: Archivo, sans-serif; font-stretch: 125%; font-size: 19px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t400); }
.brand span { color: var(--orange); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--muted); }
.nav-links a.btn-inv { color: var(--t400); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 28px; border-radius: 4px; border: 0;
  text-decoration: none; font: inherit; cursor: pointer;
}
.btn-fill { background: var(--fill); color: var(--on-teal); box-shadow: var(--fill-shadow); font-family: Archivo, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.btn-line { border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--t400); color: var(--t400); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 24px; }
.btn-inv { height: 44px; padding: 0 20px; border-radius: 4px; background: var(--inv); color: var(--inv-text); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.btn-sm { height: 48px; border-radius: 4px; font-size: 15px; width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; box-shadow: none; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 48px 0 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: Archivo, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; color: var(--muted); }
.eyebrow { font-family: "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.12em; color: var(--t600); }
.eyebrow::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; background: var(--amber); }
h1 { margin: 0; font-family: Archivo, sans-serif; font-stretch: 100%; font-size: clamp(40px, 6vw, 84px); line-height: 0.95; font-weight: 700; letter-spacing: -0.045em; color: var(--head); text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--amber); }
.lead { margin: 0; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.trust { font-size: 14px; color: var(--muted); }

/* product panel */
.hero-device { flex: 1 1 480px; min-width: 0; }
.device { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 8px; background: var(--device); border: 1px solid #464946; color: #ECEDE8; box-shadow: var(--device-shadow); }
.device-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: "JetBrains Mono", monospace; font-size: 12px; color: #A9ADA8; }
.device-head span:first-child { display: flex; align-items: center; gap: 8px; }
.screen { padding: 16px; border-radius: 4px; background: var(--screen); color: #F4F3EC; box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.5); }
.screen-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.screen-row .dim { color: var(--t300); }
.strip { display: flex; gap: 3px; height: 64px; margin: 14px 0 10px; align-items: flex-end; }
.strip i { display: block; border-radius: 4px; }
.strip .loop { background: var(--sel); box-shadow: 0 0 0 2px var(--t950), 0 0 0 3px #F2F2F2; }
.pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pad { height: 76px; border-radius: 4px; border: 1px solid #464946; background: #3A3C3A; color: #ECEDE8; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.pad b { font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; color: var(--t400); }
.pad span { font-family: Archivo, sans-serif; font-stretch: 100%; font-size: 24px; font-weight: 800; }
.pad.on { background: var(--sel); border-color: transparent; color: var(--on-teal); box-shadow: var(--sel-shadow); }
.pad.on b { color: var(--on-teal); }
.transport { display: flex; align-items: center; gap: 8px; }
.play { width: 54px; height: 54px; border-radius: 27px; background: var(--fill); box-shadow: var(--fill-shadow); display: flex; align-items: center; justify-content: center; flex: none; }
.chip { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 4px; border: 1px solid #464946; background: #3A3C3A; font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; }
.chip.grow { flex: 1 1 auto; }

/* sections */
.ticks { display: flex; flex-wrap: wrap; gap: 14px 36px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 800; }

.section { padding: 72px 0 24px; display: flex; flex-direction: column; gap: 28px; }
h2 { margin: 0; font-family: Archivo, sans-serif; font-stretch: 100%; font-size: clamp(30px, 4.4vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--head); text-wrap: balance; }
h3 { margin: 0; font-family: Archivo, sans-serif; font-stretch: 100%; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.step-no { font-family: "JetBrains Mono", monospace; font-size: 14px; font-weight: 700; color: var(--accent); }

/* pricing */
.pricing { align-items: center; }
.pricing h2, .pricing > p { text-align: center; }
.pricing > p { margin: -12px 0 0; color: var(--muted); }
.plans { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: start; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.plan.featured { border-color: var(--t500); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: Archivo, sans-serif; font-stretch: 100%; font-size: 20px; font-weight: 800; }
.badge { padding: 3px 7px; border-radius: 3px; background: transparent; box-shadow: inset 0 0 0 1px rgba(244, 243, 236, 0.26); color: var(--t400); font-family: Archivo, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.price { font-family: Archivo, sans-serif; font-stretch: 100%; font-size: 40px; font-weight: 800; line-height: 1.1; }
.price small { font-family: Archivo, sans-serif; font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.9; color: var(--muted); }
.plan li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.founder { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-radius: 6px; background: var(--screen); color: #F4F3EC; }
.plan-alt { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.plan-alt[aria-disabled="true"] { color: var(--muted); text-decoration: none; }
.price-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.price-note a { color: var(--accent); }
.founder strong { font-family: Archivo, sans-serif; font-stretch: 100%; font-size: 18px; }

/* trainer */
.trainer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 28px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); }
.trainer p { margin: 0; flex: 1 1 320px; font-size: 17px; line-height: 1.55; }
.trainer .mono { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }

/* faq */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "JetBrains Mono", monospace; font-size: 20px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 20px; max-width: 46em; color: var(--muted); line-height: 1.6; }

/* daws */
.daws { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; padding: 56px 0 40px; }
.daws span { font-family: Archivo, sans-serif; font-stretch: 100%; font-size: 22px; font-weight: 700; color: var(--muted); }
.daws .mono { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.08em; font-weight: 400; }

/* footer */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer .brand { font-size: 16px; color: var(--text); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* simple centered page (app placeholder) */
.center-page { min-height: 100vh; display: flex; flex-direction: column; }
.center-page main { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; padding: 48px 0; max-width: 40em; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { flex-wrap: nowrap; padding: 16px 0; }
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
  .nav-links .btn-inv { height: 40px; padding: 0 14px; font-size: 14px; }
  .hero { gap: 36px; padding: 28px 0 48px; }
  .lead { font-size: 17px; }
  .btn { height: 54px; padding: 0 22px; }
  .cta-row .btn { flex: 1 1 100%; }
  .device { padding: 14px; gap: 12px; }
  .pad { height: 64px; padding: 8px; }
  .pad span { font-size: 20px; }
  .section { padding: 56px 0 16px; }
  .card, .plan, .trainer { padding: 22px; }
  .daws span { font-size: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .pad { transition: transform 0.12s ease; }
  .btn:active { transform: translateY(1px); }
}

/* legal pages */
.legal main { max-width: 46em; padding: 24px 0 56px; }
.legal main h1 { font-size: clamp(32px, 5vw, 46px); }
.legal main h2 { font-size: 22px; margin: 34px 0 10px; }
.legal main h3 { font-size: 17px; margin: 20px 0 6px; font-stretch: 100%; }
.legal main p, .legal main li { color: var(--muted); line-height: 1.65; }
.legal main ul { padding-left: 20px; }
.legal main a { color: var(--accent); }
.legal main strong { color: var(--text); }
.legal .toc { margin: 22px 0 8px; padding: 16px 18px; border-radius: 4px; background: var(--panel); border: 1px solid var(--line); }
.legal .toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2 16em; column-gap: 28px; }
.legal .toc li { line-height: 1.9; }
.legal .toc a { text-decoration: none; }
.legal .inshort { margin: 6px 0 12px; padding: 10px 14px; border-left: 3px solid var(--t500); border-radius: 0 10px 10px 0; background: rgba(244, 243, 236, 0.07); color: var(--text); font-size: 15px; line-height: 1.55; }
.legal .inshort b { font-family: Archivo, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.legal .table-scroll { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 4px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); line-height: 1.5; }
.legal thead th { color: var(--text); font-size: 13px; background: var(--panel); }
.legal tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .legal .table-scroll:has(.stack) { overflow: visible; border: 0; }
  .legal table.stack { min-width: 0; }
  .legal table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal table.stack tr { display: block; margin-bottom: 12px; padding: 4px 0; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
  .legal table.stack td { display: block; padding: 6px 14px; border: 0; }
  .legal table.stack td::before { content: attr(data-label); display: block; font-family: Archivo, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
}
.legal code { font-family: "JetBrains Mono", monospace; font-size: 0.88em; color: var(--t300); }
.legal h2 { scroll-margin-top: 16px; }

/* the hero device is a link to the demo */
a.hero-device { display: block; color: inherit; text-decoration: none; border-radius: 26px; }
a.hero-device .device { transition: transform 0.2s, box-shadow 0.2s; }
@media (hover: hover) { a.hero-device:hover .device { transform: translateY(-3px); } }
a.hero-device:focus-visible { outline: 2px solid var(--t300); outline-offset: 6px; }
.plan-terms { font-size: 12px; color: var(--muted); line-height: 1.5; }
.plan-terms a { color: var(--accent); }

/* orange is kept for the main action: no LED dot before labels, step numbers stay muted */
.eyebrow .led { display: none; }
.step-no { color: var(--muted); }

/* the shared site header (guides, legal pages, FL Studio pages, challenges, Mix Check): the same
   lockup, sentence-case links and sage-outline header button as the landing and the toolkit
   (the page's own main action is the only orange button). Logo · Toolkit · Pro ·
   account (assets/account.js) · Open the app; on a phone only the logo, the account and the button. */
header.nav .brand, .check-head .brand { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.brand .brand-mark { flex: none; width: 30px; height: 30px; margin-right: 12px; color: var(--t400); }
.brand .brand-bar { flex: none; width: 2px; height: 24px; margin-right: 12px; background: var(--t400); }
.nav-links { flex-wrap: nowrap; }
/* display sits in :where() so each page's own "hide on a phone" rule still wins */
:where(.nav-links > a:not(.btn)) { display: inline-flex; }
.nav-links > a:not(.btn), header.nav .acc .acc-in { align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--t300); white-space: nowrap; }
.nav-links > a:not(.btn):hover, header.nav .acc .acc-in:hover { color: var(--text); opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-links .btn-inv { height: 44px; background: transparent; color: var(--t400); box-shadow: inset 0 0 0 1.5px var(--t400); white-space: nowrap; }
.nav-links .btn-inv:hover { color: var(--t400); background: rgba(244, 243, 236, 0.1); opacity: 1; }
.nav-links [data-account] { display: flex; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }
@media (max-width: 480px) {
  .brand .brand-mark, .brand .brand-bar { display: none; }
  .nav-links { gap: 10px; }
  .nav-links .btn-inv { padding: 0 12px; font-size: 12px; letter-spacing: 0.03em; }
}
/* Mix Check's header is its own element (check.css): the same narrowing as header.nav in account.css */
@media (max-width: 480px) { header.check-head { gap: 10px; } header.check-head .brand { font-size: 15px; } }
@media (max-width: 359px) { header.check-head .brand { font-size: 13px; letter-spacing: 0.03em; } }

/* the shared site footer: Loop to song app · Toolkit · Pro · Guides · Terms · Privacy */
.footer > .brand { display: inline-flex; align-items: center; min-height: 44px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--t300); }
.footer nav a:hover { color: var(--text); opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* Depth for tool pages (2026-11-07), the same building blocks as in toolkit.css:
   .t-kick label above the title, .t-metal sage panel for choices, .t-device / .t-bezel sage frame around dark screens */
.t-kick { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 600 12px/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t600); }
.t-kick::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; background: var(--amber); }
.t-metal {
  --text: #1F201F; --head: #1F201F; --muted: #3A3C3A; --t300: #1F201F; --t400: #1F201F; --t600: #3A3C3A; --line: rgba(31, 32, 31, 0.3);
  color: #1F201F; background: var(--t400-raw, #F4F3EC) !important; border: 0 !important; border-radius: 14px; padding: clamp(18px, 3vw, 32px) !important;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9), inset 0 2px 0 rgba(255, 255, 255, 0.35) !important;
}
.t-metal :where(button, .chip, a.chip, [role="tab"], [role="radio"]) { --text: #ECEDE8; --head: #F4F3EC; --muted: #A9ADA8; --t300: #F4F3EC; --t400: #F4F3EC; --t600: #C9CCC5; --line: #464946; }
.t-metal :where(button, .chip, a.chip, [role="tab"], [role="radio"]):not([class*="fill"]):not([class*="primary"]):not(.on):not(.is-on):not(.active):not(.is-active):not([aria-pressed="true"]):not([aria-selected="true"]):not([aria-current]) { background: #2A2B2A; color: #ECEDE8; border-color: #2A2B2A; }
.t-device { background: linear-gradient(180deg, #F4F3EC, #E4E5E0) !important; border-radius: 18px; padding: 12px !important; box-shadow: 0 40px 70px -34px rgba(0, 0, 0, 0.9), inset 0 2px 0 rgba(255, 255, 255, 0.4) !important; }
.t-bezel { border-radius: 14px; box-shadow: 0 0 0 10px #F4F3EC, 0 0 0 11px rgba(0, 0, 0, 0.3), 0 40px 70px -30px rgba(0, 0, 0, 0.9) !important; }
@media (max-width: 560px) { .t-bezel { box-shadow: 0 0 0 6px #F4F3EC, 0 0 0 7px rgba(0, 0, 0, 0.3), 0 30px 50px -26px rgba(0, 0, 0, 0.9) !important; } .t-device { padding: 8px !important; border-radius: 14px; } }

/* .t-cream: a full-width cream band (variant A, Roland 2026-11-10); text turns ink, accents deep orange */
.t-cream {
  --text: #1F201F; --head: #1F201F; --muted: #4A4A45; --t300: #1F201F; --t400: #B5401A; --t600: #B5401A; --line: rgba(31, 32, 31, 0.2); --border: rgba(31, 32, 31, 0.25);
  color: #1F201F; background: #F2EEE3; box-shadow: 0 0 0 100vmax #F2EEE3; clip-path: inset(0 -100vmax);
}
.t-cream :where(h1, h2) em { color: #D9572B; }
.t-cream .t-kick { color: #B5401A; }
/* .t-hero: the cream band at the top of a tool page; the working area below stays dark */
.t-hero { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(26px, 3.4vw, 40px); margin-bottom: clamp(28px, 4vw, 44px); }
.t-hero h1 { color: #1F201F !important; }
.t-hero p:not(.t-kick) { color: #4A4A45 !important; }
.t-hero .t-kick { color: #B5401A !important; }
/* the cream title band starts right under the bar above it: no strip of charcoal in between */
main:has(.t-hero), main :has(> .t-hero), main :has(.t-hero):not(:has(> :not(.t-hero) ~ .t-hero)) { padding-top: 0 !important; margin-top: 0 !important; }
.t-hero { margin-top: 0 !important; }
/* One substantial sage surface per tool (Codex review 33): .t-metal or .t-device is the one; .t-bezel becomes a thin quiet
   sage line around a dark screen. Flat colour, soft shadows, no metal gradients. */
.t-metal { box-shadow: 0 20px 40px -32px rgba(0, 0, 0, 0.7) !important; }
.t-device { background: #F4F3EC !important; border-radius: 14px; box-shadow: 0 20px 40px -32px rgba(0, 0, 0, 0.7) !important; }
.t-bezel { box-shadow: 0 0 0 1.5px rgba(244, 243, 236, 0.55), 0 20px 40px -32px rgba(0, 0, 0, 0.7) !important; }
@media (max-width: 560px) { .t-bezel { box-shadow: 0 0 0 1.5px rgba(244, 243, 236, 0.55) !important; } }
/* frames are hairlines (Codex review 34): the content leads, not the frame */
.t-bezel { box-shadow: 0 0 0 1px rgba(244, 243, 236, 0.32), 0 20px 40px -32px rgba(0, 0, 0, 0.7) !important; }
@media (max-width: 560px) { .t-bezel { box-shadow: 0 0 0 1px rgba(244, 243, 236, 0.32) !important; } }

/* .t-read: the reading part of a page on a full-width cream band after the dark working area (Codex review 39).
   Cards on it turn light with thin ink borders. Same as in toolkit.css, with this file's tokens. */
:root { --screen: #1F201F; }
.t-read {
  --bg-flat: #F2EEE3; --panel: #FAF7F0; --key: #F4F0E6; --line: rgba(31, 32, 31, 0.16); --border: rgba(31, 32, 31, 0.3);
  --text: #1F201F; --head: #1F201F; --muted: #4A4A45; --t300: #1F201F; --t400: #B5401A; --t500: #B5401A; --t600: #B5401A; --accent: #B5401A;
  color: #1F201F; background: #F2EEE3; box-shadow: 0 0 0 100vmax #F2EEE3; clip-path: inset(0 -100vmax);
  margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(44px, 6vw, 72px);
}
.t-read :where(h1, h2, h3, h4, summary, b, strong) { color: #1F201F; }
.t-read .t-kick { color: #B5401A; }
/* kickers on the site.css tool pages (FL map, challenges) speak the .t-kick language */
html body :is(.flm-kicker, .formats-label) { display: flex; align-items: center; gap: 10px; font: 600 12px/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
html body :is(.flm-kicker, .formats-label)::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; background: var(--orange); }
html body .t-read .flm-kicker { color: #B5401A; }
/* FL map reference desk on the reading band: light cards with ink text */
.t-read #reference-content { background: transparent; }
.t-read .flm-ref-grid details { background: transparent; border-color: rgba(31, 32, 31, 0.16); color: #1F201F; }
.t-read .flm-ref-grid :is(summary, b, strong, span) { color: #1F201F; }
.t-read .flm-ref-jump { color: #B5401A; }
.t-read .flm-ref-body kbd { color: #F4F3EC; }

/* Legal pages (privacy, terms): the whole reading area on a full-width cream band, like the guides (Codex review 43) */
.legal main {
  --text: #1F201F; --head: #1F201F; --muted: #4A4A45; --panel: #FAF7F0; --line: rgba(31, 32, 31, 0.16); --border: rgba(31, 32, 31, 0.3);
  --t300: #1F201F; --t400: #B5401A; --t500: #B5401A; --accent: #B5401A;
  max-width: none; padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 6vw, 72px);
  color: #1F201F; background: #F2EEE3; box-shadow: 0 0 0 100vmax #F2EEE3; clip-path: inset(0 -100vmax);
}
.legal main > * { max-width: 44rem; }
.legal main :where(h1, h2, h3, strong, b) { color: #1F201F; }
.legal main p, .legal main li { color: #2A2B2A; font-size: 17px; line-height: 1.7; }
.legal main p.muted { color: #4A4A45; font-size: 15px; }
.legal main li::marker { color: #B5401A; }
.legal main a { color: #B5401A; }
.legal main .toc { background: transparent; border-color: rgba(31, 32, 31, 0.14); }
.legal main .toc strong { display: flex; align-items: center; gap: 10px; font: 600 12px/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; color: #4A4A45; }
.legal main .toc strong::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; background: #F06A3B; }
.legal main .toc li { font-size: 15px; line-height: 1.9; }
.legal main .toc a { color: #1F201F; }
.legal main .toc a:hover { color: #B5401A; opacity: 1; }
.legal main .toc li::marker { color: #4A4A45; }
.legal main .inshort { background: transparent; border-left-color: #1F201F; color: #1F201F; font-size: 16px; }
.legal main .inshort b { color: #4A4A45; }
.legal main .table-scroll { background: transparent; border-color: rgba(31, 32, 31, 0.16); }
.legal main th, .legal main td { color: #2A2B2A; border-bottom-color: rgba(31, 32, 31, 0.1); font-size: 15px; }
.legal main thead th { background: #EAE5D8; color: #1F201F; }
.legal main code { color: #1F201F; }
@media (max-width: 640px) {
  .legal main p, .legal main li { font-size: 16px; }
  .legal main .table-scroll:has(.stack) { background: transparent; }
  .legal main table.stack tr { background: transparent; border-color: rgba(31, 32, 31, 0.16); }
  .legal main table.stack td::before { color: #4A4A45; }
}
/* phone: the long contents list in two short columns, so the text starts sooner */
@media (max-width: 640px) { .legal main .toc ol { columns: 2; column-gap: 30px; padding-left: 22px; } .legal main .toc li { font-size: 15px; line-height: 1.45; padding: 0; margin: 0 0 4px; break-inside: avoid; } .legal main .toc a { display: block; padding: 5px 0; } }
/* cards on cream reading bands take the band's own colour; a hairline marks them (Roland 2026-11-11: white stood out) */
.t-read { --panel: transparent; --key: rgba(31, 32, 31, 0.04); }

/* Tool pages are dark from top to bottom (Roland 2026-11-11, after a look at 16 tool and plugin sites): the title
   area (.t-top) and the reading part (.t-more) stay on charcoal; a hairline, room and a kicker set them apart. */
.t-top { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(26px, 3.4vw, 40px); margin-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid rgba(244, 243, 236, 0.12); }
main:has(.t-top), main :has(> .t-top), main :has(.t-top):not(:has(> :not(.t-top) ~ .t-top)) { padding-top: 0 !important; margin-top: 0 !important; }
.t-top { margin-top: 0 !important; }
.t-top h1 { color: #F4F3EC; }
.t-top p:not(.t-kick) { color: #C9CCC5; }
:is(.t-top, .t-more) .t-kick { color: #C9CCC5; }
.t-more { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(36px, 5vw, 56px); border-top: 1px solid rgba(244, 243, 236, 0.14); }
.t-more :where(h1, h2, h3, h4) { color: #F4F3EC; }
.t-top .pro-note { color: #A9ADA8; }
.t-top .pro-note__k, .t-top .pro-note .pro-lock-icon { color: #F4F3EC; }
.t-top .pro-note a { color: #F28A62; }
.t-top .pro-note a:hover { color: #F4F3EC; }
.t-more { margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(28px, 4vw, 40px); }   /* tighter break (Codex review 47) */
