/* Layout: one phone-width column. An oxblood sign up top with the wordmark and the two rolls,
   then the order as five numbered steps on ivory, with the running total pinned to the bottom. */
:root {
  /* Brand colours */
  --oxblood: #5A1E24;
  --ivory: #F4EBDD;

  /* Shades made from the two brand colours */
  --oxblood-deep: #33090D;
  --ivory-deep: #E8DAC5;
  --paper: #FFFDF9;
  --ink: #3B1418;
  --ink-soft: #7A5D58;
  --edge: #957C6C;
  --hairline: #DFCFB9;

  /* Working colours */
  --error: #B8261A;
  --error-soft: #F8E1DA;
  --whatsapp: #0F7A3F;

  --display: "Playfair Display", "Bodoni MT", Didot, Georgia, serif;
  --body: "Jost", "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }

a { color: var(--oxblood); }

[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--oxblood);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.hero {
  background: var(--oxblood);
  color: var(--ivory);
  overflow: hidden;
  overflow: clip;
}

.hero :focus-visible { outline-color: var(--ivory); }

.hero-grid {
  display: grid;
  gap: 8px;
  padding-block: 44px 0;
}

.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1;
  display: grid;
  gap: 8px;
}

.h1-lead {
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 0.1em;
}

.h1-mark {
  font-size: clamp(4.5rem, 25vw, 9rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 0.95;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.45;
  max-width: 31ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}

.week { display: grid; gap: 6px; }

.week-dots { display: flex; gap: 5px; }

.week-dots span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1.5px solid rgba(244, 235, 221, 0.4);
  color: rgba(244, 235, 221, 0.7);
}

.week-dots span.open {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--oxblood);
}

.week-text { font-size: 0.92rem; font-weight: 500; }

.hero-note { font-size: 0.98rem; font-weight: 500; }

.hero-rolls {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-inline: -9%;
  margin-bottom: -11%;
  padding-top: 16px;
}

.plate {
  flex: 0 0 56%;
  border-radius: 50%;
  padding: 3.2%;
  line-height: 0;
}

.plate svg { width: 100%; height: auto; display: block; }

.plate-classic {
  background: var(--ivory);
  margin-right: -7%;
  position: relative;
  z-index: 1;
  animation: settle-left 900ms cubic-bezier(.2, .8, .2, 1) both;
}

.plate-cadbury {
  background: var(--oxblood-deep);
  margin-bottom: 9%;
  animation: settle-right 900ms cubic-bezier(.2, .8, .2, 1) 80ms both;
}

@keyframes settle-left {
  from { transform: rotate(-70deg) translateX(-12%); }
  to { transform: none; }
}

@keyframes settle-right {
  from { transform: rotate(70deg) translateX(12%); }
  to { transform: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 1.5px solid var(--oxblood);
  border-radius: 999px;
  background: var(--oxblood);
  color: var(--ivory);
  font: inherit;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-wide { width: 100%; }

.btn-light { background: var(--ivory); border-color: var(--ivory); color: var(--oxblood); }

.btn-ghost { background: transparent; color: var(--oxblood); }

.btn-wa { background: var(--whatsapp); border-color: var(--whatsapp); color: #FFFFFF; }

/* ---------- Order ---------- */

.order {
  max-width: 680px;
  padding-block: 44px 48px;
}

#order-form, .steps { display: grid; gap: 44px; }

.step { display: grid; gap: 18px; min-width: 0; scroll-margin-top: 20px; }

.step h2, .done h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 14px;
  text-wrap: balance;
}

.num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--oxblood);
  color: var(--oxblood);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  padding-bottom: 2px;
}

.hint { color: var(--ink-soft); font-size: 0.97rem; }

/* Menu */

.menu { display: grid; gap: 14px; }

.roll {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 16px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
}

.roll-classic { background: var(--ivory-deep); }
.roll-cadbury { background: var(--oxblood); color: var(--ivory); }

.roll-art { grid-row: span 2; line-height: 0; }
.roll-art svg { width: 100%; height: auto; display: block; }

.roll-info { min-width: 0; display: grid; gap: 4px; }

.roll h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.1;
}

.roll-desc { font-size: 0.95rem; line-height: 1.35; opacity: 0.9; }

.roll-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.price { font-weight: 600; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; font-size: 0.85rem; opacity: 0.85; }

.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px;
}

.stepper button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--oxblood);
  color: var(--ivory);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.roll-cadbury .stepper button { background: var(--oxblood-deep); }

.stepper button[disabled] { background: var(--hairline); color: var(--edge); cursor: default; }

.stepper output {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Fields */

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }

.field > label, .field > legend {
  font-weight: 600;
  padding: 0;
}

.field > legend { margin-bottom: 8px; }

.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; padding-left: 4px; }

input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--edge);
  border-radius: var(--radius);
  padding: 13px 14px;
  appearance: none;
}

textarea { resize: vertical; min-height: 56px; }

input::placeholder, textarea::placeholder { color: #A08E82; }

input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.field-error, .form-error { color: var(--error); font-weight: 600; font-size: 0.97rem; }

.form-error {
  background: var(--error-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.form-error a { color: var(--error); font-weight: 600; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Choices */

.choice { position: relative; min-width: 0; }

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice input[disabled] { cursor: default; }

.choice label {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 8px 10px;
  text-align: center;
  background: var(--paper);
  border: 1.5px solid var(--edge);
  border-radius: var(--radius);
  font-weight: 500;
  line-height: 1.2;
}

.choice input:checked + label {
  background: var(--oxblood);
  border-color: var(--oxblood);
  color: var(--ivory);
}

.choice input:focus-visible + label { outline: 3px solid var(--oxblood); outline-offset: 3px; }

.choice input[disabled] + label {
  background: transparent;
  border-style: dashed;
  border-color: var(--hairline);
  color: #A39284;
}

.choice input[disabled] + label b { text-decoration: line-through; }

.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }

.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

.days label { min-height: 72px; font-weight: 400; font-size: 0.9rem; }
.days label b { display: block; font-size: 1.05rem; font-weight: 600; }
.days label small { display: block; font-size: 0.78rem; font-weight: 500; padding-top: 2px; }

/* Summary and payment */

.summary {
  display: grid;
  gap: 8px;
  background: var(--paper);
  border-radius: 16px;
  padding: 16px 18px;
  font-variant-numeric: tabular-nums;
}

.summary .line { display: flex; justify-content: space-between; gap: 16px; }
.summary .line span:first-child { min-width: 0; }
.summary .line span:last-child { flex: none; text-align: right; }
.summary .muted { color: var(--ink-soft); }

.summary .total {
  border-top: 1.5px solid var(--hairline);
  padding-top: 10px;
  margin-top: 2px;
  font-weight: 600;
  font-size: 1.2rem;
}

.rules {
  list-style: none;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  border: 1.5px solid var(--oxblood);
  border-radius: 16px;
  font-size: 0.98rem;
}

.rules strong { font-weight: 600; color: var(--oxblood); }

.pay { display: grid; gap: 12px; }

.pay-card {
  background: var(--ivory-deep);
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
}

.pay-card h3 { font-size: 1rem; font-weight: 600; }

.pay-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
}

.pay-row dt { font-size: 0.88rem; color: var(--ink-soft); grid-column: 1; }
.pay-row dd { margin: 0; font-weight: 600; grid-column: 1; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
dl { margin: 0; display: grid; gap: 10px; }

.copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--oxblood);
  background: var(--paper);
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 6px 14px;
  cursor: pointer;
}

.selectable { user-select: all; -webkit-user-select: all; font-weight: 600; white-space: nowrap; }

/* Confirmation */

.done { display: grid; gap: 18px; scroll-margin-top: 24px; }
.done:focus { outline: none; }
.done h2 { font-size: 2.4rem; }
.done-ref { font-size: 1.1rem; }
.done-next { font-weight: 500; }

.notice {
  background: var(--ivory-deep);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 500;
  font-size: 0.97rem;
}

/* Footer */

.footer {
  background: var(--oxblood-deep);
  color: var(--ivory);
  padding-block: 36px calc(120px + env(safe-area-inset-bottom, 0px));
}

.footer-grid { display: grid; gap: 16px; }

.footer .footer-mark {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-info { display: grid; gap: 6px; }
.footer p { font-size: 0.97rem; }
.footer a { color: var(--ivory); }

/* Sticky total */

.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--oxblood);
  color: var(--ivory);
  box-shadow: 0 -6px 24px rgba(51, 9, 13, 0.28);
  padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px));
}

.bar :focus-visible { outline-color: var(--ivory); }

.bar-inner {
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bar-text { display: grid; line-height: 1.2; min-width: 0; }
.bar-text span { font-size: 0.9rem; }
.bar-text strong { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar .btn { min-height: 48px; padding-inline: 22px; flex: none; }

/* ---------- Wider screens ---------- */

@media (min-width: 560px) {
  .menu { grid-template-columns: 1fr 1fr; }
  .roll { grid-template-columns: 1fr; text-align: left; align-content: start; }
  .roll-art { grid-row: auto; width: 62%; margin-inline: auto; padding-bottom: 6px; }
}

@media (min-width: 860px) {
  :root { --gutter: 32px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding-block: 56px 0;
  }
  .hero-copy { gap: 26px; padding-bottom: 64px; }
  .h1-mark { font-size: clamp(6rem, 11vw, 9rem); }
  .lede { font-size: 1.3rem; }
  .hero-rolls { margin-inline: 0 -14%; margin-bottom: -6%; align-self: end; }
  .order { padding-block: 64px 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate-classic, .plate-cadbury { animation: none; }
}
