/* =========================================================
   CONDUCTOR — design system
   60-30-10: warm-charcoal bg / elevated card / flame accent
   ========================================================= */

:root {
  /* color */
  --bg:           #0F0F12;
  --bg-2:         #15151B;
  --surface:      #1A1A20;
  --surface-2:    #22222A;
  --surface-3:    #2C2C36;
  --border:       #2D2D38;
  --border-hi:    #3A3A48;
  --ink:          #F5F1EA;
  --ink-mute:     #9A958B;
  --ink-soft:     #C9C2B6;

  --flame:        #FF7A45;
  --flame-2:      #FFA070;
  --flame-deep:   #D63D1A;
  --glow:         rgba(255, 122, 69, 0.18);
  --glow-strong:  rgba(255, 122, 69, 0.40);

  --heat-cool:    #FFD23F;
  --heat-mid:     #FF9A3C;
  --heat-hot:     #FF4E2B;

  --success:      #7FCB7F;
  --danger:       #F26B5E;

  /* type */
  --serif:  "Fraunces", "EB Garamond", Georgia, serif;
  --sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* scale (1.25 — major third) */
  --t-12: 0.75rem;
  --t-14: 0.875rem;
  --t-16: 1rem;
  --t-18: 1.125rem;
  --t-20: 1.25rem;
  --t-24: 1.5rem;
  --t-32: 2rem;
  --t-40: 2.5rem;
  --t-48: 3rem;
  --t-64: 4rem;
  --t-96: 6rem;
  --t-128: 8rem;

  /* spacing — 4pt grid */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* shadow */
  --shadow-sm: 0 1px 0 rgba(255,255,255,0.04) inset, 0 4px 16px rgba(0,0,0,0.25);
  --shadow-md: 0 1px 0 rgba(255,255,255,0.05) inset, 0 12px 36px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 0 1px var(--border-hi), 0 24px 64px -12px var(--glow);

  /* easing */
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-16);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ambient grain — barely-there noise so the dark surface isn't dead flat */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ambient flame glow at top of page */
body::before {
  content: "";
  position: fixed;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(255, 122, 69, 0.18) 0%,
    rgba(255, 122, 69, 0.08) 30%,
    transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

main, .topbar, .foot { position: relative; z-index: 1; }

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) clamp(var(--s-5), 4vw, var(--s-7));
  max-width: 1200px;
  margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: var(--s-3);
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--t-20);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, var(--flame) 0%, var(--flame-deep) 100%);
  color: var(--bg);
  box-shadow: 0 4px 12px var(--glow), 0 0 0 1px rgba(255,122,69,.4);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-style: italic; }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav-link {
  color: var(--ink-mute);
  font-size: var(--t-14);
  font-weight: 500;
  transition: color .2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--sans);
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ink);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  transition: all .2s var(--ease);
}
.nav-cta:hover { border-color: var(--flame); color: var(--flame); }

@media (max-width: 640px) {
  .nav-link { display: none; }
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
.kicker {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--sans);
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--s-3);
}
.kicker-dot {
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--flame);
  box-shadow: 0 0 8px var(--glow-strong);
}
.kicker-success .kicker-dot { background: var(--success); box-shadow: 0 0 8px rgba(127,203,127,0.5); }

.display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(var(--t-48), 9vw, var(--t-128));
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-5);
}
.display em {
  font-style: italic;
  background: linear-gradient(95deg, var(--flame-2) 0%, var(--flame) 50%, var(--flame-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(var(--t-32), 4.2vw, var(--t-48));
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
}
.h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-20);
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-2);
}
.lede {
  font-family: var(--serif);
  font-size: clamp(var(--t-18), 1.6vw, var(--t-24));
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 var(--s-6);
}
.sub {
  font-size: var(--t-16);
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 56ch;
  margin: 0 0 var(--s-5);
}
.sub-tight {
  font-size: var(--t-14);
  color: var(--ink-mute);
  margin: 0 0 var(--s-4);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-16);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { padding: var(--s-4) var(--s-6); font-size: var(--t-18); }
.btn-primary {
  background: linear-gradient(135deg, var(--flame) 0%, var(--flame-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 32px -8px var(--glow-strong), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.btn-primary:hover {
  box-shadow: 0 16px 44px -8px var(--glow-strong), 0 0 0 1px rgba(255,255,255,0.10) inset;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hi); background: var(--surface); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-2); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(var(--s-7), 8vw, var(--s-9)) clamp(var(--s-5), 4vw, var(--s-7));
  max-width: 1200px;
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-7); }
}
.hero-cta-row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* DIAL — the signature motif */
.dial-wrap {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 420px;
}
.dial {
  position: relative;
  width: clamp(280px, 36vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
}
.dial-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05) 0%, transparent 40%),
    conic-gradient(from -135deg,
      var(--heat-cool) 0deg,
      var(--heat-mid) 90deg,
      var(--heat-hot) 180deg,
      var(--flame-deep) 240deg,
      transparent 270deg);
  filter: blur(0.5px);
  opacity: .85;
  mask: radial-gradient(circle, transparent 60%, #000 60.5%, #000 100%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 60.5%, #000 100%);
}
.dial-face {
  position: absolute; inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, var(--surface-2) 0%, var(--bg) 70%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -8px 24px rgba(0,0,0,0.5),
    0 24px 60px -12px rgba(0,0,0,0.6);
  border: 1px solid var(--border);
}
.dial-tick {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  transform: translate(-50%, -50%) rotate(var(--a));
  font-family: var(--mono);
  font-size: var(--t-12);
  color: var(--ink-mute);
}
.dial-tick span {
  position: absolute;
  top: -45%;
  left: 50%;
  transform: translateX(-50%) rotate(calc(-1 * var(--a)));
  font-weight: 500;
}
.dial-flame {
  position: absolute;
  top: 18%; left: 50%; transform: translateX(-50%);
  color: var(--flame);
  width: 24px; height: 24px;
  filter: drop-shadow(0 0 6px var(--glow-strong));
}
.dial-needle {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 38%;
  background: linear-gradient(to top, var(--flame-deep), var(--flame));
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(0deg);
  border-radius: 4px;
  box-shadow: 0 0 12px var(--glow-strong);
  animation: needle-settle 1.4s var(--ease);
}
@keyframes needle-settle {
  0% { transform: translate(-50%, -100%) rotate(-90deg); opacity: 0; }
  60% { transform: translate(-50%, -100%) rotate(8deg); opacity: 1; }
  100% { transform: translate(-50%, -100%) rotate(0deg); opacity: 1; }
}
.dial-hub {
  position: absolute;
  top: 50%; left: 50%;
  width: 18%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--surface-3), var(--bg-2));
  border: 1px solid var(--border-hi);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}
.dial-readout {
  position: absolute;
  bottom: -10%; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--mono);
  white-space: nowrap;
}
.dial-num {
  font-size: clamp(var(--t-32), 4vw, var(--t-48));
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.dial-unit {
  font-size: var(--t-20);
  color: var(--flame);
  margin-left: 2px;
}
.dial-label {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: var(--s-2);
}

/* =========================================================
   TOOL
   ========================================================= */
.tool {
  padding: var(--s-9) clamp(var(--s-4), 4vw, var(--s-7));
  max-width: 760px;
  margin: 0 auto;
}
.section-head { margin-bottom: var(--s-6); }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
}

.unit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-5);
}
.unit-toggle {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px;
}
.unit-opt {
  position: relative;
  cursor: pointer;
}
.unit-opt input { position: absolute; opacity: 0; pointer-events: none; }
.unit-opt span {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--t-14);
  color: var(--ink-mute);
  transition: all .2s var(--ease);
}
.unit-opt input:checked + span {
  background: var(--surface-2);
  color: var(--flame);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 4px 12px rgba(0,0,0,0.3);
}
.hint {
  font-size: var(--t-12);
  color: var(--ink-mute);
}

/* Double-oven toggle (lives in the unit-card alongside °F/°C) */
.double-oven-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ink);
}
.double-oven-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.double-oven-track {
  position: relative;
  width: 36px; height: 22px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: all .2s var(--ease);
}
.double-oven-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: var(--r-pill);
  background: var(--ink-mute);
  transition: all .2s var(--ease);
}
.double-oven-toggle input:checked + .double-oven-track {
  background: linear-gradient(135deg, var(--flame) 0%, var(--flame-deep) 100%);
  border-color: transparent;
  box-shadow: 0 0 12px var(--glow);
}
.double-oven-toggle input:checked + .double-oven-track .double-oven-thumb {
  left: 18px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.double-oven-text { display: inline-flex; align-items: center; gap: var(--s-2); }
.pro-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--flame-2) 0%, var(--flame-deep) 100%);
  color: var(--bg);
}

/* Double-oven results — two-up grid */
.double-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (max-width: 720px) {
  .double-results { grid-template-columns: 1fr; }
}
.oven-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.oven-label {
  font-family: var(--sans);
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: -8px;
}
.oven-label strong {
  color: var(--flame);
  font-weight: 800;
  margin-right: 6px;
}

/* item cards */
.items-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.item-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3) var(--s-4);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.item-card:focus-within {
  border-color: var(--flame);
  box-shadow: 0 0 0 4px var(--glow);
}
.item-pip {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--t-14);
  color: var(--bg);
  background: var(--ink-soft);
}
.item-fields {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-3);
  min-width: 0;
}
@media (max-width: 540px) {
  .item-fields { grid-template-columns: 1fr 1fr; }
  .item-fields .field-name { grid-column: 1 / -1; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field label {
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-3);
  color: var(--ink);
  font-size: var(--t-16);
  font-family: var(--sans);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field-temp input, .field-time input {
  font-family: var(--mono);
  font-weight: 600;
  font-size: var(--t-18);
}
.field input::placeholder { color: var(--ink-mute); opacity: 0.6; }
.field input:focus { outline: none; border-color: var(--flame); background: var(--bg-2); }
.field input:hover:not(:focus) { border-color: var(--border-hi); }

.remove-btn {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  color: var(--ink-mute);
  font-size: var(--t-20);
  line-height: 1;
  transition: all .2s var(--ease);
}
.remove-btn:hover { background: var(--surface-2); color: var(--danger); }

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}
@media (max-width: 540px) {
  .action-row { flex-direction: column; align-items: stretch; }
  .action-row .btn { justify-content: center; }
}

/* =========================================================
   RESULTS
   ========================================================= */
.results {
  margin-top: var(--s-8);
  display: flex; flex-direction: column;
  gap: var(--s-5);
  animation: fadeRise .6s var(--ease) both;
}
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.result-head { margin-bottom: var(--s-2); }

.temp-card { padding: var(--s-7) var(--s-5); text-align: center; }
.temp-readout { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.temp-value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(var(--t-64), 14vw, var(--t-128));
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--heat-cool) 0%, var(--flame) 50%, var(--flame-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 36px var(--glow-strong));
}
.temp-label {
  font-family: var(--sans);
  font-size: var(--t-14);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.temp-explainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--t-12);
  font-weight: 600;
  color: var(--ink-mute);
}
.legend-chip i {
  width: 10px; height: 10px;
  border-radius: var(--r-pill);
  display: inline-block;
}
.legend-explain {
  font-size: var(--t-12);
  color: var(--ink-mute);
  flex-basis: 100%;
  text-align: center;
  margin-top: var(--s-1);
}

/* schedule */
.schedule {
  display: flex; flex-direction: column;
  gap: var(--s-2);
}
.sched-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s var(--ease);
}
.sched-row:hover { border-color: var(--border-hi); }
.sched-pip {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--t-14);
  color: var(--bg);
}
.sched-body { min-width: 0; }
.sched-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-16);
  color: var(--ink);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  font-family: var(--mono);
  font-size: var(--t-12);
  color: var(--ink-mute);
}
.sched-meta .arrow {
  color: var(--flame);
  font-weight: 700;
}
.sched-meta .delta {
  font-weight: 600;
}
.sched-meta .delta-up    { color: var(--heat-cool); }
.sched-meta .delta-down  { color: var(--success); }
.sched-action {
  text-align: right;
}
.sched-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border-hi);
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--t-12);
  color: var(--ink);
  white-space: nowrap;
}
.sched-pill.start {
  background: linear-gradient(135deg, var(--flame) 0%, var(--flame-deep) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--glow-strong);
}
.sched-pill .pill-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.sched-pill .pill-value {
  font-family: var(--mono);
  font-weight: 700;
}

/* timeline — read like sheet music */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.tl-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: var(--s-3);
}
.tl-label {
  font-family: var(--sans);
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-track {
  position: relative;
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.tl-track::before, .tl-track::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}
.tl-track::before { left: 33%; }
.tl-track::after { left: 66%; }
.tl-bar {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  padding: 0 var(--s-3);
  font-family: var(--mono);
  font-size: var(--t-12);
  font-weight: 700;
  color: var(--bg);
  white-space: nowrap;
  overflow: hidden;
  background: linear-gradient(95deg, var(--flame) 0%, var(--flame-deep) 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 4px 12px var(--glow);
  animation: tl-grow .7s var(--ease) both;
  transform-origin: left center;
}
@keyframes tl-grow {
  from { transform: scaleX(0.05); opacity: 0; }
  to   { transform: scaleX(1);    opacity: 1; }
}
.tl-axis {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-2);
  margin-left: calc(96px + var(--s-3));
  font-family: var(--mono);
  font-size: var(--t-12);
  color: var(--ink-mute);
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how {
  padding: var(--s-9) clamp(var(--s-4), 4vw, var(--s-7));
  max-width: 1100px;
  margin: 0 auto;
}
.how-inner { max-width: 980px; }
.steps {
  list-style: none;
  padding: 0; margin: var(--s-7) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--flame) 50%, transparent 100%);
  opacity: 0.6;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-48);
  font-weight: 900;
  background: linear-gradient(180deg, var(--flame-2) 0%, var(--flame-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
  margin-bottom: var(--s-3);
}
.step .h3 { margin-bottom: var(--s-2); }
.step p { color: var(--ink-mute); margin: 0; font-size: var(--t-14); line-height: 1.6; }

/* =========================================================
   FAQ (mirrors FAQPage JSON-LD for rich snippets)
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq-item[open] { border-color: var(--border-hi); }
.faq-item summary {
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  margin: 0;
  font-size: var(--t-16);
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: var(--t-20);
  color: var(--flame);
  font-weight: 700;
  width: 24px;
  text-align: center;
  transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover h3 { color: var(--flame); }
.faq-item p {
  padding: 0 var(--s-5) var(--s-4);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* =========================================================
   TRUST ROW (under the hero CTAs)
   ========================================================= */
.trust-row {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  font-family: var(--sans);
  font-size: var(--t-14);
  color: var(--ink-mute);
}
.trust-row li { display: inline-flex; align-items: center; gap: var(--s-2); }
.trust-tick {
  width: 16px; height: 16px;
  border-radius: var(--r-pill);
  background: rgba(127, 203, 127, 0.15);
  color: var(--success);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 10px;
}

/* =========================================================
   UPSELL
   ========================================================= */
.upsell {
  padding: var(--s-7) clamp(var(--s-4), 4vw, var(--s-7));
  max-width: 1100px; margin: 0 auto;
}
.upsell-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  padding: var(--s-7);
  border: 1px solid var(--border-hi);
  background:
    radial-gradient(circle at 100% 0%, var(--glow) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}
.upsell-inner .h2 { margin-bottom: var(--s-3); }
.upsell-inner > div { flex: 1; min-width: 280px; }
.upsell-inner .sub { margin-bottom: 0; }

/* =========================================================
   LEGAL PAGES (privacy.html, terms.html)
   ========================================================= */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(var(--s-7), 8vw, var(--s-9)) clamp(var(--s-4), 4vw, var(--s-7));
  position: relative;
  z-index: 1;
}
.legal h1.display {
  font-size: clamp(var(--t-40), 6vw, var(--t-64));
  margin-bottom: var(--s-5);
}
.legal h2.h2 {
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  font-size: var(--t-24);
}
.legal p, .legal li {
  font-size: var(--t-16);
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal ul {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-5);
}
.legal li { margin-bottom: var(--s-2); }
.legal a {
  color: var(--flame);
  border-bottom: 1px dashed currentColor;
}
.legal a:hover { color: var(--flame-2); }
.legal code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 1px 6px;
  background: var(--surface-2);
  border-radius: 6px;
}
.legal-meta {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: var(--t-12) !important;
  color: var(--ink-mute) !important;
  font-family: var(--mono);
}

/* =========================================================
   FOOT
   ========================================================= */
.foot {
  padding: var(--s-6) clamp(var(--s-4), 4vw, var(--s-7));
  border-top: 1px solid var(--border);
  margin-top: var(--s-7);
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
}
.brand-name-sm { font-size: var(--t-16); }
.foot-mute {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
  font-size: var(--t-14);
}
.foot-links {
  display: flex;
  gap: var(--s-4);
  font-family: var(--sans);
  font-size: var(--t-13, 0.8125rem);
}
.foot-links a {
  color: var(--ink-mute);
  transition: color .2s var(--ease);
}
.foot-links a:hover { color: var(--ink); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 540px) {
  .topbar { padding: var(--s-4); }
  .hero { padding: var(--s-6) var(--s-4); }
  .tool { padding: var(--s-7) var(--s-4); }
  .how { padding: var(--s-7) var(--s-4); }
  .upsell-inner { padding: var(--s-5); }
  .item-card { grid-template-columns: auto 1fr; }
  .item-card .remove-btn { grid-column: 2; justify-self: end; margin-top: -8px; }
  .tl-row { grid-template-columns: 84px 1fr; }
  .tl-axis { margin-left: calc(84px + var(--s-3)); }
}

/* =========================================================
   CONFIDENCE BADGE
   ========================================================= */
.confidence-badge {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: var(--s-3);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
  align-self: center;
  width: fit-content;
}
.confidence-badge .conf-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  display: inline-block;
}
.conf-high {
  display: inline-flex;
  background: rgba(127, 203, 127, 0.10);
  border-color: rgba(127, 203, 127, 0.40);
  color: var(--success);
}
.conf-high .conf-dot { background: var(--success); box-shadow: 0 0 8px rgba(127,203,127,0.5); }
.conf-medium {
  display: inline-flex;
  background: rgba(255, 210, 63, 0.10);
  border-color: rgba(255, 210, 63, 0.45);
  color: var(--heat-cool);
}
.conf-medium .conf-dot { background: var(--heat-cool); }
.conf-low {
  display: inline-flex;
  background: rgba(255, 78, 43, 0.12);
  border-color: rgba(255, 78, 43, 0.50);
  color: var(--heat-hot);
}
.conf-low .conf-dot { background: var(--heat-hot); }
.conf-experimental {
  display: inline-flex;
  background: rgba(255, 78, 43, 0.18);
  border-color: rgba(255, 78, 43, 0.65);
  color: var(--heat-hot);
}
.conf-experimental .conf-dot { background: var(--heat-hot); }

/* =========================================================
   BAKE TOGGLE (web persistent-timer button under the schedule)
   ========================================================= */
.bake-toggle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.bake-toggle-row .btn {
  flex-shrink: 0;
}
.bake-toggle-hint {
  flex: 1;
  min-width: 240px;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-14);
  color: var(--ink-mute);
  line-height: 1.4;
}

/* =========================================================
   FEEDBACK + SHARE
   ========================================================= */
.feedback-card { padding: var(--s-5); }
.feedback-row {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: center;
  text-align: center;
}
.feedback-prompt {
  font-family: var(--sans);
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.feedback-btns { display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; }
.feedback-btn {
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  border: 1px solid;
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--t-14);
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease);
}
.feedback-btn:hover { transform: translateY(-1px); }
.feedback-burned {
  background: rgba(255, 78, 43, 0.10);
  border-color: rgba(255, 78, 43, 0.45);
  color: var(--heat-hot);
}
.feedback-cool {
  background: rgba(255, 210, 63, 0.08);
  border-color: rgba(255, 210, 63, 0.45);
  color: var(--heat-cool);
}
.feedback-good {
  background: rgba(127, 203, 127, 0.12);
  border-color: rgba(127, 203, 127, 0.45);
  color: var(--success);
}
.feedback-thanks {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
  font-size: var(--t-14);
}
.share-row {
  display: flex;
  justify-content: center;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}

/* =========================================================
   QUICK-START CHIPS (empty-state)
   ========================================================= */
.quick-start {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: linear-gradient(120deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}
.quick-start-label {
  font-family: var(--sans);
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.quick-start-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); flex: 1; }
.qs-chip {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-14);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.qs-chip:hover {
  border-color: var(--flame);
  color: var(--flame);
  background: var(--surface);
  transform: translateY(-1px);
}

/* =========================================================
   COMPATIBILITY BANNER + BURN-RISK TAGS
   ========================================================= */
.compat-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid;
  margin-bottom: var(--s-3);
}
.compat-banner .compat-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  font-weight: 900;
  flex-shrink: 0;
}
.compat-text { font-size: var(--t-14); line-height: 1.5; }
.compat-text strong { display: block; margin-bottom: 2px; font-size: var(--t-16); }
.compat-warn {
  background: rgba(255, 210, 63, 0.06);
  border-color: rgba(255, 210, 63, 0.45);
  color: var(--ink);
}
.compat-warn .compat-icon { background: var(--heat-cool); color: var(--bg); }
.compat-bad {
  background: rgba(255, 78, 43, 0.10);
  border-color: rgba(255, 78, 43, 0.55);
  color: var(--ink);
}
.compat-bad .compat-icon { background: var(--heat-hot); color: #fff; }

/* per-item burn-risk pill, sits next to the item name */
.sens-tag {
  display: inline-block;
  margin-left: var(--s-2);
  padding: 1px 8px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.sens-tag.sens-high {
  background: rgba(255, 78, 43, 0.15);
  color: var(--heat-hot);
  border: 1px solid rgba(255, 78, 43, 0.45);
}
.sens-tag.sens-medium {
  background: var(--surface-2);
  color: var(--ink-mute);
  border: 1px solid var(--border);
}
.sens-tag.sens-low {
  background: rgba(127, 203, 127, 0.12);
  color: var(--success);
  border: 1px solid rgba(127, 203, 127, 0.4);
}

.sched-warning {
  margin-top: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  font-size: var(--t-12);
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.sched-warning-watch {
  background: rgba(255, 210, 63, 0.08);
  color: var(--heat-cool);
  border: 1px solid rgba(255, 210, 63, 0.35);
}
.sched-warning-burn {
  background: rgba(255, 78, 43, 0.12);
  color: var(--heat-hot);
  border: 1px solid rgba(255, 78, 43, 0.5);
  font-weight: 600;
}

/* =========================================================
   PRO / PAYWALL
   ========================================================= */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}
.plan-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--ink-mute);
}
.plan-badge-free { color: var(--ink-mute); }
.plan-badge-pro {
  color: var(--bg);
  background: linear-gradient(135deg, var(--flame-2) 0%, var(--flame) 50%, var(--flame-deep) 100%);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 4px 14px var(--glow-strong);
}
.plan-badge-pro::before { background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.6); }
@media (max-width: 720px) { .plan-badge { display: none; } }

.inline-link {
  color: var(--flame);
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
}
.inline-link:hover { color: var(--flame-2); }

/* locked teaser card — sits in items-list as a "3rd item" upsell */
.item-locked {
  background: repeating-linear-gradient(
    135deg,
    var(--surface) 0,
    var(--surface) 12px,
    var(--bg-2) 12px,
    var(--bg-2) 24px
  );
  border: 1px dashed var(--border-hi);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-4);
  align-items: center;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.item-locked:hover {
  border-color: var(--flame);
  background: var(--surface-2);
}

/* Reward variant — shown when the user still has their free 3-item bake. */
.item-locked-reward {
  background:
    radial-gradient(circle at 100% 0%, var(--glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border-style: solid;
  border-color: var(--flame);
  box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.10);
}
.item-locked-icon-reward {
  background: linear-gradient(135deg, var(--flame) 0%, var(--flame-deep) 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.item-locked-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  color: var(--flame);
}
.item-locked-icon svg { width: 18px; height: 18px; }
.item-locked-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-locked-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-16);
  color: var(--ink);
}
.item-locked-sub {
  font-size: var(--t-13, 0.8125rem);
  color: var(--ink-mute);
}
.item-locked-cta {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--t-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--flame);
  white-space: nowrap;
}

/* paywall modal */
.paywall {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--s-4);
}
.paywall.hidden { display: none; }
.paywall-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: bd-fade .25s var(--ease);
}
@keyframes bd-fade { from { opacity: 0; } to { opacity: 1; } }
.paywall-card {
  position: relative;
  width: min(520px, 100%);
  padding: var(--s-7);
  background:
    radial-gradient(circle at 100% 0%, var(--glow) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-hi);
  animation: pw-rise .35s var(--ease);
}
@keyframes pw-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.paywall-close {
  position: absolute;
  top: var(--s-3); right: var(--s-3);
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  font-size: var(--t-20);
  color: var(--ink-mute);
  transition: all .2s var(--ease);
}
.paywall-close:hover { background: var(--surface-2); color: var(--ink); }
.paywall-card .h2 { margin-bottom: var(--s-3); }
.paywall-lede {
  font-family: var(--serif);
  font-size: var(--t-18);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 var(--s-5);
}
.paywall-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.paywall-perks li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-16);
  color: var(--ink);
}
.perk-tick {
  width: 22px; height: 22px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  color: var(--success);
  font-weight: 700;
  font-size: var(--t-12);
  flex-shrink: 0;
}
.paywall-cta {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.paywall-cta .btn { justify-content: center; width: 100%; }
.paywall-price {
  margin-left: auto;
  padding-left: var(--s-3);
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--t-16);
  opacity: 0.9;
  border-left: 1px solid rgba(255,255,255,0.2);
}
.paywall-fineprint {
  font-size: var(--t-12);
  color: var(--ink-mute);
  text-align: center;
  margin: 0;
}

/* =========================================================
   AUTH MODAL + TOPBAR AVATAR / SIGN-IN BUTTON
   ========================================================= */
.auth-card {
  width: min(440px, 100%);
  padding: var(--s-6) var(--s-5) var(--s-5);
}
.auth-providers {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  width: 100%;
  height: 50px;
  padding: 0 var(--s-4);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-16);
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.auth-btn:active { transform: translateY(1px) scale(0.99); }

/* Apple — required to be the most prominent option */
.auth-btn-apple {
  background: #000;
  color: #fff;
  border-color: #000;
}
.auth-btn-apple:hover {
  background: #1a1a1a;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.6);
}
.auth-btn-apple .apple-mark {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--t-20);
  line-height: 1;
  margin-top: -2px;
}

/* Google — white button with multi-color G mark */
.auth-btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: var(--border-hi);
}
.auth-btn-google:hover {
  background: #f5f5f5;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4);
}
.google-mark {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  background:
    conic-gradient(
      from -45deg,
      #4285F4 0deg 90deg,
      #34A853 90deg 180deg,
      #FBBC05 180deg 270deg,
      #EA4335 270deg 360deg
    );
  position: relative;
  flex-shrink: 0;
}
.google-mark::after {
  content: "G";
  position: absolute;
  inset: 3px;
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  color: #4285F4;
}

/* Email — flame primary CTA */
.auth-btn-email {
  background: linear-gradient(135deg, var(--flame) 0%, var(--flame-deep) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 32px -8px var(--glow-strong), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.auth-btn-email:hover {
  box-shadow: 0 16px 44px -8px var(--glow-strong), 0 0 0 1px rgba(255,255,255,0.10) inset;
  transform: translateY(-1px);
}

.auth-email-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.auth-email-form input {
  width: 100%;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 var(--s-4);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-16);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-email-form input::placeholder { color: var(--ink-mute); opacity: 0.7; }
.auth-email-form input:focus {
  outline: none;
  border-color: var(--flame);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--glow);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--sans);
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: var(--s-1) 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-status {
  font-family: var(--sans);
  font-size: var(--t-13, 0.8125rem);
  line-height: 1.45;
  color: var(--ink-mute);
  text-align: center;
  margin: 0;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.auth-status.auth-status-error {
  color: var(--danger);
  background: rgba(242, 107, 94, 0.08);
  border-color: rgba(242, 107, 94, 0.45);
}
.auth-status.auth-status-ok {
  color: var(--success);
  background: rgba(127, 203, 127, 0.08);
  border-color: rgba(127, 203, 127, 0.45);
}

/* Topbar auth slot — sign-in button or avatar */
.auth-slot {
  display: inline-flex;
  align-items: center;
}
.auth-signin-btn {
  font-family: var(--sans);
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ink);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  transition: all .2s var(--ease);
}
.auth-signin-btn:hover {
  border-color: var(--flame);
  color: var(--flame);
}
.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--flame-2) 0%, var(--flame) 50%, var(--flame-deep) 100%);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--t-14);
  letter-spacing: 0;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 12px var(--glow), 0 0 0 1px rgba(255,122,69,.4);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.topbar-avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--glow-strong), 0 0 0 1px rgba(255,122,69,.6);
}

/* Account dropdown */
.account-menu {
  position: fixed;
  z-index: 110;
  min-width: 220px;
  padding: var(--s-2);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.account-menu.hidden { display: none; }
.account-menu-head {
  padding: var(--s-3) var(--s-3) var(--s-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-1);
}
.account-menu-email {
  font-family: var(--mono);
  font-size: var(--t-12);
  color: var(--ink-mute);
  word-break: break-all;
}
.account-menu-item {
  text-align: left;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.account-menu-item:hover {
  background: var(--surface-2);
  color: var(--flame);
}

/* =========================================================
   SETTINGS GEAR (topbar) + SETTINGS MODAL
   ========================================================= */
.settings-gear {
  width: 36px; height: 36px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: var(--ink-mute);
  background: transparent;
  transition: all .2s var(--ease);
}
.settings-gear svg { width: 16px; height: 16px; }
.settings-gear:hover {
  color: var(--flame);
  border-color: var(--flame);
  background: var(--surface);
  transform: rotate(20deg);
}

.settings-card { width: min(560px, 100%); }
.settings-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.settings-label {
  font-family: var(--sans);
  font-size: var(--t-12);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.settings-help {
  font-size: var(--t-12);
  color: var(--ink-mute);
  line-height: 1.45;
}
.settings-radio-row,
.settings-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.settings-radio { position: relative; cursor: pointer; }
.settings-radio input { position: absolute; opacity: 0; pointer-events: none; }
.settings-radio span {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-14);
  transition: all .2s var(--ease);
}
.settings-radio input:checked + span {
  border-color: var(--flame);
  color: var(--flame);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--glow);
}
.settings-chip-row .qs-chip[data-preheat-active="true"] {
  border-color: var(--flame);
  color: var(--flame);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--glow);
}
.settings-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-16);
  transition: border-color .2s var(--ease);
}
.settings-select:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 4px var(--glow);
}

/* badge under temp readout when non-default settings apply */
.oven-settings-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  align-self: center;
  margin-top: var(--s-3);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.oven-settings-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--flame);
  box-shadow: 0 0 6px var(--glow-strong);
}

/* "More…" / browse-presets chip — same shape, dashed border to read as a launcher */
.qs-chip-more {
  border-style: dashed;
  color: var(--flame);
  border-color: var(--border-hi);
}
.qs-chip-more:hover {
  border-style: solid;
  background: var(--surface);
}

/* =========================================================
   PRESETS BROWSER MODAL
   ========================================================= */
.presets-card {
  width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  max-height: min(80vh, 720px);
  padding: var(--s-6) var(--s-5) var(--s-5);
}
.presets-search-row { margin-bottom: var(--s-3); }
.presets-search {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: var(--s-3) var(--s-5);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-16);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.presets-search:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 4px var(--glow);
}
.presets-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
  max-height: 88px;
  overflow-y: auto;
  padding-bottom: var(--s-1);
}
.presets-cat {
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-mute);
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-12);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.presets-cat:hover { color: var(--ink); border-color: var(--border-hi); }
.presets-cat[aria-selected="true"] {
  border-color: var(--flame);
  color: var(--flame);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--glow);
}
.presets-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-right: var(--s-1);
  margin-top: var(--s-2);
}
.preset-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: left;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.preset-row:hover {
  border-color: var(--flame);
  background: var(--surface-2);
  transform: translateY(-1px);
}
.preset-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t-14);
  color: var(--ink);
}
.preset-cat {
  font-family: var(--sans);
  font-size: var(--t-12);
  color: var(--ink-mute);
  margin-top: 2px;
}
.preset-stats {
  font-family: var(--mono);
  font-size: var(--t-12);
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.preset-add {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--t-12);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--flame);
  white-space: nowrap;
}
.presets-empty {
  text-align: center;
  color: var(--ink-mute);
  padding: var(--s-6);
  font-size: var(--t-14);
}

/* convection auto-detect banner — info flavor */
.compat-info {
  background: rgba(127, 203, 127, 0.08);
  border-color: rgba(127, 203, 127, 0.45);
  color: var(--ink);
  align-items: center;
  flex-wrap: wrap;
}
.compat-info .compat-icon { background: var(--success); color: var(--bg); }
.compat-info .compat-action {
  margin-left: auto;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--flame) 0%, var(--flame-deep) 100%);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--t-12);
  letter-spacing: 0.04em;
}
.compat-info .compat-action:hover {
  box-shadow: 0 6px 20px -4px var(--glow-strong);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}
