/* multichatstem.com: the landing page (body.home) and the legal pages (main > header, article, footer).
   One palette, light and dark; the accent is the app's own selection blue. */
/* The app's faces where installed (as in desktop/side-chat-extension/src/browser/style/index.css): referenced by their
   installed names, never bundled. */
@font-face { font-family:"Anthropic Sans"; font-weight:100 900; font-style:normal;
  src:local("Anthropic Sans Variable Text Regular"), local("Anthropic Sans Variable Text"), local("Anthropic Sans Variable"), local("Anthropic Sans"); }
@font-face { font-family:"Anthropic Sans"; font-weight:100 900; font-style:italic;
  src:local("Anthropic Sans Variable Text Regular Italic"), local("Anthropic Sans Variable Text Italic"), local("Anthropic Sans Italic"); }
@font-face { font-family:"Anthropic Serif Variable Text"; font-weight:100 900; font-style:normal;
  src:local("Anthropic Serif Variable Text Regular"), local("Anthropic Serif Variable Text"), local("Anthropic Serif Variable"); }
@font-face { font-family:"Anthropic Serif Variable Text"; font-weight:100 900; font-style:italic;
  src:local("Anthropic Serif Variable Text Regular Italic"), local("Anthropic Serif Variable Text Italic"), local("Anthropic Serif Italic"); }
:root {
  --paper:#ffffff; --paper-2:#f4f4f5; /* white, not warm (owner, 2026-11-19: "the overall background … is kind of brown … Make it white") */ --card:#ffffff; --ink:#16181d; --ink-2:#3d424c; --muted:#6b7180;
  --line:#e4e4e7; --accent:#9a9ea6; --accent-hover:#6b7180; --accent-soft:#f4f4f5; /* grey, not blue (owner, 2026-11-19: "I don't like these blue window, change them into grey") */ --on-accent:#ffffff;
  --shadow:0 1px 2px rgba(22,24,29,.05), 0 18px 50px -18px rgba(22,24,29,.22);
  /* The app's own faces (desktop/side-chat-extension/src/browser/style/index.css --sc-serif / --sc-sans): Anthropic's
     where installed, else Newsreader and Plus Jakarta Sans from Google Fonts, as in the web app. */
  --serif:"Anthropic Serif Variable Text", "Anthropic Serif Variable", "Tiempos Text", "Copernicus", "Newsreader",
          "Source Serif 4", Charter, Georgia, serif;
  --sans:"Anthropic Sans", "Anthropic Sans Variable Text", "Anthropic Sans Variable", "Styrene B", "Plus Jakarta Sans",
         ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Buttons are black and white, like the app (owner, 2026-11-03); blue stays for accents only. */
  --btn:#111111; --btn-hover:#333333; --on-btn:#ffffff;
  /* The headline and the demo tabs' feature names keep the page's original face (owner, 2026-11-03). */
  --display:"Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper:#121317; --paper-2:#191b20; --card:#1c1e24; --ink:#eceae4; --ink-2:#c4c3bd; --muted:#9a9ca4;
          --line:#2b2e35; --accent:#8a8d95; --accent-hover:#a9abb1; --accent-soft:#26282e; --on-accent:#0f1320;
          --shadow:0 1px 2px rgba(0,0,0,.4), 0 18px 50px -18px rgba(0,0,0,.7);
          --btn:#f4f3ef; --btn-hover:#ffffff; --on-btn:#111111; }
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }
/* Reading text is set in the serif, as answers are in the app; controls and small labels stay in the sans. */
body { margin:0; background:var(--paper); color:var(--ink); font:18px/1.6 var(--serif); -webkit-font-smoothing:antialiased; }
/* Text that was the blue accent is the page's ink (owner, 2026-11-19: "some text that are marked blue, make them black
   color, but don't change the fontstyle"): links, the italic words in headings, the numbers and kickers, the + marks.
   Borders, selected backgrounds and icons keep the accent. */
a { color:var(--ink); }
kbd { font:500 .82em var(--sans); padding:1px 6px; border:1px solid var(--line); border-bottom-width:2px; border-radius:6px;
      background:var(--card); color:var(--ink); white-space:nowrap; }
code { font:.88em ui-monospace, "Cascadia Code", Consolas, monospace; background:var(--paper-2); padding:1px 5px; border-radius:5px; }
.wrap { width:min(1120px, 100% - 32px); margin-inline:auto; }

/* ---------- buttons ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 22px; border-radius:10px;
       background:var(--btn); color:var(--on-btn); border:1px solid transparent; text-decoration:none;
       font:500 16px var(--serif); cursor:pointer; transition:background .15s ease, transform .15s ease; }
.btn:hover { background:var(--btn-hover); }
.btn:active { transform:translateY(1px); }
.btn:focus-visible, .tab:focus-visible, .nav a:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.btn-ghost { background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover { background:var(--paper-2); }
.btn-small { padding:8px 16px; font-size:15px; border-radius:8px; }

/* ---------- nav ---------- */
/* ---------- the background (owner, 2026-11-19) ----------
   A sheet of formulas, structures and drawings behind the whole main page, as a scientist's notes on the paper: the tile is
   a mask, so the ink is the page's own (dark on white, light on dark) and only its strength is set here. The sheet is one
   tile taller than the screen, so the script can drift it with a transform alone.
   Clear on bare page, faded behind what the page says (owner, the same day: "if … falls outside of our tabs and cards, then
   … it should be much clearer. But if it falls inside our original content of our website, some information, it should be
   faded"): the sheet itself is strong, and each piece of content lays a veil of its own surface over it, so about a seventh
   of that strength shows through a card, a heading or a paragraph. The demos and the stacked cards stay solid: they lie
   over one another, and a veil would show the one underneath. */
.page-bg { position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.page-bg-sheet { --tile:1600px; position:absolute; left:0; right:0; top:0; height:calc(100% + var(--tile)); background:var(--ink); opacity:.36;
                 -webkit-mask:url(/media/bg/formulas.svg?v=2026-11-19a) 50% 0 / var(--tile) var(--tile) repeat;
                         mask:url(/media/bg/formulas.svg?v=2026-11-19a) 50% 0 / var(--tile) var(--tile) repeat; will-change:transform; }
@media (prefers-color-scheme: dark) { .page-bg-sheet { opacity:.3; } }
@media (max-width: 700px) { .page-bg-sheet { --tile:1100px; } }
.home { --veil-card:color-mix(in srgb, var(--card) 86%, transparent); --veil-soft:color-mix(in srgb, var(--accent-soft) 88%, transparent);
        --veil-paper:color-mix(in srgb, var(--paper) 88%, transparent); }
.home .way, .home .anywhere-item, .home .plan, .home .more-plans > summary, .home .btn-ghost { background:var(--veil-card); }
.home .news-card, .home .closing { background:var(--veil-soft); }
.home .faq details, .home .site-footer { background:var(--veil-paper); }
/* Words that stand straight on the page: the veil is a soft patch that ends before the box does, and the letters keep a
   little clear paper round them. */
.home .section-title { background:radial-gradient(ellipse closest-side, var(--veil-paper) 0 72%, transparent 100%); }
.home .hero h1 { background:var(--veil-paper); border-radius:28px; box-shadow:0 0 26px 20px var(--veil-paper); }
.home .pricing .fine { background:linear-gradient(90deg, transparent, var(--veil-paper) 10%, var(--veil-paper) 90%, transparent); }
.home .hero h1, .home .section-title, .home .pricing .fine, .home .faq summary { text-shadow:0 0 4px var(--paper), 0 0 12px var(--paper), 0 0 12px var(--paper); }

/* A floating glass bar (owner, 2026-11-19: "make this part like a floating bar so that it doesn't truncate ... not the wide
   area ... some like mirror effect for the top bar"). The strip across the page is clear and takes no clicks; only the
   rounded bar is drawn, so the page scrolls past on both sides of it and under it, blurred, and nothing is cut along a
   line. The glass: what is behind, blurred and a little brighter, under a pale sheet that is lighter at its top, with a
   bright rim along the upper edge and a soft shadow below. */
.nav { position:sticky; top:0; z-index:20; padding:10px 0 8px; pointer-events:none; }
.nav-row { position:relative; display:flex; align-items:center; justify-content:space-between; height:54px; padding:0 9px 0 18px;
           border-radius:16px; pointer-events:auto; isolation:isolate;
           background:linear-gradient(180deg, rgba(255,255,255,.74) 0%, rgba(255,255,255,.5) 100%);
           -webkit-backdrop-filter:blur(20px) saturate(1.8) brightness(1.04); backdrop-filter:blur(20px) saturate(1.8) brightness(1.04);
           border:1px solid rgba(255,255,255,.75);
           box-shadow:inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(22,24,29,.05),
                      0 0 0 1px rgba(22,24,29,.05), 0 1px 2px rgba(22,24,29,.06), 0 14px 34px -14px rgba(22,24,29,.28); }
/* The reflection: a pale gleam over the upper half, as on polished glass. */
.nav-row::before { content:""; position:absolute; inset:1px 1px 46% 1px; z-index:-1; border-radius:15px 15px 0 0;
                   background:linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0)); pointer-events:none; }
.nav-row .btn-small { border-radius:10px; padding:8px 18px; }
@media (prefers-color-scheme: dark) {
  .nav-row { background:linear-gradient(180deg, rgba(48,51,60,.62) 0%, rgba(24,26,31,.5) 100%); border-color:rgba(255,255,255,.12);
             box-shadow:inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.3), 0 0 0 1px rgba(0,0,0,.4), 0 14px 34px -14px rgba(0,0,0,.8); }
  .nav-row::before { background:linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0)); }
}
.brand { display:inline-flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; font:italic 500 23px var(--serif); letter-spacing:-.01em; }
.brand-icon { width:28px; height:28px; border-radius:7px; display:block; }
@media (prefers-color-scheme: dark) { .brand-icon { box-shadow:0 0 0 1px var(--line); } }
.nav-links { display:flex; align-items:center; gap:22px; }
.nav-links a:not(.btn) { color:var(--ink-2); text-decoration:none; font:16px var(--serif); }
.nav-links a:not(.btn):hover { color:var(--ink); }
/* Functions: one button in the bar opening the four demos (owner, 2026-11-19). A small glass card under it. */
.nav-menu { position:relative; }
.nav-menu-btn { display:flex; align-items:center; gap:5px; padding:0; border:0; background:none; cursor:pointer;
                color:var(--ink-2); font:16px var(--serif); }
.nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"] { color:var(--ink); }
.nav-menu-btn svg { transition:transform .18s ease; }
.nav-menu-btn[aria-expanded="true"] svg { transform:rotate(180deg); }
.nav-menu-list { position:absolute; top:calc(100% + 16px); left:50%; translate:-50% 0; min-width:190px; padding:6px;
                 display:flex; flex-direction:column; border-radius:14px; transform-origin:50% 0;
                 background:var(--card); /* solid: inside the bar's glass a blur of its own does not work */
                 border:1px solid rgba(255,255,255,.8);
                 box-shadow:0 0 0 1px rgba(22,24,29,.06), 0 2px 4px rgba(22,24,29,.06), 0 18px 40px -16px rgba(22,24,29,.3); }
.nav-menu-list[hidden] { display:none; }
.nav-links .nav-menu-list a { display:flex; align-items:baseline; gap:10px; padding:9px 12px; border-radius:9px;
                              color:var(--ink); font:16px var(--serif); text-decoration:none; }
.nav-links .nav-menu-list a:hover, .nav-links .nav-menu-list a:focus-visible { background:var(--paper-2); outline:none; }
.nav-menu-list a span { font:600 11px var(--sans); letter-spacing:.08em; color:var(--muted, #8a8d95); }
@media (prefers-color-scheme: dark) {
  .nav-menu-list { border-color:rgba(255,255,255,.1);
                   box-shadow:0 0 0 1px rgba(0,0,0,.4), 0 18px 40px -16px rgba(0,0,0,.8); }
}
@media (max-width: 560px) { .nav-menu { display:none; } }
@media (max-width: 560px) { .nav-links a:not(.btn) { display:none; } }
@media (max-width: 560px) { .nav-row { padding:0 7px 0 13px; gap:8px; } .brand { font-size:17px; gap:7px; white-space:nowrap; } .brand-icon { width:24px; height:24px; } .nav-row .btn-small { padding:8px 12px; font-size:13px; white-space:nowrap; } }

/* ---------- hero ---------- */
.hero { text-align:center; padding:48px 0 28px; }
/* The line above the headline: plain italic text in the app's serif, no pill behind it (owner, 2026-11-03). */
.eyebrow { margin:0 0 18px; color:var(--ink-2); font:italic 400 clamp(38px, 6.4vw, 68px)/1.08 var(--serif); letter-spacing:-.02em; /* the headline's size (owner, 2026-11-19: "make this line bigger as that below it") */ }
.hero h1.eyebrow { margin:0 0 18px; color:var(--ink-2); font:italic 400 clamp(38px, 6.4vw, 68px)/1.08 var(--serif); letter-spacing:-.02em; } /* the page's heading since the headline went (owner, 2026-11-19), looking as the line did */
.hero h1 { margin:0; font:400 clamp(38px, 6.4vw, 68px)/1.04 var(--display); letter-spacing:-.025em; }
.hero h1 em { font-style:italic; color:var(--ink); }
.lead { max-width:660px; margin:20px auto 0; font-size:clamp(18px, 2vw, 21px); line-height:1.55; color:var(--ink-2); }
.lead em { color:var(--ink); }
.hero-cta { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:26px; }
.fine { color:var(--muted); font:14px/1.6 var(--sans); margin:16px 0 0; }
.fine.center { text-align:center; }
.pricing .fine { font:15px/1.6 var(--serif); } /* the reply serif, as the rest of the page (owner, 2026-11-19) */

/* ---------- demo player ---------- */
.demo { padding-top:16px; scroll-margin-top:80px; }
.frame { border-radius:16px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow); overflow:hidden; }
.frame-bar { display:flex; align-items:center; gap:7px; height:38px; padding:0 14px; border-bottom:1px solid var(--line); background:var(--paper-2); }
.frame-bar i { width:10px; height:10px; border-radius:50%; background:var(--line); }
.frame-bar span { margin-left:10px; font:500 13px var(--sans); color:var(--muted); }
/* The screen behind a clip is the app's own background in that version (light: white, dark: #111113). */
.frame-screen { --screen:#fff; position:relative; background:var(--screen); }
@media (prefers-color-scheme: dark) { .frame-screen { --screen:#111113; } }
.frame-screen video { display:block; width:100%; aspect-ratio:16/9; background:var(--screen); }
.screen-btn { position:absolute; inset:0; margin:auto; width:72px; height:72px; border-radius:50%; border:0; cursor:pointer;
              background:rgba(22,24,29,.78); color:#fff; display:grid; place-items:center; }
.screen-btn[hidden], .sound-btn[hidden] { display:none; }
.sound-btn { position:absolute; left:14px; bottom:14px; display:inline-flex; align-items:center; gap:7px; border:0; cursor:pointer;
             padding:8px 14px; border-radius:8px; background:rgba(22,24,29,.82); color:#fff; font:600 13px var(--sans); }
.sound-btn:hover, .screen-btn:hover { background:#16181d; }

/* Nine features: three rows of three; a sideways strip under 900 px. A tab shows its name; the active one's description
   is the caption under the player (.demo-caption, copied from its .tab-text). */
.tabs { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-top:16px; }
.tab-text { display:none; }
.tab-sub { font:italic 14.5px/1.4 var(--serif); color:var(--muted); }
.demo-caption { max-width:760px; min-height:3.2em; margin:18px auto 0; text-align:center; color:var(--ink-2); font-size:18px; line-height:1.6; }
.tab { position:relative; text-align:left; display:flex; flex-direction:column; gap:4px; padding:14px 14px 18px; border-radius:12px;
       border:1px solid var(--line); background:var(--card); color:var(--ink); cursor:pointer; font:inherit;
       transition:border-color .15s ease, background .15s ease; overflow:hidden; }
.tab:hover { border-color:color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tab[aria-selected="true"] { border-color:var(--accent); background:var(--accent-soft); }
.tab-num { font:600 12px var(--sans); color:var(--ink); letter-spacing:.04em; }
.tab-title { font:500 18px/1.25 var(--display); letter-spacing:-.01em; }
.tab[aria-selected="true"] .tab-sub { color:var(--ink-2); }
.tab-text { font-size:13.5px; line-height:1.5; color:var(--ink-2); }
.tab-bar { position:absolute; left:0; right:0; bottom:0; height:3px; background:transparent; }
.tab-bar > span { display:block; height:100%; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .25s linear; }
.demo-note { text-align:center; color:var(--muted); font:13px var(--sans); margin:14px 0 0; }
@media (max-width: 900px) {
  .tabs { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:16px; padding-bottom:4px; margin-inline:-16px; padding-inline:16px; }
  .tab { flex:0 0 auto; max-width:78%; scroll-snap-align:start; }
  .tab-sub { display:none; }
}
/* Wide screens (1280 px and up; below, the player would get too small): the nine features stand around the player, five
   on the left and four on the right (owner, 2026-11-03), so every demo is a click away without scrolling. The tab list
   stays one list (arrow keys, screen readers): a subgrid puts it in the two side columns of the player's grid, and lets
   clicks through to the player between them. Twenty rows: a left tab spans four, a right one five, so both columns end
   level with the player. */
@media (min-width: 1280px) {
  .demo.wrap { width:min(1440px, 100% - 48px); }
  /* The player keeps most of the width (about 740–830 px); each side takes a fifth of the rest. */
  .demo-stage { display:grid; grid-template-columns:minmax(200px, 1fr) minmax(0, 3.2fr) minmax(200px, 1fr); column-gap:18px; }
  .demo-stage > .frame { grid-column:2; grid-row:1; align-self:center; }
  .demo-stage > .tabs { grid-column:1 / -1; grid-row:1; grid-template-columns:subgrid; grid-template-rows:repeat(20, 1fr);
                        row-gap:3px; margin-top:0; pointer-events:none; }
  .demo-stage > .tabs > .tab { pointer-events:auto; justify-content:center; margin-block:4px; }
  .tab:nth-child(-n+5) { grid-column:1; }
  .tab:nth-child(n+6) { grid-column:3; }
  .tab:nth-child(1) { grid-row:1 / span 4; }
  .tab:nth-child(2) { grid-row:5 / span 4; }
  .tab:nth-child(3) { grid-row:9 / span 4; }
  .tab:nth-child(4) { grid-row:13 / span 4; }
  .tab:nth-child(5) { grid-row:17 / span 4; }
  .tab:nth-child(6) { grid-row:1 / span 5; }
  .tab:nth-child(7) { grid-row:6 / span 5; }
  .tab:nth-child(8) { grid-row:11 / span 5; }
  .tab:nth-child(9) { grid-row:16 / span 5; }
  .demo-stage > .tabs > .tab:first-child, .demo-stage > .tabs > .tab:nth-child(6) { margin-top:0; }
  .demo-stage > .tabs > .tab:nth-child(5), .demo-stage > .tabs > .tab:nth-child(9) { margin-bottom:0; }
}
.models-line { max-width:640px; margin:10px auto 0; color:var(--muted); font-size:14px; }
.models-line span { color:var(--ink-2); font-weight:500; }
@media (max-width: 600px) {
  .frame { border-radius:12px; }
  .frame-bar { height:30px; }
  .sound-btn { left:8px; bottom:8px; padding:6px 11px; font-size:12px; }
  .hero { padding-top:48px; }
  /* On a phone the headline wraps by itself, balanced, rather than at the desktop line break. */
  .hero h1 { text-wrap:balance; }
  .hero h1 br { display:none; }
}

/* ---------- ways to work (2026-11-17): Chat, Compose, Reading, Chemistry, each leading to its chapter ---------- */
.ways { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; margin-top:34px; scroll-margin-top:80px; }
.way { display:flex; flex-direction:column; gap:6px; padding:20px 20px 22px; border-radius:16px; border:1px solid var(--line);
       background:var(--card); color:var(--ink); text-decoration:none; transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.way:hover { border-color:color-mix(in srgb, var(--accent) 45%, var(--line)); transform:translateY(-2px); box-shadow:var(--shadow); }
.way:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.way-icon { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; margin-bottom:6px;
            background:var(--accent-soft); color:var(--accent); }
.way-icon svg { width:21px; height:21px; }
.way-name { font:400 24px/1.15 var(--display); letter-spacing:-.01em; }
.way-text { font-size:16px; line-height:1.5; color:var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .way, .way:hover { transform:none; transition:none; } }
@media (max-width: 900px) { .ways { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .ways { grid-template-columns:1fr; gap:10px; }
  .way { display:grid; grid-template-columns:38px 1fr; column-gap:14px; row-gap:2px; align-items:center; padding:14px 16px; }
  .way-icon { grid-row:1 / span 2; margin:0; align-self:start; }
  .way-name { font-size:21px; }
  .way-text { grid-column:2; font-size:15px; }
}

/* ---------- chapters: Chat, Compose, Reading, Chemistry ---------- */
.chapter-head { text-align:center; max-width:780px; margin:112px auto 30px; scroll-margin-top:84px; }
.chapter > .chapter-head { margin-top:0; }
.chapter { padding-top:112px; scroll-margin-top:0; }
.chapter-kicker { display:inline-flex; align-items:center; gap:10px; margin:0 0 14px; color:var(--ink); font:600 14px var(--sans); letter-spacing:.06em; text-transform:uppercase; }
.chapter-kicker span { color:var(--muted); font-weight:500; }
.chapter-head h2 { margin:0; font:400 clamp(32px, 4.6vw, 52px)/1.08 var(--display); letter-spacing:-.025em; text-wrap:balance; }
.chapter-head h2 em { font-style:italic; color:var(--ink); }
.chapter-lead { margin:18px auto 0; max-width:700px; color:var(--ink-2); font-size:clamp(17px, 1.9vw, 20px); line-height:1.6; }
/* A chapter's player: the clip, and its few features listed beside it with their descriptions (under it when narrow). */
.player { display:grid; grid-template-columns:minmax(0, 3fr) minmax(250px, 1fr); gap:22px; align-items:center; }
.tabs.tabs-list { display:flex; flex-direction:column; gap:10px; margin:0; }
.tabs-list .tab { padding:16px 16px 20px; }
.tabs-list .tab-text { display:block; font-size:15px; line-height:1.5; }
.tabs-list .tab-title { font-size:20px; }
.tabs-list .tab[aria-selected="false"] .tab-text { color:var(--muted); }
/* A long list folds (Reading has five features since 2026-11-19): every feature keeps its title, only the one playing its
   description, so the demo is no taller than the others (the reel makes every demo as tall as the tallest, and five whole
   descriptions shrank all four on a small screen, 0.71 to 0.62 at 1280 x 720). Not in the sideways strip of a narrow screen. */
@media (min-width: 901px) {
  .tabs-list.tabs-fold { gap:8px; }
  .tabs-fold .tab { padding:12px 16px 14px; }
  .tabs-fold .tab[aria-selected="false"] .tab-text { display:none; }
}
@media (min-width: 1280px) { .chapter.wrap { width:min(1320px, 100% - 48px); } }
@media (max-width: 900px) {
  .player { grid-template-columns:1fr; }
  .tabs.tabs-list { flex-direction:row; overflow-x:auto; scroll-snap-type:x mandatory; margin-inline:-16px; padding:0 16px 4px; }
  .tabs-list .tab { flex:0 0 min(78%, 320px); scroll-snap-align:start; }
  .chapter { padding-top:84px; }
  .chapter-head { margin-top:84px; }
}

/* ---------- wherever you work ---------- */
.anywhere { padding:112px 0 0; }
.section-title em { font-style:italic; color:var(--ink); }
.anywhere-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; }
.anywhere-item { padding:26px; border-radius:18px; border:1px solid var(--line); background:var(--card); }
.anywhere-item h3 { margin:0 0 8px; font:400 25px/1.2 var(--display); letter-spacing:-.01em; }
.anywhere-item p { margin:0; color:var(--ink-2); font-size:17px; }
@media (max-width: 860px) { .anywhere-grid { grid-template-columns:1fr; } .anywhere { padding-top:84px; } }

/* ---------- sections ---------- */
.section-title { margin:0 0 28px; font:400 clamp(28px, 4vw, 40px)/1.15 var(--serif); letter-spacing:-.02em; text-align:center; }
/* ---------- new product: updates, Gemini unlimited, feedback (owner, 2026-11-03) ---------- */
.news { padding:104px 0 0; scroll-margin-top:80px; }
.news-card { padding:48px; border-radius:24px; background:var(--accent-soft); border:1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); }
.news-kicker { margin:0 0 10px; color:var(--ink); font:italic 400 19px/1.4 var(--serif); }
.news-title { margin:0; font:400 clamp(30px, 4vw, 44px)/1.12 var(--display); letter-spacing:-.02em; }
.news-title em { color:var(--ink); }
.news-lead { margin:14px 0 0; color:var(--ink-2); font-size:19px; }
/* The models' marks (owner, 2026-11-19): a row of makers' marks, each with the family's name under it, no frames; the row
   wraps and stays centred, three across on a phone. */
.models-card { text-align:center; }
.models-card .news-lead { max-width:560px; margin-inline:auto; }
.model-marks { display:flex; flex-wrap:wrap; justify-content:center; gap:26px 14px; margin:38px 0 4px; padding:0; list-style:none; }
.model-mark { display:flex; flex-direction:column; align-items:center; width:92px; }
.model-chip { display:grid; place-items:center; width:56px; height:56px; } /* no frame (owner, 2026-11-19) */
.model-chip img { display:block; width:42px; height:42px; object-fit:contain; }
/* The black marks (Grok, Kimi) turn white on a dark page, where they would vanish without the white chip they had. */
@media (prefers-color-scheme: dark) { .model-chip img.ink { filter:invert(1); } }
.model-name { margin-top:12px; font:italic 400 17px/1.25 var(--serif); letter-spacing:0; color:var(--ink); }
.model-maker { margin-top:3px; font:italic 400 13px/1.3 var(--serif); color:var(--muted); }
@media (max-width: 860px) {
  .news-card { padding:26px; border-radius:18px; }
  .model-marks { gap:22px 6px; margin-top:28px; }
}

/* ---------- card flow (owner, 2026-11-03) ----------
   One card per idea. Each sticks a little below the one before, so the next slides up over it, and the one underneath
   eases back (script at the end of index.html). On a narrow screen they simply follow one another. */
.flow { padding:104px 0 0; }
.flow-stack { display:flex; flex-direction:column; gap:32px; padding-bottom:24px; }
.flow-card { position:sticky; top:calc(92px + min(var(--i), 6) * 12px); display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr);
             gap:40px; align-items:center; padding:40px; border-radius:24px; background:var(--card); border:1px solid var(--line);
             box-shadow:var(--shadow); transform-origin:50% 0; will-change:transform;
             font:18px/1.6 var(--serif); color:var(--ink); } /* not the legal pages' article style */
.flow-num { margin:0 0 12px; font:600 13px var(--sans); color:var(--ink); letter-spacing:.08em; }
.flow-text h3 { margin:0 0 14px; font:400 clamp(28px, 3.2vw, 40px)/1.12 var(--display); letter-spacing:-.02em; }
.flow-text h3 em { color:var(--ink); }
.flow-text p:not(.flow-num) { margin:0; color:var(--ink-2); font-size:18.5px; line-height:1.6; }
/* Every other card puts its picture first, so the stack does not read as one long column. */
.flow-card:nth-child(even) { grid-template-columns:minmax(0, 7fr) minmax(0, 5fr); }
.flow-card:nth-child(even) .flow-shot { order:-1; }
/* The card's clip: a 16:10 frame from the first moment (no jump while it loads), in the app's own background. */
.flow-clip { display:block; width:100%; aspect-ratio:16 / 10; object-fit:cover; border-radius:14px; border:1px solid var(--line);
             background:#fff; }
@media (prefers-color-scheme: dark) { .flow-clip { background:#111113; } }
@media (max-width: 860px) {
  .flow-card { position:relative; top:auto; grid-template-columns:1fr; gap:22px; padding:24px; border-radius:18px; }
  .flow-card:nth-child(n) { grid-template-columns:1fr; }
  .flow-shot, .flow-card:nth-child(even) .flow-shot { order:-1; }
}

/* The stack held as it shows (owner, 2026-11-19; the last script of index.html): beside the cards the page scrolls past
   them, the pile kept exactly as it was on the screen, each card where it stood, in a box as tall as the pile. */
.flow-stack.flow-held { position:relative; display:block; }
.flow-stack.flow-held .flow-card { position:absolute; left:0; right:0; }
.flow-stack.flow-held .flow-card.flow-off { visibility:hidden; }

.pricing { padding:96px 0 0; scroll-margin-top:80px; }
.plans { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); justify-content:center; gap:16px; }
.plan { display:flex; flex-direction:column; padding:28px; border-radius:16px; background:var(--card); border:1px solid var(--line); }
.plan-pro { border-color:var(--accent); box-shadow:var(--shadow); }
.plan h3 { margin:0; font:italic 600 16px var(--sans); } /* the plans' names in italics (owner, 2026-11-19) */
.plan .price { margin:6px 0 4px; font:400 44px/1.1 var(--serif); }
.plan .price small { font:15px var(--sans); color:var(--muted); }
.plan ul { margin:12px 0 24px; padding-left:20px; color:var(--ink-2); font-size:16.5px; flex:1; }
.plan li { margin:8px 0; }
.plan .btn { align-self:flex-start; }
@media (max-width: 760px) { .plans { grid-template-columns:1fr; } }
.more-plans { margin-top:16px; }
.more-plans > summary { width:max-content; max-width:100%; margin:0 auto; padding:10px 18px; border:1px solid var(--line); border-radius:10px;
                        color:var(--ink-2); font:500 15px var(--sans); cursor:pointer; list-style:none; }
.more-plans > summary::-webkit-details-marker { display:none; }
.more-plans > summary::after { content:"+"; margin-left:10px; color:var(--ink); }
.more-plans[open] > summary::after { content:"−"; }
.more-plans > summary:hover { background:var(--paper-2); }
.more-plans > summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.more-plans > .plans { margin-top:16px; }

.faq { padding:96px 0 0; max-width:760px; scroll-margin-top:80px; }
.faq details { border-bottom:1px solid var(--line); }
.faq details:first-of-type { border-top:1px solid var(--line); }
.faq summary { display:flex; justify-content:space-between; gap:16px; padding:18px 2px; cursor:pointer; list-style:none; font:600 16.5px var(--sans); }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color:var(--ink); font-weight:500; }
.faq details[open] summary::after { content:"−"; }
.faq summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.faq details p { margin:0 2px 18px; color:var(--ink-2); font-size:17px; }

.closing { margin:112px auto 0; padding:56px 24px; text-align:center; border-radius:20px; background:var(--accent-soft); }
.closing h2 { margin:0 0 24px; font:400 clamp(26px, 4vw, 38px)/1.2 var(--serif); letter-spacing:-.02em; }

.site-footer { margin-top:72px; border-top:1px solid var(--line); }
.footer-row { display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; padding:28px 0 40px; color:var(--muted); font:14px var(--sans); }
.footer-row a { color:var(--muted); margin-left:18px; text-decoration:none; }
/* The links wrap on a phone (the contact address no longer fits on one line at 375 px). */
.footer-row > span:last-child { display:flex; flex-wrap:wrap; column-gap:18px; row-gap:6px; }
.footer-row > span:last-child a { margin-left:0; }
.footer-row a:hover { color:var(--ink); }

/* ---------- legal pages (terms, privacy, refunds) ---------- */
main { width:min(720px, 100% - 32px); margin:0 auto; padding-bottom:80px; }
main > header { display:flex; justify-content:space-between; align-items:center; padding:24px 0; font:500 15px var(--sans); }
main > header a { color:var(--ink-2); text-decoration:none; }
main > header a:first-child { font:500 22px var(--serif); color:var(--ink); }
article { font:17px/1.7 var(--sans); color:var(--ink-2); }
article h1 { margin:40px 0 4px; font:400 clamp(32px, 5vw, 44px)/1.15 var(--serif); color:var(--ink); letter-spacing:-.02em; }
article h3 { margin:32px 0 6px; font:600 17px var(--sans); color:var(--ink); }
.muted { color:var(--muted); font-size:15px; }
.draft { border:1px dashed var(--accent); border-radius:10px; padding:10px 14px; font-size:14px; color:var(--muted); }
main > footer { margin-top:64px; padding-top:20px; border-top:1px solid var(--line); font-size:14px; }
main > footer a { color:var(--muted); margin-right:16px; }

/* ---------- hosted billing: the same palette, typography and controls as the landing page ---------- */
.billing .billing-main { width:min(1120px, 100% - 32px); padding-bottom:24px; }
.billing .billing-hero { display:block; padding:56px 0 36px; }
.billing .billing-hero h1 { font:400 clamp(38px, 6.4vw, 60px)/1.04 var(--serif); }
.billing-summary, .billing-queue-card { display:flex; justify-content:space-between; gap:32px; padding:28px; border:1px solid var(--line); border-radius:16px; background:var(--card); }
.billing-summary h2, .billing-policy h2, .billing-queue-card h2 { margin:0 0 8px; color:var(--ink); font:400 30px/1.2 var(--serif); letter-spacing:-.015em; }
.billing-summary p, .billing-policy p, .billing-queue-card p { margin:8px 0; color:var(--ink-2); }
.billing-kicker { font:600 12px var(--sans); text-transform:uppercase; letter-spacing:.08em; color:var(--muted)!important; }
.billing-actions { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:12px; flex-shrink:0; }
.billing-actions .btn { white-space:normal; text-align:center; }
.billing-owner-link { font-size:13px; }
.billing-plans { margin-top:28px; }
.billing-current { display:inline-flex; padding:12px 22px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font:600 15px var(--sans); align-self:flex-start; }
.billing-policy { margin:36px auto 0; padding:28px; border:1px solid var(--line); border-radius:16px; background:var(--accent-soft); }
.billing-policy p { max-width:760px; font-size:15px; }
.billing-notice { padding:16px 20px; background:var(--accent-soft); border:1px solid var(--line); border-radius:12px; color:var(--ink-2); font-size:15px; }
.billing-refund-summary { max-width:800px; margin:0 auto 24px; }
.billing-refund-summary form { margin-top:24px; }
.billing-amounts { margin:20px 0; font-size:15px; }
.billing-amounts > div { display:flex; justify-content:space-between; gap:24px; padding:10px 0; border-bottom:1px solid var(--line); }
.billing-amounts dt { color:var(--muted); }
.billing-amounts dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.billing-queue-card { margin:16px 0; }
.billing-queue-card > div:first-child { min-width:0; flex:1; }
.center { text-align:center; }
@media(max-width:760px) { .billing-summary,.billing-queue-card { flex-direction:column; gap:16px; padding:22px; }.billing-actions { align-items:stretch; }.billing-actions .btn { width:100%; }.billing .billing-hero { padding-top:36px; } }

/* ---------- the reel (2026-11-18): the four demos sideways, as covers ---------- */
/* Without the reel (reduced motion, no script): the demos stack as chapters, as before; the rail and arrows are not shown. */
.reel-rail, .reel-arrow { display:none; }
.reel .panel-chat > .chapter-head { margin-top:112px; }
@media (max-width: 900px) { .reel .panel-chat > .chapter-head { margin-top:84px; } }

/* The reel: as tall as one screen per demo; its view pinned while the page scrolls through that height. */
.reel-on .reel { position:relative; height:calc(var(--reel-n, 4) * 100svh); margin-top:56px; }
.reel-on .reel-view { position:sticky; top:0; height:100svh; padding-top:var(--nav-h, 64px); display:flex; flex-direction:column;
  overflow:hidden; }
.reel-on .reel-rail { display:flex; position:relative; justify-content:center; gap:6px; margin:14px auto 0; padding:5px;
  border:1px solid var(--line); border-radius:999px; background:color-mix(in srgb, var(--card) 85%, transparent); width:max-content; }
.reel-rail a { position:relative; z-index:1; padding:7px 16px; border-radius:999px; color:var(--ink-2); text-decoration:none;
  font:500 15px var(--sans); transition:color .2s ease; white-space:nowrap; }
.reel-rail a span { color:var(--muted); font-weight:500; margin-right:4px; font-size:12.5px; letter-spacing:.04em; }
.reel-rail a[aria-current] { color:var(--ink); }
.reel-rail a[aria-current] span { color:var(--ink); }
/* The mark slides under the names as the reel turns; soft, so a name it passes under stays readable. */
.reel-mark { position:absolute; left:0; top:5px; bottom:5px; border-radius:999px; pointer-events:none;
  background:var(--accent-soft); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.reel-on .reel-stage { position:relative; flex:1; min-height:0; }
.reel-on .reel-track { position:absolute; inset:0; transform-style:preserve-3d; pointer-events:none; }
/* A demo as a cover: a sheet of the page's paper, turned and set back by the controller (transform, --dim). */
.reel-on .panel { position:absolute; left:50%; top:50%; width:var(--panel-w, 1120px); height:var(--panel-h, auto); margin:0; padding:30px 34px 28px;
  pointer-events:auto; align-content:center;
  border-radius:24px; border:1px solid var(--line); background:var(--card); box-shadow:var(--shadow);
  transform-origin:50% 50%; backface-visibility:hidden;
  display:grid; grid-template-columns:minmax(0, 330px) minmax(0, 1fr); column-gap:34px; align-items:start; }
.reel-on .panel::after { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:color-mix(in srgb, var(--paper) 70%, #000000); opacity:calc(var(--dim, 0) * .42); }
.reel-on .panel[data-side] { cursor:pointer; }
.reel-on .panel > .chapter-head { grid-column:1; grid-row:1; text-align:left; margin:0; max-width:none; width:auto; }
.reel-on .panel .chapter-head h2 { font-size:clamp(26px, min(2.6vw, 4.4vh), 38px); }
.reel-on .panel .chapter-lead { margin:12px 0 0; font-size:clamp(14.5px, 2.1vh, 16.5px); line-height:1.55; }
.reel-on .panel .chapter-kicker { margin-bottom:10px; }
/* The player's parts take the panel's two columns: the clip on the right, the features under the title on the left. */
.reel-on .panel .player, .reel-on .panel .demo, .reel-on .panel .demo-stage { display:contents; }
.reel-on .panel .frame { grid-column:2; grid-row:1 / span 3; align-self:center; }
.reel-on .panel .tabs { grid-column:1; grid-row:2; margin:18px 0 0; display:flex; flex-direction:column; gap:8px; pointer-events:auto; }
.reel-on .panel .tabs .tab { margin:0; padding:12px 14px 14px; }
.reel-on .panel .tabs-list .tab-title { font-size:18px; }
.reel-on .panel .tabs-list .tab-text { font-size:14px; }
/* Chat's nine features: their names in two columns (the one playing has its description under the clip). */
.reel-on .panel-chat { grid-template-columns:minmax(0, 360px) minmax(0, 1fr); }
.reel-on .panel-chat .tabs { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:none; gap:6px; margin-top:16px; }
/* Undo the wide page's places for the features around the player (five left, four right): here they are one grid. */
.reel-on .panel-chat .tabs > .tab { grid-column:auto; grid-row:auto; margin:0; justify-content:flex-start; }
.reel-on .panel-chat .tab { display:flex; flex-direction:row; align-items:baseline; gap:7px; padding:8px 10px 10px; }
.reel-on .panel-chat .tab-num { font-size:11px; }
.reel-on .panel-chat .tab-title { font-size:15px; line-height:1.25; }
.reel-on .panel-chat .tab-sub { display:none; }
/* Under the clip, beside the features (not under both): the feature playing, then the note. */
.reel-on .panel-chat .frame { grid-row:1 / span 2; }
.reel-on .panel-chat .tabs { grid-row:2 / span 3; align-self:start; }
.reel-on .panel-chat .demo-caption { grid-column:2; grid-row:3; margin:12px auto 0; font-size:15.5px; min-height:2.6em; }
.reel-on .panel-chat .demo-note { grid-column:2; grid-row:4; margin:2px 0 0; font-size:12px; }
.reel-arrow { place-items:center; width:46px; height:46px; border-radius:50%; border:1px solid var(--line); background:var(--card);
  color:var(--ink); cursor:pointer; box-shadow:var(--shadow); transition:opacity .2s ease, background .15s ease; }
.reel-arrow:hover { background:var(--paper-2); }
.reel-arrow:disabled { opacity:0; pointer-events:none; }
.reel-on .reel-arrow { display:grid; position:absolute; top:50%; z-index:5; translate:0 -50%; }
.reel-on .reel-prev { left:18px; }
.reel-on .reel-next { right:18px; }

/* A phone: the demos side by side, swiped, each snapping into place; the rail scrolls with them. */
.reel-swipe .reel-rail { display:flex; position:sticky; top:var(--nav-h, 64px); z-index:6; gap:4px; overflow-x:auto; scrollbar-width:none;
  margin:28px -16px 0; padding:8px 16px; background:color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter:blur(8px); }
.reel-swipe .reel-rail a { flex:0 0 auto; }
.reel-swipe .reel-track { display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none;
  align-items:flex-start; transition:height .3s ease; }
.reel-swipe .reel-track::-webkit-scrollbar, .reel-swipe .reel-rail::-webkit-scrollbar { display:none; }
.reel-swipe .panel { flex:0 0 100%; scroll-snap-align:start; scroll-snap-stop:always; width:auto; padding:0 16px; margin:0; }
/* Only the demos are where a swipe stops (owner, 2026-11-19: "can scroll to right but can't scroll back"): the feature
   buttons snap in their own sideways list on a wide screen, and here, where that list does not scroll, they were snap
   points of the whole strip, 16 px into each demo; a swipe stopped on them, 32 px in, and one back was caught there. */
.reel-swipe .panel * { scroll-snap-align:none; }
.reel-swipe .panel .chapter-head { margin-top:20px; }
.reel-swipe .panel.chapter { padding-top:0; }
/* In a swiped panel the features are a column (a sideways strip inside a sideways swipe would fight it). */
.reel-swipe .panel .tabs { display:flex; flex-direction:column; overflow:visible; margin-inline:0; padding:0; }
.reel-swipe .panel .tab { max-width:none; flex:0 0 auto; }
.reel-swipe .panel-chat .tab-text { display:none; }
/* Chat's nine features, one line each, as on the desktop reel. */
.reel-swipe .panel-chat .tabs { gap:5px; }
.reel-swipe .panel-chat .tab { display:grid; grid-template-columns:22px auto 1fr; align-items:baseline; column-gap:8px; padding:9px 12px 11px; }
.reel-swipe .panel-chat .tab-title { font-size:16px; white-space:nowrap; }
.reel-swipe .panel-chat .tab-sub { display:block; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
