/*
  Jonesboro Soap club pages. Mobile first (a ~375px phone is the base); wider
  screens only get more room.

  Look: the shop's label. Navy masthead and hero with a wave edge (it's a
  wash), cream page, warm white "paper" sheets, tan buttons. Headlines and
  prices are set in a book serif (Iowan Old Style on iPhones and Macs,
  Palatino or Georgia elsewhere); everything you tap or read in a form is the
  phone's own sans-serif.

  Customer pages use .masthead / .hero / .sheet. Staff and admin pages still
  use the simpler .brand / .sub / .card, which are kept at the bottom.
*/
:root {
  --navy: #0B4663;
  --navy-deep: #06293B;
  --cream: #F3EAD9;
  --paper: #FFFDF8;
  --tan: #E8B989;
  --tan-deep: #D9A06A;
  --ink: #0E2F40;
  --muted: #5B7584;
  --line: #E2D3B8;
  --error: #A33A2A;
  --ok: #2F6B3A;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-sheet: 22px;
  --r-tile: 14px;
  --gutter: 16px;
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(11, 70, 99, 0.12);
  overflow-x: clip;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter) calc(36px + env(safe-area-inset-bottom)); }
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ------------------------------------------------------------ masthead */
.masthead { background: var(--navy); color: var(--cream); padding-top: env(safe-area-inset-top); }
.masthead-in { max-width: 560px; margin: 0 auto; padding: 16px var(--gutter) 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wordmark { color: var(--cream); text-decoration: none; font: 600 19px/1.1 var(--serif); letter-spacing: 0.01em; }
.wordmark small { display: block; margin-top: 3px; font: italic 13px/1.2 var(--serif); color: var(--tan); letter-spacing: 0; }
.masthead-link { color: rgba(243, 234, 217, 0.82); font-size: 14px; text-decoration: none; padding: 10px 0; }
.masthead-link:hover { color: var(--cream); }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  padding: 26px 0 58px;
}
.hero::after {
  /* The wave edge: the one decoration on the page. */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30' preserveAspectRatio='none'%3E%3Cpath d='M0 16 C20 4 40 4 60 16 S100 28 120 16 V30 H0Z' fill='%23F3EAD9'/%3E%3C/svg%3E") repeat-x bottom / 240px 30px;
}
.hero-in { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }
.hero h1 {
  font: 600 34px/1.08 var(--serif);
  letter-spacing: -0.012em;
  color: var(--cream);
  margin: 0 0 12px;
  max-width: 15ch;
}
.hero p { color: rgba(243, 234, 217, 0.84); margin: 0 0 14px; max-width: 34ch; font-size: 17px; }
.hero .actions { margin-top: 22px; display: grid; gap: 10px; }

/* Product photos: the real containers, on a soft white plate. */
.product { margin: 0; }
.product .plate {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 20px; background: #F2F1EE;
  box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.6);
}
.product figcaption { margin-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--cream); }
.product figcaption strong { font: 600 18px/1.2 var(--serif); }
.product figcaption span { color: var(--tan); font: 600 18px/1.2 var(--serif); font-variant-numeric: lining-nums; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 4px; }
.duo .product:last-child .plate { transform: translateY(18px); }
.duo .product:last-child figcaption { margin-top: 28px; }

/* Sign-up hero: text beside the container you've picked. */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 16px; align-items: end; }
.hero-split .product .plate { border-radius: 16px; }
.hero-split h1 { font-size: 31px; }

/* Live price in the hero: big book-serif numerals in tan. */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 18px 0 4px; }
.price b { font: 600 46px/1 var(--serif); color: var(--tan); font-variant-numeric: oldstyle-nums proportional-nums; letter-spacing: -0.01em; }
.price span { color: rgba(243, 234, 217, 0.84); font-size: 15px; }
.price-note { color: rgba(243, 234, 217, 0.7); font-size: 14px; margin: 0; min-height: 1.5em; }
@media (prefers-reduced-motion: no-preference) {
  .price b.bump { animation: bump .45s ease-out; }
  @keyframes bump { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------------------------ sheets */
.sheet {
  background: var(--paper);
  border-radius: var(--r-sheet);
  padding: 22px 18px;
  margin: 6px 0 14px;
  box-shadow: 0 1px 0 rgba(14, 47, 64, 0.05), 0 18px 40px -24px rgba(6, 41, 59, 0.35);
}
.sheet + .sheet { margin-top: 0; }
.sheet > :first-child { margin-top: 0; }
.sheet > :last-child { margin-bottom: 0; }

h1 { font: 600 28px/1.12 var(--serif); letter-spacing: -0.01em; margin: 0 0 10px; color: var(--ink); }
h2 { font: 600 21px/1.2 var(--serif); margin: 28px 0 10px; color: var(--ink); }
h3 { font: 600 16px/1.3 var(--sans); margin: 22px 0 8px; color: var(--ink); }
p { margin: 0 0 12px; }
a { color: var(--navy); text-underline-offset: 2px; }

/* Numbered steps: the sign-up and claim forms really are a sequence. */
.step { display: flex; align-items: center; gap: 12px; margin: 34px 0 14px; }
.sheet > .step:first-child { margin-top: 0; }
.step .n {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--cream);
  font: 600 16px/1 var(--serif); font-variant-numeric: lining-nums;
}

/* ------------------------------------------------------------ form */
label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 7px; }
.hint { color: var(--muted); font-size: 14px; font-weight: normal; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 16px var(--sans); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  appearance: none; -webkit-appearance: none;
  transition: border-color .15s;
}
input:focus, select:focus { border-color: var(--navy); }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B4663' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, .choice:focus-within {
  outline: 3px solid var(--tan); outline-offset: 2px;
}
input[type=radio], input[type=checkbox] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--navy); }

/* Choice tiles. Picked = navy, like the label. */
.choice {
  position: relative;
  display: flex; gap: 12px; align-items: center;
  min-height: 58px; padding: 14px; margin: 8px 0;
  border: 1.5px solid var(--line); border-radius: var(--r-tile); background: #fff;
  font-weight: normal; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.choice strong { display: block; font-size: 16px; line-height: 1.25; }
.choice .hint { display: block; font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.choice:has(input:checked) { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.choice:has(input:checked) .hint { color: rgba(243, 234, 217, 0.78); }
.choice:has(input:checked) input { accent-color: var(--tan); }
.choice.disabled { opacity: .45; cursor: not-allowed; }
.choice .flag {
  position: absolute; top: -9px; right: 10px;
  background: var(--tan); color: var(--navy-deep);
  font: 600 12px/1 var(--sans); padding: 5px 8px; border-radius: 999px;
}
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts .choice { margin: 0; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 14px 15px; }
.opts .choice input { order: -1; }
.opts.three { grid-template-columns: 1fr; }
.opts.three .choice { flex-direction: row; align-items: center; gap: 12px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: normal; font-size: 14px; line-height: 1.45; color: var(--muted); }
.check input { margin-top: 1px; }
.check span { color: var(--ink); }
.check .fine { color: var(--muted); }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 0; }
.grid2 .pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }

/* ------------------------------------------------------------ buttons */
button.primary, a.cta {
  display: block; width: 100%; min-height: 54px; margin-top: 20px; padding: 15px 18px;
  font: 700 17px/1.2 var(--sans); color: var(--navy-deep); text-align: center; text-decoration: none;
  background: var(--tan); border: 0; border-radius: 14px; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(6, 41, 59, 0.14);
  transition: background-color .15s, transform .08s;
}
button.primary:active, a.cta:active { background: var(--tan-deep); transform: translateY(1px); }
button.primary:disabled { opacity: .55; cursor: wait; }
a.cta.ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(243, 234, 217, 0.5); box-shadow: none; }
.sheet a.cta.ghost { color: var(--navy); border-color: var(--navy); }
.hero a.cta { margin-top: 0; }
button.pill {
  min-height: 46px; padding: 11px 16px; font: 600 15px var(--sans);
  color: var(--navy); background: transparent; border: 1.5px solid var(--navy); border-radius: 999px; cursor: pointer;
}
button.pill:active { background: rgba(11, 70, 99, 0.07); }
button.link { background: none; border: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; font: inherit; cursor: pointer; padding: 10px 0; min-height: 44px; }

/* ------------------------------------------------------------ bits */
.error { color: var(--error); background: #FBEDE8; border-radius: 12px; padding: 12px 14px; margin-top: 16px; }
.success { color: var(--ink); }
.done-mark {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--tan);
  display: grid; place-items: center; margin-bottom: 14px;
}
.total { font-size: 18px; margin-top: 14px; }
.hidden { display: none !important; }
.test-banner { background: #FFF3C4; border: 1px solid #E6CF6B; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 14px 0 0; }
ul.dates { list-style: none; margin: 8px 0 16px; padding: 0; border-top: 1px solid var(--line); }
ul.dates li { padding: 11px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 18px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; background: var(--cream); padding: 10px; border-radius: 10px; }
.footer { color: var(--muted); font-size: 13.5px; margin-top: 28px; line-height: 1.6; text-align: center; }
.footer a { color: var(--muted); }
.footer p { margin: 0; }
#card-container { margin-top: 14px; min-height: 90px; }

.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.summary span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary .grand { font: 600 21px/1.3 var(--serif); border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 12px; }
.summary .grand span:last-child { font-variant-numeric: lining-nums tabular-nums; }

/* Sticky total on the sign-up page (phones) */
.paybar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 18px;
  background: rgba(6, 41, 59, 0.94); color: var(--cream);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px -10px rgba(6, 41, 59, 0.55);
}
.paybar b { font: 600 22px/1.1 var(--serif); font-variant-numeric: lining-nums; }
.paybar small { display: block; color: rgba(243, 234, 217, 0.72); font-size: 12.5px; }
.paybar button { min-height: 46px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--tan); color: var(--navy-deep); font: 700 16px var(--sans); }
body.has-paybar .wrap { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

/* How it works (home page): a real sequence. */
ol.how { list-style: none; counter-reset: how; margin: 0; padding: 0; }
ol.how li { counter-increment: how; display: grid; grid-template-columns: 30px 1fr; gap: 2px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
ol.how li:first-child { border-top: 0; padding-top: 4px; }
ol.how li::before {
  content: counter(how); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--cream); font: 600 16px/1 var(--serif);
}
ol.how strong { font-size: 16px; }
ol.how span { color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------ wider screens */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero { padding: 40px 0 70px; }
  .hero h1 { font-size: 46px; }
  .hero-split { grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; }
  .hero-split h1 { font-size: 42px; }
  .hero .actions { grid-template-columns: 1fr 1fr; }
  .sheet { padding: 30px 30px; }
  h1 { font-size: 32px; }
  .opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opts.three .choice { flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid2 { grid-template-columns: 1.3fr 1fr; gap: 0 12px; }
  .paybar { display: none; }
  body.has-paybar .wrap { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ------------------------------------------------------------ staff and admin pages */
.brand {
  margin: 0 calc(-1 * var(--gutter)); padding: 16px var(--gutter) 2px;
  background: var(--navy); color: var(--cream); font: 600 20px/1.2 var(--serif);
}
.sub {
  margin: 0 calc(-1 * var(--gutter)) 16px; padding: 4px var(--gutter) 14px;
  background: var(--navy); color: rgba(243, 234, 217, 0.8); font-size: 14px;
}
.card {
  background: var(--paper); border-radius: 16px; padding: 18px 16px; margin-bottom: 12px;
  box-shadow: 0 1px 0 rgba(14, 47, 64, 0.05), 0 12px 30px -22px rgba(6, 41, 59, 0.35);
}
.card > h2:first-child { margin-top: 0; }
@media (min-width: 600px) { .card { padding: 24px; } }
