/* Class.ro — the marketing page.
 *
 * Loaded only by Shell::marketingPage(), on top of theme.css. Nothing here is reachable from the
 * app or the console, and nothing here redefines a palette variable — the six brand colours come
 * from the server's nonce'd <style> block, which theme.css's own header explains.
 *
 * ## Why this file exists at all
 *
 * theme.css is the *app's* stylesheet: it is built for a 640px column of interactive cards read
 * by someone who already has the product. This page is read by someone who does not, on a laptop
 * as often as a phone, and its whole job is done in the first screenful. Sharing one sheet would
 * mean either the app getting a hero section it will never use or this page inheriting a column
 * width chosen for a list of places.
 *
 * The two places they DO meet are deliberate and named: `.btn` and `.card` are used as they
 * arrive, because a marketing page whose buttons look different from the product's is a
 * marketing page that lies about the product.
 *
 * ## The one rule
 *
 * Every size here is in rem or a --sp- step, and every breakpoint is a content decision rather
 * than a device one: 720px is where the hero's two columns stop being able to hold a headline
 * and a 200px code side by side, and 960px is where the split sections can sit beside their
 * scan card without the text column going under 30 characters a line.
 */

/* ---------------------------------------------------------------------------
 * Page frame
 * ------------------------------------------------------------------------- */

.app--mkt {
  /* One step above --sp-6, defined here rather than in theme.css: the app's scale stops at 32px
     because nothing in a 640px column of cards needs more, and adding a seventh step to a shared
     file so that one page can use it would put a token in the app's vocabulary that the app
     never spends. Scoped to this subtree, which is the whole page. */
  --mkt-gap: calc(var(--sp-6) + var(--sp-4));

  background:
    radial-gradient(120% 60% at 50% -10%, var(--c-accent-soft), transparent 60%),
    var(--c-bg);
}

.mkt__bar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--c-border);
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.mkt__bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding: var(--sp-3) var(--sp-4);
}

.mkt__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--c-text);
  text-decoration: none;
}

.mkt__mark {
  display: block;
  width: 26px;
  height: 26px;
  color: var(--c-accent);
}

.mkt__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* The two page links. Hidden at phone width, where the bar keeps only the language toggle and
   the button — and the front page's own bands carry the same two destinations a scroll further
   down, so nothing becomes unreachable.

   Except on the two detail pages, where the reader has already left the front page and needs the
   way back to the other one. There the bar keeps the link they are NOT on and drops the one they
   are: `data-section` on the header says which is which, and aria-current already marks it. So a
   phone gets exactly one page link at a time, which is all the width there is. */
.mkt__nav-link {
  display: none;
  padding: 0 var(--sp-2);
  color: var(--c-muted);
  font-size: .9rem;
  font-weight: 550;
  text-decoration: none;
}

.mkt__nav-link:hover { color: var(--c-text); }

/* Where you already are. Not a link you would press, so it is set in the text colour and left
   unadorned — it is a position marker, not a destination. */
.mkt__nav-link.is-on { color: var(--c-text); }

.mkt__bar .btn { min-height: 36px; font-size: .85rem; }

@media (max-width: 719px) {
  .mkt__bar:not([data-section="home"]) .mkt__nav-link:not(.is-on) { display: inline-flex; }

  /* The legal documents are the exception on a phone: neither page link is "the one you are
     not on", so the rule above would show both of them and the bar would carry four controls
     and a button. A reader on a document is not being sold anything, and the foot at the end of
     the page carries every link the bar would. */
  .mkt__bar[data-section="terms"] .mkt__nav-link,
  .mkt__bar[data-section="privacy"] .mkt__nav-link { display: none; }
}

@media (min-width: 720px) {
  .mkt__nav-link { display: inline-flex; }
}

/* ---------------------------------------------------------------------------
 * The language toggle
 *
 * Two codes and a middot of space. EN and RO are written in each language's own letters at the
 * top level rather than translated, because the reader this control exists for is the one who
 * cannot read the page they are on — a label in the current language would be no help to them.
 * ------------------------------------------------------------------------- */

.mkt__lang {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  margin-inline: var(--sp-1) var(--sp-2);
  padding: 2px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
}

.mkt__lang-opt {
  padding: 3px var(--sp-3);
  border-radius: var(--r-pill);
  color: var(--c-muted);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .04em;
  line-height: 1.4;
  text-decoration: none;
}

.mkt__lang-opt:hover { color: var(--c-text); }

/* The current one, and it is not a link: pressing it would reload the page you are on. */
.mkt__lang-opt.is-on {
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

.mkt {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding: 0 var(--sp-4) var(--mkt-gap);
}

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */

.mkt__hero {
  display: grid;
  gap: var(--sp-6);
  padding: var(--sp-6) 0 var(--sp-5);
}

@media (min-width: 860px) {
  .mkt__hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: var(--mkt-gap);
    padding: var(--mkt-gap) 0 var(--sp-6);
  }
}

.mkt__eyebrow {
  margin: 0 0 var(--sp-3);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.mkt__h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 750;
  /* Three lines maximum on a phone, and the break that makes the last word land on its own is
     chosen by the copywriter, not by the container width. */
  text-wrap: balance;
}

.mkt__lead {
  margin: var(--sp-4) 0 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--c-muted);
  max-width: 34ch;
}

.mkt__note {
  margin: var(--sp-3) 0 0;
  font-size: .9rem;
  color: var(--c-muted);
}

.mkt__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.mkt__cta .btn {
  min-height: 46px;
  padding: 0 var(--sp-5);
  font-size: .95rem;
}

/* ---------------------------------------------------------------------------
 * The scan cards — the two creatives that carry a code
 *
 * The whole card is a link. On a phone the code is unreadable and the tap is the action; on a
 * laptop the code is the action and the tap costs nothing. Both readers get the same card.
 * ------------------------------------------------------------------------- */

.mkt__scan {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(var(--c-accent-soft), var(--c-accent-soft)),
    var(--c-surface);
  color: var(--c-text);
  text-decoration: none;
  text-align: center;
}

.mkt__scan--plain { background: var(--c-surface); }

.mkt__scan-title {
  margin: 0;
  font-size: .95rem;
  font-weight: 650;
}

/* A white plate with its own padding. The SVG already carries the four-module quiet zone the
   specification requires, so this padding is visual only — but it is also the thing that keeps a
   code legible against the card's tint if the tint is ever darkened. */
.mkt__qr {
  display: block;
  width: 100%;
  max-width: 208px;
  padding: var(--sp-2);
  border-radius: var(--r-md);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.mkt__qr img {
  display: block;
  width: 100%;
  height: auto;
}

.mkt__scan-hint {
  margin: 0;
  font-size: .85rem;
  color: var(--c-muted);
  max-width: 24ch;
}

/* ---------------------------------------------------------------------------
 * "How it works"
 * ------------------------------------------------------------------------- */

/* No margin of its own: the heading is followed by a list in one section and by a lead sentence
   in the other, and those two want different gaps. Each section says which. */
.mkt__h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3.4vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 700;
}

.mkt__steps { padding: var(--sp-6) 0 var(--sp-2); }
.mkt__steps .mkt__h2 { margin-bottom: var(--sp-5); }
.mkt__band .mkt__h2 { margin-bottom: var(--sp-3); }

.mkt__step-list {
  display: grid;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mkt-step;
}

@media (min-width: 720px) {
  .mkt__step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
}

.mkt__step { position: relative; }

/* The rule is what turns three items into a sequence rather than a list: it is drawn from each
   numeral to the next, and it is the reason the numerals are on the same baseline. */
@media (min-width: 720px) {
  .mkt__step::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 46px;
    right: calc(var(--sp-4) * -1 + 4px);
    height: 1px;
    background: linear-gradient(to right, var(--c-border), transparent);
  }
  .mkt__step:last-child::after { display: none; }
}

.mkt__step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  border: 1px solid color-mix(in srgb, var(--c-accent) 35%, var(--c-border));
  color: var(--c-accent);
  font-size: .95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mkt__step-title {
  margin: 0 0 var(--sp-2);
  font-size: 1.05rem;
  font-weight: 650;
}

.mkt__step-body {
  margin: 0;
  color: var(--c-muted);
  font-size: .92rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------------
 * The two audience sections
 * ------------------------------------------------------------------------- */

.mkt__band {
  margin-top: var(--mkt-gap);
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

/* Two columns only where there is a scan card to put in the second one. */
@media (min-width: 960px) {
  .mkt__band--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: var(--mkt-gap);
    align-items: center;
  }
}

.mkt__band-lead {
  margin: 0 0 var(--sp-5);
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 38ch;
}

.mkt__feats {
  display: grid;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mkt__feat {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
}

.mkt__ico-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--c-accent-soft);
  color: var(--c-accent);
}

.mkt__ico {
  display: block;
  width: 18px;
  height: 18px;
}

.mkt__feat-title {
  margin: 0 0 2px;
  font-size: .98rem;
  font-weight: 650;
}

.mkt__feat-body {
  margin: 0;
  color: var(--c-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.mkt__band-cta { margin-top: var(--sp-5); }

/* ---------------------------------------------------------------------------
 * The two figures inside the "big chains" band
 *
 * The same mark twice: seven large stores with nothing drawn between them, and a lattice of small
 * shops that is only a network because of the lines. The section's entire content is that
 * comparison, so the two go side by side rather than one under the other — stacked, the reader has
 * to hold the first picture in their head while scrolling to reach the second, and the first one is
 * mostly empty space, which is exactly the picture that will not survive being remembered.
 *
 * Side by side from 560px and not the 860px the two ways use. Those keep a 440px drawing beside a
 * column of text, which needs the width; here each drawing is half of whatever there is, so two of
 * them are already legible at half a phone in landscape. Below 560 they stack, chain first, which
 * is the order the words above them take ("alone, small" then "together").
 *
 * The caption is ABOVE its drawing. Everywhere else on this page a heading introduces what comes
 * under it — and here it is load-bearing rather than stylistic: the left panel is seven dots on an
 * empty field, and a reader who met it with no label would have to guess which of the two it is
 * meant to be. Above, they read the name and then see what it names.
 * ------------------------------------------------------------------------- */

.mkt__net {
  display: grid;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 560px) {
  .mkt__net {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mkt-gap);
  }
}

.mkt__net-item { min-width: 0; }

/* A label, not a caption: it names the drawing, so it is the brightest thing in the figure and the
   only bold one. The grey text on this page is the explanatory voice; this is not explaining. */
.mkt__net-cap {
  margin: 0 0 var(--sp-2);
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: -.005em;
}

/* No max-width, unlike the two ways': these two have to come out the same size as each other or
   the comparison carries a second, unintended difference — and the drawings are vector, so there
   is nothing to lose by letting them scale with the column. */
.mkt__net-art {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
}

/* ---------------------------------------------------------------------------
 * The privacy band
 * ------------------------------------------------------------------------- */

.mkt__privacy {
  display: flex;
  /* Top-aligned, not centred: this block is three lines tall, and an icon floating in the middle
     of it stops reading as a marker for the first line. */
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  border: 1px dashed color-mix(in srgb, var(--c-accent) 35%, var(--c-border));
  border-radius: var(--r-lg);
  color: var(--c-text);
}

.mkt__privacy .mkt__ico {
  width: 20px;
  height: 20px;
  flex: none;
  /* Nudged onto the first line's centre line. The block below it is three lines tall and the icon
     is fixed at 20px, so aligning the two boxes at their tops puts the shield visibly high. */
  margin-top: 2px;
  color: var(--c-accent);
}

.mkt__privacy-copy {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  /* A flex child holding running text: without this it refuses to shrink below its longest line
     and pushes the dashed card wider than its container on a narrow phone. */
  min-width: 0;
}

.mkt__privacy-body {
  margin: 0;
  font-size: .95rem;
  font-weight: 550;
}

/* The exit. Deliberately the quietest type on the page: it is reassurance, and reassurance that
   shouts reads as a disclaimer. The question stays in the text colour so it is found; the answer
   steps down to muted because it only needs to be read once the question has landed. */
.mkt__privacy-ask {
  margin: 0;
  font-size: .9rem;
}

.mkt__privacy-ans {
  margin: 0;
  color: var(--c-muted);
  font-size: .85rem;
}

/* ---------------------------------------------------------------------------
 * Foot
 * ------------------------------------------------------------------------- */

.mkt__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding: var(--sp-5) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: .85rem;
}

.mkt__foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.mkt__foot a {
  color: var(--c-muted);
  text-decoration: none;
}

.mkt__foot a:hover { color: var(--c-text); }

/* ---------------------------------------------------------------------------
 * The quiet link to a detail page
 *
 * Sits under the three bullets it summarises, at the weight of a footnote. It is the only way
 * off the front page that is not a button, which is the point: it should be findable by someone
 * who has read the summary and wants the rest, and ignorable by someone who has not.
 * ------------------------------------------------------------------------- */

.mkt__more {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  color: var(--c-accent);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.mkt__more span { font-size: 1.05em; line-height: 1; }
.mkt__more:hover { text-decoration: underline; }

/* ---------------------------------------------------------------------------
 * The two ways in — class.ro/business
 *
 * Same plate as .mkt__band, defined here rather than shared through a second class name because
 * the two sections differ in what is inside them and agreeing on the frame by repetition is
 * cheaper to read than agreeing on it through a selector nobody can trace.
 * ------------------------------------------------------------------------- */

.mkt__ways,
.mkt__reach {
  margin-top: var(--mkt-gap);
  padding: var(--sp-6) var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
}

.mkt__ways .mkt__h2,
.mkt__reach .mkt__h2 { margin-bottom: var(--sp-3); }

/* The sentence under a section's heading. Shared by the two ways and the reach chart — they are
   the two sections that have one, and a second class for the same four declarations would be a
   name to keep in sync for no reason. */
.mkt__sec-lead {
  margin: 0 0 var(--sp-5);
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 44ch;
}

.mkt__way-list {
  display: grid;
  gap: var(--mkt-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mkt__way {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}

/* Two columns only once the picture can be 440px and the copy beside it still holds a line of
   text. Below that they stack, picture first — the drawing is what makes the difference between
   the two ways obvious at a glance, and a reader who has to scroll past the text to reach it has
   already read the text and no longer needs it. */
@media (min-width: 860px) {
  .mkt__way {
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    gap: var(--mkt-gap);
  }
}

.mkt__way-art {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg);
}

.mkt__way-copy { min-width: 0; }

/* The numeral, at the same weight as the steps' — the two ways are options, and this is the only
   thing that says so once the marker is off. */
.mkt__way-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  color: var(--c-accent);
  font-size: .82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mkt__way-title {
  margin: 0 0 var(--sp-2);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.mkt__way-body {
  margin: 0 0 var(--sp-4);
  color: var(--c-muted);
  font-size: .95rem;
  line-height: 1.55;
  max-width: 46ch;
}

.mkt__way-points {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The tick is drawn, not a list marker: a marker would be a glyph at the mercy of the font, and
   these three lines are the page's argument. */
.mkt__way-points li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: .92rem;
  line-height: 1.5;
}

.mkt__way-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .48em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--c-accent);
}

/* The one line under the second way, and the reason it is the better of the two. Set apart by a
   rule rather than by weight, so it reads as a footnote to the list above and not as a fourth
   bullet that the other way is missing. */
.mkt__way-note {
  margin: var(--sp-4) 0 0;
  padding-left: var(--sp-3);
  border-left: 2px solid var(--c-accent);
  color: var(--c-text);
  font-size: .92rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
 * The reach chart
 *
 * Three bars on one linear scale, and the ratio is the whole point: a shop's own few hundred
 * against the network's twenty thousand is 1:100, and any scale that flattens that into three
 * similar lengths has drawn a picture of the opposite claim. So the axis is linear, the smallest
 * bar is genuinely a hundredth of the largest, and every bar is labelled with the number it
 * draws — the width is never the only thing carrying the quantity.
 *
 * The widths are classes and not inline styles because the page's CSP is `style-src 'self'
 * 'nonce-…'`, which blocks an inline style ATTRIBUTE silently: the bars would all render at zero
 * and nothing would report an error. The three values are fixed, so three classes are enough.
 * ------------------------------------------------------------------------- */

.mkt__chart {
  display: grid;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mkt__row {
  display: grid;
  /* Label left, value right, bar underneath spanning both. The value is beside the label rather
     than at the end of the bar, because at 1% the end of the bar is not a place. */
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 var(--sp-3);
  align-items: baseline;
}

.mkt__row-label {
  color: var(--c-muted);
  font-size: .9rem;
  line-height: 1.4;
}

.mkt__row-value {
  color: var(--c-text);
  font-size: 1rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.mkt__row-track {
  grid-column: 1 / -1;
  margin-top: var(--sp-2);
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-border);
  overflow: hidden;
}

.mkt__row-fill {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--c-muted);
  /* A legibility floor, not a rounding-up of the number. At 1% a phone-width bar is under two
     pixels, which reads as an empty track — and an empty track says zero, which is a different
     and much more discouraging quantity than two hundred. */
  min-width: 4px;
}

/* The shop's own reach, in the muted colour: it is the baseline the other two are measured
   against, not a claim. */
.mkt__row--own .mkt__row-fill { width: 1%; }

/* Matching users: the accent at part strength. The bar is what says "more than you have"; the
   colour says "not the whole thing yet". */
.mkt__row--near .mkt__row-fill {
  width: 10%;
  background: color-mix(in srgb, var(--c-accent) 65%, var(--c-border));
}

/* The whole network, full width and at full accent — the last row is the offer. */
.mkt__row--all .mkt__row-fill { width: 100%; background: var(--c-accent); }
.mkt__row--all .mkt__row-value { color: var(--c-accent); }

.mkt__reach-note {
  margin: var(--sp-5) 0 0;
  color: var(--c-muted);
  font-size: .9rem;
}

/* ---------------------------------------------------------------------------
 * Motion
 *
 * One animation, on the thing that is a physical object on the other side of the screen: the
 * code lifts on hover, so the card reads as something you would pick up.
 * ------------------------------------------------------------------------- */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mkt__scan .mkt__qr {
    transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  }
  .mkt__scan:hover .mkt__qr {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .45);
  }
}

/* ---------------------------------------------------------------------------
 * Legal documents — /terms and /privacy
 *
 * A document, not a sales page, so this is the one part of the sheet that is set like prose: a
 * measured column, real paragraph rhythm, and no card per section. The page is long by nature,
 * which is why the contents list is a column of its own on a wide screen and a plain block
 * above the text on a phone.
 *
 * Everything is sized in rem and --sp- steps like the rest of the file, and every colour comes
 * from the shared tokens, so the documents follow the palette and the dark theme without a
 * single literal here.
 * ------------------------------------------------------------------------- */

.legal {
  padding: var(--mkt-gap) 0 0;
}

/* The heading block, held to a reading measure even when the columns below are wider. */
.legal__intro {
  max-width: 46rem;
}

.legal__draft {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-border);
  border-inline-start: 3px solid var(--c-accent);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.legal__h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 750;
  text-wrap: balance;
}

.legal__meta {
  margin: var(--sp-2) 0 0;
  color: var(--c-muted);
  font-size: .85rem;
}

.legal__lede {
  margin: var(--sp-4) 0 0;
  color: var(--c-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.legal__cols {
  margin-top: var(--sp-6);
}

/* The contents list. Sticky rather than fixed: it follows the reader down the document and
   leaves with it, and it never covers the footer. */
.legal__toc {
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  font-size: .9rem;
}

.legal__toc-list {
  margin: 0;
  padding-inline-start: 1.15rem;
  display: grid;
  gap: var(--sp-2);
}

.legal__toc a {
  color: var(--c-muted);
  text-decoration: none;
}

.legal__toc a:hover,
.legal__toc a:focus-visible {
  color: var(--c-text);
  text-decoration: underline;
}

@media (min-width: 900px) {
  .legal__cols {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: var(--sp-6);
    align-items: start;
  }

  .legal__toc {
    position: sticky;
    top: calc(var(--sp-6) + 2.5rem);
    margin-bottom: 0;
  }
}

/* The document itself. 46rem is about 75 characters of running text at this size — wide enough
   for a legal clause on one or two lines, narrow enough to read without tracking with a finger. */
.legal__body {
  max-width: 46rem;
  min-width: 0;
}

.legal__section {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}

.legal__section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal__section + .legal__section {
  margin-top: var(--sp-5);
}

.legal__h2 {
  margin: 0 0 var(--sp-3);
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 700;
  text-wrap: balance;
  /* A section link lands under the sticky bar, not behind it. */
  scroll-margin-top: 5rem;
}

.legal__h3 {
  margin: var(--sp-5) 0 var(--sp-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.legal__p,
.legal__note {
  margin: 0 0 var(--sp-3);
  line-height: 1.65;
}

.legal__p:last-child,
.legal__note:last-child,
.legal__ul:last-child {
  margin-bottom: 0;
}

.legal__note {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: .92rem;
}

.legal__ul {
  margin: 0 0 var(--sp-3);
  padding-inline-start: 1.35rem;
  display: grid;
  gap: var(--sp-2);
  line-height: 1.6;
}

/* The data table in the privacy policy: label, then definition. One column on a phone, because
   two half-width columns for a sentence each is unreadable on a 360px screen. */
.legal__dl {
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}

.legal__dl-row {
  display: grid;
  gap: var(--sp-1);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}

.legal__dl-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal__dl dt {
  font-weight: 650;
}

.legal__dl dd {
  margin: 0;
  color: var(--c-muted);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .legal__dl-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-4);
  }
}

/* Its own scroll container: a four-column legal table is the one thing here allowed to be wider
   than the column, and the page body must still never scroll sideways on a phone. */
.legal__tablewrap {
  margin: 0 0 var(--sp-3);
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}

.legal__table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: .88rem;
  line-height: 1.5;
}

.legal__table th,
.legal__table td {
  padding: var(--sp-2) var(--sp-3);
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--c-border);
}

.legal__table thead th {
  background: var(--c-surface);
  font-weight: 650;
  white-space: nowrap;
}

.legal__table tbody tr:last-child td {
  border-bottom: 0;
}

.legal__table td:first-child {
  font-weight: 600;
}

.legal__see {
  margin: var(--sp-6) 0 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: .92rem;
}

.legal a {
  color: var(--c-accent);
}

.legal strong {
  font-weight: 650;
}

/* ---------------------------------------------------------------------------
 * Contact — class.ro/contact
 *
 * The form itself is theme.css's: .form, .field, .field__input, .field__textarea,
 * .field__hint, .field__error and .btn--primary are shared deliberately, exactly as .btn and
 * .card are. This adds the column it sits in, and the honeypot.
 * ------------------------------------------------------------------------- */

.mkt__contact {
  width: 100%;
  max-width: 38rem;
  padding: var(--sp-6) 0 var(--sp-5);
}

.mkt__contact-lede {
  margin: var(--sp-4) 0 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--c-muted);
}

.mkt__contact-form { margin-top: var(--sp-6); }

.mkt__contact-note {
  margin: 0;
  color: var(--c-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.mkt__contact-error {
  margin: var(--sp-5) 0 0;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-err);
  border-radius: var(--r-md);
  color: var(--c-err);
  font-size: .9rem;
}

.mkt__contact-again { margin-top: var(--sp-5); }

/* Off-screen rather than `display: none`: a bot that reads the computed style skips a hidden
   field and one that fills every input does not. A person cannot reach it — the markup marks it
   aria-hidden and takes it out of the tab order. */
.mkt__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * FAQ — class.ro/faq
 *
 * One document, two halves. The halves are ordinary .mkt__band plates; what this adds is the
 * question list inside them and the jump chips at the top. Nothing is collapsed: a control that
 * hides an answer costs a tap and hides it from a reader scanning the page, and an FAQ is read
 * before it is navigated.
 *
 * `scroll-margin-top` exists because the bar is sticky: without it a jump to #business lands
 * with its heading under the bar, which reads as "the anchor is wrong".
 * ------------------------------------------------------------------------- */

.mkt__faq-head {
  padding: var(--mkt-gap) 0 var(--sp-5);
}

.mkt__faq-head .mkt__lead {
  max-width: 48ch;
}

.mkt__faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.mkt__faq-jump .btn {
  min-height: 40px;
}

.mkt__band[id] {
  scroll-margin-top: 88px;
}

.mkt__faq-list {
  display: grid;
  gap: var(--sp-5);
}

.mkt__faq-item + .mkt__faq-item {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-5);
}

.mkt__faq-q {
  margin: 0 0 var(--sp-2);
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -.01em;
  font-weight: 650;
}

.mkt__faq-a {
  margin: 0;
  max-width: 62ch;
  color: var(--c-muted);
  line-height: 1.6;
}

/* Desktop: the question moves into its own left column and the answer fills the rest of the
   plate. One column of question-over-answer leaves the right half of a 1000px card empty,
   because the answer's measure is capped for readability — so the width is spent on a second
   column instead of on longer lines. The row gap is the plate's own padding; the list gap is
   dropped so the separator rule sits between rows rather than inside the spacing. */
@media (min-width: 860px) {
  .mkt__faq-list {
    gap: 0;
  }

  .mkt__faq-item {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: var(--sp-4) var(--mkt-gap);
    align-items: start;
    padding: var(--sp-5) 0;
  }

  .mkt__faq-item:first-child {
    padding-top: 0;
  }

  .mkt__faq-item:last-child {
    padding-bottom: 0;
  }

  .mkt__faq-q {
    margin: 0;
  }

  /* 68ch is a little over the phone's 62, and enough to use most of the ~710px column the
     question leaves at the page's full width. */
  .mkt__faq-a {
    max-width: 68ch;
  }
}

.mkt__faq-cta {
  margin-top: var(--sp-6);
}

.mkt__faq-ask {
  margin-top: var(--mkt-gap);
  font-size: 1rem;
}

.mkt__faq-ask a {
  color: var(--c-accent);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * class.ro/start — the shop onboarding guide
 *
 * The page is a checklist, a dependency table and a numbered walkthrough. It reuses the FAQ's
 * jump chips (#ready, #steps), step list vocabulary and closing "still stuck?" line; what is new
 * here is the number badge, the check rows, the need -> prerequisite table, and the screenshot
 * figure.
 *
 * The figure is the only place on this site that shows a picture of the product. It is a
 * screenshot of the real console at a 960px viewport, so it is wide and its text is small: beside
 * the step it is given slightly more of the plate than the prose, and the caption underneath says
 * what the reader is looking at rather than repeating the step.
 *
 * `:has()` is what lets an unshot step (print the code, what you will never see, help) use the
 * whole plate: only a body that actually contains a figure becomes two columns. Where `:has()` is
 * unsupported the page falls back to one column, which is the phone layout and reads fine.
 * ------------------------------------------------------------------------- */

.mkt__guide-teaser {
  margin-top: var(--sp-3);
  font-size: .95rem;
}

.mkt__guide-teaser a {
  color: var(--c-accent);
  font-weight: 600;
}

.mkt__guide-head {
  padding: var(--mkt-gap) 0 var(--sp-5);
}

.mkt__guide-head .mkt__lead {
  max-width: 52ch;
}

.mkt__check {
  display: grid;
  gap: var(--sp-2);
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
}

.mkt__check-item {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}

/* A tick drawn in the accent, not an emoji or an icon sprite: it must read at 14px, and a word
   processor's checkmark glyph is the only shape that needs no explanation. */
.mkt__check-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-accent);
  font-weight: 700;
}

.mkt__dep {
  margin: var(--sp-5) 0 0;
  padding: 0;
}

.mkt__dep-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-1);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--c-border);
}

.mkt__dep-row:last-child {
  border-bottom: 1px solid var(--c-border);
}

.mkt__dep-need {
  font-weight: 600;
}

.mkt__dep-done {
  margin: 0;
  color: var(--c-muted);
}

@media (min-width: 720px) {
  .mkt__dep-row {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: var(--sp-2) var(--mkt-gap);
    align-items: baseline;
  }
}

.mkt__guide-list {
  display: grid;
  gap: var(--mkt-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mkt__guide-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: var(--sp-3);
}

.mkt__guide-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 700;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}

.mkt__guide-title {
  margin: .2rem 0 var(--sp-2);
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.mkt__guide-text {
  margin: 0;
  max-width: 62ch;
  color: var(--c-muted);
  line-height: 1.6;
}

.mkt__guide-note {
  margin: var(--sp-3) 0 0;
  padding-left: var(--sp-3);
  max-width: 58ch;
  border-left: 3px solid var(--c-accent);
  color: var(--c-muted);
  font-size: .95rem;
  line-height: 1.55;
}

.mkt__shot {
  margin: var(--sp-4) 0 0;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-surface);
  overflow: hidden;
}

.mkt__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.mkt__shot figcaption {
  padding: var(--sp-2) var(--sp-3);
  border-top: 1px solid var(--c-border);
  color: var(--c-muted);
  font-size: .85rem;
  line-height: 1.45;
}

@media (min-width: 860px) {
  .mkt__guide-step {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: var(--sp-5) var(--sp-4);
  }

  .mkt__guide-n {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  /* Only a step with a picture splits: the others stay one column and keep their 62ch measure. */
  .mkt__guide-body:has(.mkt__shot) {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--sp-3) var(--mkt-gap);
    align-items: start;
  }

  .mkt__guide-body:has(.mkt__shot) > :not(.mkt__shot) {
    grid-column: 1;
  }

  .mkt__guide-body:has(.mkt__shot) .mkt__shot {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin: 0;
  }
}

.mkt__guide-cta {
  margin-top: var(--sp-5);
}
