/* Pockety landing (/ and /en/). Self-contained: the other pages use styles.css. */

/* Self-hosted fonts (SIL OFL 1.1, see assets/fonts/): Archivo, Kalam, Courier Prime; latin + latin-ext */
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-var-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-var-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/courier-prime-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/courier-prime-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/kalam-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/kalam-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/kalam-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/kalam-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --ground: #111413;
  --ground-2: #1b1e1d;
  --ground-3: #242827;
  --hairline: #2c302f;
  --line-dark: #4e5452;
  --text: #f3f1ec;
  --text-2: #c3c8c5;
  --text-3: #a7adaa;

  --paper: #f3f1ec;
  --paper-2: #e6e2d8;
  --rule: #d6d1c5;
  --ink: #151817;
  --ink-2: #565d5a;
  --printed: #0b6f66;
  --carbon: #0b6f66;
  --carbon-faint: #3f948c;
  --teal: #0b6f66;
  --mint: #5eead4;
  --mint-ink: #06201c;
  --accent: var(--mint);
  --on-accent: var(--mint-ink);
  --carbon-copy: var(--mint);
  --hole: var(--ground);
  --control: var(--line-dark);
  --tint-dark: #133b35;
  --coral: #ff8a73;
  --amber: #f5b84b;
  --error: #a93226;

  --f-ana: #f4b183;
  --f-carlos: #9ac7f0;
  --f-lucia: #c2b4ee;
  --f-pablo: #b7db9b;

  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --hand: "Kalam", "Segoe Print", cursive;
  --mono: "Courier Prime", ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.2, 0, 0, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;

  color-scheme: dark light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-dark) var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--on-accent); }
img, svg { display: block; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sheet :focus-visible, .stub :focus-visible { outline-color: var(--teal); }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.printed {
  font-family: var(--sans);
  font-stretch: 75%;
  font-weight: 650;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--printed);
  line-height: 1.3;
}
.hand { font-family: var(--hand); font-weight: 400; color: var(--ink); }
.hand.big { font-size: 2rem; line-height: 1; font-weight: 700; }

/* tabular handwritten figures (spans are built by scene.js) */
.fig { white-space: nowrap; }
.fig .c { display: inline-block; width: 0.55em; text-align: center; }
.fig .s { display: inline-block; width: 0.26em; text-align: center; }
.fig .sp { display: inline-block; width: 0.24em; }
.fig .sg { display: inline-block; width: 0.62em; text-align: center; }
.fig .cur { display: inline-block; width: 0.66em; text-align: right; }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; padding: 6px 0; }
.brand picture { display: contents; }
.brand img { height: 30px; width: auto; }
.head-nav { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--control); border-radius: 999px;
  color: var(--text); background: transparent; text-decoration: none;
  font-size: 0.95rem; font-weight: 550; cursor: pointer;
  transition: border-color 0.15s var(--ease-std), background-color 0.15s var(--ease-std);
}
.lang:hover { border-color: var(--accent); }

/* ---------- Paper sheets ---------- */
.sheet { position: relative; isolation: isolate; color: var(--ink); --ink-c: var(--ink); }
.carbon {
  position: absolute; inset: 0; z-index: -1;
  background: var(--carbon-copy);
  border-radius: 2px;
  transform: translate(8px, 10px) rotate(0.5deg);
}
.sheet-paper {
  position: relative;
  background: var(--paper);
  border-radius: 0 0 3px 3px;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 36px) clamp(20px, 3vw, 32px);
  -webkit-mask: radial-gradient(circle 4.5px at 50% 0, #0000 95%, #000) 0 0 / 13px 100% repeat-x;
          mask: radial-gradient(circle 4.5px at 50% 0, #0000 95%, #000) 0 0 / 13px 100% repeat-x;
}
.sheet-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--printed);
}
.mesa { display: flex; align-items: baseline; gap: 0.45rem; }
.mesa .printed { font-size: 0.95rem; }
.mesa .num { color: var(--printed); }
.place { font-size: 0.78rem; }

.cols, .line {
  display: grid;
  grid-template-columns: 2.1em minmax(0, 1fr) auto 4.6em;
  align-items: baseline;
  column-gap: 0.6rem;
}
.cols { padding: 10px 0 4px; border-bottom: 1px solid var(--rule); }
.cols span:last-child { text-align: right; }
.cols span:nth-child(3) { text-align: right; padding-right: 0.2rem; }

.line {
  font-family: var(--hand);
  font-size: 1.17rem;
  line-height: 1.45;
  color: var(--ink-c);
  padding: 0.24rem 0;
  border-bottom: 1px solid var(--rule);
}
.line .q { text-align: center; }
.line .dish { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line .amt { text-align: right; }
.who { display: inline-flex; justify-content: flex-end; align-self: center; }

/* avatar: the app's initial on a fabric tint (light surface) */
.av {
  display: inline-grid; place-items: center;
  width: 1.55rem; height: 1.55rem; border-radius: 50%;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 650; line-height: 1;
  color: var(--ink);
  background: var(--fab);
  box-shadow: 0 0 0 2px var(--paper);
}
.who .av + .av { margin-left: -0.32rem; }
.av-a { --fab: color-mix(in srgb, var(--f-ana) 55%, #fff); }
.av-c { --fab: color-mix(in srgb, var(--f-carlos) 55%, #fff); }
.av-l { --fab: color-mix(in srgb, var(--f-lucia) 55%, #fff); }
.av-p { --fab: color-mix(in srgb, var(--f-pablo) 55%, #fff); }

.sheet, .pad, .stub { --coral: #e8573f; }
.tick { width: 26px; height: 20px; }
.coral-tick { color: var(--coral); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px var(--gutter) clamp(64px, 9vw, 120px);
}
.pad {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 340px);
  max-width: 1120px;
}
.pad::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--carbon-copy); border-radius: 2px;
  transform: translate(9px, 11px) rotate(0.35deg);
}
.hero-sheet > .carbon { display: none; }
.hero-sheet .sheet-paper { height: 100%; padding-bottom: clamp(24px, 3vw, 36px); }
.hero .line .dish { font-size: 1.2rem; }
.line.more { display: none; }

.total-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 0.75rem;
  padding: 0.8rem 0 0.2rem;
}
.total-row .printed { font-size: 0.95rem; }
.total-row .amt.total {
  grid-column: 3;
  font-family: var(--hand); font-weight: 700; font-size: 1.85rem; line-height: 1.2;
}
.total-row .underline {
  position: absolute; right: 0; bottom: -10px; width: 9.2rem; height: 14px;
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round;
}
.total-row .tick { position: absolute; right: 9.6rem; bottom: 4px; }

.hero h1 {
  margin-top: clamp(22px, 3vw, 34px);
  font-family: var(--sans);
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(3.3rem, 1.4rem + 5.6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 800; color: var(--teal); }
.offer {
  margin-top: 14px;
  max-width: 40ch;
  font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
  line-height: 1.45;
  color: var(--ink-2);
}

/* ---------- The stub (waitlist form) ---------- */
.stub {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  color: var(--ink);
  transform-origin: 0 0;
  transition: transform 0.55s var(--ease);
}
.perf {
  position: relative;
  background:
    radial-gradient(circle 3.6px at 50% 50%, var(--hole) 92%, #0000) 0 4px / 18px 13px repeat-y,
    var(--paper);
  cursor: grab;
  touch-action: none;
  transition: opacity 0.2s;
}
.perf:active { cursor: grabbing; }
.grip-hint {
  position: absolute; left: -2px; top: -2.1rem; white-space: nowrap;
  font-family: var(--hand); font-size: 1.05rem; color: var(--accent);
  pointer-events: none;
}
.stub-paper {
  background: var(--paper);
  padding: clamp(22px, 2.6vw, 32px) clamp(18px, 2.2vw, 28px);
  display: flex; flex-direction: column; gap: 10px;
  border-radius: 0 3px 3px 0;
}
.stub-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.stub-foot .soon { margin: 0; padding: 0; }
.stub-num { font-size: 0.7rem; color: var(--ink-2); }
.stub-title {
  font-stretch: 85%;
  font-weight: 750;
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.stub-note { color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; }
.stub-legal { font-size: 0.82rem; line-height: 1.4; }
.stub-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.stub.torn .stub-legal { display: none; }
.stub label { margin-top: 6px; font-weight: 600; font-size: 0.92rem; }
.stub input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1.5px solid #868a86;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  caret-color: var(--teal);
  font-size: 1.02rem;
  transition: border-color 0.15s var(--ease-std);
}
.stub input::placeholder { color: #697069; }
.stub input:hover { border-color: var(--ink-2); }
.stub input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-color: var(--teal); }
.stub input[aria-invalid="true"] { border-color: var(--error); }
.stub input[readonly] { background: var(--paper-2); color: var(--ink-2); }
.btn {
  min-height: 50px;
  border: 0; border-radius: 10px;
  background: var(--teal); color: #fff;
  font-weight: 700; font-size: 1.04rem; letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-std), transform 0.09s var(--ease-std);
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: var(--paper-2); color: var(--ink-2); cursor: default; transform: none; }
.msg { font-size: 0.95rem; line-height: 1.45; min-height: 0; }
.msg:empty { display: none; }
.msg.is-error { color: var(--error); font-weight: 550; }
.msg.is-info { color: var(--ink); }
.msg a { color: var(--teal); font-weight: 650; }
.undo {
  align-self: flex-start;
  min-height: 44px; padding: 0 2px;
  border: 0; background: none; color: var(--teal);
  font-weight: 650; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 0.22em;
  cursor: pointer;
}
.soon { margin-top: auto; padding-top: 10px; color: var(--ink-2); }

.stub.torn { transform: translate(26px, 16px) rotate(3deg); }
.stub.torn .perf { opacity: 0; }
.stub.torn .stub-paper {
  -webkit-mask: radial-gradient(circle 4.5px at 0 50%, #0000 95%, #000) 0 0 / 100% 13px repeat-y;
          mask: radial-gradient(circle 4.5px at 0 50%, #0000 95%, #000) 0 0 / 100% 13px repeat-y;
}
.stub.dragging { transition: none; }

/* ---------- Scene bands ---------- */
.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 136px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.copy { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 18px; }
.copy p { color: var(--text-2); max-width: 60ch; }
h2 {
  font-stretch: 78%;
  font-weight: 760;
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin-top: 6px;
}
h2 em { font-style: italic; color: var(--accent); }
.howto { counter-reset: s; display: grid; gap: 8px; color: var(--text-2); font-size: 0.98rem; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 1.8rem 1fr; align-items: baseline; }
.howto li::before { content: counter(s); font-family: var(--hand); font-weight: 700; font-size: 1.2rem; color: var(--accent); }

.replay {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px;
  border: 1px solid var(--control); border-radius: 999px;
  background: transparent; color: var(--text);
  font-size: 0.92rem; font-weight: 550; cursor: pointer;
  transition: border-color 0.15s var(--ease-std);
}
.replay svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.replay:hover { border-color: var(--accent); }
.replay:hover svg { transform: rotate(-50deg); }

/* ---------- Scene 1: scan ---------- */
.stage-scan {
  display: grid;
  grid-template-columns: minmax(170px, 230px) 64px minmax(0, 1fr);
  align-items: start;
}
.photo {
  position: relative;
  margin-top: 36px;
  padding: 26px 18px;
  background: #050606;
  color: #f3f1ec;
  border-radius: 20px;
  overflow: hidden;
  transform: rotate(-2deg);
}
.finder i { position: absolute; width: 20px; height: 20px; border: 2px solid var(--mint); }
.finder i:nth-child(1) { left: 10px; top: 10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.finder i:nth-child(2) { right: 10px; top: 10px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.finder i:nth-child(3) { left: 10px; bottom: 10px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.finder i:nth-child(4) { right: 10px; bottom: 10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.thermal {
  position: relative;
  background: #fbfaf6;
  color: #2b2b28;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  padding: 14px 10px 16px;
  transform: rotate(1.5deg);
}
.thermal::after {
  content: ""; position: absolute; inset: 0; background: var(--mint);
  mix-blend-mode: multiply; opacity: 0; transition: opacity 0.4s;
}
.thermal p { white-space: nowrap; }
.tc { text-align: center; }
.tb { font-weight: 700; }
.tr2 { display: flex; justify-content: space-between; gap: 8px; }
.thermal .tb.tr2 { margin-top: 4px; border-top: 1px dashed #8a8a84; padding-top: 4px; }
.thermal .tc:last-child { margin-top: 6px; font-size: 9px; }
.scanline {
  position: absolute; left: 14px; right: 14px; top: 20px; height: 2px;
  background: var(--mint);
  opacity: 0;
}
.scene[data-step="1"] .scanline { animation: scan 1.5s var(--ease-std) both; }
@keyframes scan {
  0% { opacity: 0; transform: translateY(0); }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; transform: translateY(290px); }
}

.arrow { overflow: visible; }
.arrow path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.arrow-photo { width: 64px; height: 48px; margin-top: 150px; }

.sheet-scan .sheet-head { padding-bottom: 8px; }
.read {
  display: flex; flex-wrap: wrap; gap: 6px 28px;
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-c);
}
.read div { display: flex; align-items: baseline; gap: 10px; }
.read dd { font-family: var(--hand); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.lines-scan .line { font-size: 1.1rem; }

.has-tray { row-gap: 0; }
.tray {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 4px;
  margin: 6px 0 4px 2.1em;
  padding: 10px 12px 6px;
  border-radius: 14px;
  background: var(--paper-2);
  font-family: var(--sans);
}
.bub { position: relative; width: 58px; display: grid; justify-items: center; gap: 3px; }
.disc { position: relative; display: grid; width: 48px; height: 48px; place-items: center; }
.disc > span {
  grid-area: 1 / 1;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 17px; font-weight: 600; line-height: 1;
}
.d0 { background: #d9d6cd; color: var(--ink-2); }
.d1 {
  background: var(--fab); color: var(--ink);
  box-shadow: 0 0 0 2px var(--paper-2), 0 0 0 4px var(--teal);
  transition: opacity 0.18s var(--ease-std), transform 0.32s var(--ease);
  transition-delay: calc(0.35s + var(--d, 0) * 0.28s);
}
.chk {
  position: absolute; left: 36px; top: 30px;
  width: 20px; height: 20px; padding: 3px;
  border-radius: 50%;
  background: var(--teal); color: #fff;
  box-shadow: 0 0 0 2px var(--paper-2);
  transition: opacity 0.18s var(--ease-std), transform 0.32s var(--ease);
  transition-delay: calc(0.45s + var(--d, 0) * 0.28s);
}
.nm { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.tap {
  position: absolute; left: 50%; top: 2px; width: 44px; height: 44px; margin-left: -22px;
  border-radius: 50%; background: var(--teal); opacity: 0; pointer-events: none;
}
.tray-note { margin-left: auto; align-self: center; font-size: 1.05rem; color: var(--ink-2); }

.split { position: relative; margin-top: 18px; padding-top: 12px; border-top: 3px double var(--ink); }
.arrow-down { position: absolute; left: 46%; top: -74px; width: 34px; height: 64px; }
.arrow-down path { stroke: var(--ink); }
.split-title { margin-bottom: 4px; }
.per li {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr) auto 30px;
  align-items: center;
  column-gap: 0.6rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--rule);
}
.per .pn { font-weight: 600; font-size: 0.98rem; }
.per .amt { font-family: var(--hand); font-weight: 700; font-size: 1.28rem; text-align: right; grid-column: 3; }
.per .tick { grid-column: 4; }
.per-total { border-bottom: 0 !important; }
.per-total .pn { font-size: 0.88rem; }
.note { margin-top: 10px; font-size: 1.05rem; line-height: 1.4; color: var(--ink-2); }

/* ---------- Scene 2: voice ---------- */
.stage-voice {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  grid-template-areas: "dock said" "dock arrow" "dock exp";
  column-gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.dock {
  grid-area: dock;
  position: relative;
  display: grid; justify-items: center; align-content: end; gap: 18px;
  min-height: 320px;
  padding: 28px 18px 24px;
  background: var(--ground-2);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  transition: opacity 0.4s;
}
.listen { position: relative; display: grid; place-items: center; height: 70px; }
.bars { display: flex; align-items: center; gap: 5px; height: 56px; }
.bars i {
  width: 5px; height: 48px; border-radius: 3px; background: var(--accent);
  transform: scaleY(var(--h, 0.4)); transform-origin: center;
}
.bars i:nth-child(1) { --h: 0.25; } .bars i:nth-child(2) { --h: 0.6; } .bars i:nth-child(3) { --h: 0.9; }
.bars i:nth-child(4) { --h: 0.5; } .bars i:nth-child(5) { --h: 0.8; } .bars i:nth-child(6) { --h: 0.4; }
.bars i:nth-child(7) { --h: 0.2; }
.scene[data-step="1"] .bars i, .scene[data-step="2"] .bars i { animation: talk 0.62s ease-in-out infinite alternate; }
.bars i:nth-child(2n) { animation-delay: -0.31s !important; }
.bars i:nth-child(3n) { animation-delay: -0.17s !important; }
@keyframes talk { from { transform: scaleY(0.18); } to { transform: scaleY(1); } }
.ring {
  position: absolute; left: 50%; bottom: -112px; width: 64px; height: 64px; margin-left: -32px;
  border-radius: 50%; border: 2px solid var(--accent); opacity: 0;
}
.scene[data-step="1"] .ring, .scene[data-step="2"] .ring { animation: ring 1.3s var(--ease) infinite; }
@keyframes ring { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.fab {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  transition: transform 0.2s var(--ease-std);
}
.fab svg { width: 30px; height: 30px; }
.scene[data-step="1"] .fab, .scene[data-step="2"] .fab { transform: scale(0.9); }
.dock-cap { font-size: 0.88rem; color: var(--text-3); text-align: center; line-height: 1.35; }

.said {
  grid-area: said;
  justify-self: start;
  max-width: 460px;
  background: var(--paper);
  color: var(--ink-c);
  --ink-c: var(--ink);
  padding: 18px 22px 16px;
  transform: rotate(-1.2deg);
  -webkit-mask: radial-gradient(circle 4.5px at 50% 0, #0000 95%, #000) 0 0 / 13px 100% repeat-x;
          mask: radial-gradient(circle 4.5px at 50% 0, #0000 95%, #000) 0 0 / 13px 100% repeat-x;
}
.said p { font-family: var(--hand); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.3; font-weight: 700; }
.word { display: inline-block; }
.arrow-voice { grid-area: arrow; width: 70px; height: 52px; margin: 6px 0 6px 36px; }
.sheet-exp { grid-area: exp; max-width: 460px; }
.exp-main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0 6px; }
.exp-title { font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.exp-amt { font-family: var(--hand); font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.paid { display: flex; align-items: center; gap: 8px; padding: 6px 0 10px; border-bottom: 1px solid var(--rule); font-weight: 600; }
.per-exp li { grid-template-columns: 1.9rem minmax(0, 1fr) auto; }
.owe { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 1rem; }
.owe strong { font-family: var(--hand); font-size: 1.2rem; }

/* ---------- Scene 3: settle ---------- */
.sheet-settle .sheet-paper { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, 1fr); column-gap: clamp(20px, 3vw, 40px); }
.sheet-settle .sheet-head { grid-column: 1 / -1; }
.untangle { padding: 18px 0 6px; }
.untangle svg { width: 100%; height: auto; overflow: visible; }
.arr { fill: none; stroke: var(--ink-c); stroke-width: 2.2; stroke-linecap: round; }
.arr.bold { stroke-width: 3.8; }
.untangle .head { fill: none; stroke: var(--ink-c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.resolved .head { stroke-width: 3.6; }
.lbl { font-family: var(--hand); font-size: 20px; fill: var(--ink-c); font-weight: 400; }
.lbl-big { font-size: 26px; font-weight: 700; }
.pc { stroke: var(--paper); stroke-width: 3; }
.pc-a { fill: color-mix(in srgb, var(--f-ana) 55%, #fff); }
.pc-c { fill: color-mix(in srgb, var(--f-carlos) 55%, #fff); }
.pc-l { fill: color-mix(in srgb, var(--f-lucia) 55%, #fff); }
.pc-p { fill: color-mix(in srgb, var(--f-pablo) 55%, #fff); }
.pi { font-family: var(--sans); font-weight: 650; font-size: 23px; fill: var(--ink); text-anchor: middle; }
.pnm { font-family: var(--sans); font-weight: 650; font-size: 17px; fill: var(--ink); }

.payments { position: relative; padding: 20px 0 8px; display: flex; flex-direction: column; gap: 18px; }
.nets li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 4.2rem; align-items: baseline; column-gap: 10px;
  padding: 0.28rem 0; border-bottom: 1px solid var(--rule);
}
.nets .pn { font-weight: 600; font-size: 0.98rem; }
.nets .amt { font-family: var(--hand); font-weight: 700; font-size: 1.22rem; text-align: right; }
.nets .cap { font-size: 0.86rem; color: var(--ink-2); }
.pays { display: grid; gap: 10px; padding-top: 6px; border-top: 3px double var(--ink); }
.pay {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 2px;
  padding: 6px 0;
}
.pay-txt { font-weight: 600; }
.pay .amt { font-family: var(--hand); font-weight: 700; font-size: 1.3rem; text-align: right; }
.state { grid-column: 1 / -1; display: grid; justify-items: start; min-height: 24px; }
.state > * { grid-area: 1 / 1; }
.flag, .mark-paid { display: inline-flex; align-items: center; gap: 6px; }
.flag svg { width: 15px; height: 19px; }
.flag .printed { color: #7a4b00; }
.mark-paid { color: var(--ink-2); }
.strike {
  position: absolute; left: -4px; right: -4px; top: 13px; height: 16px; width: calc(100% + 8px);
  overflow: visible; pointer-events: none;
}
.strike path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.stamp {
  position: relative; align-self: flex-end; margin: -6px 4px 0 0;
  display: grid; justify-items: center;
  padding: 6px 14px 5px;
  color: var(--teal);
  border: 3px solid currentColor;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px currentColor;
  transform: rotate(-9deg);
  background: rgba(243, 241, 236, 0.85);
}
.stamp-in { font-stretch: 70%; font-weight: 850; font-size: 2.05rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.stamp-date { font-stretch: 75%; font-weight: 650; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Scene 4: more ---------- */
.band-more { grid-template-columns: minmax(0, 1fr); }
.copy-wide { position: static; flex-direction: row; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; }
.copy-wide h2 { max-width: 18ch; }
.more-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "rent import" "rent ai";
  gap: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 56px);
  align-items: start;
}
.sheet-rent { grid-area: rent; }
.slip-import { grid-area: import; }
.slip-ai { grid-area: ai; }
.more-grid h3 { font-stretch: 85%; font-weight: 720; font-size: 1.5rem; line-height: 1.12; text-wrap: balance; }
.rent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--printed); }
.sheet-rent h3.exp-title { font-family: var(--hand); font-stretch: 100%; font-size: 2.1rem; font-weight: 700; color: var(--ink); }
.rent-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 10px 0 14px; }
.rent-sum .amt { font-family: var(--hand); font-weight: 700; font-size: 1.3rem; }
.months li {
  display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  padding: 0.32rem 0; border-bottom: 1px solid var(--rule);
}
.months .hand { font-size: 1.15rem; }
.months .amt { font-family: var(--hand); font-size: 1.22rem; text-align: right; }
.months li > :last-child { justify-self: end; min-width: 26px; }
.months .next .amt { color: var(--ink-2); }
.desc { margin-top: 14px; color: var(--ink-2); max-width: 46ch; }
.slip .desc { color: var(--text-2); }

.slip { display: flex; flex-direction: column; gap: 16px; }
.slip .desc { margin-top: 0; }
.import-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.05fr); align-items: center; }
.csv {
  background: #fbfaf6; color: #2b2b28;
  font-family: var(--mono); font-size: 10.5px; line-height: 1.6;
  padding: 10px 12px; transform: rotate(-1.5deg); overflow: hidden;
}
.csv p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csv-name { font-weight: 700; border-bottom: 1px dashed #8a8a84; margin-bottom: 4px; }
.arrow-import { width: 56px; height: 42px; }
.sheet-group .sheet-paper, .sheet-ai .sheet-paper { padding: 18px 18px 14px; }
.group-name { font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1.1; color: var(--ink); }
.members li {
  display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); align-items: center; column-gap: 0.5rem;
  padding: 0.22rem 0; border-bottom: 1px solid var(--rule);
}
.members .pn { font-family: var(--hand); font-size: 1.12rem; line-height: 1.3; }
.group-sub { margin-top: 8px; }

.ai-lines li {
  display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 28px; align-items: baseline; column-gap: 0.6rem;
  padding: 0.45rem 0; border-bottom: 1px solid var(--rule);
}
.ai-lines li:last-child { border-bottom: 0; }
.ai-lines .hand { font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
.ai-lines .fig { font-weight: 700; }
.ai-lines .tick { align-self: center; }
.link {
  align-self: flex-start;
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--accent); font-weight: 650;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Closing ---------- */
.closing {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 168px) var(--gutter) clamp(80px, 10vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.close-copy { display: grid; gap: 18px; }
.close-copy h2 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); }
.close-copy p { color: var(--text-2); max-width: 44ch; font-size: 1.12rem; }
.stub-close { isolation: isolate; }
.stub-close::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--carbon-copy); border-radius: 2px;
  transform: translate(9px, 11px) rotate(0.6deg);
}
.stub-close.torn::before { opacity: 0; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  color: var(--text-3); font-size: 0.92rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); }
.site-footer a:hover { color: var(--text); }

/* ---------- Header link ---------- */
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  color: var(--text); font-size: 0.95rem; font-weight: 550; text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.site-footer a[aria-current="page"] { color: var(--text); }

/* ---------- Features (/funciones, /en/features, landing teaser) ---------- */
.feat-intro {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) var(--gutter) 0;
  display: grid; gap: 18px;
}
.feat-intro h1 {
  font-stretch: 72%;
  font-weight: 800;
  font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.018em;
  text-wrap: balance;
  max-width: 14ch;
}
.feat-intro h1 em { font-style: italic; color: var(--accent); }
.feat-intro > p { color: var(--text-2); font-size: 1.12rem; max-width: 52ch; }
.feat-index ul { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--control); border-radius: 999px;
  color: var(--text); font-size: 0.95rem; font-weight: 550; text-decoration: none;
  transition: border-color 0.15s var(--ease-std);
}
.pill:hover { border-color: var(--accent); }
.pill-n { font-family: var(--hand); font-weight: 700; font-size: 1.1rem; line-height: 1; color: var(--accent); }

.band-feats { scroll-margin-top: 8px; }
.page-features .band-feats { padding-top: clamp(56px, 8vw, 112px); }
.copy .feat-count { color: var(--accent); font-size: 1.2rem; font-weight: 700; }

.feat {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7rem, 12rem);
  column-gap: clamp(14px, 2.4vw, 32px);
  align-items: baseline;
  padding: 0.95rem 0 1rem;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
.feat:last-child { border-bottom: 0; }
.feat-title {
  font-family: var(--hand); font-weight: 700;
  font-size: 1.38rem; line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.feat-title a { color: inherit; text-decoration: none; }
.feat-title a::after { content: ""; position: absolute; inset: 0; }
.feat-title a:hover { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.feat-title a:focus-visible { outline-offset: 2px; }
.feat-desc { margin-top: 4px; color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; max-width: 62ch; }
.feat-eg {
  font-family: var(--hand); font-size: 1.1rem; line-height: 1.35;
  color: var(--ink); text-align: right;
}
.feat-eg .flag { vertical-align: middle; }
.feat:target {
  background: var(--paper-2);
  box-shadow: -12px 0 0 var(--paper-2), 12px 0 0 var(--paper-2);
}
.feats-more { padding-top: 6px; border-top: 3px double var(--ink); }
.sheet .link { color: var(--teal); }

/* ---------- Fact sheet (home, features, press) ---------- */
.band-facts { scroll-margin-top: 8px; }
.sheet-facts { max-width: 760px; }
.facts > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr);
  column-gap: clamp(14px, 2.4vw, 28px);
  align-items: baseline;
  padding: 0.7rem 0 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.76rem; }
.facts dd { margin: 0; font-family: var(--hand); font-size: 1.14rem; line-height: 1.4; color: var(--ink); max-width: 54ch; }
.facts dd a { color: var(--teal); font-weight: 700; text-decoration-thickness: 1px; }
.facts dd a:hover { text-decoration-thickness: 2px; }
.facts-date { margin-top: 10px; padding-top: 10px; border-top: 3px double var(--ink); color: var(--ink-2); font-size: 0.7rem; }
.copy p a, .close-copy p a { color: var(--accent); font-weight: 650; }
.copy p a:hover, .close-copy p a:hover { text-decoration-thickness: 2px; }
@media (max-width: 560px) {
  .facts > div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .facts dd { font-size: 1.08rem; }
}

/* ---------- Press (/prensa, /en/press) ---------- */
.feat-intro > .status-chip { max-width: none; }
.status-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--text); font-weight: 550; }
.status-chip .flag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 3px; background: var(--paper); }
.status-chip .flag svg { width: 14px; height: 18px; }
.status-chip .flag .printed { color: #7a4b00; }
.sheet-press { max-width: 760px; }
.press-text { padding: 0.9rem 0 1rem; border-bottom: 1px solid var(--rule); }
.press-text:last-child { border-bottom: 0; padding-bottom: 0.2rem; }
.press-text-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.press-copy { margin-top: 6px; font-size: 1.02rem; line-height: 1.55; color: var(--ink); max-width: 64ch; }
.press-tag { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1.2; }
.copy-btn {
  flex: none; min-height: 36px; padding: 0 14px;
  border: 1.5px solid var(--teal); border-radius: 10px; background: transparent;
  color: var(--teal); font-size: 0.9rem; font-weight: 650; cursor: pointer;
  transition: background-color 0.15s var(--ease-std), color 0.15s var(--ease-std);
}
.copy-btn:hover { background: var(--teal); color: #fff; }
.copy-btn:active { transform: scale(0.98); }
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 14px 0 6px; }
.logo-tile { display: grid; gap: 8px; }
.logo-prev { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 3px; padding: 14%; }
.logo-prev.on-paper { background: #fff; box-shadow: inset 0 0 0 1px var(--rule); }
.logo-prev.on-ink { background: #111413; }
.logo-prev img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.logo-prev.sym { padding: 10%; }
.logo-prev.sym img { width: auto; height: 64px; }
.logo-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; }
.logo-name { font-weight: 650; font-size: 0.98rem; color: var(--ink); }
.logo-fmt { grid-column: 1; font-size: 0.88rem; color: var(--ink-2); }
.logo-dl { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); font-weight: 650; }
.logo-dl:hover { text-decoration-thickness: 2px; }
.colors-h { margin-top: 16px; padding-top: 12px; border-top: 3px double var(--ink); }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 10px 14px; padding-top: 12px; }
.swatches li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 10px; align-items: center; }
.sw { grid-row: span 2; width: 2.2rem; height: 2.2rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(21, 24, 23, 0.25); }
.sw-name { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.sw-hex { color: var(--ink-2); font-size: 0.74rem; }
.sw-ink { background: #111413; }
.sw-paper { background: #f3f3f0; }
.sw-mint { background: #5eead4; }
.sw-teal { background: #0b6f66; }
.sw-coral { background: #ff8a73; }
.closing-plain { grid-template-columns: minmax(0, 1fr); }
.mail-big {
  justify-self: start; display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--hand); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  color: var(--accent); text-decoration-thickness: 2px; overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .logo-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Calculators (/calculadora-dividir-gastos, /dividir-cuenta-restaurante, /gastos-en-pareja + EN) ---------- */
.band-tool { padding-top: clamp(20px, 4vw, 56px); }
.band-tool h1 {
  font-stretch: 72%; font-weight: 800;
  font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); line-height: 0.96; letter-spacing: -0.018em;
  text-wrap: balance;
}
.band-tool h1 em { font-style: italic; color: var(--accent); }
.tool-intro { font-size: 1.08rem; }
.copy .tool-note { font-size: 0.92rem; color: var(--text-3); }
.sheet-tool, .sheet-example { max-width: 760px; scroll-margin-top: 16px; }

.calc:not(.is-live) .calc-ui { display: none; }
.calc.is-live .calc-nojs { display: none; }
.calc-nojs { padding: 14px 0; color: var(--ink-2); }
.calc-block { margin: 0; padding: 14px 0 12px; border: 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.calc-block legend { float: left; width: 100%; padding: 0 0 8px; }
.calc-block legend + * { clear: both; }

.calc input[type="text"], .calc select {
  min-width: 0; height: 44px; padding: 0 10px;
  border: 1.5px solid #8e948f; border-radius: 10px; background: #fff;
  color: var(--ink); font: inherit; font-size: 1rem; caret-color: var(--teal);
}
.calc select { padding-right: 6px; cursor: pointer; }
.calc input[type="text"]::placeholder { color: #697069; }
.calc input[type="text"]:hover, .calc select:hover { border-color: var(--ink-2); }
.calc input[type="text"]:focus-visible, .calc select:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); border-radius: 10px; }
.calc input[aria-invalid="true"] { border-color: var(--error); }
.calc input:disabled { background: var(--paper-2); color: var(--ink-2); border-color: var(--rule); }
.calc .in-amount { text-align: right; font-family: var(--hand); font-weight: 700; font-size: 1.12rem; }
.cur { font-family: var(--hand); font-weight: 700; color: var(--ink-2); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); gap: 8px 14px; }
.person-row { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) 40px; align-items: center; column-gap: 8px; }
.person-row input { width: 100%; }

.row-x {
  display: inline-grid; place-items: center; width: 40px; height: 44px; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer;
}
.row-x svg { width: 18px; height: 18px; }
.row-x:hover { color: var(--error); background: var(--paper-2); }
.row-x:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--ink-2); }

.calc-add {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; padding: 0 12px 0 8px;
  border: 1.5px dashed var(--teal); border-radius: 10px; background: transparent;
  color: var(--teal); font-weight: 650; font-size: 0.95rem; cursor: pointer;
}
.calc-add svg { width: 18px; height: 18px; }
.calc-add:hover { border-style: solid; background: color-mix(in srgb, var(--teal) 8%, transparent); }
.calc-add:disabled { opacity: 0.45; cursor: default; }

.expenses { display: grid; }
.exp-row { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.exp-row:first-child { padding-top: 2px; }
.exp-row:last-child { border-bottom: 0; }
.exp-top { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) minmax(6rem, 8.5rem) 0.9rem 40px; align-items: center; column-gap: 8px; }
.costs .exp-top, .inc-row { grid-template-columns: minmax(0, 1fr) minmax(6rem, 8.5rem) 0.9rem 40px; }
.inc-row { display: grid; align-items: center; column-gap: 8px; padding: 4px 0; }
.inc-row::after { content: ""; }
.exp-n { font-weight: 700; font-size: 1.15rem; color: var(--printed); text-align: center; }
.exp-top input { width: 100%; }
.exp-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 8px; padding-left: calc(1.4rem + 8px); }
.exp-who select { max-width: 11rem; }
.for-label { margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-face {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 4px;
  border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper-2);
  font-size: 0.92rem; font-weight: 550; color: var(--ink-2);
  transition: border-color 0.15s var(--ease-std), background-color 0.15s var(--ease-std);
}
.chip-face .av { width: 1.6rem; height: 1.6rem; box-shadow: none; filter: grayscale(1); opacity: 0.6; transition: filter 0.15s, opacity 0.15s; }
.chip-in:checked + .chip-face { border-color: var(--teal); background: #fff; color: var(--ink); }
.chip-in:checked + .chip-face .av { filter: none; opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--teal); }
.chip-in:focus-visible + .chip-face { outline: 2px solid var(--teal); outline-offset: 2px; }
.chip:hover .chip-face { border-color: var(--ink-2); }
.row-msg { font-size: 0.9rem; color: var(--error); font-weight: 550; }
.row-msg:empty { display: none; }
.exp-row .row-msg { padding: 6px 0 0 calc(1.4rem + 8px); }
.costs .exp-row .row-msg { padding-left: 0; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg-opt { position: relative; display: inline-flex; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--rule); border-radius: 10px; background: var(--paper-2);
  font-size: 0.95rem; font-weight: 600; color: var(--ink-2);
}
.seg-opt input:checked + span { border-color: var(--teal); background: var(--teal); color: #fff; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.seg-opt:hover span { border-color: var(--ink-2); }
.tip-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tip-row label { font-size: 0.95rem; font-weight: 600; }
.tip-row input { width: 7rem; }
.tip-unit { min-width: 1rem; font-family: var(--hand); font-weight: 700; color: var(--ink-2); }
.tip-msg { margin-top: 6px; }
.mode-equal .only-items { display: none; }
.costs-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); }
.costs-line .amt { font-family: var(--hand); font-weight: 700; font-size: 1.3rem; padding-right: 48px; }

.calc-tools { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 0 4px; }
.calc-ghost {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--ink-2); font-size: 0.92rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.22em;
}
.calc-ghost:hover { color: var(--ink); text-decoration-thickness: 2px; }

.calc-result { margin-top: 10px; padding-top: 12px; border-top: 3px double var(--ink); min-height: 14rem; }
.calc-result h2.res-title { margin: 0 0 6px; font-size: 0.78rem; line-height: 1.3; letter-spacing: 0.09em; font-weight: 650; font-stretch: 75%; }
.res-empty { padding: 12px 0; color: var(--ink-2); }
.res-nets li {
  display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto 4.8rem; align-items: center; column-gap: 0.6rem;
  padding: 0.3rem 0; border-bottom: 1px solid var(--rule);
}
.res-nets .pn, .per .pn { font-weight: 600; font-size: 0.98rem; overflow-wrap: anywhere; }
.res-nets .amt { font-family: var(--hand); font-weight: 700; font-size: 1.22rem; text-align: right; }
.res-nets .cap { font-size: 0.86rem; color: var(--ink-2); }
.res-pays { margin-top: 12px; }
.res-pays .pay-txt { overflow-wrap: anywhere; }
.pay-none { color: var(--ink-2); }
.res-summary { margin-top: 8px; font-size: 1.12rem; color: var(--ink-2); }
.res-summary:empty { display: none; }
.res-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn-sm {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--teal); border-radius: 10px; background: var(--teal);
  color: #fff; font-size: 0.95rem; font-weight: 700; cursor: pointer;
}
.btn-sm:hover { background: var(--ink); border-color: var(--ink); }
.btn-sm:active { transform: scale(0.98); }
.btn-sm.btn-ghost { background: transparent; color: var(--teal); }
.btn-sm.btn-ghost:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.res-people li { grid-template-columns: 1.9rem minmax(0, 1fr) auto; }
.pn-note { display: block; font-weight: 450; font-size: 0.84rem; color: var(--ink-2); }
.res-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 0; border-top: 3px double var(--ink); margin-top: 2px; }
.res-sum:empty { display: none; }
.res-sum .amt { font-family: var(--hand); font-weight: 700; font-size: 1.4rem; }
.res-warn { margin-top: 8px; padding: 8px 10px; border-radius: 3px; background: var(--paper-2); color: var(--ink); font-size: 0.92rem; }

.res-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.res-table th, .res-table td { padding: 0.4rem 0; border-bottom: 1px solid var(--rule); text-align: right; vertical-align: baseline; }
.res-table thead th { font-weight: 650; font-size: 0.98rem; color: var(--ink); overflow-wrap: anywhere; padding-left: 8px; }
.res-table tbody th { text-align: left; font-size: 0.72rem; padding-right: 10px; }
.res-table td { font-family: var(--hand); font-weight: 700; font-size: 1.18rem; padding-left: 8px; white-space: nowrap; }
.res-table .tr-gap th, .res-table .tr-gap td { border-top: 3px double var(--ink); }
.res-table tbody tr:last-child th, .res-table tbody tr:last-child td { border-bottom: 0; }
.res-notes { display: grid; gap: 4px; margin-top: 10px; font-size: 1.06rem; line-height: 1.4; color: var(--ink-2); }

.calc-cta { margin-top: 16px; padding: 12px 14px; border-radius: 3px; background: var(--paper-2); color: var(--ink); font-size: 0.98rem; line-height: 1.5; }
.calc-cta a, .prose a, .related a { font-weight: 650; }
.calc-cta a { color: var(--teal); }

/* Worked examples */
.ex-lines .line, .sheet-example .line { grid-template-columns: 2.1em minmax(0, 1fr) auto 4.6em; }
.ex-who { display: block; font-family: var(--sans); font-size: 0.84rem; line-height: 1.3; color: var(--ink-2); white-space: normal; }
.ex-line .dish { white-space: normal; }
.ex-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(16px, 3vw, 32px); margin-top: 16px; padding-top: 12px; border-top: 3px double var(--ink); }
.ex-debts { display: grid; gap: 2px; padding-top: 6px; font-size: 1.08rem; line-height: 1.4; color: var(--carbon); }
.ex-nets { padding-top: 6px; }
.ex-result { margin-top: 16px; padding-top: 12px; border-top: 3px double var(--ink); }
.ex-result .pays { border-top: 0; }
.ex-open { margin-top: 8px; }
.line-2 { grid-template-columns: minmax(0, 1fr) 6em !important; }
.line-sum .dish { font-size: 0.78rem; }
.line-sum { border-bottom: 0; border-top: 3px double var(--ink); }
.ex-incomes { border-bottom: 1px solid var(--rule); }
.ex-incomes dd { color: var(--ink); }
.ex-table { margin-top: 14px; }

/* Reading bands */
.band-read { scroll-margin-top: 8px; }
.prose { max-width: 66ch; display: grid; gap: 8px; }
.prose h3 { margin-top: 18px; font-stretch: 85%; font-weight: 720; font-size: 1.3rem; line-height: 1.15; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--text-2); }
.prose a, .related a { color: var(--accent); }
.prose a:hover, .related a:hover { text-decoration-thickness: 2px; }
.faq { gap: 0; }
.qa { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.qa:first-child { padding-top: 0; }
.qa h3 { margin-top: 0; margin-bottom: 6px; }
.related { display: grid; gap: 2px; }
.related a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.08rem; }
.updated { margin-top: 12px; font-size: 0.9rem; color: var(--text-3); }

/* Footer: calculators group */
.foot-tools { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.foot-h { font-stretch: 75%; font-weight: 650; font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }

@media (max-width: 560px) {
  .exp-top { grid-template-columns: 1.1rem minmax(0, 1fr) 5.6rem 0.7rem 36px; column-gap: 6px; }
  .costs .exp-top, .inc-row { grid-template-columns: minmax(0, 1fr) 6.2rem 0.7rem 36px; column-gap: 6px; }
  .row-x { width: 36px; }
  .exp-who { padding-left: 0; }
  .exp-row .row-msg { padding-left: 0; }
  .exp-who select { max-width: 100%; flex: 1 1 8rem; }
  .ex-steps { grid-template-columns: minmax(0, 1fr); }
  .res-nets li { grid-template-columns: 1.6rem minmax(0, 1fr) auto; }
  .res-nets .cap { grid-column: 2 / -1; margin-top: -4px; }
  .res-table td { font-size: 1.04rem; }
  .costs-line .amt { padding-right: 42px; }
  .band-tool h1 { font-size: clamp(2.2rem, 9.6vw, 2.8rem); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (max-width: 560px) {
  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat-eg { text-align: left; margin-top: 6px; color: var(--ink-2); }
  .feat-title { font-size: 1.26rem; }
  .feat-desc { font-size: 0.95rem; }
  .feat-intro > p { font-size: 1.02rem; }
  .pill { padding: 0 13px; font-size: 0.9rem; }
}

/* =========================================================
   Scene states. Default (no JS, reduced motion, finished) is
   the final state; .playing turns on the step-by-step build.
   ========================================================= */
/* stagger index (no inline styles: the CSP forbids them) */
.i-1 { --i: 1; }
.i-2 { --i: 2; }
.i-3 { --i: 3; }
.i-4 { --i: 4; }
.i-5 { --i: 5; }
.i-6 { --i: 6; }
.i-7 { --i: 7; }
.i-8 { --i: 8; }
.i-9 { --i: 9; }
.i-10 { --i: 10; }
.i-11 { --i: 11; }
.i-12 { --i: 12; }
.i-13 { --i: 13; }
.tap-1 { --d: 1; }
.tap-2 { --d: 2; }

[data-at] {
  transition: opacity 0.34s var(--ease-std), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stg, 80ms));
}
.word { --stg: 150ms; }
.months li { --stg: 120ms; }
.scene.playing [data-at]:not(.on):not([data-fx]) { opacity: 0; transform: translateY(10px); }
.scene.playing .who[data-at]:not(.on) { transform: translateY(-14px) scale(0.85); }
.scene.playing .photo[data-at]:not(.on) { transform: rotate(-2deg) translateY(16px) scale(0.97); }
.scene.playing .stamp[data-at]:not(.on) { transform: rotate(-9deg) scale(1.7); }
.stamp[data-at] { transition: opacity 0.18s var(--ease-std), transform 0.32s var(--ease); }

/* writing: a paper cover slides off the ink */
.w { position: relative; }
.w::after {
  content: ""; position: absolute; inset: -0.06em -0.18em 0.04em -0.1em;
  background: var(--cover, var(--paper));
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.46s var(--ease-std);
  transition-delay: calc(var(--i, 0) * 90ms);
  pointer-events: none;
}
.scene.playing [data-fx="write"]:not(.on) .w::after { transform: scaleX(1); }

/* drawing strokes */
.draw { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.62s var(--ease-std); transition-delay: calc(var(--i, 0) * 170ms); }
.total-row .draw { transition-delay: 0.35s; }
.scene.playing [data-at]:not(.on) .draw { stroke-dashoffset: 1; }
.head { transition: opacity 0.2s var(--ease-std); transition-delay: calc(var(--i, 0) * 170ms + 0.5s); }
.scene.playing [data-at]:not(.on) .head { opacity: 0; }
.lbl { transition: opacity 0.3s; transition-delay: calc(var(--i, 0) * 170ms + 0.35s); }
.scene.playing [data-at]:not(.on) .lbl { opacity: 0; }

/* bubbles get tapped */
.scene.playing .tray:not(.on) .d1, .scene.playing .tray:not(.on) .chk { opacity: 0; transform: scale(0.7); }
.scene.playing .tray.on .tap { animation: tap 0.5s var(--ease) both; animation-delay: calc(0.2s + var(--d, 0) * 0.28s); }
@keyframes tap { from { opacity: 0.35; transform: scale(0.4); } to { opacity: 0; transform: scale(1.5); } }

/* ghost to carbon */
.scene:not(.playing) [data-ghost], .scene [data-ghost].ghost { --ink-c: var(--carbon); }
.scene:not(.playing) .photo[data-ghost], .scene .photo.ghost { opacity: 0.85; transform: rotate(-2deg) scale(0.95); }
.scene:not(.playing) .photo .thermal::after, .scene .photo.ghost .thermal::after { opacity: 0.5; }
.scene:not(.playing) .said[data-ghost], .scene .said.ghost { opacity: 1; }
.scene:not(.playing) .said[data-ghost] p, .scene .said.ghost p { color: var(--carbon); }
.said p { transition: color 0.4s; text-wrap: balance; }
.dock .listen, .dock .fab { transition: opacity 0.4s; }
.scene:not(.playing) .dock[data-ghost] .listen, .scene .dock.ghost .listen,
.scene:not(.playing) .dock[data-ghost] .fab, .scene .dock.ghost .fab { opacity: 0.55; }
.tangle .arr, .tangle .head, .tangle .lbl { transition-property: stroke-dashoffset, opacity, stroke, fill; }
.scene:not(.playing) .tangle[data-ghost], .scene .tangle.ghost { --ink-c: var(--carbon-faint); }
.lines .av, .tray { transition: opacity 0.4s; }

/* turned off at a later step */
.scene [data-off].off, .scene:not(.playing) [data-off] { opacity: 0; }

.reset, .reset *, .reset *::after { transition: none !important; animation: none !important; }

/* ---------- Light theme: the app's light tokens ---------- */
@media (prefers-color-scheme: light) {
  :root {
    --ground: #dcd8cf;
    --ground-2: #f6f5f1;
    --ground-3: #e8e8e4;
    --hairline: #c4bfb4;
    --line-dark: #757a76;
    --text: #151817;
    --text-2: #4c5350;
    --text-3: #4f5653;
    --tint-dark: #d5efe9;
    --accent: #08605a;
    --on-accent: #ffffff;
    --carbon-copy: #0b6f66;
    --hole: var(--ground);
  }
  html { scrollbar-color: #9d9a92 var(--ground); }
  .sheet, .stub, .said, .csv {
    filter: drop-shadow(0 0 0.6px rgba(21, 24, 23, 0.42)) drop-shadow(0 8px 14px rgba(21, 24, 23, 0.09));
  }
  .dock { border-color: var(--hairline); box-shadow: 0 6px 16px rgba(21, 24, 23, 0.06); }
  .photo { box-shadow: 0 10px 22px rgba(21, 24, 23, 0.16); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .band { grid-template-columns: minmax(0, 1fr); }
  .copy { position: static; }
  .copy p { max-width: 56ch; }
}
@media (max-width: 900px) {
  .pad { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .stub { grid-template-columns: minmax(0, 1fr); grid-template-rows: 18px auto; }
  .perf {
    background:
      radial-gradient(circle 3.6px at 50% 50%, var(--hole) 92%, #0000) 4px 0 / 13px 18px repeat-x,
      var(--paper);
  }
  .grip-hint { left: auto; right: 0; top: -0.2rem; transform: translateY(-100%); display: none; }
  .stub-paper { border-radius: 0 0 3px 3px; }
  .stub.torn { transform: translate(10px, 22px) rotate(-1.6deg); }
  .stub.torn .stub-paper {
    -webkit-mask: radial-gradient(circle 4.5px at 50% 0, #0000 95%, #000) 0 0 / 13px 100% repeat-x;
            mask: radial-gradient(circle 4.5px at 50% 0, #0000 95%, #000) 0 0 / 13px 100% repeat-x;
  }
  .hero-sheet .sheet-paper { -webkit-mask: radial-gradient(circle 4.5px at 50% 0, #0000 95%, #000) 0 0 / 13px 100% repeat-x; }
  .closing { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .more-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rent" "import" "ai"; }
  .sheet-settle .sheet-paper { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .stage-scan { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .photo { margin-top: 0; width: min(250px, 80%); }
  .arrow-photo { margin: 8px 0 4px; transform: rotate(90deg); }
  .sheet-scan { width: 100%; }
  .stage-voice { grid-template-columns: minmax(0, 1fr); grid-template-areas: "dock" "said" "arrow" "exp"; row-gap: 18px; }
  .dock { min-height: 0; grid-template-columns: auto auto; align-items: center; justify-content: start; justify-items: start; padding: 18px 20px; border-radius: 22px; }
  .dock .listen { order: 2; height: 56px; }
  .dock .fab { order: 1; }
  .dock-cap { order: 3; grid-column: 1 / -1; text-align: left; }
  .ring { left: 0; bottom: auto; top: 50%; margin: -32px 0 0 -82px; }
  .arrow-voice { margin: 0 0 0 30px; }
  .arrow-down { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .xs-hide { display: none; }
  .line.more { display: grid; }
  .line { font-size: 1.08rem; grid-template-columns: 1.8em minmax(0, 1fr) auto 4.1em; column-gap: 0.45rem; }
  .cols { grid-template-columns: 1.8em minmax(0, 1fr) auto 4.1em; column-gap: 0.45rem; }
  .hero .line .dish { font-size: 1.04rem; }
  .hero .line { column-gap: 0.4rem; }
  .hero .cols { display: none; }
  .hero .lines { margin-top: 6px; }
  .who .av { width: 1.18rem; height: 1.18rem; font-size: 0.62rem; box-shadow: none; }
  .who .av + .av { margin-left: 1px; }
  .line .dish { white-space: normal; overflow: visible; line-height: 1.25; }
  .who { flex-wrap: nowrap; }
  .total-row .amt.total { font-size: 1.6rem; }
  .total-row .underline { width: 8rem; }
  .total-row .tick { right: 8.4rem; }
  .hero h1 { font-size: clamp(2.3rem, 10.4vw, 3.4rem); margin-top: 10px; line-height: 1; }
  .site-header { padding-top: 8px; padding-bottom: 8px; }
  .hero { padding-top: 0; }
  .hero-sheet .sheet-paper { padding-top: 16px; padding-bottom: 16px; }
  .total-row { padding-top: 0.5rem; }
  .stub-paper { padding-top: 14px; }
  .stub label { margin-top: 0; }
  .offer { font-size: 0.97rem; margin-top: 8px; }
  .stub-paper { gap: 8px; }
  .stub-title { font-size: 1.25rem; }
  .stub-note { display: none; }
  .tray { margin-left: 0; padding: 8px 6px 4px; gap: 0; flex-wrap: wrap; }
  .bub { width: 54px; }
  .tray-note { flex-basis: 100%; margin: 2px 0 0 6px; }
  .lines-scan .line { font-size: 1.04rem; }
  .import-row { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 6px; }
  .arrow-import { transform: rotate(90deg); margin-left: 20px; }
  .csv { width: 100%; }
  .stamp-in { font-size: 1.7rem; }
  .copy-wide { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
