/* TraduSpot — site styles
   Concept: one spot ink on clean paper. The spot colour is reserved for the
   thing you can do (drop a file, pay, download). Headings and figures are set
   like an annual report (Archivo, tabular figures); Sam's own voice is set in
   a reading serif (Newsreader). */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-normal.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-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-ext-wdth-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/newsreader-latin-opsz-normal.woff2) format('woff2-variations'), url(../fonts/newsreader-latin-opsz-normal.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: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/newsreader-latin-ext-opsz-normal.woff2) format('woff2-variations'), url(../fonts/newsreader-latin-ext-opsz-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: italic; font-display: swap; font-weight: 200 800;
  src: url(../fonts/newsreader-latin-opsz-italic.woff2) format('woff2-variations'), url(../fonts/newsreader-latin-opsz-italic.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; }

/* ---------- Tokens ---------- */
:root {
  --paper: #FAFAF8;
  --sheet: #FFFFFF;
  --ink: #161922;
  --ink-2: #474D5C;
  --ink-3: #6E7484;
  --rule: #E2E4EA;
  --rule-2: #C9CDD7;
  --spot: #2440D6;
  --spot-ink: #1B2FA4;
  --spot-wash: #ECEFFD;
  --on-spot: #FFFFFF;
  --band: #161922;
  --on-band: #F1F2F6;
  --on-band-2: #A9AEBC;
  --ok: #157249;
  --ok-wash: #E6F3EC;
  --warn: #8A5300;
  --warn-wash: #FBF1E1;
  --err: #B3261E;
  --err-wash: #FCECEA;
  --shadow: 0 1px 2px rgba(22, 25, 34, .06), 0 8px 24px -12px rgba(22, 25, 34, .18);

  --font-ui: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-read: 'Newsreader', Georgia, 'Times New Roman', serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 112px);
  --radius: 6px;
  --radius-lg: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111319;
    --sheet: #181B23;
    --ink: #ECEDF2;
    --ink-2: #B4B9C6;
    --ink-3: #8D93A2;
    --rule: #272B36;
    --rule-2: #3A3F4C;
    --spot: #6F84FF;
    --spot-ink: #A4B1FF;
    --spot-wash: #1B2145;
    --on-spot: #0B0E1A;
    --band: #1B1E28;
    --on-band: #ECEDF2;
    --on-band-2: #9CA2B1;
    --ok: #5DC795;
    --ok-wash: #11291F;
    --warn: #E5A951;
    --warn-wash: #2C2214;
    --err: #FF8A80;
    --err-wash: #321816;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111319;
  --sheet: #181B23;
  --ink: #ECEDF2;
  --ink-2: #B4B9C6;
  --ink-3: #8D93A2;
  --rule: #272B36;
  --rule-2: #3A3F4C;
  --spot: #6F84FF;
  --spot-ink: #A4B1FF;
  --spot-wash: #1B2145;
  --on-spot: #0B0E1A;
  --band: #1B1E28;
  --on-band: #ECEDF2;
  --on-band-2: #9CA2B1;
  --ok: #5DC795;
  --ok-wash: #11291F;
  --warn: #E5A951;
  --warn-wash: #2C2214;
  --err: #FF8A80;
  --err-wash: #321816;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  font-stretch: 100%;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--spot-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--spot); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--spot-wash); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums lining-nums; }
[hidden] { display: none !important; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
[data-quote-app], .qa-col, .sheet { scroll-margin-top: 88px; }
details > summary.panel-title { list-style: none; }
details > summary.panel-title::-webkit-details-marker { display: none; }
details > summary.panel-title::after { content: ''; width: 9px; height: 9px; flex: none; margin-left: auto; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
details[open] > summary.panel-title::after { transform: rotate(-135deg) translateY(-1px); }
.visually-hidden { 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: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Type roles */
.display { font-size: clamp(2.35rem, 1.6rem + 3.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.026em; font-weight: 780; font-stretch: 116%; }
.h2 { font-size: clamp(1.7rem, 1.3rem + 1.7vw, 2.55rem); line-height: 1.08; letter-spacing: -.018em; font-weight: 740; font-stretch: 112%; }
.h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -.005em; font-weight: 680; }
.prose { font-family: var(--font-read); font-size: clamp(1.1rem, 1.05rem + .2vw, 1.2rem); line-height: 1.6; font-optical-sizing: auto; color: var(--ink); max-width: 36em; }
.prose p + p { margin-top: .85em; }
.lede { font-family: var(--font-read); font-size: clamp(1.18rem, 1.08rem + .45vw, 1.42rem); line-height: 1.5; font-optical-sizing: auto; color: var(--ink-2); max-width: 32em; }
.small { font-size: .875rem; line-height: 1.45; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: .65em 1.15em; border-radius: var(--radius);
  border: 1px solid var(--rule-2); background: var(--sheet); color: var(--ink);
  font-weight: 620; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { border-color: var(--ink-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-spot { background: var(--spot); border-color: var(--spot); color: var(--on-spot); }
.btn-spot:hover { background: var(--spot-ink); border-color: var(--spot-ink); color: var(--on-spot); }
:root[data-theme="dark"] .btn-spot:hover { color: var(--on-spot); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--spot-ink); padding-inline: .4em; }
.btn-quiet:hover { background: var(--spot-wash); border-color: transparent; }
.btn-lg { min-height: 54px; font-size: 1.06rem; padding-inline: 1.4em; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.link-plain { color: inherit; text-decoration: none; }
.link-plain:hover { color: var(--spot-ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 3px; font-weight: 820; font-stretch: 125%; font-size: 1.32rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark .dot { width: .34em; height: .34em; border-radius: 50%; background: var(--spot); display: inline-block; transform: translateY(-.02em); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 520; font-size: .95rem; padding: 8px 10px; border-radius: var(--radius); }
.nav a:hover { color: var(--ink); background: var(--spot-wash); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--spot); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; gap: 2px; font-size: .82rem; font-weight: 600; font-stretch: 105%; }
.langs a { color: var(--ink-3); text-decoration: none; padding: 6px 6px; border-radius: 4px; letter-spacing: .02em; }
.langs a:hover { color: var(--ink); background: var(--spot-wash); }
.langs a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--spot); border-radius: 0; }
.header-account { font-size: .95rem; min-height: 40px; padding: .5em .9em; }
.menu-toggle { display: none; }
@media (max-width: 1040px) {
  .nav, .header-tools .langs { display: none; }
  .menu-toggle { display: inline-flex; min-height: 42px; padding: .45em .8em; }
  .header-tools { margin-left: auto; }
  .site-header.menu-open .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; box-shadow: var(--shadow); }
  .site-header.menu-open .nav a { padding: 12px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-header.menu-open .nav .langs-mobile { display: flex; gap: 6px; padding-top: 12px; }
  .site-header.menu-open .nav .langs-mobile a { border: 1px solid var(--rule-2); border-radius: var(--radius); padding: 8px 12px; font-size: .9rem; }
}
.nav .langs-mobile { display: none; }
@media (max-width: 520px) { .header-account span { display: none; } .header-account { padding-inline: .7em; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 46rem; }
.section-head .lede { color: var(--ink-2); }
.band { background: var(--band); color: var(--on-band); border-top: 0 !important; }
.band .small, .band .muted { color: var(--on-band-2); }
.band a { color: var(--on-band); }
.band + .section { border-top: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero-text { display: grid; gap: 22px; }
.hero-text .lede { max-width: 34em; }
.hero-app { margin-top: 10px; }
.hero.is-quoting .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero.is-quoting .hero-side { display: none; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Video card */
.video { position: relative; margin: 0; }
.video-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--band); }
.video-frame img, .video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 38%, var(--spot) 0 22%, transparent 22.2%), var(--band); color: var(--on-band); }
.video-placeholder span { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); font-weight: 820; font-stretch: 125%; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--on-spot); letter-spacing: -.03em; }
.video-play { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 0; background: var(--sheet); color: var(--ink); font-weight: 640; cursor: pointer; box-shadow: var(--shadow); }
.video-play .play { width: 36px; height: 36px; border-radius: 50%; background: var(--spot); display: grid; place-items: center; }
.video-play .play svg { width: 14px; height: 14px; fill: var(--on-spot); margin-left: 2px; }
.video-play:hover { background: var(--spot-wash); }
.video figcaption { margin-top: 14px; display: grid; gap: 2px; }
.video figcaption strong { font-weight: 700; font-stretch: 108%; }
@media (max-width: 900px) { .hero-side { max-width: 420px; } .video-frame { aspect-ratio: 16 / 11; } }

/* ---------- Drop sheet (the spot) ---------- */
.drop {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center;
  padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--sheet);
  border: 1px solid var(--rule-2); box-shadow: var(--shadow); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.drop:hover { border-color: var(--ink-3); }
.drop.is-over { border-color: var(--spot); background: var(--spot-wash); }
.drop .spot { width: clamp(86px, 10vw, 116px); aspect-ratio: 1; border-radius: 50%; background: var(--spot); display: grid; place-items: center; transition: transform .35s cubic-bezier(.2, .8, .2, 1.2); }
.drop .spot svg { width: 38%; height: 38%; stroke: var(--on-spot); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.2, .8, .2, 1.2); }
.drop.is-over .spot { transform: scale(1.12); }
.drop.is-over .spot svg { transform: translateY(3px); }
.drop-title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); font-weight: 720; font-stretch: 110%; letter-spacing: -.01em; line-height: 1.15; }
.drop-body { display: grid; gap: 8px; justify-items: start; }
.drop-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.drop-or { color: var(--ink-3); font-size: .95rem; }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-privacy { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; color: var(--ink-2); font-size: .9rem; line-height: 1.45; max-width: 40em; }
.drop-privacy svg { width: 18px; height: 18px; flex: none; margin-top: 1px; stroke: var(--ink-3); fill: none; stroke-width: 1.8; }
.drop.is-compact { grid-template-columns: auto minmax(0, 1fr) auto; padding: 14px 16px; box-shadow: none; gap: 16px; }
.drop.is-compact .btn { min-height: 40px; padding: .5em .9em; }
.drop.is-compact .spot { width: 52px; }
.drop.is-compact .drop-title { font-size: 1.05rem; }
@media (max-width: 520px) { .drop { grid-template-columns: minmax(0, 1fr); } .drop .spot { width: 72px; } .drop.is-compact .spot { width: 44px; } .drop.is-compact { grid-template-columns: auto minmax(0, 1fr); } .drop.is-compact > .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- How it works ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps > li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps > li::before { content: counter(step); font-weight: 760; font-stretch: 112%; font-size: 1.05rem; color: var(--spot-ink); font-variant-numeric: tabular-nums; }
.steps p { color: var(--ink-2); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Literal vs English table ---------- */
.termtable { width: 100%; border-collapse: collapse; font-size: 1rem; }
.termtable th { text-align: left; font-weight: 600; font-size: .875rem; color: var(--ink-2); padding: 0 16px 12px 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.termtable td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.termtable td:last-child, .termtable th:last-child { padding-right: 0; }
.termtable .src { font-family: var(--font-read); font-size: 1.08rem; font-style: italic; }
.termtable .tag { display: inline-block; margin-left: 8px; padding: 1px 6px; border: 1px solid var(--rule-2); border-radius: 4px; font-family: var(--font-ui); font-style: normal; font-size: .72rem; font-weight: 640; color: var(--ink-3); vertical-align: 2px; text-transform: uppercase; letter-spacing: .04em; }
.termtable .literal { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--err) 70%, transparent); text-decoration-thickness: 1.5px; }
.termtable .right { font-weight: 640; display: flex; gap: 10px; align-items: baseline; }
.termtable .right::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--spot); flex: none; transform: translateY(-1px); }
.termnote { margin-top: 16px; }
@media (max-width: 760px) {
  .termtable thead { display: none; }
  .termtable, .termtable tbody, .termtable tr, .termtable td { display: block; width: 100%; }
  .termtable tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .termtable td { border: 0; padding: 2px 0; }
  .termtable td.literal-cell::before { content: attr(data-label) ': '; color: var(--ink-3); font-size: .85rem; }
}

/* ---------- Continuity ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.statement { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(18px, 2.5vw, 28px); }
.statement-title { font-size: .9rem; font-weight: 640; color: var(--ink-2); margin-bottom: 12px; }
.statement table { width: 100%; border-collapse: collapse; }
.statement td { padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.statement td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; font-weight: 600; }
.statement td.r { text-align: right; color: var(--ink-3); font-size: .875rem; padding-left: 12px; white-space: nowrap; }
.statement .result { margin-top: 14px; padding-bottom: 6px; border-bottom: 3px double var(--ink); font-weight: 700; }

/* ---------- Process ---------- */
.process { --n: 4; }
.process > li { border-top-width: 1px; border-top-color: var(--rule-2); }
.callout { display: flex; gap: 14px; align-items: flex-start; margin-top: clamp(28px, 4vw, 44px); padding: 16px 18px; border-radius: var(--radius-lg); background: var(--spot-wash); color: var(--ink); max-width: 46rem; }
.callout svg { width: 22px; height: 22px; flex: none; stroke: var(--spot-ink); fill: none; stroke-width: 1.8; margin-top: 1px; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Services list ---------- */
.services { display: grid; border-top: 2px solid var(--ink); }
.service-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.service-row:hover { text-decoration: none; background: linear-gradient(to right, var(--spot-wash), transparent 70%); }
.service-row .h3 { font-stretch: 108%; }
.service-row p { color: var(--ink-2); }
.service-row .go { width: 22px; height: 22px; stroke: var(--ink-3); fill: none; stroke-width: 2; transition: transform .15s, stroke .15s; }
.service-row:hover .go { transform: translateX(3px); stroke: var(--spot-ink); }
.service-row.is-lead .h3 { font-size: 1.5rem; }
@media (max-width: 700px) { .service-row { grid-template-columns: minmax(0, 1fr) auto; } .service-row p { grid-column: 1 / 2; } .service-row .go { grid-row: 1; grid-column: 2; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--spot-wash); position: relative; max-width: 380px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initials { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 820; font-stretch: 125%; font-size: 3rem; color: var(--spot-ink); letter-spacing: -.03em; }
.figures { margin-top: clamp(24px, 3vw, 36px); max-width: 34rem; }
.figures-title { font-size: .9rem; font-weight: 640; color: var(--ink-2); padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.figures dl { margin: 0; }
.figures .row { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.figures dt { color: var(--ink-2); }
.figures .lead { flex: 1; border-bottom: 1px dotted var(--rule-2); transform: translateY(-4px); min-width: 16px; }
.figures dd { margin: 0; font-weight: 720; font-stretch: 108%; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* ---------- Agencies band ---------- */
.agencies-band .split { align-items: center; }
.agencies-band .h2 { color: var(--on-band); }
.agencies-band p { color: var(--on-band-2); font-size: 1.08rem; max-width: 36em; }
.agencies-band .btn { background: transparent; color: var(--on-band); border-color: color-mix(in srgb, var(--on-band) 40%, transparent); }
.agencies-band .btn:hover { border-color: var(--on-band); }
.agencies-band .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.agencies-band .chips span { border: 1px solid color-mix(in srgb, var(--on-band) 25%, transparent); border-radius: 999px; padding: 6px 12px; font-size: .9rem; color: var(--on-band); }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; font-weight: 640; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--spot-ink); }
.faq .answer { padding: 0 0 20px; }
.faq .answer.prose { font-size: 1.08rem; }
.more-link { display: inline-block; margin-top: 20px; font-weight: 600; }

/* ---------- Contact strip ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; gap: clamp(24px, 4vw, 64px); align-items: end; }
.contact-lines { display: grid; gap: 6px; }
.contact-lines a { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.8rem); font-weight: 700; font-stretch: 110%; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.contact-lines a:hover { color: var(--spot-ink); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 48px 28px; color: var(--ink-2); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 28px; }
.footer-grid h2 { font-size: .9rem; font-weight: 680; color: var(--ink); margin-bottom: 10px; }
.footer-grid ul { list-style: none; display: grid; gap: 6px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--spot-ink); text-decoration: underline; }
.footer-brand p { margin-top: 10px; max-width: 24em; }
.footer-brand .wordmark { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: .85rem; }
.footer-bottom .langs a { color: var(--ink-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Inner pages ---------- */
.page-hero { padding-top: clamp(32px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 56px); }
.page-hero .display { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem); max-width: 18em; }
.page-hero .lede { margin-top: 18px; }
.breadcrumbs { font-size: .875rem; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-3); }
.doc-list { list-style: none; columns: 2 18rem; column-gap: 40px; border-top: 2px solid var(--ink); padding-top: 6px; }
.doc-list li { break-inside: avoid; display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.doc-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--spot); flex: none; transform: translateY(-2px); }
.cta-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--spot-wash); }
.cta-panel .h3 { font-size: 1.35rem; font-stretch: 108%; }
@media (max-width: 700px) { .cta-panel { grid-template-columns: minmax(0, 1fr); } }
.experience-note { border-left: 3px solid var(--spot); padding-left: 18px; }
.cv { width: 100%; border-collapse: collapse; }
.cv td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cv td:first-child { width: 9.5rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 560; }
.cv td.place { color: var(--ink-3); text-align: right; padding-right: 0; }
@media (max-width: 600px) { .cv td:first-child { width: 6.5rem; white-space: normal; } .cv td.place { display: none; } }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.blocks > div { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.blocks p { color: var(--ink-2); }
@media (max-width: 700px) { .blocks { grid-template-columns: minmax(0, 1fr); } }
.legal-doc { max-width: 44rem; }
.legal-doc h2 { font-size: 1.15rem; font-weight: 700; margin: 36px 0 10px; }
.legal-doc p + p { margin-top: .7em; }
.legal-doc .prose { font-size: 1.06rem; }
.placeholder-mark { background: var(--warn-wash); color: var(--warn); padding: 0 4px; border-radius: 3px; font-family: var(--font-ui); font-size: .9em; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field > .label, .fieldset-label { font-weight: 600; font-size: .92rem; }
.field .help { font-size: .85rem; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--rule-2);
  background: var(--sheet); color: var(--ink); font-size: 1rem; line-height: 1.3;
}
.textarea { min-height: 96px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--spot); outline-offset: -1px; border-color: var(--spot); }
.input[aria-invalid="true"] { border-color: var(--err); }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--spot); flex: none; }
.check .help { display: block; font-size: .85rem; color: var(--ink-3); margin-top: 2px; }
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: var(--radius); background: var(--sheet); cursor: pointer; }
.choice:hover { border-color: var(--ink-3); }
.choice:has(input:checked) { border-color: var(--spot); background: var(--spot-wash); box-shadow: inset 0 0 0 1px var(--spot); }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--spot); flex: none; }
.choice .c-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.choice .c-title { font-weight: 640; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.choice .c-help { font-size: .86rem; color: var(--ink-2); }
.choice .c-side { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.choices.inline { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .choices.inline { grid-auto-flow: row; } }
.form-status { font-size: .92rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* ---------- Notes (messages) ---------- */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); font-size: .9rem; line-height: 1.45; background: var(--spot-wash); color: var(--ink); }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.note.warn { background: var(--warn-wash); color: var(--warn); }
.note.warn > div { color: var(--ink); }
.note.err { background: var(--err-wash); color: var(--err); }
.note.err > div { color: var(--ink); }
.note.ok { background: var(--ok-wash); color: var(--ok); }
.note.ok > div { color: var(--ink); }

/* ---------- Quote app ---------- */
.qa { display: grid; gap: 20px; }
.qa-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) {
  .qa-layout { grid-template-columns: minmax(0, 1fr); }
  /* On narrow screens the price comes straight after the files, before the options. */
  .qa-layout > .qa-main, .qa-layout .qa-col.options { display: contents; }
  .files-panel { order: 1; } .qa-layout > .sheet { order: 2; } .tm-panel { order: 3; } .options-panel { order: 4; } .step-col { order: 5; }
}
@media (max-width: 520px) {
  .file { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .file .file-words { grid-column: 2; grid-row: 2; font-size: .9rem; }
  .file .icon-btn { grid-column: 3; grid-row: 1; }
  .file .file-meta { grid-column: 2 / -1; }
}
.qa-col { display: grid; gap: 20px; align-content: start; min-width: 0; }
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(16px, 2.4vw, 24px); display: grid; gap: 18px; min-width: 0; }
.panel-title { font-size: 1.15rem; font-weight: 720; font-stretch: 108%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.files { list-style: none; display: grid; }
.file { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.file:first-child { padding-top: 0; }
.file-ico { width: 34px; height: 40px; border-radius: 4px; border: 1px solid var(--rule-2); display: grid; place-items: end center; font-size: .6rem; font-weight: 760; color: var(--ink-2); padding-bottom: 4px; text-transform: uppercase; background: var(--paper); letter-spacing: .02em; }
.file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { grid-column: 2 / -1; font-size: .85rem; color: var(--ink-2); display: grid; gap: 6px; }
.file-words { font-variant-numeric: tabular-nums; font-weight: 640; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 640; background: var(--warn-wash); color: var(--warn); white-space: nowrap; }
.badge.ok { background: var(--ok-wash); color: var(--ok); }
.badge.spot { background: var(--spot-wash); color: var(--spot-ink); }
.badge.muted { background: var(--paper); color: var(--ink-2); border: 1px solid var(--rule); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--ink-3); cursor: pointer; }
.icon-btn:hover { background: var(--err-wash); color: var(--err); }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.progress { height: 4px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.progress > i { display: block; height: 100%; width: var(--p, 0%); background: var(--spot); transition: width .2s; }
.progress.indeterminate > i { width: 30%; animation: slide 1.1s infinite ease-in-out; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .opt-grid { grid-template-columns: minmax(0, 1fr); } }
.detected { font-weight: 500; font-size: .8rem; color: var(--ok); margin-left: 6px; }
.prev-drop { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed var(--rule-2); background: var(--paper); color: var(--ink-2); font-size: .92rem; cursor: pointer; transition: border-color .15s, background .15s; }
.prev-drop:hover { border-color: var(--ink-3); }
.prev-drop.is-over { border-color: var(--spot); background: var(--spot-wash); color: var(--ink); }
.prev-drop .ico { color: var(--spot); }
.prev-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.prev-drop:focus-within { outline: 2px solid var(--spot); outline-offset: 2px; }

/* Quote sheet — set like a statement, totals with a double rule */
.sheet { position: sticky; top: 84px; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(18px, 2.6vw, 28px); display: grid; gap: 18px; }
@media (max-width: 960px) { .sheet { position: static; } }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sheet-title { font-size: 1.2rem; font-weight: 740; font-stretch: 110%; display: flex; align-items: center; gap: 10px; }
.sheet-title::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--spot); }
.ledger { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ledger td { padding: 8px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.ledger td.n { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; padding-left: 12px; }
.ledger tr.sub td { color: var(--ink-2); }
.ledger td.pct { color: var(--ink-3); font-size: .85rem; padding-left: 8px; width: 1%; }
.ledger tr.total td { font-weight: 700; border-bottom: 3px double var(--ink); padding-top: 10px; }
.price-block { display: grid; gap: 4px; }
.price-label { font-size: .9rem; color: var(--ink-2); }
.price { font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); font-weight: 780; font-stretch: 112%; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.price small { font-size: .95rem; font-weight: 520; color: var(--ink-2); letter-spacing: 0; font-stretch: 100%; margin-left: 6px; }
.delivery-line { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); }
.delivery-line .date { font-weight: 720; font-size: 1.12rem; font-stretch: 108%; }
.sheet-actions { display: grid; gap: 10px; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.empty-sheet { color: var(--ink-3); font-size: .95rem; }
.saving { color: var(--ok); font-weight: 600; font-size: .92rem; }

/* Steps of the booking flow */
.flow-steps { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-3); }
.flow-steps li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.flow-steps .ico { width: 14px; height: 14px; }
.flow-steps li + li::before { content: ''; width: 16px; height: 1px; background: var(--rule-2); }
.flow-steps li[aria-current="step"] { color: var(--ink); font-weight: 640; }
.flow-steps li.done { color: var(--ok); }

/* Code input */
.code-input { font-size: 1.6rem; letter-spacing: .4em; font-variant-numeric: tabular-nums; text-align: center; font-weight: 700; max-width: 14rem; padding-left: .6em; }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table td { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.summary-table td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.summary-table tr.total td { font-weight: 720; border-bottom: 3px double var(--ink); }
.summary-table tr.now td { font-weight: 720; color: var(--spot-ink); border-bottom: 0; padding-top: 12px; }

/* ---------- Account ---------- */
.orders { width: 100%; border-collapse: collapse; }
.orders th { text-align: left; font-size: .82rem; font-weight: 620; color: var(--ink-2); padding: 0 12px 10px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.orders td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.orders td.n, .orders th.n { text-align: right; font-variant-numeric: tabular-nums; }
.orders tr.click { cursor: pointer; }
.orders tr.click:hover td { background: var(--spot-wash); }
.orders .ref { font-weight: 680; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 640; padding: 3px 9px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.s-awaiting_payment, .status.s-awaiting_transfer { background: var(--warn-wash); border-color: transparent; color: var(--warn); }
.status.s-awaiting_payment::before, .status.s-awaiting_transfer::before { background: var(--warn); }
.status.s-confirmed, .status.s-in_progress { background: var(--spot-wash); border-color: transparent; color: var(--spot-ink); }
.status.s-confirmed::before, .status.s-in_progress::before { background: var(--spot); }
.status.s-delivered, .status.s-completed { background: var(--ok-wash); border-color: transparent; color: var(--ok); }
.status.s-delivered::before, .status.s-completed::before { background: var(--ok); }
.status.s-cancelled { color: var(--ink-3); }
@media (max-width: 700px) { .orders .hide-sm { display: none; } }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.timeline li { display: grid; gap: 6px; font-size: .82rem; color: var(--ink-3); }
.timeline li::before { content: ''; height: 4px; border-radius: 4px; background: var(--rule); }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--spot); }
.dl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.dl-row .file-name { font-weight: 560; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; font-size: .95rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.message-box { border-left: 3px solid var(--spot); padding: 4px 0 4px 14px; font-family: var(--font-read); font-size: 1.05rem; white-space: pre-wrap; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 440px); }
.toast { background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .95rem; animation: toast-in .25s ease-out; }
.toast.spot { background: var(--spot); color: var(--on-spot); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Demo banner (preview only) ---------- */
.demo-banner { background: var(--warn-wash); color: var(--warn); font-size: .85rem; text-align: center; padding: 6px var(--gutter); }
.demo-banner strong { color: var(--ink); }
.demo-pay { display: grid; gap: 10px; padding: 16px; border: 1px dashed var(--warn); border-radius: var(--radius); background: var(--warn-wash); }

/* ---------- Project translation memory ---------- */
.tm-title { font-size: inherit; font-weight: inherit; font-stretch: inherit; }
.tm-box { display: grid; gap: 14px; min-width: 0; }
.tm-box > .small:first-child { max-width: 62ch; }
.tm-grid { display: grid; gap: 10px; }
.tm-head { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); gap: 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tm-head.single { display: block; }
.tm-pair { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); align-items: center; row-gap: 8px; padding: 10px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); }
.tm-pair.is-new, .tm-bili.is-new { animation: tm-in .35s ease-out both; }
.tm-pair.is-running { border-color: var(--spot); box-shadow: 0 0 0 3px var(--spot-wash); }
.tm-pair.is-done { border-color: color-mix(in srgb, var(--ok) 35%, var(--rule)); }
.tm-pair.is-unused { opacity: .75; }
.tm-side { min-width: 0; }
.tm-status { grid-column: 1 / -1; min-width: 0; }
.tm-card { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 4px 8px 10px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--sheet); min-width: 0; }
.tm-card .file-ico { width: 30px; height: 36px; font-size: .55rem; }
.tm-card-body { position: relative; display: grid; gap: 1px; min-width: 0; }
.tm-card .file-name { font-size: .9rem; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tm-card .small { font-size: .8rem; }
.tm-card.has-menu .tm-card-body { padding-right: 18px; }
.tm-card.has-menu:hover { border-color: var(--ink-3); }
.tm-card.has-menu:focus-within { outline: 2px solid var(--spot); outline-offset: 1px; }
.tm-caret { position: absolute; right: 2px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
/* A real select laid over the card's name: tap it to pick the other file of the pair */
.tm-chooser { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.tm-empty .tm-slot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 54px; padding: 8px 26px 8px 12px; border-radius: var(--radius); border: 1px dashed var(--rule-2); color: var(--ink-2); font-size: .88rem; background: var(--sheet); }
.tm-empty .tm-slot:hover { border-color: var(--ink-3); }
.tm-empty .tm-slot:focus-within { outline: 2px solid var(--spot); outline-offset: 1px; }
.tm-empty .tm-caret { right: 12px; }
/* The link between a document and its translation */
.tm-link { position: relative; z-index: 1; align-self: stretch; display: grid; place-items: center; min-height: 40px; --link: var(--rule-2); }
.tm-line { position: absolute; left: -7px; right: -7px; top: 50%; height: 2px; margin-top: -1px; background: var(--link); transform-origin: left center; }
.tm-pair.is-new .tm-line { animation: tm-draw .6s .1s ease-out both; }
.tm-line::before, .tm-line::after { content: ''; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--link); }
.tm-line::before { left: -3px; } .tm-line::after { right: -3px; }
.tm-tag { position: relative; max-width: calc(100% - 8px); transform: translateY(-15px); padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 680; line-height: 1.3; text-align: center; background: var(--paper); color: var(--ink-2); }
.tm-link.level-high, .tm-link.level-manual { --link: var(--ok); }
.tm-link.level-high .tm-tag, .tm-link.level-manual .tm-tag { color: var(--ok); }
.tm-link.level-medium { --link: var(--spot); }
.tm-link.level-medium .tm-tag { color: var(--spot-ink); }
.tm-link.level-low { --link: var(--warn); }
.tm-link.level-low .tm-tag { color: var(--warn); }
.tm-link.is-open .tm-line { background: none; border-top: 2px dashed var(--rule-2); height: 0; }
.tm-link.is-open .tm-line::before, .tm-link.is-open .tm-line::after { display: none; }
.tm-pair.is-running .tm-line { background: repeating-linear-gradient(90deg, var(--spot) 0 7px, transparent 7px 12px); background-size: 24px 2px; animation: tm-flow .7s linear infinite; }
.tm-pair.is-running.is-new .tm-line { animation: tm-draw .6s ease-out both, tm-flow .7s linear infinite; }
.tm-pair.is-running .tm-line::before, .tm-pair.is-running .tm-line::after { background: var(--spot); }
/* Live progress of an alignment */
.tm-live { display: grid; gap: 6px; }
.tm-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; font-size: .74rem; }
.tm-steps li { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 999px; color: var(--ink-3); border: 1px solid var(--rule); background: var(--sheet); }
.tm-steps li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.tm-steps li.done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--rule)); }
.tm-steps li.done::before { background: currentColor; }
.tm-steps li.now { color: var(--spot-ink); border-color: var(--spot); background: var(--spot-wash); font-weight: 650; }
.tm-steps li.now::before { border-color: var(--spot); border-top-color: transparent; animation: spin .8s linear infinite; }
.tm-now { font-variant-numeric: tabular-nums; }
.tm-done { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); }
.tm-done .ico { width: 16px; height: 16px; flex: none; color: var(--ok); margin-top: 2px; }
.tm-bilis { display: grid; gap: 8px; }
.tm-bili { display: grid; gap: 6px; padding: 10px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); }
.tm-bili.is-error { background: var(--err-wash); border-color: transparent; }
.tm-reading { display: grid; gap: 6px; }
.tm-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tm-queue .file-name { font-weight: 500; }
.tm-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: .95rem; padding-top: 2px; }
@keyframes tm-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tm-flow { to { background-position: 24px 0; } }
@keyframes tm-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .tm-head { display: none; }
  .tm-pair { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .tm-link { min-height: 40px; }
  .tm-tag { transform: none; border: 1px solid var(--link); }
  .tm-line { left: 50%; right: auto; top: -2px; bottom: -2px; width: 2px; height: auto; margin: 0 0 0 -1px; transform-origin: center top; }
  .tm-pair.is-new .tm-line { animation-name: tm-drop; }
  .tm-line::before { left: -3px; top: -3px; } .tm-line::after { left: -3px; right: auto; top: auto; bottom: -3px; }
  .tm-link.is-open .tm-line { border-top: 0; border-left: 2px dashed var(--rule-2); width: 0; }
  .tm-pair.is-running .tm-line { background: repeating-linear-gradient(180deg, var(--spot) 0 7px, transparent 7px 12px); background-size: 2px 24px; animation: tm-flow-v .7s linear infinite; }
  .tm-pair.is-running.is-new .tm-line { animation: tm-drop .6s ease-out both, tm-flow-v .7s linear infinite; }
  .tm-status { padding-top: 8px; }
}
@keyframes tm-drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes tm-flow-v { to { background-position: 0 24px; } }

/* How much of each file is already in the memory */
.coverage { display: grid; gap: 4px; }
.cv-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--rule); max-width: 420px; }
.cv-bar i { display: block; height: 100%; transition: width .4s ease; }
.cv-exact { background: var(--ok); }
.cv-fuzzy { background: color-mix(in srgb, var(--ok) 45%, var(--sheet)); }
.cv-repetition { background: color-mix(in srgb, var(--spot) 45%, var(--sheet)); }
.cv-new { background: var(--rule-2); }
.cv-label { color: var(--ink-2); }

/* The price with and without the memory */
.memory-saving { display: grid; gap: 2px; }
.memory-saving s { color: var(--ink-3); font-variant-numeric: tabular-nums lining-nums; }
.price.is-updated { animation: price-flash 1.2s ease-out; }
@keyframes price-flash { 0% { color: var(--ok); } 100% { color: inherit; } }
.book-wait { text-align: center; }

/* ---------- Print: the quote only ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .demo-banner, .hero-side, .hero-text > :not(.hero-app), .qa-col.options, .sheet-actions, .drop, .toasts, .section:not(.hero), .page-hero .lede, .flow-steps { display: none !important; }
  .qa-layout { display: block; }
  .sheet { position: static; box-shadow: none; border: 0; padding: 0; }
  .panel { border: 0; padding: 0; }
}
.note.startup-note { color: var(--ink); margin-bottom: 12px; }
.memory-source { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--rule); }
.memory-source > strong { font-size: .95rem; }
.tm-privacy { margin-top: 0; font-size: .85rem; }

/* Trados bands in the quote */
.ledger .band-tag { margin-left: 6px; color: var(--ink-3); font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .band-tag:empty { display: none; }

/* Previous translations: what they're for, and one drop zone for all of them */
.tm-help p { margin: 0 0 4px; }
.tm-uses { margin: 0 0 14px; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 2px; }
.prev-drop.is-first { align-items: flex-start; padding: 16px; }
.prev-drop-body { display: grid; gap: 10px; justify-items: start; }
.prev-drop-btn { pointer-events: none; min-height: 36px; padding: .35em .9em; font-size: .9rem; }
.tm-empty .tm-add { width: 100%; justify-content: flex-start; gap: 8px; padding-right: 12px; cursor: pointer; font: inherit; font-size: .88rem; text-align: left; }
.tm-empty .tm-add svg { width: 16px; height: 16px; flex: none; stroke: var(--spot); fill: none; stroke-width: 2; }
.tm-empty .tm-add:focus-visible { outline: 2px solid var(--spot); outline-offset: 1px; }

/* Reserving time before the final file exists */
.not-ready { display: grid; gap: 10px; justify-items: start; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); max-width: 40em; }
.not-ready-q { font-weight: 640; }
.not-ready-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.not-ready-btns .btn { min-height: 40px; padding: .45em 1em; font-size: .95rem; }
.not-ready.is-on { background: none; border: 0; padding: 0; }
.link-btn { border: 0; background: none; padding: 0; color: var(--spot); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--ink); }
.estimate-input { max-width: 12em; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.reserve-pay { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--spot); border-radius: var(--radius); background: var(--spot-wash); }

/* Proofreading among the files to translate; the date the final file of a reservation is expected */
.badge.proof-badge { background: var(--spot-wash); color: var(--spot-ink); font-weight: 600; vertical-align: 1px; }
.file.is-proof-target .file-name { color: var(--ink-2); }
.ledger tr.ledger-head td { padding-top: 12px; font-size: .78rem; font-weight: 680; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--ink-3); }
.expected-pick { display: grid; gap: 6px; padding: 12px 14px; border: 1px dashed var(--rule); border-radius: var(--radius); }
.expected-pick .input { max-width: 14rem; }

/* ---------- Folders among the files to translate ---------- */
.folder-input { display: none; }
.folder { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.folder:first-child { padding-top: 0; }
.folder-head { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; }
.folder-files { margin: 8px 0 0 22px; padding-left: 12px; border-left: 2px solid var(--rule); }
.folder-files .file { padding: 8px 0; }
.folder-files .file:last-child { border-bottom: 0; padding-bottom: 0; }
.tick-ico { place-items: center; padding: 0; cursor: pointer; height: 34px; border-style: dashed; }
.tick-ico input { width: 18px; height: 18px; accent-color: var(--spot); cursor: pointer; }
.folder-ico { border-style: solid; background: var(--spot-wash); }
.file.is-off .file-name { color: var(--ink-3); font-weight: 500; text-decoration: line-through; text-decoration-color: var(--rule-2); }
.file.is-off .file-words { font-weight: 500; font-size: .85rem; }
.drop.is-compact > .drop-actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 520px) { .folder-head { grid-template-columns: 34px minmax(0, 1fr) auto; } .folder-head .file-words { grid-column: 2; grid-row: 2; } .folder-files { margin-left: 8px; } .drop.is-compact > .drop-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- The quote's lists that open on demand (files, bands) ---------- */
.ledger-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; font: inherit; color: var(--spot-ink); cursor: pointer; text-align: left; }
.ledger-toggle:hover { text-decoration: underline; }
.ledger-toggle .chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.ledger-toggle[aria-expanded="true"] .chev { transform: rotate(225deg) translateY(-1px); }
.ledger tr.files-row td { color: var(--ink); }
.ledger tr.band-row td { font-size: .9rem; }
@media print { .ledger-toggle .chev { display: none; } }
.dl-all { display: flex; justify-content: flex-end; }
.type-filter { margin: 8px 0 0 46px; font-size: .9rem; }
.type-filter > summary { cursor: pointer; color: var(--spot-ink); width: max-content; }
.type-list { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 0 2px; }
.type-opt { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.type-opt input { width: 16px; height: 16px; accent-color: var(--spot); }
.type-opt.is-cant { color: var(--ink-3); cursor: default; }
@media (max-width: 520px) { .type-filter { margin-left: 8px; } }
/* The other half of a pair dropped on its row */
.tm-pair.is-lone.is-over { border-color: var(--spot); background: var(--spot-wash); box-shadow: 0 0 0 3px var(--spot-wash); }
.tm-pair.is-lone.is-over .tm-slot { border-color: var(--spot); }

/* The guided tour of the quote tool (tour.mjs) */
.tour-replay { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.tour-replay .link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink-2); text-decoration: none; }
.tour-replay .link-btn:hover { color: var(--spot); }
.tour-replay .ico { width: 16px; height: 16px; }
.tour { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.tour-shade { position: fixed; background: rgba(12, 14, 22, .58); pointer-events: auto; transition: all .28s ease; }
.tour-ring { position: fixed; border-radius: calc(var(--radius) + 4px); box-shadow: 0 0 0 2px var(--spot), 0 0 0 7px color-mix(in srgb, var(--spot) 30%, transparent); transition: all .28s ease; }
.tour-pulse { position: fixed; border-radius: 999px; border: 2px solid var(--spot); animation: tour-pulse 1.6s ease-out infinite; }
@keyframes tour-pulse { 0% { transform: scale(.94); opacity: 1; } 70% { transform: scale(1.14); opacity: 0; } 100% { opacity: 0; } }
.tour-tip { position: fixed; pointer-events: auto; background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); border-radius: calc(var(--radius) + 4px); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .45); padding: 16px 18px 14px; transition: left .28s ease, top .28s ease; }
.tour.is-moved .tour-tip { animation: tour-in .3s ease-out both; }
@keyframes tour-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tour-tip-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.tour-count { font-size: .8rem; font-weight: 640; letter-spacing: .04em; text-transform: uppercase; color: var(--spot); }
.tour-skip { font-size: .85rem; }
.tour-title { font-size: 1.08rem; line-height: 1.25; margin: 0 0 6px; }
.tour-text { margin: 0 0 14px; font-size: .95rem; line-height: 1.5; }
.tour-tip-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tour.is-still .tour-shade, .tour.is-still .tour-ring, .tour.is-still .tour-tip { transition: none; }
.tour.is-still .tour-pulse, .tour.is-still.is-moved .tour-tip { animation: none; }
/* "Your files stay on your computer", under the title of the files box */
.files-local { display: flex; gap: 8px; align-items: flex-start; margin: -2px 0 12px; font-size: .9rem; color: var(--ok); font-weight: 560; }
.files-local .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }
/* The quote being worked out again (a big project memory takes a while): a box at the top, and the
   figures greyed out. Both appear only after half a second, so a quick update doesn't flicker. */
.sheet-busy { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--spot-wash); color: var(--ink); font-size: .9rem; opacity: 0; animation: busy-in .25s .5s ease-out forwards; }
.sheet-busy.is-now { animation-delay: 0s; }
.sheet-busy .progress { grid-column: 1 / -1; }
.sheet-reading { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius); background: var(--spot-wash); color: var(--ink); font-size: .9rem; }
.sheet-reading .progress { grid-column: 1 / -1; }
.sheet-busy .spinner, .sheet-reading .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--spot) 25%, transparent); border-top-color: var(--spot); animation: spin .8s linear infinite; }
@keyframes busy-in { to { opacity: 1; } }
.sheet.is-updating .ledger, .sheet.is-updating .price-block, .sheet.is-updating .memory-saving, .sheet.is-updating .saving { opacity: .4; transition: opacity .25s .5s; }
@media (prefers-reduced-motion: reduce) { .sheet-busy .spinner, .sheet-reading .spinner { animation-duration: 2.4s; } }
/* The style library, in the previous translations box */
.lib { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.lib-h { font-size: 1rem; margin: 0; }
.lib .small { margin: 0; }
.lib-list { display: grid; gap: 8px; }
.lib-card { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.lib-card.is-on { border-color: var(--spot); box-shadow: 0 0 0 3px var(--spot-wash); }
.lib-head { display: grid; gap: 2px; }
.lib-title { font-weight: 640; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; }
.lib-saving { color: var(--ok); font-weight: 640; }
.lib-priority { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.lib-priority legend { font-weight: 600; margin-bottom: 4px; }
/* The style library, collapsed; the type of text always in view; long titles wrap */
.lib-type { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--spot-wash); }
.lib-type-label { font-weight: 640; margin: 0; }
.lib-type .select { width: auto; min-width: 0; max-width: 100%; flex: 0 1 auto; }
.lib-more > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; list-style: none; padding: 4px 0; }
.lib-more > summary::-webkit-details-marker { display: none; }
.lib-more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; align-self: center; margin-right: 2px; }
.lib-more[open] > summary::before { transform: rotate(45deg); }
.lib-more[open] { display: grid; gap: 10px; }
.lib-count { font-size: .85rem; color: var(--ink-2); }
.lib-title { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lib-pri-label { overflow-wrap: anywhere; }

/* Previous translations: how many units match the files (only those go with the order) */
.tm-relevant { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--ink-2); line-height: 1.45; }
.tm-relevant svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: var(--ok, #2e7d4f); fill: none; stroke-width: 1.8; }
/* The customer's translation memory with Sam (earlier orders), offered ticked */
.um:empty { display: none; }
.um-card { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.um-card.is-on { border-color: var(--spot); box-shadow: 0 0 0 3px var(--spot-wash); }
.um-card p { margin: 0; }
.um-list { margin: 0; padding-left: 1.2em; }
.um-signin { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--ink-2); }
.um-signin svg { width: 16px; height: 16px; flex: none; margin-top: 2px; stroke: var(--ink-3); fill: none; stroke-width: 1.8; }
.um-auth { display: grid; gap: 8px; justify-items: start; }
.um-auth .panel { width: 100%; }
.um-account .um-list { display: grid; gap: 6px; }
.lib-type-doc { margin-left: auto; }
.lib-none { margin: 0; }
/* Authoritative translations the document quotes: one tick box at the end of the style suggestions */
.lib-auth { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.lib-auth.is-on { border-color: var(--spot); box-shadow: 0 0 0 3px var(--spot-wash); }
.lib-auth p { margin: 0; }
.lib-auth-list { font-size: .9rem; }
.lib-auth-list > summary { cursor: pointer; color: var(--spot-ink); width: max-content; max-width: 100%; }
.lib-auth-list ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 2px; overflow-wrap: anywhere; }
