/* ──────────────────────────────────────────────────────────────────────
   potionpost — base tokens + type
   sibling to petalpost (cream/rose by day) and pawpost (butter/sunny).
   potionpost lives at night: deep aubergine, candle-gold, parchment ink.
   ────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..600;1,6..72,300..600&family=IM+Fell+English:ital@0;1&family=Caveat:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* MIDNIGHT palette (default) — late apothecary, candlelit */
  --bg:        #18141f;   /* deep aubergine-black, page wash */
  --bg-alt:    #221c2c;   /* panel */
  --surface:   #2a2335;   /* cards / inputs */
  --surface-2: #322a40;
  --line:      rgba(214,190,138,.14);  /* gold hairline */
  --line-2:    rgba(214,190,138,.28);
  --taupe:     #8a7c5c;   /* secondary text */
  --ink:       #f0e2c1;   /* primary text — parchment cream */
  --ink-soft:  #c4b690;
  --pop:       #d6a847;   /* candle gold — the rose-equivalent */
  --pop-tint:  rgba(214,168,71,.16);
  --pop-deep:  #f1c970;   /* bright gold — CTAs, signature */
  --plum:      #9d4a5c;   /* secondary accent — oxblood */
  --plum-tint: rgba(157,74,92,.22);
  --moss:      #6a8254;   /* tertiary — herbal */
  --warn:      #c87a4a;   /* warm warning */

  /* shared */
  --shadow:    0 1px 0 rgba(255,238,200,.04) inset,
               0 30px 60px -30px rgba(0,0,0,.7),
               0 0 0 1px rgba(214,190,138,.05);
  --glow:      0 0 24px rgba(214,168,71,.22);
  --radius:    14px;
  --radius-sm: 10px;
  --t:         .22s cubic-bezier(.2,.7,.2,1);

  /* type */
  --serif:   'Newsreader', 'Cormorant Garamond', Georgia, serif;
  --display: 'IM Fell English', 'Newsreader', Georgia, serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;
  --hand:    'Caveat', 'Bradley Hand', cursive;
}

/* DAYBOOK palette (alt) — parchment by day, deep plum + moss accents */
[data-palette="daybook"] {
  --bg:        #ece1c4;
  --bg-alt:    #e1d4b1;
  --surface:   #f3eacd;
  --surface-2: #ead9b2;
  --line:      rgba(40,28,20,.16);
  --line-2:    rgba(40,28,20,.3);
  --taupe:     #8a7355;
  --ink:       #2a1f1a;
  --ink-soft:  #4a3a2e;
  --pop:       #6e3a52;     /* deep plum */
  --pop-tint:  rgba(110,58,82,.14);
  --pop-deep:  #4d2a3a;
  --plum:      #6e3a52;
  --plum-tint: rgba(110,58,82,.14);
  --moss:      #58724a;
  --warn:      #a85a2a;
  --shadow:    0 1px 0 rgba(255,255,255,.5) inset,
               0 22px 50px -28px rgba(60,32,20,.45);
  --glow:      none;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* subtle night vignette behind everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% 12%, rgba(214,168,71,.06), transparent 55%),
    radial-gradient(900px 700px at 88% 90%, rgba(157,74,92,.07), transparent 55%);
  z-index: 0;
}
[data-palette="daybook"] body::before,
body[data-palette="daybook"]::before { display: none; }

/* ── primitive type roles ─────────────────────────────────────────── */

.t-display { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.t-italic  { font-family: var(--serif); font-style: italic; font-weight: 300; }
.t-body    { font-family: var(--serif); font-weight: 400; line-height: 1.55; }
.t-meta {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--taupe);
}
.t-hand { font-family: var(--hand); font-weight: 500; color: var(--ink-soft); }

a { color: var(--pop-deep); text-underline-offset: 3px; }

/* ──────────────────────────────────────────────────────────────────
   WORDMARK
   ────────────────────────────────────────────────────────────────── */

.wm {
  display: inline-flex;
  align-items: baseline;
  gap: .14em;
  color: var(--ink);
  line-height: 1;
  font-family: var(--display);
}
.wm .wm-sigil {
  width: 1.1em; height: 1.1em;
  margin-right: .35em;
  align-self: center;
  display: inline-block;
  color: var(--pop);
}
.wm .wm-potion {
  font-family: var(--display);
  font-style: italic;
  font-size: 1em;
  color: var(--pop-deep);
  letter-spacing: .005em;
}
.wm .wm-post {
  font-family: var(--display);
  font-style: normal;
  font-size: 1em;
  color: var(--ink);
}
.wm .wm-io {
  font-family: var(--mono);
  font-size: .42em;
  font-weight: 500;
  vertical-align: super;
  margin-left: .25em;
  color: var(--taupe);
  position: relative;
  top: -.6em;
}

/* ──────────────────────────────────────────────────────────────────
   APP SHELL
   ────────────────────────────────────────────────────────────────── */

.shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
}
.topright { display: flex; align-items: center; gap: 20px; }
.topright .admin-controls { white-space: nowrap; }
.topbar .brandwrap { display: flex; align-items: center; gap: 16px; }
.topbar .brandwrap .wm { font-size: 26px; }
.topbar .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--taupe);
  border-left: 1px solid var(--line);
  padding-left: 14px;
  white-space: nowrap;
}

/* step rail */
.steps { display: flex; align-items: center; gap: 4px; }
.step {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px;
  background: none; border: none; cursor: default;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--taupe);
  opacity: .55;
  transition: opacity var(--t), background var(--t), color var(--t);
}
.step .num {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  font-size: 9px;
}
.step.on { opacity: 1; color: var(--pop-deep); background: var(--pop-tint); }
.step.on .num { background: var(--pop); color: #18141f; border-color: var(--pop); }
.step.done { opacity: .9; color: var(--ink-soft); cursor: pointer; }
.step.done .num { background: var(--ink-soft); color: var(--bg); border-color: var(--ink-soft); }
.step.done:hover { color: var(--ink); }

/* ──────────────────────────────────────────────────────────────────
   WORKSPACE
   ────────────────────────────────────────────────────────────────── */

.work {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) 440px;
  gap: 0;
  min-height: 0;
}

/* stage — left side, preview-only */
.stage {
  position: relative;
  padding: 44px 40px 60px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
}
.stage .intro {
  width: 100%; max-width: 520px;
  text-align: center;
  margin: 0 0 28px;
}
.stage .intro .kick {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  color: var(--taupe);
  margin: 0 0 12px;
  letter-spacing: .04em;
}
.stage .intro .kick .glyph { color: var(--pop); font-style: normal; margin: 0 .35em; }
.stage .intro h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: .005em;
}
.stage .intro h1 em { font-style: italic; color: var(--pop-deep); }
.stage .intro p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.stage .intro p .pop { color: var(--pop-deep); font-style: italic; }

/* the physical card the recipient receives */
.postcard {
  width: min(500px, 100%);
  background:
    radial-gradient(140% 90% at 50% -10%, rgba(214,168,71,.06), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow:
    var(--shadow),
    0 0 calc(60px * var(--glow-mult, 1)) rgba(214,168,71, calc(.18 * var(--glow-mult, 1)));
  padding: 28px 28px 26px;
  position: relative;
}

html.no-corners .postcard .corner { display: none; }
.postcard::after {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  pointer-events: none;
}
.postcard.sm { width: min(360px, 100%); padding: 20px 20px 18px; }

.postcard .corner {
  position: absolute;
  font-family: var(--display);
  font-style: italic;
  font-size: 11px;
  color: var(--taupe);
  letter-spacing: .04em;
  z-index: 2;
}
.postcard .corner.tl { top: 14px; left: 18px; }
.postcard .corner.tr { top: 14px; right: 18px; }

.postcard .art {
  height: min(480px, 54vh);
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0 4px;
}
.postcard.sm .art { height: min(320px, 38vh); }
.postcard .art svg { max-height: 100%; max-width: 100%; height: 100%; width: auto; }

.postcard .empty {
  align-self: center;
  color: var(--taupe);
  font-style: italic;
  text-align: center;
  font-size: 16px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.postcard .empty .seedrow { display: block; }
.seed {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--pop);
  border: none; border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.seed:hover { background: var(--pop-deep); transform: translateY(-1px); }
/* persistent "surprise me" re-roll at the top of the brew panel */
.panel .seed.randomize { margin: 2px 0 24px; }

.postcard .msg-divide {
  border: none;
  border-top: 1px solid var(--line);
  margin: 14px 0 0;
  position: relative;
}
.postcard .msg-divide::before {
  content: '✦';
  position: absolute;
  left: 50%; top: -10px;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  background: var(--surface);
  text-align: center; line-height: 20px;
  color: var(--pop);
  font-size: 12px;
}
.postcard .msg {
  margin-top: 16px;
  min-height: 56px;
  font-family: var(--hand);
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink-soft);
}
.postcard.sm .msg { font-size: 20px; min-height: 40px; }
.postcard .msg.placeholder { color: var(--taupe); opacity: .7; }
.postcard .sig {
  margin-top: 6px;
  text-align: right;
  font-family: var(--hand);
  font-size: 24px;
  line-height: 1.1;
  color: var(--pop-deep);
}

.stage .spec {
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  color: var(--taupe);
  text-align: center;
}
.stage .spec .glyph { color: var(--pop); margin: 0 .35em; }

/* ──────────────────────────────────────────────────────────────────
   CONTROL PANEL (right column)
   ────────────────────────────────────────────────────────────────── */

.panel {
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 30px 30px 120px;
  overflow: auto;
}
.panel h2 {
  margin: 0 0 2px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: .01em;
}
.panel .hint {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--taupe);
}

.group { margin: 0 0 26px; }
.group .lab {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 11px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--taupe);
}
.group .lab .ct { color: var(--ink-soft); }

/* ── ingredient grid ── */
.ings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ing {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.ing:hover { border-color: var(--line-2); transform: translateY(-1px); }
.ing:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.ing .swatch {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex: none;
  color: var(--ink-soft);
}
.ing .swatch svg { width: 22px; height: 22px; }
.ing .col { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1 1 0; }
.ing .nm {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.1;
}
.ing .lt {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 10.5px;
  color: var(--taupe);
  text-transform: none;
  letter-spacing: 0;
}

/* selected ingredient chips */
.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.chip {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--pop-tint);
  color: var(--pop-deep);
  border: 1px solid rgba(214,168,71,.3);
  cursor: pointer;
}
.chip .x { margin-left: 7px; opacity: .55; }
.chip:hover .x { opacity: 1; }
.reshuffle {
  margin-left: 10px;
  border: none; background: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--pop-deep);
  padding: 0;
}
.reshuffle:hover { color: var(--pop); }

/* ── vessel picker (radio cards) ── */
.vessels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.vessel {
  padding: 10px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit; color: var(--ink);
  text-align: center;
  transition: border-color var(--t), background var(--t);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.vessel:hover { border-color: var(--line-2); }
.vessel.sel { border-color: var(--pop); background: var(--pop-tint); }
.vessel .vfig { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-soft); }
.vessel.sel .vfig { color: var(--pop-deep); }
.vessel .nm {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11.5px;
  line-height: 1.1;
}

/* ── brew color swatches ── */
.brews {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.brew {
  position: relative;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.brew:hover { transform: translateY(-1px); }
.brew.sel {
  box-shadow: 0 0 0 2px var(--bg-alt), 0 0 0 3.5px var(--pop);
  border-color: transparent;
}
.brew .lbl {
  position: absolute; bottom: 4px; left: 0; right: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 10.5px;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  text-align: center;
  pointer-events: none;
}

/* ── atmosphere chips (multi-select) ── */
.atmos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.atm {
  padding: 9px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit; color: var(--ink);
  text-align: center;
  transition: border-color var(--t), background var(--t);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.atm:hover { border-color: var(--line-2); }
.atm.sel { border-color: var(--plum); background: var(--plum-tint); }
.atm:disabled { opacity: .35; cursor: not-allowed; }
.atm .afig { width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-soft); }
.atm.sel .afig { color: var(--ink); }
.atm .nm {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  line-height: 1.1;
}

/* ── card-tint (background) swatch row ── */
.bgs {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.bgs .bgs-lab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--taupe);
}
.swatchbtn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer; padding: 0;
  transition: transform var(--t), box-shadow var(--t);
}
.swatchbtn:hover { transform: scale(1.08); }
.swatchbtn.sel {
  box-shadow: 0 0 0 2px var(--bg-alt), 0 0 0 3.5px var(--pop);
  border-color: transparent;
}

/* ── disclose group (collapsed extras) ── */
.disclose {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: none; border: none; cursor: pointer;
  color: var(--taupe); padding: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.disclose:hover { color: var(--ink-soft); }
.disclose .cnt {
  display: inline-grid; place-items: center;
  min-width: 16px; height: 16px;
  margin-left: 7px; padding: 0 5px;
  border-radius: 999px;
  background: var(--plum-tint);
  color: var(--plum);
  font-size: 9px;
}
.disclose .chev { font-size: 14px; line-height: 1; color: var(--pop); }
.dischint {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  color: var(--taupe);
  margin: 10px 0 11px;
}

/* ── inputs ── */
textarea, input.from, .ds-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  resize: vertical;
}
textarea { min-height: 88px; line-height: 1.5; }
textarea::placeholder, input.from::placeholder, .ds-input::placeholder { color: var(--taupe); opacity: .85; }
textarea:focus, input.from:focus, .ds-input:focus { outline: none; border-color: var(--pop); }
input.from { font-size: 15px; }

/* spell suggestions */
.spells {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.spell {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.spell:hover { border-color: var(--pop); color: var(--pop-deep); background: var(--pop-tint); }

/* ── address form ── */
.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--taupe);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.field input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--pop); }
.field input.bad { border-color: var(--warn); background: rgba(200,122,74,.08); }
/* address autocomplete dropdown (shared Checkout.StreetField) — midnight palette */
.acwrap { position: relative; }
.aclist {
  position: absolute; z-index: 40; left: 0; right: 0; top: 100%;
  margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.55);
  max-height: 248px; overflow: auto;
}
.aclist li { padding: 8px 10px; border-radius: 5px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.aclist li.on { background: var(--pop-tint); }
.aclist .ac-st { font-family: var(--serif); font-size: 15px; color: var(--ink); line-height: 1.2; }
.aclist .ac-ci { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--taupe); }
.row { display: grid; grid-template-columns: 1fr 80px 110px; gap: 8px; }
.subhead {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--taupe);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 24px 0 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.subhead:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.subhead .sub {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--taupe);
  margin-top: 4px;
}
.err {
  color: var(--warn);
  font-size: 12px;
  margin: 6px 0 0;
}
.notice {
  background: rgba(200,122,74,.1);
  border: 1px solid var(--warn);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* multi-recipient: add / remove links on the address step */
.addrcpt { margin: 14px 0 2px; }
.addrcpt .muted { font-family: var(--serif); font-style: italic; font-size: 12px; color: var(--taupe); margin-left: 8px; }
.linkbtn { border: none; background: none; cursor: pointer; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--pop-deep); padding: 0; }
.linkbtn:hover { color: var(--pop); }
.linkbtn.quiet { color: var(--taupe); font-size: 12px; text-transform: none; letter-spacing: 0; }
.linkbtn.quiet:hover { color: var(--ink); }

/* opt-in: print your own return address instead of potionpost's default */
.savehint {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12.5px;
  color: var(--taupe);
  margin: -2px 0 12px;
}
.optret {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 0 0 4px; cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.optret input {
  margin: 2px 0 0; width: 16px; height: 16px;
  accent-color: var(--pop);
  flex: none; cursor: pointer;
}

/* ── review ── */
.rev { margin-bottom: 18px; }
.rev .addr {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.rev .addr .who {
  color: var(--ink);
  font-style: italic;
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.rev .line {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.rev .line:last-child { border-bottom: none; }
.rev .line.total {
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
}
.rev .muted {
  color: var(--taupe);
  font-size: 12.5px;
  font-style: italic;
  margin: 4px 0 0;
}
.rev .recipe {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.rev .recipe .rcap {
  display: block;
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 8px;
}
.rev .recipe em { color: var(--ink); font-style: italic; }
/* promo code row on the review step */
.rev .promo { display: flex; gap: 8px; margin: 2px 0 4px; }
.rev .promo input {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em;
  font-size: 16px; color: var(--ink);
}
.rev .promo input::placeholder { color: var(--taupe); }
.rev .promo input:focus { outline: none; border-color: var(--pop); }
.rev .promo .btn { padding: 10px 16px; }

/* ── done step ── */
.done { text-align: center; padding: 24px 12px; }
.done h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  color: var(--ink);
  margin: 14px 0 10px;
}
.done .badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pop-deep);
  background: var(--pop-tint);
  border: 1px solid rgba(214,168,71,.3);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 18px;
}
.done p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 38ch;
  margin: 0 auto 10px;
}
.done .next-steps {
  list-style: none; counter-reset: s;
  margin: 28px auto 0;
  padding: 0;
  max-width: 360px;
  text-align: left;
}
.done .next-steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 14px 38px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.done .next-steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--pop-tint);
  color: var(--pop-deep);
  font: 500 11px/24px var(--mono);
  text-align: center;
  letter-spacing: 0;
}

/* ── sticky action bar (panel-only) ── */
.actionbar {
  position: fixed;
  bottom: 0; right: 0;
  width: 440px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 16px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  z-index: 10;
}
.actionbar .sum {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12.5px;
  color: var(--taupe);
}
.actionbar .sum .pop { color: var(--ink-soft); font-style: normal; }
.btn {
  border: none;
  border-radius: 999px;
  background: var(--pop);
  color: #18141f;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 13px 24px;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
}
.btn:hover { background: var(--pop-deep); transform: translateY(-1px); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn.ghost {
  background: transparent;
  color: var(--pop-deep);
  border: 1px solid var(--pop);
}
.btn.ghost:hover { background: var(--pop-tint); }

body { padding-bottom: 96px; }

/* ──────────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────────── */

.pp-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.pp-footer .inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 40px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.pp-footer .col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0 0 14px;
}
.pp-footer .col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  margin: 0 0 10px;
  font-family: var(--serif);
}
.pp-footer .col a:hover { color: var(--pop-deep); }
.pp-footer .brandcol .wm { font-size: 22px; }
.pp-footer .brandcol p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.65;
  color: var(--taupe);
  margin: 14px 0 0;
  max-width: 32ch;
}
.pp-footer .bar { border-top: 1px solid var(--line); }
.pp-footer .bar .inner2 {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.pp-footer .bar span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ──────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────── */

@media (max-width: 920px) {
  .work { grid-template-columns: 1fr; }
  .panel { border-left: none; border-top: 1px solid var(--line); padding-bottom: 130px; }
  .actionbar { width: 100%; }
  .topbar .steps { display: none; }
  .topbar { padding: 16px 22px; }
  .panel { padding: 22px 22px 130px; }
  .stage { padding: 22px 22px 28px; position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
  .stage .intro { display: none; }
  .stage .spec { display: none; }
  .postcard { padding: 18px 18px 18px; }
  .postcard .art { height: 32vh; }
  .vessels { grid-template-columns: repeat(5, 1fr); }
  .pp-footer .inner { grid-template-columns: 1fr 1fr; gap: 26px; padding: 36px 22px 22px; }
  .pp-footer .brandcol { grid-column: 1 / -1; }
  .pp-footer .bar .inner2 { padding: 14px 22px; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr 60px 92px; gap: 6px; }
  .vessels { grid-template-columns: repeat(3, 1fr); }
  .brews { grid-template-columns: repeat(3, 1fr); }
  .atmos { grid-template-columns: repeat(3, 1fr); }
  .stage .intro h1 { font-size: 28px; }
  .topbar .tagline { display: none; }
  .actionbar { padding: 14px 20px; }
  .btn { padding: 11px 18px; font-size: 10px; }
}
