/* CleanScore: mobile-first, warm paper + deep green, after the NutriGrade design. */

:root {
  --paper: #f7f5ef;
  --ink: #17201a;
  --ink-2: #4a5a50;
  --ink-3: #7a887e;
  --surface: #ffffff;
  --surface-2: #efede4;
  --rule: #e2ded2;
  --accent: #1f5e43;
  --accent-2: #2c7a57;
  --accent-soft: #dfece3;
  --saffron: #e08a2c;
  --saffron-soft: #fbead4;
  --chilli: #c2412d;
  --chilli-soft: #f8e1dc;
  --g-a: #1c7a4d;
  --g-b: #6c9e36;
  --g-c: #d69a22;
  --g-d: #d66c1e;
  --g-e: #be3a2b;
  --hero-1: #1f5e43;
  --hero-2: #2f6b3c;
  --dark-btn: #17201a;
  --on-dark: #ffffff;
  --shadow: 0 1px 2px rgb(23 32 26 / .04), 0 8px 24px -12px rgb(23 32 26 / .18);
  --radius: 22px;
  --radius-sm: 14px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --nav-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1512; --ink: #e8eee9; --ink-2: #a9b7ad; --ink-3: #7c8d82;
    --surface: #161e1a; --surface-2: #1d2722; --rule: #28342d;
    --accent: #6fbf93; --accent-2: #8fd1ac; --accent-soft: #1a2b22;
    --saffron: #eba45a; --saffron-soft: #2c2117; --chilli: #e07a68; --chilli-soft: #2e1b18;
    --g-a: #4fb07a; --g-b: #8fbf52; --g-c: #e0b04a; --g-d: #e28a48; --g-e: #d9695b;
    --hero-1: #17432f; --hero-2: #1f4a2b; --dark-btn: #e8eee9; --on-dark: #0f1512;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1512; --ink: #e8eee9; --ink-2: #a9b7ad; --ink-3: #7c8d82;
  --surface: #161e1a; --surface-2: #1d2722; --rule: #28342d;
  --accent: #6fbf93; --accent-2: #8fd1ac; --accent-soft: #1a2b22;
  --saffron: #eba45a; --saffron-soft: #2c2117; --chilli: #e07a68; --chilli-soft: #2e1b18;
  --g-a: #4fb07a; --g-b: #8fbf52; --g-c: #e0b04a; --g-d: #e28a48; --g-e: #d9695b;
  --hero-1: #17432f; --hero-2: #1f4a2b; --dark-btn: #e8eee9; --on-dark: #0f1512;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.eyebrow {
  font: 500 11.5px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow.light { color: rgb(255 255 255 / .72); }
.ic { width: 20px; height: 20px; flex: none; }
.ic.big { width: 40px; height: 40px; color: var(--accent); }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.view { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }

/* ---------------- top bar ---------------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font: 700 19px/1.1 var(--serif); }
.brand-text small { font: 500 10.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.brand-by { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.logo { height: auto; mix-blend-mode: multiply; } /* drops the white box on the cream page */
.brand-by .logo { width: 62px; }
.foot-logo { width: 150px; margin: 0 auto 12px; }
/* The logo is dark green on transparent; give it a light plate in dark mode. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo { mix-blend-mode: normal; background: #fff; border-radius: 6px; padding: 2px 4px; }
}
:root[data-theme="dark"] .logo { mix-blend-mode: normal; background: #fff; border-radius: 6px; padding: 2px 4px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.ok { background: var(--g-a); }
.dot.bad { background: var(--g-e); }
@media (max-width: 520px) {
  #statusText { display: none; }
  .how-link span { display: none; }
  .how-link { padding: 8px; }
}
.offline-bar { background: var(--saffron-soft); color: var(--ink); text-align: center; font-size: 13px; padding: 8px 16px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 10px 16px;
  font-weight: 500; cursor: pointer; background: none; transition: transform .12s, background .15s, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.small .ic { width: 16px; height: 16px; }
.btn.big { padding: 14px 22px; font-size: 16.5px; border-radius: 18px; }
.btn.wide { width: 100%; }
.btn.square { padding: 14px; aspect-ratio: 1; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:not(:disabled):hover { background: var(--accent-2); }
.btn.dark { background: var(--dark-btn); color: var(--on-dark); }
.btn.outline { border-color: var(--rule); background: var(--surface); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.light { background: #fff; color: var(--hero-1); }
.btn.glass { background: rgb(255 255 255 / .14); color: #fff; border-color: rgb(255 255 255 / .2); }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgb(255 255 255 / .35); border-top-color: #fff; animation: spin .8s linear infinite;
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.link { color: var(--accent); font-weight: 500; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link .ic { width: 16px; height: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- cards ---------------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { font-size: 16.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card h3 .ic { color: var(--accent); }
.card h3.warn-h .ic { color: var(--saffron); }
.count { font: 500 12px/1 var(--mono); background: var(--surface-2); color: var(--ink-2); border-radius: 999px; padding: 4px 8px; }
.tag { font: 500 11px/1 var(--mono); background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 8px; margin-left: 8px; white-space: nowrap; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.empty { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 32px 20px; }
.empty h3 { justify-content: center; margin: 0; }

/* ---------------- home ---------------- */
.hero {
  border-radius: 28px; padding: 28px 24px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgb(224 138 44 / .45), transparent 45%),
    radial-gradient(rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(160deg, var(--hero-1), var(--hero-2));
  display: flex; flex-direction: column; gap: 14px;
}
.hero h1 { font: 700 clamp(30px, 8vw, 42px)/1.08 var(--serif); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #f2b45f; }
.hero p { color: rgb(255 255 255 / .85); font-size: 15.5px; max-width: 46ch; }
.hero-cta { display: flex; gap: 10px; margin-top: 6px; }
.hero-cta .btn.light { flex: 1; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode { display: flex; flex-direction: column; gap: 6px; padding: 18px; transition: transform .15s, border-color .15s; }
.mode:hover { transform: translateY(-2px); border-color: var(--accent); }
.mode strong { font-size: 17px; margin-top: 8px; }
.mode small { color: var(--ink-2); font-size: 13.5px; flex: 1; }
.mode-go { color: var(--accent); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.mode-go .ic { width: 16px; height: 16px; }
.mode-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.mode-ic.green { background: var(--accent-soft); color: var(--accent); }
.mode-ic.saffron { background: var(--saffron-soft); color: var(--saffron); }
@media (max-width: 380px) { .modes { grid-template-columns: 1fr; } }


.section-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.section-row h2, .section-title { font-size: 24px; }
.section-title { margin-top: 12px; }
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--rule);
}
.recent > .ic { color: var(--ink-3); width: 18px; height: 18px; }
.recent-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.recent-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-text small { color: var(--ink-3); font-size: 12.5px; }
.recent-score {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font: 600 18px var(--serif); color: #fff; background: var(--tone);
}
.recent-score.pair { background: none; display: flex; gap: 3px; width: auto; }
.recent-score.pair i { font-style: normal; width: 22px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--tone); font-size: 14px; }

.insight h2 { font-size: 26px; margin: 8px 0 14px; }
.nova-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.nova-strip div { border-radius: 12px; padding: 10px 8px; background: color-mix(in srgb, var(--tone) 14%, var(--surface)); border-top: 4px solid var(--tone); }
.nova-strip b { font: 700 22px/1 var(--serif); color: var(--tone); display: block; }
.nova-strip small { font-size: 11.5px; color: var(--ink-2); line-height: 1.25; display: block; margin-top: 4px; }

/* ---------------- page head ---------------- */
.page-head { display: flex; align-items: center; gap: 12px; }
.page-head h1 { font-size: 21px; font-weight: 600; flex: 1; }
.page-head-action { display: flex; align-items: center; }
.lede { color: var(--ink-2); }

/* ---------------- product input ---------------- */
.inputs { display: flex; flex-direction: column; gap: 12px; }
.inputs.two { gap: 0; }
@media (min-width: 900px) {
  .wrap { max-width: 1040px; }
  body[data-route="compare"] .inputs.two { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; }
  body[data-route="compare"] .vs-divider { align-self: center; }
  body[data-route="compare"] .vs-divider::before, body[data-route="compare"] .vs-divider::after { display: none; }
}
.vs-divider { display: flex; align-items: center; gap: 10px; margin: 6px 0; color: var(--ink-3); }
.vs-divider::before, .vs-divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.vs-divider span, .vs {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--rule); font: italic 600 14px var(--serif); color: var(--ink-3); flex: none;
}
.pin { display: flex; flex-direction: column; gap: 14px; transition: border-color .2s; }
.pin.is-ready { border-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); }
.pin-head { display: flex; align-items: center; gap: 12px; }
.pin-tag {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font: 600 15px var(--mono); background: var(--surface-2); color: var(--ink-2);
}
.tone-khetika .pin-tag { background: var(--accent-soft); color: var(--accent); }
.tone-competitor .pin-tag { background: var(--saffron-soft); color: var(--saffron); }
.pin-titles { flex: 1; }
.pin-titles h3 { margin: 0; font-size: 17px; }
.pin-titles p { font-size: 13px; color: var(--ink-3); }
.pin-ready {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; transform: scale(0); transition: transform .2s;
}
.pin-ready .ic { width: 16px; height: 16px; }
.pin.is-ready .pin-ready { transform: scale(1); }

.field-label { font-size: 13px; font-weight: 500; color: var(--ink-2); display: block; margin-bottom: 6px; }
.field-label em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); border-radius: 16px;
  background: var(--paper); padding: 4px 4px 4px 14px; transition: border-color .15s, box-shadow .15s;
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field > .ic { color: var(--ink-3); }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 16px var(--sans); color: var(--ink); padding: 10px 0; }
.field .pin-code { font-family: var(--mono); letter-spacing: .04em; }
.field .icon-btn { width: 40px; height: 40px; border: 0; background: var(--accent); color: #fff; border-radius: 12px; }
.pin-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.pin-actions .btn { border-radius: 14px; }
.pin-status { margin-top: 10px; font-size: 13.5px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pin-status.warn { background: var(--saffron-soft); }
.pin-status.err { background: var(--chilli-soft); color: var(--chilli); }
.pin-status .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.pin-toggle {
  display: flex; align-items: center; gap: 8px; background: none; border: 1px dashed var(--rule); border-radius: 14px;
  padding: 10px 12px; color: var(--ink-2); cursor: pointer; font-size: 14px; text-align: left;
}
.pin-toggle .ic { width: 18px; height: 18px; color: var(--accent); }
.pin-photos { display: flex; flex-direction: column; gap: 10px; }
.pin.is-found .drop-ingredients, .pin.is-found .drop-nutrition { display: none; }
.found-images { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.off-shot { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; font-size: 12px; color: var(--ink-3); text-decoration: none; }
.off-shot img { width: 100%; height: 96px; object-fit: contain; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; }
.off-shot.none { justify-content: center; height: 96px; border: 1px dashed var(--rule); border-radius: 10px; padding: 6px; }
.off-shot.none small { font-size: 11px; }

.pin-found { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--accent-soft); }
.found-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface); flex: none; display: grid; place-items: center; }
.found-thumb img { width: 100%; height: 100%; object-fit: contain; }
.found-thumb-empty { color: var(--accent); }
.found-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.found-text strong { font-size: 15.5px; }
.found-text small { color: var(--ink-2); font-family: var(--mono); font-size: 12px; }
.found-ok { font-size: 12.5px; color: var(--accent); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.found-ok .ic { width: 15px; height: 15px; }

.drop {
  position: relative; border: 1.5px dashed var(--rule); border-radius: 16px; padding: 16px; cursor: pointer;
  display: flex; align-items: center; gap: 14px; background: var(--paper); transition: border-color .15s, background .15s;
  outline: none;
}
.drop:hover, .drop.over, .drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.drop.filled { border-style: solid; border-color: color-mix(in srgb, var(--accent) 50%, var(--rule)); }
.drop.bad { border-color: var(--chilli); }
.drop-body { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.drop-body > .ic { width: 26px; height: 26px; color: var(--accent); }
.drop-body p { font-size: 14.5px; }
.drop-body p em { font-style: normal; font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.drop-body p em.req { color: var(--saffron); }
.drop-body small { display: block; color: var(--ink-3); font-size: 12.5px; word-break: break-all; }
.drop-body > div, .drop-body p + small { min-width: 0; }
.drop-cam {
  flex: none; width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
}
.drop-cam .ic { width: 22px; height: 22px; }
.drop-preview { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; display: none; flex: none; }
.drop.filled .drop-preview { display: block; }
.drop.filled .drop-body > .ic { display: none; }
.drop-body { flex-wrap: wrap; }
.drop-body p, .drop-body small { flex-basis: calc(100% - 40px); }
.drop.filled .drop-body p, .drop.filled .drop-body small { flex-basis: 100%; }

.cta-bar {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); z-index: 5;
  display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 12px;
  background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-radius: 22px;
}

/* ---------------- busy sheet ---------------- */
.busy-sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgb(15 21 18 / .45); backdrop-filter: blur(3px); padding: 16px; animation: fade .2s; }
.busy-card { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; max-width: 340px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow); }
.busy-card strong { font: 600 20px var(--serif); }
.busy-tip { color: var(--ink-2); min-height: 3em; }
.busy-ring { width: 54px; height: 54px; border-radius: 50%; border: 5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes fade { from { opacity: 0; } }

/* ---------------- report ---------------- */
.report { display: flex; flex-direction: column; gap: 14px; }
.hero-card { display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.hero-card::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 70%; height: 220px; pointer-events: none;
  background: radial-gradient(circle at 80% 0, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%);
}
.hero-top { display: flex; gap: 16px; position: relative; }
.hero-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-id h2 { font-size: clamp(22px, 6vw, 30px); line-height: 1.12; }
.pack-photo, .pack-art { width: 120px; height: 140px; border-radius: 18px; flex: none; overflow: hidden; }
.pack-photo { background: var(--surface-2); border: 1px solid var(--rule); }
.pack-photo img { width: 100%; height: 100%; object-fit: contain; }
.pack-art {
  background:
    radial-gradient(rgb(255 255 255 / .25) 1.5px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(170deg, hsl(var(--hue) 62% 50%), hsl(var(--hue) 60% 36%));
  display: flex; align-items: flex-end; padding: 12px; box-shadow: inset 0 -10px 20px rgb(0 0 0 / .15);
}
.pack-label { background: rgb(255 255 255 / .92); color: #17201a; border-radius: 8px; padding: 8px; width: 100%; }
.pack-label small { font: 500 8.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; display: block; }
.pack-label b { font: 600 13px/1.1 var(--serif); display: block; }

.score-box { display: flex; align-items: center; gap: 18px; background: var(--surface-2); border-radius: 18px; padding: 16px; position: relative; }
.score-text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.score-summary { font-size: 16.5px; line-height: 1.4; }
.pill {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  background: var(--tone); color: #fff;
}
.siga-box { display: flex; align-items: center; gap: 14px; border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; }
.siga-class { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; height: 58px; border-radius: 12px; background: var(--tone); color: #fff; }
.siga-class small { font: 500 9.5px var(--mono); letter-spacing: .14em; }
.siga-class b { font: 700 22px/1 var(--serif); }
.siga-text { display: flex; flex-direction: column; gap: 2px; }
.pill.small { font-size: 12px; padding: 3px 10px; }

.gauge { position: relative; width: 120px; height: 120px; flex: none; }
.gauge.sm { width: 92px; height: 92px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(135deg); }
.gauge circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.gauge .track { stroke: var(--rule); }
.gauge .value { stroke: var(--tone); transition: stroke-dasharray .8s ease-out; }
.gauge-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-text small { font: 500 10.5px var(--mono); letter-spacing: .14em; color: var(--ink-3); }
.gauge-text b { font: 700 40px/1 var(--serif); }
.gauge.sm .gauge-text b { font-size: 30px; }

.scale-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.scale-steps span { height: 8px; border-radius: 999px; background: var(--tone); opacity: .35; position: relative; }
.scale-steps span.on { opacity: 1; height: 10px; margin-top: -1px; }
.scale-steps span.on::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--ink); border: 3px solid var(--surface);
}
.scale-labels { display: flex; justify-content: space-between; margin-top: 8px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.tabs-wrap { display: flex; flex-direction: column; gap: 12px; }
.tabs, .seg { display: flex; background: var(--surface-2); border-radius: 16px; padding: 4px; gap: 4px; }
.tabs button, .seg button {
  flex: 1; border: 0; background: none; padding: 10px 8px; border-radius: 12px; cursor: pointer; color: var(--ink-3);
  font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tabs button[aria-selected="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tab-panel { display: flex; flex-direction: column; gap: 12px; }

.good-list, .bad-list, .ing-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.good-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.ok-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ok-ic .ic { width: 16px; height: 16px; }
.bad-list li, .ing-list li { display: flex; gap: 12px; align-items: flex-start; }
.bad-list strong, .ing-list strong { font-weight: 500; font-size: 15.5px; }
.bad-list small, .ing-list small { display: block; color: var(--ink-2); font-size: 13.5px; }
.sev { width: 10px; height: 10px; border-radius: 50%; background: var(--tone); flex: none; margin-top: 7px; }
.ing-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 8px; }

.method dl { margin: 0; display: flex; flex-direction: column; }
.method dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--rule); }
.method dt { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.method dd { margin: 0; text-align: right; font-weight: 500; }
.caveat { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

.additive { border-left: 4px solid var(--tone); display: flex; flex-direction: column; gap: 4px; }
.additive-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.raw summary { cursor: pointer; font-weight: 500; }
.raw pre { white-space: pre-wrap; word-break: break-word; font: 12.5px/1.5 var(--mono); color: var(--ink-2); margin: 12px 0 0; max-height: 300px; overflow: auto; }

.float-bar {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); z-index: 5;
  display: flex; gap: 10px; margin-top: 4px;
}
.float-bar .btn { flex: 1; box-shadow: var(--shadow); }
.float-bar .btn.dark { flex: 1.5; }

/* ---------------- comparison ---------------- */
.vs-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.vs-row .vs { margin: 0 -18px; z-index: 1; }
.vs-card {
  position: relative; background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--radius);
  padding: 22px 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; height: 100%;
}
.vs-card.best { border-color: var(--g-a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g-a) 15%, transparent); }
.vs-name { font-size: 15.5px; line-height: 1.25; }
.crown {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; background: var(--g-a); color: #fff;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.crown .ic { width: 14px; height: 14px; }
.vs-card .pill { font-size: 12px; text-align: center; }

.table-card { padding: 0; overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 13px 12px; border-bottom: 1px solid var(--rule); text-align: center; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); }
.cmp th[scope="row"], .cmp thead th:first-child { text-align: left; font-weight: 400; padding-left: 18px; }
.cmp td.num { font: 500 17px var(--mono); }
.cmp td.better { color: var(--g-a); font-weight: 700; }
.yn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.yn .ic { width: 14px; height: 14px; }
.yn.good { background: var(--accent-soft); color: var(--g-a); }
.yn.bad { background: var(--chilli-soft); color: var(--chilli); }

.why { background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.why .eyebrow { color: rgb(255 255 255 / .7); }
.why h3 { font-size: 24px; line-height: 1.2; }
.why p { color: rgb(255 255 255 / .88); }
.why.tie { background: var(--surface-2); color: var(--ink); }
.why.tie .eyebrow { color: var(--ink-3); }
.why.tie p { color: var(--ink-2); }
.overlap { display: flex; flex-direction: column; gap: 14px; }

/* ---------------- how ---------------- */
.how-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.how-row { display: flex; gap: 14px; align-items: center; }
.siga-chip { flex: none; min-width: 56px; padding: 8px 6px; text-align: center; border-radius: 12px; font-weight: 700; color: #fff; background: var(--c); }
.how-row p { margin: 2px 0 0; }
.card h4 { margin: 18px 0 4px; font-size: 14.5px; }
.grade-bands { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.grade-band { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.grade-band b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; }
.grade-band b.g-a { background: var(--g-a); } .grade-band b.g-b { background: var(--g-b); } .grade-band b.g-c { background: var(--g-c); }
.grade-band b.g-d { background: var(--g-d); } .grade-band b.g-e { background: var(--g-e); }
.refs { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.how-row .gauge { width: 72px; height: 72px; }
.how-row .gauge-text b { font-size: 24px; }
.how-row .gauge-text small { font-size: 9px; }
.card > p + p { margin-top: 8px; }

/* ---------------- bottom nav ---------------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--rule);
}
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--ink-3); padding: 6px 0; }
.nav-item .ic { width: 22px; height: 22px; }
.nav-item.active { color: var(--accent); font-weight: 600; }
.nav-scan {
  justify-self: center; width: 60px; height: 60px; border-radius: 20px; border: 4px solid var(--paper); margin-top: -26px;
  background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
}
.nav-scan .ic { width: 26px; height: 26px; }
@media (min-width: 900px) {
  .bottom-nav { max-width: 560px; margin: 0 auto 14px; border: 1px solid var(--rule); border-radius: 22px; box-shadow: var(--shadow); }
}

/* ---------------- toast, footer, scanner ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s;
  max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 14px; background: var(--dark-btn); color: var(--on-dark);
  font-size: 14px; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--chilli); color: #fff; }
.foot { color: var(--ink-3); font-size: 12px; text-align: center; padding-top: 28px; padding-bottom: 12px; }

.scan-dialog { border: 0; border-radius: var(--radius); padding: 20px; width: min(92vw, 460px); background: var(--surface); color: var(--ink); }
.scan-dialog::backdrop { background: rgb(0 0 0 / .6); }
.scan-dialog h2 { margin: 0 0 12px; font-size: 17px; }
.scan-frame { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #000; aspect-ratio: 4/3; }
.scan-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A wide, short window: product barcodes are wide, and the shape nudges people to hold the bars horizontally. */
.scan-guide { position: absolute; inset: 32% 8%; border: 2.5px solid rgb(255 255 255 / .9); border-radius: 12px; box-shadow: 0 0 0 999px rgb(0 0 0 / .35); }
.scan-laser { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ff4d3d; box-shadow: 0 0 10px 2px rgb(255 77 61 / .6); animation: laser 1.8s ease-in-out infinite alternate; }
@keyframes laser { from { top: 18%; } to { top: 82%; } }
.scan-actions { display: flex; gap: 8px; }
.scan-actions .btn { flex: 1; }
#scanTorch[aria-pressed="true"] { background: #f2b45f; color: #17201a; }
.scan-status { margin: 12px 0; font-size: 13.5px; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .scan-guide { animation: scanpulse 1.6s ease-in-out infinite; }
}
@keyframes scanpulse { 50% { border-color: rgb(255 255 255 / .45); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- splash ---------------- */
.splash {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; color: #fff; overflow: hidden;
  background:
    radial-gradient(rgb(255 255 255 / .06) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(160deg, #1f5e43, #2f6b3c 60%, #24563a);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .6s;
}
.no-splash .splash { display: none; }
.splash.out { opacity: 0; transform: scale(1.06); visibility: hidden; }
.splash-glow {
  position: absolute; left: 50%; top: 50%; margin: -260px 0 0 -260px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgb(242 180 95 / .35), transparent 65%);
  animation: splash-glow 2.4s ease-in-out infinite alternate;
}
.splash-mark { position: relative; width: 112px; height: 112px; display: grid; place-items: center; }
.splash-mark img {
  width: 112px; height: 112px; border-radius: 26px; position: relative;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / .45);
  animation: splash-pop .8s cubic-bezier(.34, 1.56, .64, 1) both;
}
.splash-ring {
  position: absolute; inset: 0; border-radius: 30px; border: 2px solid rgb(255 255 255 / .5);
  animation: splash-ring 1.8s ease-out .5s infinite;
}
.splash-ring.r2 { animation-delay: 1.1s; }
.splash-text { display: flex; flex-direction: column; align-items: center; animation: splash-up .7s ease .35s both; }
.splash-text strong { font: 700 34px/1.1 var(--serif); letter-spacing: -.02em; }
.splash-text span { font: 500 11.5px var(--mono); letter-spacing: .3em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.splash-tag { font-size: 15px; display: flex; gap: 6px; }
.splash-tag i { font-style: normal; opacity: 0; animation: splash-up .5s ease both; }
.splash-tag i:nth-child(1) { animation-delay: .7s; }
.splash-tag i:nth-child(2) { animation-delay: .85s; color: #f2b45f; }
.splash-tag i:nth-child(3) { animation-delay: 1s; }
.splash-bar { width: 120px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .18); overflow: hidden; margin-top: 8px; animation: splash-up .5s ease .9s both; }
.splash-bar span { display: block; height: 100%; width: 40%; border-radius: 3px; background: #fff; animation: splash-load 1.1s ease-in-out infinite; }
@keyframes splash-pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } }
@keyframes splash-up { from { transform: translateY(14px); opacity: 0; } to { opacity: 1; } }
@keyframes splash-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
@keyframes splash-glow { to { transform: scale(1.15); opacity: .7; } }
@keyframes splash-load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) {
  .splash-ring, .splash-glow, .splash-bar { display: none; }
}

/* ================= home: motion & polish ================= */
/* Entrance: hero pieces rise in on load; sections fade up as they scroll in. */
.rise { animation: rise .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both; }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.home-hero { display: grid; gap: 22px; padding-bottom: 24px; isolation: isolate; }
.home-hero::after {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 340px; height: 340px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgb(201 226 122 / .22), transparent 65%); animation: drift 9s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-60px, -40px) scale(1.15); } }
.hero-copy { display: flex; flex-direction: column; gap: 14px; }
/* spice illustration: under the buttons on phones, beside the copy on wide screens */
.hero-art { width: 100%; max-width: 340px; height: auto; justify-self: center; margin: -6px 0 -30px; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .25)); }
.hero-art.rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) var(--d) both, art-float 6s ease-in-out 1.2s infinite alternate; }
@keyframes art-float { to { transform: translateY(-8px) rotate(-1deg); } }
.home-hero { padding-bottom: 30px; }
@media (min-width: 760px) {
  .home-hero { grid-template-columns: 1fr 1fr; align-items: center; padding: 40px; }
  .hero-art { margin: 0; max-width: 400px; }
}

/* rotating headline word */
.rotator { display: inline-block; }
.rotator em { display: inline-block; font-style: normal; color: #f2b45f; }
.rotator em.swap-in { animation: word-in .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes word-in { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } }

/* floating spice specks */
.specks { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.specks i {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); opacity: .55;
  animation: float 6s ease-in-out var(--d) infinite alternate;
}
@keyframes float { from { transform: translateY(0) scale(1); } to { transform: translateY(-26px) scale(1.25); opacity: .25; } }

/* button shine */
.btn.shine { position: relative; overflow: hidden; }
.btn.shine::after {
  content: ""; position: absolute; inset: 0; width: 40%; transform: translateX(-160%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgb(31 94 67 / .14), transparent); animation: shine 3.4s ease-in-out 1.2s infinite;
}
@keyframes shine { 60%, 100% { transform: translateX(360%) skewX(-20deg); } }

/* how it works: three icons in a row */
.flow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 18px 14px; }
.flow div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13.5px; font-weight: 500; }
.flow b {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.flow b .ic { width: 24px; height: 24px; }
.flow > i { color: var(--ink-3); margin-top: -26px; }
.flow > i .ic { width: 16px; height: 16px; }
.flow div { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.flow.in div { opacity: 1; transform: none; }
.flow.in div:nth-of-type(2) { transition-delay: .2s; }
.flow.in div:nth-of-type(3) { transition-delay: .4s; }
.flow div:hover b { transform: translateY(-3px) rotate(-6deg); }

/* mode cards */
.mode { position: relative; overflow: hidden; }
.mode::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at 100% 0, var(--accent-soft), transparent 60%);
}
.mode:hover::before { opacity: 1; }
.mode > * { position: relative; }
.mode-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mode-ic { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.mode:hover .mode-ic { transform: rotate(-8deg) scale(1.08); }
.mode-go .ic { transition: transform .2s; }
.mode:hover .mode-go .ic { transform: translateX(4px); }
.mini-gauge .gauge.sm { width: 46px; height: 46px; }
.mini-gauge .gauge-text b { font-size: 16px; }
.mini-gauge .gauge-text small { display: none; }
/* No !important: it would block the fill animation. CSS still beats the SVG attribute. */
.mini-gauge .gauge .value { stroke-dasharray: 0 999; }
.mode.in .mini-gauge .gauge .value { animation: gauge-fill 1.4s cubic-bezier(.2, .8, .2, 1) .3s forwards; }
@keyframes gauge-fill { to { stroke-dasharray: 198 999; } }
.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 42px; }
.mini-bars i { width: 12px; height: 0; border-radius: 4px; background: var(--c); transition: height 1s cubic-bezier(.2, .8, .2, 1) .35s; }
.mode.in .mini-bars i { height: var(--h); }
.mode.in .mini-bars i + i { transition-delay: .5s; }

/* NOVA bars */
.nova-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; margin-bottom: 16px; }
.nova-bars div { display: flex; flex-direction: column; gap: 4px; }
.nova-bars .bar { display: block; height: 70px; border-radius: 10px; position: relative; background: color-mix(in srgb, var(--tone) 12%, var(--surface-2)); overflow: hidden; }
.nova-bars .bar::after {
  content: ""; position: absolute; inset: auto 0 0; height: 0; background: var(--tone); border-radius: 10px;
  transition: height 1s cubic-bezier(.2, .8, .2, 1) calc(var(--d) + .2s);
}
.insight.in .nova-bars .bar::after { height: var(--h); }
.nova-bars b { font: 700 20px/1 var(--serif); color: var(--tone); }
.nova-bars small { font-size: 11.5px; color: var(--ink-2); line-height: 1.25; }

/* closing call to action */
.cta-band {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, var(--hero-1), var(--hero-2) 60%, #4d6b2c);
}
.cta-band img { flex: none; width: 84px; height: auto; margin: -14px 0 -10px -6px; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .25)); }
.cta-band div { flex: 1; display: flex; flex-direction: column; }
.cta-band strong { font-size: 21px; }
.cta-band small { color: rgb(255 255 255 / .8); }
@media (max-width: 420px) {
  .cta-band { flex-wrap: wrap; }
  .cta-band .btn { width: 100%; }
}

/* recent rows */
.recent { transition: transform .2s, border-color .2s; }
.recent:hover { transform: translateX(3px); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .specks, .home-hero::after { display: none; }
  .mini-gauge .gauge .value { stroke-dasharray: 198 999; }
  .mini-bars i { height: var(--h); }
  .nova-bars .bar::after { height: var(--h); }
  .flow div { opacity: 1; transform: none; }
}

/* grade badge, score breakdown, alternatives */
.grade-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 50px; height: 58px; border-radius: 12px; border: 2px solid var(--tone); color: var(--tone); }
.grade-badge small { font: 500 9px var(--mono); letter-spacing: .14em; }
.grade-badge b { font: 700 22px/1 var(--serif); }
.breakdown { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.breakdown li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.breakdown li.reason { color: var(--ink-3); padding-left: 14px; }
.breakdown .pts.neg { color: var(--g-e); }
.alt-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.alt-list a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.alt-list img, .alt-list .pack-art { width: 44px; height: 56px; object-fit: contain; border-radius: 8px; flex: none; }
.alt-list span:nth-of-type(1) { flex: 1; display: flex; flex-direction: column; }
