/* Layout: one narrow reading column; the instrument trace is the only wide element. Lab bench, not brochure. */
:root {
  /* IS brand (Bill 2026-11-16, from the Scent AI executive deck): deep navy and teal panels, gold accents, white cards on
     a cool light ground, plain bold sans. Light sections and dark bands alternate, as the deck's slides do. */
  --paper: #eef3f5;        /* cool light ground */
  --card: #ffffff;
  --ink: #17202a;
  --muted: #4e5e64;
  --rule: #c3d3d8;
  --panel: #ffffff;
  --teal: #0c6973;
  --teal-2: #6cc6cd;
  --gold: #f4c15d;
  --gold-2: #d99a29;
  --navy: #0b1f2a;
  --navy-2: #16323e;
  --navy-3: #1d4150;
  --cream: #f8f1dd;
  --amber: var(--teal);    /* the accent the older rules call amber */
  --ok: #0c6973;
  --bad: #b5472f;
  --display: Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --body: Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --mono: Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --step--1: 0.86rem; --step-0: 1rem; --step-1: 1.2rem; --step-2: clamp(1.6rem, 3.2vw, 2.1rem); --step-3: clamp(2.1rem, 5vw, 3.2rem);
}
/* rc/31 (Bill 2026-11-18, "the color scheme should never be dark"): no dark palette at all. Claude's viewer and some
   embeds set data-theme="dark" on the page; the site ignores it and stays light everywhere. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--body); }
.wrap { max-width: 46rem; margin: 0 auto; padding-inline: 20px; padding-block: 0 4rem; }
header.top { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: baseline; justify-content: space-between;
  padding-block: 1.4rem; border-bottom: 1px solid var(--rule); }
.mark { font: 700 1.05rem/1 var(--display); letter-spacing: 0.01em; }
.mark span { color: var(--amber); }
nav { display: flex; gap: 1.25rem; font-size: var(--step--1); }
a { color: inherit; text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
.eyebrow { font: 500 var(--step--1)/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: var(--step-2); font-weight: 700; line-height: 1.15; }
h3 { font-size: var(--step-1); font-weight: 500; }
p { margin: 0; max-width: 65ch; }
section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding-block: 3rem 0; }   /* minmax: a wide child (a table, a basket line) can't widen the page past the phone; html clips it, so it would just be cut off */
.hero { padding-block: 3.5rem 0; gap: 1.4rem; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink); }
.figure { display: grid; gap: 0.6rem; margin: 0.5rem 0 0; padding: 1rem 1rem 0.8rem; background: var(--panel); border-radius: 6px; }
.figure .scroll { overflow-x: auto; }
.figure svg { width: 100%; min-width: 560px; height: auto; display: block; }
.figure figcaption { font-size: var(--step--1); color: var(--muted); }
svg .grid { stroke: var(--rule); stroke-width: 1; }
svg .axis { fill: var(--muted); font: 400 11px var(--mono); }
svg .band.ok { fill: var(--ok); opacity: 0.12; }
svg .band.bad { fill: var(--bad); opacity: 0.16; }
svg .tag { font: 500 11px var(--mono); }
svg .tag-ok { fill: var(--ok); }
svg .tag-bad { fill: var(--bad); }
svg .trace { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; }
svg .trace-fill { fill: var(--amber); opacity: 0.1; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.loop li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.loop .k { font: 500 var(--step--1)/1.6 var(--mono); color: var(--amber); text-transform: uppercase; letter-spacing: 0.06em; }
.loop li > div { min-width: 0; }
.loop .v { color: var(--muted); font-size: var(--step--1); margin-top: 0.25rem; font-family: var(--mono); }
.status { display: grid; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.status li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.status .when { font: 500 var(--step--1)/1.6 var(--mono); color: var(--muted); }
.status .done { color: var(--ok); }
.product { display: grid; gap: 0.9rem; padding: 1.4rem; border: 1.5px solid var(--ink); border-radius: 6px; }
.mark a { text-decoration: none; }
nav a[aria-current="page"] { color: var(--amber); }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.button { display: inline-block; padding: 0.6rem 1rem; border: 1.5px solid var(--ink); border-radius: 4px; text-decoration: none;
  font: 600 var(--step--1)/1 var(--body); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--amber); border-color: var(--amber); color: var(--paper); }
.video { min-height: 7rem; max-width: 100%; display: grid; place-items: center; background: var(--panel); border-radius: 6px;
  color: var(--muted); font: 400 var(--step--1) var(--mono); text-align: center; padding: 1rem; }
.person { display: grid; gap: 0.5rem; }
.contacts { display: grid; grid-template-columns: 7rem 1fr; gap: 0.6rem 1rem; margin: 0; }
.contacts dt { font: 500 var(--step--1)/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.contacts dd { margin: 0; min-width: 0; font-variant-numeric: tabular-nums; }
.todo { background: color-mix(in srgb, var(--amber) 18%, transparent); padding: 0 0.3em; border-radius: 3px; }
footer { margin-top: 4rem; padding-block: 1.4rem; border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards li.wide { grid-column: 1 / -1; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards li { background: var(--paper); padding: 1rem 1.1rem; display: grid; gap: 0.4rem; align-content: start; min-width: 0; }
.cards h3 { font-size: var(--step-0); font-weight: 700; }
.cards p { font-size: var(--step--1); color: var(--muted); }
.ticks { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; max-width: 65ch; }
.ticks li::marker { color: var(--amber); }
.stage { display: inline-block; padding: 0.15rem 0.55rem; border: 1px solid var(--rule); border-radius: 999px; font: 500 var(--step--1)/1.3 var(--mono); color: var(--muted); }
.stage.now { border-color: var(--amber); color: var(--amber); }
main { display: block; }
nav { flex-wrap: wrap; gap: 0.5rem 1.1rem; }
footer a { color: inherit; }
.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; }
/* Header: brand and language on the first row (language top right, as on the Scent AI platform), nav below. */
header.top { display: grid; grid-template-columns: 1fr auto; align-items: center; }
header.top nav { grid-column: 1 / -1; }
.lang { position: relative; font-size: var(--step--1); }
.lang summary { list-style: none; cursor: pointer; padding: 0.3rem 0.75rem; border: 1px solid var(--rule); border-radius: 999px; white-space: nowrap; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; display: inline-block; margin-left: 0.45rem; width: 0.4em; height: 0.4em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.2em) rotate(45deg); }
.lang[open] summary, .lang summary:hover { border-color: var(--amber); }
.lang summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 10; list-style: none; margin: 0; padding: 0.35rem 0;
  min-width: 12rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 6px 20px rgb(0 0 0 / 0.12); }
.lang li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.35rem 0.9rem; }
.lang li a { text-decoration: none; }
.lang li a[aria-current] { color: var(--amber); font-weight: 600; }
.lang .beta { font: 500 0.7rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.beta-note, .lang-offer { margin: 1rem 0 0; padding: 0.6rem 0.8rem; background: var(--panel); border-radius: 6px;
  font-size: var(--step--1); color: var(--muted); max-width: none; }
.beta-note .stage { margin-right: 0.35rem; }
.lang-offer a { color: var(--ink); }
/* Japanese and Chinese: the Latin display fonts have no CJK glyphs, so use each system's CJK face, keep headings
   upright (no negative tracking), and break lines at phrase boundaries where the browser can. */
:lang(ja) { --display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Meiryo", system-ui, sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Meiryo", system-ui, sans-serif; }
:lang(zh) { --display: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif; }
:lang(ja) h1, :lang(zh) h1 { letter-spacing: 0; line-height: 1.25; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .lede { word-break: auto-phrase; }
:lang(ja), :lang(zh) { line-break: strict; }
:lang(ja) .eyebrow, :lang(zh) .eyebrow { letter-spacing: 0.02em; }
@media (max-width: 640px) {
  .cards.two, .cards.three { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .loop li, .status li, .contacts { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .trace { stroke-dasharray: 2600; stroke-dashoffset: 0; animation: draw 2.4s ease-out both; }
  @keyframes draw { from { stroke-dashoffset: 2600; } to { stroke-dashoffset: 0; } }
}
/* Studio pages: the engagement table and the measure line on result cards. */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; }
table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--step--1); }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); }
th { font: 500 var(--step--1)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--panel); }
tr:last-child td { border-bottom: 0; }
.cards p.metric { color: var(--amber); font: 500 var(--step--1)/1.4 var(--mono); }
section > h3 { margin-top: 0.6rem; }
/* Diagnostic form (contact page) */
.diag { display: grid; gap: 0.9rem; max-width: 36rem; }
.field { display: grid; gap: 0.3rem; }
.field label { font: 500 var(--step--1)/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.field input, .field textarea, .field select { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 0.55rem 0.7rem; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.check { display: flex; gap: 0.5rem; align-items: baseline; font-size: var(--step--1); }
button.button { cursor: pointer; }
button.button:disabled { opacity: 0.6; cursor: not-allowed; }   /* disabled is not "loading" (Bill 24 Nov: the cursor just spins) */
.form-msg { font-size: var(--step--1); }
[hidden] { display: none !important; }
/* Illustrations (assets/art): original SVGs in the site palette, no text inside (the alt text is translated with the
   page). A soft wash behind the top of the page; in dark mode the drawings are inverted so light fills turn dark. */

.art { display: block; width: 100%; max-width: 100%; height: auto; }
.hero .art { margin-top: 0.4rem; }

/* IS brand skin (2026-11-16): the Scent AI deck's look. ------------------------------------------------------------ */
body { background: var(--paper); }
.wrap { max-width: 68rem; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
header.top { position: relative; border-bottom: 0; color: #fff; padding-block: 1.1rem; }
header.top::before { content: ""; position: absolute; inset: 0 -100vmax; background: var(--navy); z-index: -1; }
header.top .mark span { color: var(--gold); }
header.top nav a { color: #dce7ea; text-decoration: none; }
header.top nav a:hover, header.top nav a[aria-current="page"] { color: var(--gold); }
header.top .lang summary { border-color: #3b5f6e; color: #fff; }
header.top .lang ul { color: var(--ink); }
.eyebrow { font: 700 0.74rem/1.3 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
h1 { font-weight: 700; letter-spacing: -0.01em; }
h2 { font-weight: 700; letter-spacing: -0.005em; }
section { padding-block: 3.2rem 0; }
/* Dark bands: full width behind the reading column, white text, gold eyebrows (the deck's navy slides). */
section.band { position: relative; color: #eef3f5; padding-block: 3.2rem; margin-top: 3.2rem; }
section.band::before { content: ""; position: absolute; inset: 0 -100vmax; background: var(--navy); z-index: -1; }
section.band + section.band { margin-top: 0; }
section.band + section.band::before { background: var(--navy-2); }
section.band .eyebrow { color: var(--gold); }
section.band p, section.band .lede { color: #c8d6db; }
section.band a:not(.button) { color: #fff; text-decoration-color: var(--gold); }
section.band .art { filter: none; opacity: 0.95; }
.hero.band { margin-top: 0; padding-block: 4rem 3.2rem; }
.hero.band h1 { color: #fff; max-width: 22ch; }
main { position: relative; z-index: 0; }
/* Buttons: gold primary, outlined secondary. */
.button { border-radius: 6px; padding: 0.75rem 1.15rem; font-weight: 700; border-color: var(--teal); color: var(--teal); }
.button.primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.button.primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); }
section.band .button:not(.primary) { border-color: #6cc6cd; color: #fff; }
/* Cards: white with a soft shadow on light ground; navy panels inside bands. */
.cards { gap: 1rem; background: none; border: 0; border-radius: 0; overflow: visible; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards li { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 1.15rem 1.2rem; box-shadow: 0 2px 10px rgb(11 31 42 / 0.07); }
.cards h3 { font-size: var(--step-0); color: var(--teal); }
.cards p { color: var(--muted); }
section.band .cards li { background: var(--navy-2); border-color: #2a4c5a; box-shadow: none; }
section.band + section.band .cards li { background: var(--navy-3); }
section.band .cards h3 { color: #fff; font-size: var(--step-1); }
section.band .cards .eyebrow { color: var(--teal-2); }
section.band .cards p { color: #a9bec5; }
.cards p.metric { color: var(--gold-2); font: 700 var(--step--1)/1.4 var(--body); }
/* The deck's callout bar: teal strip, gold label. */
.callout { max-width: none; background: var(--teal); color: #fff !important; border-radius: 6px; padding: 0.8rem 1rem; font-size: var(--step--1); }
.callout strong { color: var(--gold); }
/* Steps (how it works) as the deck's numbered tiles. */
section.band .loop { border-top: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
section.band .loop li { display: grid; grid-template-columns: 1fr; gap: 0.4rem; padding: 1rem; border: 0; border-radius: 8px; background: var(--navy-2); }
section.band .loop .k { color: var(--gold); font: 700 0.74rem/1.3 var(--body); letter-spacing: 0.14em; }
.ticks li::marker { color: var(--gold-2); }
section.band .ticks li { color: #c8d6db; }
.tablewrap { border-radius: 8px; background: var(--card); }
th { font: 700 0.74rem/1.3 var(--body); letter-spacing: 0.1em; background: var(--navy); color: #fff; }
td strong { color: var(--teal); }
.contacts dt { font: 700 0.74rem/1.6 var(--body); letter-spacing: 0.12em; color: var(--teal); }
footer { border-top: 0; position: relative; color: #a9bec5; }
footer::before { content: ""; position: absolute; inset: 0 -100vmax; background: var(--navy); z-index: -1; }
.art { border-radius: 8px; }
@media (max-width: 900px) {
  .cards.four, section.band .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cards.four, section.band .loop { grid-template-columns: 1fr; }
}
html, body { overflow-x: clip; }
.cards p.price-alt { margin-top: -0.3rem; font-weight: 700; color: var(--teal-2) !important; }
section.band .cards.four li:nth-child(-n+2) h3 { font-size: var(--step-2); }

/* ---- rc/24 (CG's brief on #8, the Scent AI deck's composition; Bill 2026-11-18). Wider page, a light introduction with
   a warm photograph beside it (slides 1, 3, 10), teal primary buttons on light ground and gold ones only on navy, reading
   text held to 65 characters. Photos come from assets/photos and carry no words; without one, the illustration stays. */
:root { color-scheme: light; }
.wrap { max-width: 75rem; padding-inline: max(20px, min(48px, 4vw), env(safe-area-inset-left, 0px)); }
section > p, .lede { max-width: 65ch; }
.button.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.button.primary:hover { background: #0a5960; border-color: #0a5960; color: #fff; }
section.band .button.primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
section.band .button.primary:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); }
.hero.split { display: grid; gap: 1.6rem; padding-block: 3rem 0; }
.hero.split h1 { color: var(--ink); max-width: 20ch; }
.hero-text { display: grid; gap: 1.2rem; align-content: center; min-width: 0; }
.photo { margin: 0; border-radius: 8px; overflow: hidden; background: var(--cream); box-shadow: 0 10px 30px rgb(11 31 42 / 0.14); min-width: 0; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.photo.focus-l img { object-position: 25% 50%; } .photo.focus-r img { object-position: 75% 50%; }
.photo.focus-t img { object-position: 50% 25%; } .photo.focus-b img { object-position: 50% 75%; }
.hero.split:has(.photo) > .art { display: none; }
@media (min-width: 900px) {
  .hero.split:has(.photo) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: stretch; }
  .hero.split:has(.photo) .photo { min-height: 440px; max-height: 560px; }
  .hero.split.narrow-photo:has(.photo) { grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr); }
}
@media (max-width: 899px) { .hero.split .photo { aspect-ratio: 3 / 2; } }

/* ---- rc/25 (Bill 2026-11-18: "How it works", "Pay for what is proven", "Start with a diagnostic" and the footer still
   looked old). The navy bands become warm cream panels like the rest of the light page; tiles are white cards with a
   teal step number; the footer is light. rc/31: the header is light too (Bill: never dark). */
section.band { color: var(--ink); }
section.band::before { background: var(--cream); border-block: 1px solid #eadfbf; }
section.band + section.band::before { background: #fbf6e8; }
section.band .eyebrow { color: var(--teal); }
section.band p, section.band .lede { color: var(--muted); }
section.band h2 { color: var(--ink); }
section.band a:not(.button) { color: var(--ink); text-decoration-color: var(--teal); }
section.band .button.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
section.band .button.primary:hover { background: #0a5960; border-color: #0a5960; color: #fff; }
section.band .button:not(.primary) { border-color: var(--teal); color: var(--teal); }
section.band .cards li, section.band + section.band .cards li { background: var(--card); border-color: #eadfbf; box-shadow: 0 2px 10px rgb(11 31 42 / 0.06); }
section.band .cards h3 { color: var(--teal); }
section.band .cards .eyebrow { color: var(--gold-2); }
section.band .cards p { color: var(--muted); }
section.band .ticks li { color: var(--muted); }
.cards p.price-alt { color: var(--teal) !important; }
section.band .art { filter: none; opacity: 1; }
section.band .loop { counter-reset: step; align-items: stretch; }
section.band .loop li { background: var(--card); border: 1px solid #eadfbf; box-shadow: 0 2px 10px rgb(11 31 42 / 0.06);
  align-content: start; grid-template-rows: auto 1fr; counter-increment: step; }
section.band .loop .k { color: var(--teal); }
section.band .loop .k::before { content: counter(step, decimal-leading-zero) "  "; color: var(--gold-2); white-space: pre; }
section.band .loop li p { color: var(--muted); }
footer { color: var(--muted); border-top: 1px solid var(--rule); }
footer::before { background: var(--card); }
/* The engagement table: on narrow screens each row becomes a card, each cell labelled with its column (the build copies
   the translated header into data-label), so no column is ever cut off. */
@media (max-width: 760px) {
  .tablewrap { overflow: visible; border: 0; background: none; }
  .tablewrap table { min-width: 0; display: block; }
  .tablewrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tablewrap tbody { display: grid; gap: 0.75rem; }
  .tablewrap tr { display: grid; gap: 0.35rem; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 0.9rem 1rem;
    box-shadow: 0 2px 10px rgb(11 31 42 / 0.06); }
  .tablewrap td { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0; border: 0; }
  .tablewrap td::before { content: attr(data-label); font: 700 0.7rem/1.6 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .tablewrap td:first-child { display: block; font-size: var(--step-0); padding-bottom: 0.2rem; border-bottom: 1px solid var(--rule); margin-bottom: 0.2rem; }
  .tablewrap td:first-child::before { content: none; }
}
@media (max-width: 380px) { .tablewrap td { grid-template-columns: 1fr; gap: 0.1rem; } }

/* ---- rc/31 (Bill 2026-11-18: "the color scheme should never be dark"). The header and table headings join the light
   page: white ground, ink text, teal links, a teal rule under the header. Nothing on the site is navy any more. */
header.top { color: var(--ink); border-bottom: 3px solid var(--teal); }
header.top::before { background: var(--card); }
header.top .mark span { color: var(--teal); }
header.top nav a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); }
header.top nav a:hover, header.top nav a[aria-current="page"] { color: var(--teal); text-decoration-color: var(--teal); }
header.top .lang summary { border-color: var(--rule); color: var(--ink); }
th { background: #dfeaee; color: var(--ink); }
/* rc/31: the home-page callout is a light teal panel with a teal edge, not a solid teal block (never dark). */
.callout, p.callout { background: color-mix(in srgb, var(--teal) 9%, #ffffff); color: var(--ink) !important; border-left: 4px solid var(--teal); }
.callout strong { color: var(--teal); }
.callout a, p.callout a { color: var(--teal); }
/* 0121: a customer's own request form (e.g. Find my deed) */
.request-form { display: grid; gap: 0.9rem; max-width: 34rem; margin-top: 1.2rem; padding: 1.2rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.request-form .field select { min-height: 2.6rem; }
.request-form .check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: var(--step--1); }
.request-form [aria-invalid="true"] { border-color: #b4532a; }
.request-done { max-width: 34rem; margin-top: 1.2rem; padding: 1.2rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; }
.request-pay { margin-top: 1rem; display: grid; gap: 0.5rem; justify-items: start; }
/* A notice the law asks for (e.g. Fla. Stat. 817.417(5)): as large and as visible as the body text, never fine print. */
.legal-notice { margin: 1rem 0; padding: 0.9rem 1rem; border: 2px solid var(--rule); border-radius: 8px; background: var(--paper); font-size: 1rem; color: inherit; }
.legal-notice strong { display: block; margin-bottom: 0.3rem; letter-spacing: 0.02em; }
.legal-notice a { overflow-wrap: anywhere; }
/* Data tables built from an app's own data (build_app.py data_tables): scroll sideways inside, never the page. */
.table-scroll { overflow-x: auto; max-width: 100%; margin: 1rem 0; }
table.data { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--rule); }
table.data th { white-space: nowrap; }
/* 0126 storefront: search, results, basket */
.sf-search { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; }
.sf-search input { flex: 1 1 16rem; min-width: 0; }
.sf-qty { width: 5.5rem; }
.sf-add { white-space: nowrap; }
.sf-basket { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.sf-basket li { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.sf-basket li span { flex: 1 1 14rem; min-width: 0; }
.sf-pad { margin: 0.5rem 0 1.5rem; }
.sf-pad summary { cursor: pointer; padding: 0.35rem 0; }
.sf-pad textarea { width: 100%; margin: 0.5rem 0; }
.sf-added { color: var(--teal); font-size: var(--step--1); }
/* Phones: each result is a card, with Add in reach (a wide table hid it off screen) */
@media (max-width: 640px) {
  table.sf-table thead { display: none; }
  table.sf-table, table.sf-table tbody, table.sf-table tr, table.sf-table td { display: block; width: 100%; min-width: 0; }   /* min-width: tables default to 34rem */
  table.sf-table tr { box-sizing: border-box; border: 1px solid var(--rule); border-radius: 8px; padding: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
  table.sf-table tr.best { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent); }
  table.sf-table tr.best td { background: none; }
  table.sf-table td.notes { color: var(--muted); font-size: var(--step--1); padding-top: 0.35rem; }
  table.sf-table td { border: 0; padding: 0.15rem 0; }
  table.sf-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted, inherit); }
  table.sf-table td.sf-add { display: flex; gap: 0.5rem; align-items: center; padding-top: 0.5rem; }
}

/* 0127: guided request */
.guided { display: grid; gap: 1rem; min-width: 0; }
.guided-nav { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.choices { display: grid; gap: 0.5rem; }
.field .choice { font: inherit; font-size: var(--step-0); text-transform: none; letter-spacing: normal; color: var(--ink); }   /* a choice reads like text, not like a field label */
.js-request > .lede { margin-bottom: 1.25rem; }
.choice { display: flex; gap: 0.6rem; align-items: center; padding: 0.7rem 0.9rem; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.choices[aria-invalid="true"] .choice { border-color: var(--bad); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 0.4rem; }
.with-unit { display: flex; align-items: stretch; }
.with-unit .unit { display: grid; place-items: center; padding: 0 0.7rem; border: 1px solid var(--rule); border-right: 0; border-radius: 6px 0 0 6px; color: var(--muted); }
.with-unit input { flex: 1; min-width: 0; border-radius: 0 6px 6px 0; }
.computed { display: grid; gap: 0.75rem; }
.computed-best { font-size: var(--step-1, 1.15rem); }
table.data tr.best td { background: color-mix(in srgb, var(--teal) 10%, transparent); font-weight: 600; }
.button.link { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--teal); justify-self: start; }

/* 0131: the store */
.sf-hero input { font-size: var(--step-1, 1.15rem); padding: 0.8rem 1rem; }
.sf-groups { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.sf-groups a { display: grid; gap: 0.2rem; padding: 1rem; border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--panel); }
.sf-groups a:hover, .sf-groups a:focus-visible { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.sf-crumb { font-size: var(--step--1); color: var(--muted); }
.sf-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0.5rem 0 1rem; }
.sf-facts dt { color: var(--muted); }
.sf-facts dd { margin: 0; }
.sf-buy { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 0.1rem 0.45rem; border-radius: 999px; background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--ink); vertical-align: middle; }
.notice { padding: 0.6rem 0.8rem; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); border-radius: 4px; }
.sf-pill { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  background: var(--teal); color: #fff; padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.sf-qty { width: 6rem; padding: 0.55rem 0.6rem; border: 1px solid var(--rule); border-radius: 6px; font: inherit; background: var(--panel); color: var(--ink); }
/* 0135: several short answers, and a box to tick */
.list-answers { display: grid; gap: .5rem; }
.list-answers .button { justify-self: start; }
.field.check { display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.field.check small { flex-basis: 100%; }

/* Bill 2026-11-24: one footer on every site, at the bottom of the screen even on a short page */
.wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: 0; }
.wrap > main { flex: 1 0 auto; }
/* Header tools at the right edge, as on the IS site: the cart (store sites), then the language */
header.top .top-tools { display: flex; align-items: center; gap: 0.6rem; justify-self: end; }
.cart { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border: 1px solid currentColor; border-radius: 999px;
  text-decoration: none; color: inherit; font-size: var(--step--1); white-space: nowrap; }
.cart:hover, .cart:focus-visible { border-color: var(--amber); }
.cart-icon { width: 1.15em; height: 1.15em; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11h11.2L21 7H6.2'/%3E%3Ccircle cx='9' cy='19.5' r='1.5'/%3E%3Ccircle cx='17' cy='19.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11h11.2L21 7H6.2'/%3E%3Ccircle cx='9' cy='19.5' r='1.5'/%3E%3Ccircle cx='17' cy='19.5' r='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.cart-n { min-width: 1.5em; padding: 0 0.4em; border-radius: 999px; border: 1px solid currentColor; text-align: center; font-weight: 600; line-height: 1.4; }
.cart.has-items .cart-n { background: var(--amber); border-color: var(--amber); color: #fff; }
.cart.bump { animation: cart-bump 0.5s ease-out; }
@keyframes cart-bump { 35% { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .cart.bump { animation: none; } }
.top-search { grid-column: 1 / -1; display: flex; gap: 0.5rem; margin: 0; }
.top-search input { flex: 1 1 auto; min-width: 0; padding: 0.5rem 0.7rem; border: 1px solid var(--rule); border-radius: 4px; font: inherit; color: var(--ink); background: var(--paper); }
/* Add says it worked, where the buyer is looking */
.button.is-added { border-color: var(--amber); color: var(--amber); }
.sf-in-cart td { background: color-mix(in srgb, var(--amber) 8%, transparent); }
.sf-msg:empty { display: none; }
.sf-note { margin: 0.6rem 0; padding: 0.55rem 0.8rem; border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 7%, transparent); }
.sf-note a { font-weight: 600; }
/* The sign-in prompt on arrival, and the account step in the cart */
.sf-arrive { position: relative; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; margin: 1rem 0; padding: 0.8rem 2.6rem 0.8rem 1rem;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--card, var(--paper)); }
.sf-arrive p { margin: 0; flex: 1 1 18rem; min-width: 0; }
.sf-arrive .sf-arrive-do { flex: 0 0 auto; }
.sf-x { position: absolute; top: 0.35rem; right: 0.45rem; border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0.2rem 0.45rem; }
.sf-account { margin: 1.5rem 0; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 8px; }
.sf-account h2 { margin-top: 0; }
.sf-tabs { display: flex; gap: 0.4rem; margin: 0.6rem 0; }
.sf-tab { padding: 0.4rem 0.9rem; border: 1px solid var(--rule); border-radius: 999px; background: none; font: inherit; cursor: pointer; color: inherit; }
.sf-tab[aria-selected="true"] { border-color: var(--amber); color: var(--amber); font-weight: 600; }
.sf-acct-form { display: grid; gap: 0.6rem; max-width: 28rem; }
.sf-line-price { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Bill 2026-11-24: the businesses, all in development, Chilean Tax Relief first, each with how far along it is */
.businesses li.lead { border-left: 3px solid var(--amber); }
.businesses li.lead h3 { font-size: var(--step-2); }
.progress-line { display: flex; align-items: center; gap: 0.6rem; margin: 0.4rem 0; font-size: var(--step--1); color: var(--muted); }
.progress-line progress { flex: 0 1 9rem; min-width: 5rem; height: 0.55rem; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--rule); overflow: hidden; }
.progress-line progress::-webkit-progress-bar { background: var(--rule); border-radius: 999px; }
.progress-line progress::-webkit-progress-value { background: var(--amber); border-radius: 999px; }
.progress-line progress::-moz-progress-bar { background: var(--amber); border-radius: 999px; }
