/* Class.ro — the onboarding guide's counter section.
 *
 * Loaded by Shell::marketingPage() on class.ro/<lang>/start and on nothing else. The rest of the
 * guide is drawn with marketing.css; what lives here is the one part written as a conversation
 * between two people rather than as the page talking to the reader.
 *
 * ## The colour is the point
 *
 * A suggested script must not look like the page's own voice. So the dialogue gets `--talk`, a
 * mint that appears nowhere else on this site, and every mark of it — the scene's border, its
 * eyebrow, the customer's bubbles — is that one hue. The shop's own lines stay on the neutral
 * surface, because they are the reader's lines: the tint belongs to the other side of the
 * counter. Orange (--c-accent) still means "the product is telling you something"; mint means
 * "these are words you might say". Red (--c-err) is spent once, on the warning above the preferred
 * direction's steps, where it says "this one has a precondition".
 *
 * `--talk` is derived from --c-text rather than fixed, so it keeps its contrast if a deployment
 * ever ships a light palette. It is scoped to the section and never added to :root: no other page
 * loads this file, and a token that only one page spends belongs to that page.
 * ------------------------------------------------------------------------- */

.mkt__counter {
  --talk: color-mix(in srgb, #2dd4bf 65%, var(--c-text));
  --talk-soft: color-mix(in srgb, var(--talk) 12%, transparent);
  --talk-line: color-mix(in srgb, var(--talk) 45%, var(--c-border));
}

/* The band lead is one long sentence here (most leads are a phrase), so it gets the wider
   measure the guide's own copy uses rather than marketing.css's 38ch. */
.mkt__counter .mkt__band-lead {
  max-width: 64ch;
}

/* The one sentence a cashier has to remember, before the two cards that explain it. */
.mkt__counter-rule {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  font-size: .95rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------------
 * The two directions
 * ------------------------------------------------------------------------- */

.mkt__counter-ways {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
}

/* Two columns only where each can still hold a 40-character line; below that they stack, and
   the first way — the one most sales take — stays first. */
@media (min-width: 860px) {
  .mkt__counter-ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.mkt__counter-way {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}

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

.mkt__counter-way-title {
  margin: 0 0 var(--sp-2);
  font-size: 1.12rem;
  line-height: 1.3;
}

.mkt__counter-way-when {
  margin: 0 0 var(--sp-4);
  color: var(--c-muted);
  font-size: .93rem;
  line-height: 1.55;
}

/* The preferred direction has a precondition, and it is the kind a shopkeeper discovers the hard
   way — at the counter, with a customer who has nothing to show. So it is a warning plate rather
   than a clause in the steps: red, the palette's --c-err, which appears nowhere else in this
   guide. It sits above the steps, because it decides whether to read them at all. */
.mkt__counter-notice {
  margin: 0 0 var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--c-err);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--c-err) 12%, var(--c-surface));
  font-size: .9rem;
  line-height: 1.5;
}

.mkt__counter-way-steps {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding-left: 1.2rem;
  font-size: .93rem;
  line-height: 1.5;
}

.mkt__counter-way-steps li::marker {
  color: var(--c-accent);
  font-weight: 700;
}

/* The one console capture in the section sits under both cards rather than inside one: it is
   taller than the card that would hold it, so half a plate of empty prose would sit beside it.
   Centred at a measure that keeps the keypad's digits legible. */
.mkt__counter-shot {
  max-width: 760px;
  margin: var(--sp-5) auto 0;
}

/* ---------------------------------------------------------------------------
 * The suggested conversations
 * ------------------------------------------------------------------------- */

.mkt__talk-title {
  margin: var(--sp-6) 0 var(--sp-2);
  font-size: 1.2rem;
  line-height: 1.3;
}

.mkt__talk-lead {
  margin: 0 0 var(--sp-4);
  max-width: 64ch;
  color: var(--c-muted);
  line-height: 1.55;
}

.mkt__talk {
  display: grid;
  gap: var(--sp-4);
}

@media (min-width: 860px) {
  .mkt__talk {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

/* A scene is the tinted plate. The soft wash rather than a solid fill: three of these sit side
   by side, and a saturated block beside the neutral way cards above would read as a warning. */
.mkt__talk-scene {
  padding: var(--sp-4);
  border: 1px solid var(--talk-line);
  border-radius: var(--r-md);
  background: var(--talk-soft);
}

.mkt__talk-when {
  margin: 0 0 var(--sp-3);
  color: var(--talk);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

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

/* A bubble with no tail and no avatar: at this size a chat illustration starts to look like a
   screenshot of a product screen, and these are not screens — they are lines to say out loud. */
.mkt__talk-line {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: .91rem;
  line-height: 1.45;
}

.mkt__talk-line--shop {
  border: 1px solid var(--c-border);
  background: color-mix(in srgb, var(--c-surface) 80%, transparent);
}

.mkt__talk-line--them {
  margin-left: var(--sp-4);
  border: 1px solid var(--talk-line);
  background: color-mix(in srgb, var(--talk) 16%, var(--c-surface));
}

.mkt__talk-who {
  display: block;
  margin-bottom: 2px;
  color: var(--c-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.mkt__talk-line--them .mkt__talk-who {
  color: var(--talk);
}

.mkt__talk-said {
  display: block;
}
