/* ==========================================================
   BrotoBooth web theme, copy for the site of the photobooth rental.

   Same tokens and components as templates/_theme.css (the canonical
   block, the DA "Sunset" of the kiosk): keep the two in sync, except
   for two things left out on purpose:
   - no font files are declared here. Outfit and Unbounded are declared
     in fonts.css, next to this file (the pages that use these tokens
     link both); until it loads, the fallbacks of --font-text and
     --font-title apply;
   - no light palette. The site is dark only (spec, sections 1 and 7):
     a phone set to light gets the same noir nuit ground and white text.
     Do not copy the light media query of the canonical file.

   ROSE is the action and the only coloured fill, at most one button
   per screen. ORANGE is the choice made, always a ring or a border.
   LEMON is a warning, next to its icon. Text is white, everywhere.
   ========================================================== */

:root {
  /* Dark only: native controls, scrollbars and the canvas behind the
     page follow the ground instead of flashing white. */
  color-scheme: dark;

  --bg-a: #0b0b0f;
  --bg-b: #14141b;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, .67);
  --text-faint: rgba(255, 255, 255, .42);

  --glass: rgba(255, 255, 255, .055);
  --glass-press: rgba(255, 255, 255, .13);
  --glass-border: rgba(255, 255, 255, .16);
  --glass-border-soft: rgba(255, 255, 255, .09);

  /* Plain fills inside a card (no rim): a row, an input well. */
  --row: rgba(255, 255, 255, .06);
  --field: rgba(11, 11, 15, .63);

  /* The brand's colours, one role each: rose = the action, orange = the
     choice made. The text on them is white; --select-mark is what is
     drawn ON an orange fill. */
  --accent: #f2559b;
  --accent-text: #ffffff;
  --select: #ff8a3d;
  --select-text: #ffffff;
  --select-mark: #0b0b0f;

  /* A mark over a photo (the gallery's tick circle, still unticked):
     the night ground, veiled, ringed in white. */
  --mark-bg: rgba(11, 11, 15, .40);
  --mark-line: rgba(255, 255, 255, .9);

  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, .14);
  --ok-line: rgba(34, 197, 94, .38);
  --warn: #facc15;
  --warn-soft: rgba(250, 204, 21, .12);
  --warn-line: rgba(250, 204, 21, .37);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, .14);
  --danger-line: rgba(239, 68, 68, .38);

  --veil: rgba(11, 11, 15, .78);
  /* The frosted card: a lighter top (the highlight) fading into the body. */
  --card: rgba(22, 22, 29, .84);
  --card-top: rgba(44, 44, 54, .84);
  --card-line: rgba(255, 255, 255, .15);
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  /* The outline of the secondary button: the text colour at 35 %. */
  --btn-line: rgba(255, 255, 255, .35);

  /* Checkerboard behind transparent overlays: it must read as
     "transparency" on the dark ground. */
  --checker-a: #26272e;
  --checker-b: #1b1c22;

  --font-text: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Unbounded", system-ui, sans-serif;
}

/* ---------- base ---------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: linear-gradient(180deg, var(--bg-a), var(--bg-b)) fixed;
  color: var(--text);
  font-family: var(--font-text);
  font-weight: 400;
}

/* Form controls do not take the page's font by themselves. */
button, input, select, textarea { font-family: inherit; }

/* Titles: Unbounded ExtraBold, the logo's letters. */
h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.15;
}
.sub { color: var(--text-soft); font-size: .88rem; margin-top: 4px; }

/* The brand's logo, above a page's title: white letters on the dark ground. */
.brand { display: block; height: 46px; width: auto; margin-bottom: 14px; }

/* ---------- frosted card ---------- */
/* Opaque enough (84 %) to read without the blur behind it, so there is
   no fallback for a browser that lacks backdrop-filter. */

.glass {
  background: linear-gradient(var(--card-top), var(--card) 30%);
  border: 1px solid var(--card-line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ---------- buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 10px;
  border: 0;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

/* The call to action: rose, in the logo's Unbounded. White on rose only
   passes the contrast as large text, hence 19 px and bold at least.
   Pressed, it darkens — nothing moves. */
.btn.primary {
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1875rem;
}

.btn.primary:active { filter: brightness(.92); }

/* The secondary button: an outline, no fill. */
.btn.ghost {
  background: transparent;
  border: 1.5px solid var(--btn-line);
}

.btn.ghost:active { background: var(--glass-press); }

/* ---------- status pills ---------- */

.pill {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border-soft);
  color: var(--text-soft);
}

.pill.ok     { background: var(--ok-soft);     border-color: var(--ok-line);     color: var(--ok); }
.pill.warn   { background: var(--warn-soft);   border-color: var(--warn-line);   color: var(--warn); }
.pill.danger { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }

/* ---------- procedure steps ---------- */
/* Compact numbered how-to, shown on the customer-facing pages: three
   short lines, never a paragraph. Numbers are drawn by CSS counters. */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

/* The li stays a normal block (inline children like <strong> must
   flow with the text); the number is absolutely positioned in the
   left gutter. */
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 30px;
  color: var(--text-soft);
  font-size: .85rem;
  line-height: 1.45;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--glass-press);
  border: 1px solid var(--glass-border-soft);
  color: var(--text);
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
  line-height: 19px;
}

/* ---------- small inline icons (SVG, currentColor) ---------- */

.icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  fill: currentColor;
}

/* ---------- input well ---------- */
/* A plain fill; the 2 px border is the orange ring of the active field,
   a faint rim at rest: it takes its place without a jump. */

.field {
  background: var(--field);
  color: var(--text);
  border: 2px solid var(--glass-border-soft);
  border-radius: 16px;
  min-height: 60px;
  font-family: inherit;
  font-weight: 600;
}

.field:focus { outline: none; border-color: var(--select); }
