/* =====================================================================
   Guided signup (landing page only). Every class is prefixed `sg-` so
   nothing here can leak into, or be overridden by, main.css on other pages.
   Colours are the existing palette (main.css :root) plus one paper tone.
   ===================================================================== */
.sg, .sg-header {
  --amber: var(--color-amber);
  --amber-light: var(--color-amber-light);
  --cream: var(--color-cream);
  --cream-muted: var(--color-cream-muted);
  --cta: var(--color-cta);
  --cta-hover: var(--color-cta-hover);
  --success: var(--color-success);
  --error: var(--color-error);
  --border: var(--color-border);
  --border-amber: var(--color-border-amber);
  --bg-card: var(--color-bg-card);
  --bg-input: var(--color-bg-input);
  --bg-elevated: var(--color-bg-elevated);
  --label-paper: #EFE6CC;
  --label-ink: #2A2118;
  --label-rule: #C9B98F;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
.sg { position: relative; z-index: 1; overflow-x: clip; }
.sg [x-cloak], .sg-mbar[x-cloak] { display: none !important; }
.sg button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sg h1, .sg h2, .sg h3 { font-style: normal; }
.sg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .sg-wrap { padding: 0 24px; } }
.sg-icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em; flex-shrink: 0; }
.sg-muted { color: var(--cream-muted); }
.sg-cream { color: var(--cream); }
.sg-amber { color: var(--amber-light); }
.sg-ok { color: var(--success); }
.sg-small { font-size: 13px; }
.sg-tiny { font-size: 11.5px; }
.sg-center { text-align: center; }
.sg-mt { margin-top: 16px; }
.sg-mt-s { margin-top: 8px; }
.sg-link { color: var(--amber) !important; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.sg-link:hover { color: var(--amber-light) !important; }

/* ---------- Header ---------- */
/* Keeps .site-header (setupMobileTotalReveal watches it); the doubled class
   outranks main.css's phone rule that stacks the old header into a column. */
.site-header.sg-header { position: relative; z-index: 2; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1180px; margin: 0 auto; padding: 12px 16px; border-bottom: 1px solid var(--border); background: transparent; }
@media (min-width: 720px) { .site-header.sg-header { padding: 14px 24px; } }
.sg-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.sg-logo { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.sg-brand-name { font: italic 600 15px var(--font-display); color: var(--cream); white-space: nowrap; }
.sg-nav { display: flex; gap: 4px; align-items: center; }
.sg-nav a { font-size: 13px; color: var(--cream-muted); padding: 6px 8px; border-radius: 6px; white-space: nowrap; }
.sg-nav a:hover { color: var(--cream); background: rgba(255,255,255,.04); }
.sg-hide-sm { display: none; }
@media (min-width: 720px) { .sg-hide-sm { display: inline; } .sg-nav .sg-hide-sm { display: inline-block; } }

/* ---------- Buttons ---------- */
.sg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 10px; font-weight: 600; font-size: 15.5px; letter-spacing: .01em; transition: background .15s, transform .1s; }
.sg-btn:active { transform: translateY(1px); }
.sg .sg-btn-cta, .sg-mbar .sg-btn-cta { background: var(--cta); color: #fff8ee; box-shadow: 0 6px 18px rgba(196,88,46,.35); }
.sg .sg-btn-cta:hover, .sg-mbar .sg-btn-cta:hover { background: var(--cta-hover); color: #fff; }
.sg .sg-btn-cta[disabled], .sg-mbar .sg-btn-cta[disabled] { opacity: .45; box-shadow: none; cursor: not-allowed; }
.sg-btn-lg { min-height: 56px; font-size: 17px; }
.sg-btn-block { width: 100%; }

/* ---------- Hero ---------- */
.sg-hero { padding: 26px 0 6px; }
.sg-hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .sg-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 18px; } }
.sg-kicker { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin: 0; }
.sg-h1 { font-size: clamp(2.05rem, 6.4vw, 3.6rem); margin: 10px 0 14px; color: var(--cream); }
.sg-h1 em { color: var(--amber-light); }
.sg-hero-sub { font-size: 16.5px; color: var(--cream-muted); max-width: 34em; margin: 0; }
.sg-hero-sub strong { color: var(--cream); font-weight: 600; }
.sg-hero-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 22px; }
.sg-anchor { font-size: 13.5px; color: var(--cream-muted); }
.sg-anchor b { color: var(--amber-light); font-size: 15px; }
.sg-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; font-size: 13.5px; }
.sg-rating { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(240,232,208,.06); border: 1px solid var(--border); color: var(--cream) !important; text-decoration: none; }
.sg-stars { color: #F2B33D; letter-spacing: 1px; }
.sg-hero-visual { position: relative; display: none; height: 330px; }
@media (min-width: 900px) { .sg-hero-visual { display: block; } }
.sg-hero-visual .sg-label { position: absolute; width: 178px; box-shadow: var(--shadow); }
.sg-hero-visual .sg-label:nth-child(1) { left: 0; top: 40px; transform: rotate(-8deg); }
.sg-hero-visual .sg-label:nth-child(2) { left: calc(50% - 89px); top: 0; transform: rotate(1deg); z-index: 2; }
.sg-hero-visual .sg-label:nth-child(3) { right: 0; top: 52px; transform: rotate(8deg); z-index: 1; }

.sg-strip { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 22px 0 10px; }
@media (min-width: 720px) { .sg-strip { grid-template-columns: repeat(3, 1fr); } }
.sg-strip > div { background: var(--color-bg-deep); padding: 13px 16px; display: flex; gap: 12px; align-items: flex-start; }
.sg-strip b { display: block; font-size: 14.5px; color: var(--cream); }
.sg-strip p { font-size: 13px; color: var(--cream-muted); margin: 0; }
.sg-num { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-amber); color: var(--amber);
  display: grid; place-items: center; font: 700 13px var(--font-display); flex-shrink: 0; }
.sg-perks { border: 1px solid var(--border-amber); border-radius: var(--radius); background: rgba(212,134,10,.05); }
.sg-perks summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; }
.sg-perks summary::-webkit-details-marker { display: none; }
.sg-perks-title { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--cream-muted); width: 100%; }
@media (min-width: 720px) { .sg-perks-title { width: auto; margin-right: 6px; } }
.sg-perk { font-size: 13px; color: var(--cream); background: rgba(212,134,10,.1); border: 1px solid var(--border-amber); border-radius: 999px; padding: 4px 10px; }
.sg-chev { margin-left: auto; color: var(--amber); transition: transform .2s; }
.sg-perks[open] .sg-chev { transform: rotate(180deg); }
.sg-perks-body { padding: 0 14px 12px; font-size: 13.5px; color: var(--cream-muted); }
.sg-perks-body p { margin: 6px 0 0; }
.sg-perks-body b { color: var(--cream); }

/* ---------- Layout ---------- */
.sg-layout { display: grid; gap: 0 28px; grid-template-columns: minmax(0, 1fr); padding-top: 18px; } /* minmax(0,…): a swipe row must never widen the page */
@media (min-width: 1020px) { .sg-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.sg-consult { scroll-margin-top: 8px; min-width: 0; }
.sg-side { display: none; }
@media (min-width: 1020px) { .sg-side { display: block; position: sticky; top: 16px; align-self: start; } }
.sg-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.sg-panel .sg-kicker { margin-bottom: 8px; }
.sg-side-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.sg-side-right { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sg-side-totals { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.sg-side-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 3px 0; }
.sg-side-big { font: 700 28px var(--font-display); color: var(--amber-light); margin-top: 6px; line-height: 1.1; }
.sg-side-today { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }

/* ---------- Consultation card ---------- */
.sg-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: clip; }
.sg-progress { position: sticky; top: 0; z-index: 20; background: rgba(31,51,38,.97); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border); padding: 12px 16px 10px; }
@media (min-width: 720px) { .sg-progress { padding: 14px 24px 12px; } }
.sg-progress-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--cream); min-height: 32px; }
.sg-back { display: inline-flex; gap: 6px; align-items: center; color: var(--cream-muted) !important; min-height: 32px; padding: 0 6px 0 0 !important; }
.sg-back:hover { color: var(--cream) !important; }
.sg-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 8px; }
.sg-bar i { height: 4px; border-radius: 99px; background: rgba(240,232,208,.12); transition: background .3s; }
.sg-bar i.done { background: var(--amber); }
.sg-bar i.now { background: var(--amber-light); box-shadow: 0 0 8px rgba(240,168,50,.6); }
.sg-step-names { display: none; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 6px; }
@media (min-width: 720px) { .sg-step-names { display: grid; } }
.sg-step-names button { text-align: left; font-size: 11.5px !important; color: var(--cream-muted) !important; padding: 2px 0 !important; }
.sg-step-names button.done { color: var(--amber) !important; text-decoration: underline; text-underline-offset: 3px; }
.sg-step-names button.now { color: var(--cream) !important; font-weight: 600; }
.sg-step-names button[disabled] { cursor: default; opacity: .6; }
.sg-step { padding: 22px 16px 24px; animation: sgFade .25s ease both; }
@media (min-width: 720px) { .sg-step { padding: 28px 28px 30px; } }
@keyframes sgFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sg-step-q { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: 0 0 6px; color: var(--cream); outline: none; }
.sg-help { color: var(--cream-muted); font-size: 14.5px; margin: 0 0 18px; }
.sg-actions { display: flex; gap: 10px; margin-top: 22px; }
.sg-actions .sg-btn { flex: 1; }
@media (min-width: 720px) { .sg-actions .sg-btn { flex: 0 0 auto; min-width: 260px; } }

/* Step 1: taste tiles */
.sg-taste { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .sg-taste { grid-template-columns: repeat(4, 1fr); } }
.sg-taste button { border: 1px solid var(--border) !important; border-radius: 14px; padding: 16px 14px !important; background: var(--bg-input) !important;
  display: grid; gap: 5px; justify-items: start; align-content: start; text-align: left; min-height: 128px; transition: border-color .15s, transform .15s; }
.sg-taste button:hover { border-color: var(--amber) !important; transform: translateY(-2px); }
.sg-taste b { font: 700 17px var(--font-display); color: var(--cream); }
.sg-taste span:not(.sg-big) { font-size: 12.5px; color: var(--cream-muted); }
.sg-big { width: 44px; height: 44px; border-radius: 50%; background: rgba(212,134,10,.13); display: grid; place-items: center; font-size: 21px; }

/* Step 2: coffee */
.sg-prefill { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px;
  background: rgba(212,134,10,.1); border: 1px solid var(--border-amber); font-size: 14px; color: var(--cream); }
.sg-rx { font: italic 700 18px var(--font-display); color: #8a3a1e; }
.sg-prefill .sg-rx { color: var(--amber-light); font-size: 20px; }
.sg-filter { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; color: var(--cream-muted); margin-bottom: 12px; flex-wrap: wrap; }
.sg-shortcuts { display: grid; gap: 10px; margin-bottom: 14px; }
@media (min-width: 560px) { .sg-shortcuts { grid-template-columns: repeat(3, 1fr); } }
.sg-shortcut { position: relative; text-align: left; border: 1px dashed var(--border-amber) !important; border-radius: 10px; padding: 10px 12px !important;
  background: rgba(212,134,10,.05) !important; display: flex; gap: 10px; align-items: center; min-height: 58px; }
.sg-shortcut:hover { background: rgba(212,134,10,.1) !important; }
.sg-shortcut[aria-pressed="true"] { border-style: solid !important; border-color: var(--amber) !important; background: rgba(212,134,10,.16) !important; }
.sg-shortcut b { display: block; font-size: 14px; color: var(--cream); }
.sg-shortcut span span { font-size: 12px; color: var(--cream-muted); }
.sg-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(240,232,208,.08); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.sg-tick { display: none; margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #1d1406; font-size: 12px; font-weight: 700; place-items: center; }
.sg-shortcut[aria-pressed="true"] .sg-tick { display: grid; }

.sg-cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .sg-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .sg-cards { grid-template-columns: repeat(3, 1fr); } }
.sg-swipe-hint { display: none; }

/* The apothecary label */
.sg-label { position: relative; display: flex; flex-direction: column; text-align: left; color: var(--label-ink);
  background: var(--label-paper) radial-gradient(circle at 20% 10%, rgba(255,255,255,.45), transparent 50%);
  border: 1px solid #d7c9a2; border-radius: 10px; padding: 12px 14px; }
.sg-label::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--label-rule); border-radius: 7px; pointer-events: none; }
.sg .sg-label-btn { color: var(--label-ink); background: var(--label-paper) radial-gradient(circle at 20% 10%, rgba(255,255,255,.45), transparent 50%);
  border: 1px solid #d7c9a2; padding: 12px 14px; transition: box-shadow .15s, transform .15s; }
.sg .sg-label-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.sg .sg-label-btn:focus-visible { outline: 3px solid var(--amber-light); outline-offset: 2px; }
.sg-label.selected { box-shadow: 0 0 0 3px var(--amber), var(--shadow) !important; }
.sg-label-top { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #6d5a3c; }
.sg-label-name { font: 700 18px/1.15 var(--font-display); margin: 6px 0 2px; color: var(--label-ink); }
.sg-label-meta { font-size: 11.5px; color: #6d5a3c; }
.sg-label-rule { border: 0; border-top: 1px dashed var(--label-rule); margin: 9px 0 8px; width: 100%; }
.sg-notes { display: flex; flex-wrap: wrap; gap: 4px; }
.sg-note { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: #e2d5b0; color: #3b2f1f; text-transform: capitalize; }
.sg-roast { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 10.5px; color: #6d5a3c; text-transform: uppercase; letter-spacing: .08em; }
.sg-meter { display: inline-flex; gap: 2px; }
.sg-meter i { width: 12px; height: 5px; border-radius: 2px; background: #d8c9a0; }
.sg-meter i.on { background: #6b3a2a; }
.sg-label-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; padding-top: 10px; gap: 8px; width: 100%; }
.sg-label-price { font: 700 16px var(--font-display); color: var(--label-ink); }
.sg-label-price small { font: 400 11px var(--font-body); color: #6d5a3c; display: block; }
.sg-label-price s { font: 400 11px var(--font-body); color: #8a7a5c; }
.sg-add { min-height: 36px; padding: 0 14px; border-radius: 8px; background: var(--label-ink); color: var(--label-paper);
  font: 600 13.5px var(--font-body); display: inline-flex; align-items: center; white-space: nowrap; }
.sg-add.added { background: #2f6b40; color: #fff; }
.sg-badge { position: absolute; top: -9px; right: 12px; z-index: 2; background: var(--amber); color: #1d1406; font: 700 10px var(--font-body);
  letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; }
.sg-badge-green { background: #9fd3ab; }

/* Phone: swipeable coffee row — keeps the choice in one screen and the
   basket (size, grind, bags) directly beneath the Add buttons. */
@media (max-width: 559px) {
  .sg-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 12px 16px 14px; scrollbar-width: none; }
  .sg-cards::-webkit-scrollbar { display: none; }
  .sg-cards > .sg-label { flex: 0 0 78%; scroll-snap-align: center; }
  .sg-swipe-hint { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--cream-muted); }
  .sg-shortcuts { display: flex; overflow-x: auto; margin: 0 -16px 4px; padding: 0 16px 4px; scrollbar-width: none; }
  .sg-shortcuts::-webkit-scrollbar { display: none; }
  .sg-shortcut { flex: 0 0 auto; min-height: 0; border-radius: 999px; padding: 6px 12px 6px 6px !important; gap: 8px; }
  .sg-ico { width: 28px; height: 28px; font-size: 14px; }
  .sg-shortcut b { font-size: 13px; white-space: nowrap; }
  .sg-shortcut span span:not(.sg-tick) { display: none; }
  .sg-tick { width: 18px; height: 18px; font-size: 10px; }
}

/* Basket */
.sg-subhead { font: italic 600 18px var(--font-display) !important; color: var(--cream); margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sg-subhead .sg-small { font-style: normal; font-family: var(--font-body); font-weight: 400; }
.sg-basket { display: grid; gap: 10px; }
.sg-empty { border: 1px dashed var(--border); border-radius: 10px; padding: 16px; text-align: center; color: var(--cream-muted); font-size: 14px; }
.sg-row { background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--cream); }
.sg-row-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.sg-row-top b { font-size: 14.5px; }
.sg-row-right { display: inline-flex; align-items: center; gap: 4px; }
.sg-row-price { font: 700 16px var(--font-display); color: var(--amber-light); white-space: nowrap; }
.sg-trash { width: 34px; height: 34px; border-radius: 8px; color: var(--cream-muted) !important; display: inline-grid; place-items: center; }
.sg-trash:hover { background: rgba(196,91,74,.15) !important; color: #ef8f7f !important; }
.sg-trash-sm { width: 28px; height: 28px; }
.sg-controls { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; align-items: flex-end; }
.sg-grow { flex: 1; min-width: 150px; }
.sg-ctl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--cream-muted); display: block; margin-bottom: 4px; }
.sg-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; }
.sg-seg button { min-height: 36px; padding: 0 12px !important; border-radius: 7px; font-size: 13.5px; color: var(--cream-muted) !important; }
.sg-seg button[aria-pressed="true"] { background: var(--bg-elevated) !important; color: var(--cream) !important; box-shadow: inset 0 0 0 1px var(--amber); font-weight: 600; }
.sg-qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-input); }
.sg-qty button { width: 38px; height: 40px; font-size: 18px !important; color: var(--cream) !important; }
.sg-qty button:disabled { opacity: .3; cursor: not-allowed; }
.sg-qty output { min-width: 26px; text-align: center; font-weight: 600; }

/* Tier ladder */
.sg-tier { margin-top: 14px; padding: 14px; border-radius: 10px; background: rgba(90,155,106,.07); border: 1px solid rgba(90,155,106,.3); color: var(--cream); }
.sg-tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.sg-tier-head b { color: #9fd3ab; font-size: 15px; }
.sg-track { position: relative; height: 8px; border-radius: 99px; background: rgba(240,232,208,.1); margin: 14px 0 6px; }
.sg-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #5A9B6A, #9fd3ab); transition: width .45s cubic-bezier(.2,.8,.2,1); }
.sg-stops { position: relative; height: 32px; font-size: 11px; color: var(--cream-muted); }
.sg-stop { position: absolute; transform: translateX(-50%); text-align: center; white-space: nowrap; line-height: 1.3; }
.sg-stop.first { transform: none; text-align: left; }
.sg-stop.last { transform: translateX(-100%); text-align: right; }
.sg-stop.hit { color: #9fd3ab; font-weight: 600; }
.sg-tier p { margin: 4px 0 0; }

/* Radio-style option cards */
.sg-opts { display: grid; gap: 10px; }
@media (min-width: 560px) { .sg-opts-3 { grid-template-columns: repeat(3, 1fr); } .sg-opts-2 { grid-template-columns: 1fr 1fr; } }
.sg-opt { position: relative; text-align: left; border: 1px solid var(--border) !important; border-radius: 12px; padding: 14px 40px 14px 16px !important;
  background: var(--bg-input) !important; display: grid; gap: 2px; align-content: start; min-height: 64px; color: var(--cream) !important; transition: border-color .15s, background .15s; }
.sg-opt:hover { border-color: var(--cream-muted) !important; }
.sg-opt[aria-checked="true"] { border-color: var(--amber) !important; background: rgba(212,134,10,.09) !important; box-shadow: inset 0 0 0 1px var(--amber); }
.sg-opt-t { font: 700 17px var(--font-display); }
.sg-opt-d { font-size: 13px; color: var(--cream-muted); }
.sg-opt-p { font-size: 14px; margin-top: 6px; }
.sg-opt-p b { color: var(--amber-light); font-size: 16px; }
.sg-radio { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); }
.sg-opt[aria-checked="true"] .sg-radio { border-color: var(--amber); background: radial-gradient(circle, var(--amber) 0 4px, transparent 5px); }
.sg-pill { position: absolute; top: -9px; right: 36px; background: var(--success); color: #0e1a10; font: 700 10px var(--font-body); letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; }
.sg-opt-sm { min-height: 0; padding: 10px 12px !important; }
.sg-opt-sm .sg-opt-t { font: 600 14px var(--font-body); }
.sg-zone-list { display: grid; gap: 6px; margin-top: 8px; }

/* Fields */
.sg-field { display: grid; gap: 5px; margin-bottom: 14px; }
.sg-field label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cream-muted); }
.sg-input { width: 100%; min-height: 46px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  color: var(--cream); font: 16px var(--font-body); /* 16px stops iOS zoom-on-focus */ }
textarea.sg-input { min-height: 0; resize: vertical; }
select.sg-input { appearance: none; padding-right: 34px; background-repeat: no-repeat; background-position: right 12px center;
  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' stroke='%23B8A882' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); }
.sg-select-sm { min-height: 40px; padding-top: 6px; padding-bottom: 6px; font-size: 15px; }
.sg-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212,134,10,.18); }
.sg-input::placeholder { color: #6f7a63; }
.sg-input.bad { border-color: var(--error); }
.sg-err { font-size: 12.5px; color: #ef8f7f; margin: 2px 0 0; }
.sg-row2 { display: grid; gap: 0 12px; }
@media (min-width: 560px) { .sg-row2 { grid-template-columns: 1fr 1fr; } }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-chip { padding: 8px 14px !important; border-radius: 999px; font-size: 13.5px; border: 1px solid var(--border) !important; color: var(--cream-muted) !important; min-height: 40px; }
.sg-chip[aria-checked="true"] { background: var(--cream) !important; color: var(--label-ink) !important; border-color: var(--cream) !important; font-weight: 600; }
.sg-zone { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(90,155,106,.1); border: 1px solid rgba(90,155,106,.35); font-size: 13.5px; color: var(--cream); }
.sg-zone-fee { color: #9fd3ab; font-weight: 600; }
.sg-nudge { margin-top: 8px; font-size: 13px; color: var(--cream); }
.sg-info { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--bg-input); border: 1px solid var(--border); font-size: 14px; color: var(--cream); }
.sg-details summary { cursor: pointer; font-size: 13.5px; color: var(--amber); }
.sg-details[open] summary { margin-bottom: 4px; }

/* Review */
.sg-recap { display: grid; gap: 8px; margin-bottom: 16px; }
.sg-recap-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 12px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--cream); }
.sg-recap-row .sg-link { flex-shrink: 0; }
.sg-bill { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sg-bill-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; background: var(--bg-input); }
.sg-bill-row + .sg-bill-row { border-top: 1px solid var(--border); }
.sg-k { font-size: 13.5px; color: var(--cream-muted); }
.sg-k b { color: var(--cream); font-weight: 600; display: block; font-size: 14.5px; }
.sg-v { font: 700 19px var(--font-display); color: var(--amber-light); white-space: nowrap; }
.sg-today .sg-v { font-size: 22px; }
.sg-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 12px; font-size: 12.5px; color: var(--cream-muted); }
.sg-faq { margin-top: 22px; display: grid; gap: 8px; }
.sg-faq details { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--bg-input); }
.sg-faq summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--cream); }
.sg-faq p { font-size: 13.5px; color: var(--cream-muted); margin: 8px 0 0; }

/* Mobile sticky bar */
.sg-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px;
  background: rgba(20,29,22,.97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--color-border);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform .25s; }
.sg-mbar.on { transform: none; }
.sg-mbar-amt { font: 700 19px var(--font-display); color: var(--color-amber-light); line-height: 1.1; }
.sg-mbar-lbl { font-size: 11.5px; color: var(--color-cream-muted); }
.sg-mbar .sg-btn { margin-left: auto; min-height: 46px; padding: 0 18px; font-size: 15px; }
@media (min-width: 1020px) { .sg-mbar { display: none; } }
.sg-bottom-space { height: 84px; }
@media (min-width: 1020px) { .sg-bottom-space { height: 24px; } }

.sg-toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 70; width: min(440px, calc(100vw - 32px));
  background: #2a1612; border: 1px solid var(--error); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--cream); box-shadow: var(--shadow); }
.sg-toast-head { display: flex; justify-content: space-between; gap: 10px; }
.sg-toast-head button { font-size: 18px; line-height: 1; color: var(--cream-muted); }
.sg-toast ul { margin: 6px 0 0 18px; padding: 0; }
@media (min-width: 1020px) { .sg-toast { bottom: 24px; } }

.sg-footer { max-width: 1180px; margin: 28px auto 0; padding: 20px 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap;
  gap: 10px 24px; justify-content: space-between; color: var(--cream-muted); font-size: 13px; }
.sg-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

@media (prefers-reduced-motion: reduce) {
  .sg *, .sg *::before, .sg *::after { transition: none !important; animation: none !important; }
}
