/* === Pizzaiolo Hjemme · Pizza-kalkulator ===================== */
:root {
  /* Italian-warm palette */
  --bg: #F6EFE0;            /* cream/ivory */
  --bg-elev: #FBF6EA;       /* slightly lighter card */
  --paper: #FFFDF7;
  --ink: #1B140E;           /* near-black brown */
  --ink-soft: #4A3C2E;
  --ink-mute: #7B6B57;
  --line: #E4D7BD;
  --line-strong: #C9B894;
  --burgundy: #8C2A1F;      /* tomato/burgundy accent */
  --burgundy-deep: #6B1F17;
  --olive: #5C6B3A;         /* secondary green */
  --olive-soft: #8AA060;
  --gold: #B68A2E;          /* honey/truffle gold */
  --shadow-sm: 0 1px 0 rgba(27,20,14,.04), 0 1px 2px rgba(27,20,14,.06);
  --shadow-md: 0 6px 20px -8px rgba(27,20,14,.18), 0 2px 6px rgba(27,20,14,.06);
  --shadow-lg: 0 18px 40px -16px rgba(27,20,14,.22), 0 4px 10px rgba(27,20,14,.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 600px at 85% -10%, #F9E9C8 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 20%, #F2E0B8 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* === Header ================================================== */
.site-header {
  padding: 28px 0 8px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--burgundy);
}
.logo-mark { color: var(--burgundy); flex-shrink: 0; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-dot { color: var(--burgundy); margin: 0 4px; }
.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
}

/* === Hero ==================================================== */
.hero {
  padding: 32px 0 12px;
  max-width: 820px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero .accent {
  color: var(--burgundy);
  font-style: italic;
  font-weight: 500;
}
.lede {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0;
}

/* === Panels ================================================== */
.panel {
  margin: 36px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  margin-bottom: 18px;
}
.panel-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--ink);
}
.panel-sub {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
}

/* === Ingredient categories =================================== */
.categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.category {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.category:first-child { border-top: 0; padding-top: 4px; }
.category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.category-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--ink);
}
.category-title .truffle-note {
  font-family: var(--font-body);
  font-size: 12px;
  font-style: italic;
  color: var(--olive);
  font-weight: 400;
  margin-left: 8px;
  letter-spacing: 0;
}
.category-actions {
  display: inline-flex;
  gap: 8px;
}
.mini-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .15s ease;
}
.mini-btn:hover {
  background: var(--bg-elev);
  border-color: var(--line-strong);
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip .chip-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  flex-shrink: 0;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chip:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.chip.is-checked {
  background: #FBE9DE;
  border-color: var(--burgundy);
  color: var(--burgundy-deep);
  font-weight: 500;
}
.chip.is-checked .chip-dot {
  background: var(--burgundy);
  border-color: var(--burgundy);
}
.chip.is-checked .chip-dot::after {
  content: "";
  width: 5px;
  height: 9px;
  border-right: 2px solid #FFFDF7;
  border-bottom: 2px solid #FFFDF7;
  transform: rotate(45deg) translate(-1px, -1px);
}
.chip:focus-within {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

/* === Profile options ========================================= */
.profiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.profile-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all .15s ease;
}
.profile-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.profile-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.profile-card.is-checked {
  background: #F4EDD9;
  border-color: var(--olive);
  box-shadow: 0 0 0 2px rgba(92,107,58,.15);
}
.profile-card:focus-within {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}
.profile-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 4px;
}
.profile-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.45;
}

/* === CTA ===================================================== */
.cta-panel {
  background: linear-gradient(135deg, #FFFDF7 0%, #F8EDD3 100%);
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
  letter-spacing: 0.005em;
}
.btn-primary {
  background: var(--burgundy);
  color: #FFFDF7;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--burgundy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}
.selection-count {
  color: var(--ink-mute);
  font-size: 13px;
  font-style: italic;
}

/* === Results ================================================= */
.results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 24px 0 60px;
}
@media (min-width: 900px) {
  .results { grid-template-columns: repeat(3, 1fr); }
}
.results:empty { display: none; }

.recipe-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.recipe-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--burgundy) 0%, var(--gold) 50%, var(--olive) 100%);
}
.recipe-head { margin-bottom: 14px; }
.recipe-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 8px;
}
.recipe-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.15;
}
.recipe-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.recipe-meta {
  margin: 14px 0 6px;
  padding: 12px 14px;
  background: var(--bg-elev);
  border-radius: var(--radius-md);
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.meta-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
}
.meta-label {
  font-weight: 600;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.meta-base, .meta-bake, .meta-truffle { color: var(--ink); }

.recipe-section { margin-top: 14px; }
.recipe-section h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 8px;
  font-weight: 600;
}
.recipe-ingredients,
.recipe-steps {
  margin: 0;
  padding-left: 20px;
}
.recipe-ingredients li,
.recipe-steps li {
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.recipe-ingredients { list-style: none; padding-left: 0; }
.recipe-ingredients li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.recipe-ingredients li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--burgundy);
}
.recipe-ingredients li strong {
  color: var(--ink);
  font-weight: 600;
}

.recipe-tip {
  margin-top: 16px;
  padding: 12px 14px;
  background: #FBF1DE;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}
.tip-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.tip-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-style: italic;
}

/* === Empty state / messages ================================== */
.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 24px;
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-soft);
}
.empty-msg h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 20px;
}
.empty-msg p { margin: 0; font-size: 14.5px; }

/* === Bake calculator ========================================= */
.bake-panel { background: var(--paper); }
.bake-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 880px) {
  .bake-grid { grid-template-columns: 1.15fr 1fr; gap: 32px; }
}
.bake-controls { display: grid; gap: 22px; }
.bake-field { display: flex; flex-direction: column; gap: 8px; }
.bake-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.bake-field label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.bake-output {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--burgundy-deep);
  letter-spacing: -0.01em;
}
.bake-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--burgundy) 100%);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
  opacity: 0.95;
  border: 1px solid var(--line);
}
.bake-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--burgundy);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: transform .15s ease;
}
.bake-field input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.bake-field input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--burgundy);
  cursor: grab;
}
.bake-field input[type="range"]:focus { outline: 2px solid var(--burgundy); outline-offset: 4px; }
.bake-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  padding: 0 2px;
}
.oven-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 520px) {
  .oven-options { grid-template-columns: repeat(4, 1fr); }
}
.oven-option {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.oven-option input { position: absolute; opacity: 0; pointer-events: none; }
.oven-option:hover { border-color: var(--line-strong); color: var(--ink); }
.oven-option.is-checked {
  background: #FBE9DE;
  border-color: var(--burgundy);
  color: var(--burgundy-deep);
  font-weight: 600;
}
.oven-option:focus-within { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.oven-option-title { display: block; font-weight: 600; }
.oven-option-sub { display: block; font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.oven-option.is-checked .oven-option-sub { color: var(--burgundy); opacity: 0.8; }

.bake-readout {
  background: linear-gradient(160deg, #2A1F18 0%, #3D2A1E 100%);
  color: #F4E9D4;
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-md);
}
.readout-time {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(244,233,212,0.15);
}
.readout-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.readout-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #FBF6EA;
}
.readout-sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #C9B894;
  font-style: italic;
}
.readout-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.readout-stats li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 13.5px;
}
.readout-stats li span {
  color: #B8A685;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.readout-stats li strong {
  color: #FBF6EA;
  font-weight: 500;
}
.readout-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: #D6C39E;
  line-height: 1.5;
  font-style: italic;
  border-top: 1px solid rgba(244,233,212,0.12);
  padding-top: 12px;
}

@media (max-width: 640px) {
  .bake-readout { padding: 20px 18px; }
  .readout-stats li { grid-template-columns: 110px 1fr; gap: 8px; }
}

/* === Tip panel =============================================== */
.tip-panel {
  margin: 24px 0 40px;
  padding: 22px 26px;
  background: #2A1F18;
  color: #F4E9D4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.tip-panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--gold);
}
.tip-panel p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #E8D9BC;
}

/* === Footer ================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  margin-top: 20px;
  background: transparent;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.muted { color: var(--ink-mute); }

.footer-version {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--burgundy);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  border-radius: 4px;
}
.footer-link:hover { color: var(--burgundy-deep); }
.footer-link:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.footer-link.is-busy { opacity: 0.6; cursor: progress; }

.update-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--burgundy);
  color: #FBF6EA;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-size: 14px;
}
.update-banner[hidden] { display: none; }
.update-banner-text { font-weight: 600; }
.update-banner-btn {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  white-space: nowrap;
}
@media (min-width: 720px) {
  .update-banner { left: auto; right: 20px; bottom: 20px; max-width: 380px; }
}

/* === Responsive ============================================== */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .panel { padding: 22px 18px 20px; margin: 24px 0; border-radius: 18px; }
  .hero { padding: 20px 0 6px; }
  .hero h1 { font-size: 30px; }
  .lede { font-size: 15.5px; }
  .cta-row { gap: 10px; }
  .btn { width: 100%; }
  .btn-ghost { order: 2; }
  .selection-count { order: 3; }
  .recipe-card { padding: 22px 20px 20px; }
  .recipe-name { font-size: 20px; }
  .meta-row { grid-template-columns: 84px 1fr; }
}
.meta-row[hidden] { display: none !important; }

/* === Install button (header) ================================ */
.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  background: var(--burgundy);
  border: 1px solid var(--burgundy-deep);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  min-height: 44px;
  transition: background .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.install-btn:hover { background: var(--burgundy-deep); }
.install-btn:active { transform: translateY(1px); }
.install-btn svg { stroke-width: 2; }

/* === Modal (install instructions) ============================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 720px) {
  .modal { align-items: center; padding: 24px; }
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 20, 14, 0.55);
  backdrop-filter: blur(2px);
  animation: fadeIn .2s ease;
}
.modal-card {
  position: relative;
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  padding: 28px 22px 24px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(27, 20, 14, .25);
  animation: slideUp .25s cubic-bezier(.2,.8,.2,1);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
@media (min-width: 720px) {
  .modal-card {
    border-radius: 22px;
    padding: 32px 32px 28px;
    animation: scaleIn .2s ease;
  }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-elev);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.modal-icon img { width: 100%; height: 100%; display: block; }
.modal-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-right: 40px;
}
.modal-lede {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 15px;
}
.install-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.install-tab {
  flex: 1;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--ink-mute);
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s ease;
}
.install-tab.is-active {
  background: var(--burgundy);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}
.install-panel[hidden] { display: none; }
.install-steps {
  margin: 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.install-steps li { padding-left: 4px; }
.install-steps strong { color: var(--ink); font-weight: 600; }
.inline-icon {
  display: inline-block;
  vertical-align: -3px;
  color: var(--burgundy);
  margin: 0 2px;
}
.modal-hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
  background: var(--bg-elev);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.modal-foot {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* === Topppizza detalj-modal === */
.top-pizza-modal-card { padding-top: 32px; }
.top-pizza-modal-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: rgba(140, 42, 31, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.top-pizza-modal-tag:empty { display: none; }
.top-pizza-modal-meta {
  display: grid;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: 0 0 20px;
}
.top-pizza-meta-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
}
.top-pizza-meta-label {
  flex: 0 0 70px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.top-pizza-modal-section { margin: 0 0 18px; }
.top-pizza-modal-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.top-pizza-modal-section ul,
.top-pizza-modal-section ol {
  margin: 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.top-pizza-modal-section li { padding-left: 4px; }
.top-pizza-modal-tip {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: rgba(193, 138, 56, 0.10);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
}
.top-pizza-modal-tip[hidden] { display: none; }
.top-pizza-tip-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.top-pizza-modal-tip p {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}

/* === Sticky CTA (mobile only, when generate button is off-screen) === */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(246, 239, 224, 0.96) 60%, rgba(246, 239, 224, 0));
  display: none;
  pointer-events: none;
}
.sticky-cta.is-visible {
  display: block;
  pointer-events: auto;
  animation: stickySlideUp .25s ease;
}
.sticky-cta-btn {
  width: 100%;
  min-height: 52px;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(140, 42, 31, .35);
}
@keyframes stickySlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* Hide sticky CTA on tablet+ (the in-page button is always visible enough) */
@media (min-width: 720px) {
  .sticky-cta { display: none !important; }
}

/* På mobil: pad bunnen på Lag pizza- og oppskriftspanelene så sticky CTA ikke dølger siste innhold */
@media (max-width: 719px) {
  #panel-lag,
  #panel-oppskrifter {
    padding-bottom: 96px;
  }
}

/* Accordion head: jevn fordeling av tittel + badge + chevron */
.accordion-head-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.category-count {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(140, 42, 31, 0.10);
  color: var(--burgundy-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* === Mobile touch-target & typography pass =================== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { padding: 18px 0 4px; }
  .logo-text { font-size: 18px; }
  .logo-mark { width: 36px; height: 36px; }
  .install-btn {
    font-size: 13px;
    padding: 9px 12px;
    gap: 6px;
  }
  .install-btn span { display: none; }   /* on tightest mobile, just icon */
  .install-btn::after { content: "App"; font-size: 13px; }
}
@media (min-width: 380px) and (max-width: 640px) {
  .install-btn span { display: inline; }
  .install-btn::after { display: none; }
}

@media (max-width: 640px) {
  /* Larger touch targets on chips */
  .chip {
    min-height: 44px;
    padding: 11px 16px 11px 14px;
    font-size: 14.5px;
  }
  .chip .chip-dot { width: 18px; height: 18px; }

  /* Bigger mini-btns (velg alle / nullstill) */
  .mini-btn {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Profile cards stack & touch-friendly */
  .profiles { grid-template-columns: 1fr !important; gap: 10px; }
  .profile-card {
    min-height: 64px;
    padding: 14px 16px;
  }

  /* Primary CTA larger on mobile */
  .btn { min-height: 52px; font-size: 16px; }
  .btn-ghost { min-height: 48px; }

  /* Bake controls bigger sliders */
  .bake-field input[type="range"] { height: 8px; }
  .bake-field input[type="range"]::-webkit-slider-thumb {
    width: 28px; height: 28px;
  }
  .bake-field input[type="range"]::-moz-range-thumb {
    width: 28px; height: 28px;
  }

  /* Oven option chips */
  .oven-option { min-height: 56px; padding: 10px 8px; }
  .oven-options { gap: 6px; }

  /* Footer stacks */
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }

  /* Leave room for sticky CTA */
  main.container { padding-bottom: 90px; }
}

/* Lock body scroll when modal open */
body.modal-open { overflow: hidden; }

/* Standalone-mode tweaks (when installed as PWA) */
@media (display-mode: standalone) {
  .install-btn { display: none; }
  body { padding-top: env(safe-area-inset-top); }
}

/* === Tabbed navigation ======================================= */
.tabs-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 239, 224, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.tabs-row {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 16px;
  -webkit-overflow-scrolling: touch;
}
.tabs-row::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 10px 16px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-mute);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); background: var(--bg-elev); }
.tab.is-active {
  background: var(--burgundy);
  color: var(--paper);
  border-color: var(--burgundy-deep);
}
.tab svg { color: currentColor; opacity: 0.95; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-main { padding-top: 8px; }
.hero-compact { padding: 24px 0 12px; }
.hero-compact h1 {
  font-size: clamp(28px, 5vw, 40px);
  margin: 0 0 8px;
}

/* === Pizza type chips (Oppskrifter step 1) ==================== */
.type-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 720px) {
  .type-chips { grid-template-columns: repeat(4, 1fr); }
}
.type-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  min-height: 64px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  transition: all .15s ease;
}
.type-chip:hover { border-color: var(--line-strong); }
.type-chip.is-checked {
  background: #FBE9DE;
  border-color: var(--burgundy);
  color: var(--burgundy-deep);
}
.type-chip-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}
.type-chip.is-checked .type-chip-title { color: var(--burgundy-deep); }
.type-chip-sub {
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.3;
}

/* === Ingredients toolbar (search + counter) =================== */
.ing-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
}
@media (min-width: 600px) {
  .ing-toolbar { flex-direction: row; align-items: center; }
}
.ing-search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.ing-search > svg:first-child {
  position: absolute;
  left: 14px;
  color: var(--ink-mute);
  pointer-events: none;
}
.ing-search input {
  width: 100%;
  padding: 14px 44px 14px 42px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ing-search input:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(140, 42, 31, 0.12);
}
.ing-search input::-webkit-search-cancel-button { display: none; }
.ing-search-clear {
  position: absolute;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-elev);
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ing-count-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.ing-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--burgundy);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  min-height: 36px;
}

/* === Quick picks ============================================= */
.quick-picks {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.quick-picks-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 8px;
}
.quick-picks-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  min-height: 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s ease;
}
.quick-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.quick-chip.is-checked {
  background: var(--burgundy);
  color: var(--paper);
  border-color: var(--burgundy-deep);
}

/* === Accordion categories ==================================== */
.accordions { display: grid; gap: 10px; }
.accordions .category {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0;
}
.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
}
.accordion-head:hover { background: var(--bg-elev); }
.accordion-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}
.accordion-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--burgundy);
  background: #FBE9DE;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.accordion-count.is-empty { background: var(--bg-elev); color: var(--ink-mute); }
.accordion-chevron {
  color: var(--ink-mute);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.category.is-open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
  display: none;
}
.category.is-open .accordion-body { display: block; padding-top: 14px; }
.accordion-actions {
  display: flex;
  gap: 6px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}
.accordion-actions .mini-btn { font-size: 12px; padding: 6px 12px; min-height: 32px; }
.accordion-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: italic;
}

/* When ingredient search is active, hide non-matching chips */
.chip.is-hidden { display: none; }
.category.is-empty-search { display: none; }

/* === Top pizzas list ========================================= */
.top-pizzas {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .top-pizzas { grid-template-columns: 1fr 1fr; }
}
.top-pizza-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.top-pizza-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.top-pizza-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
  background: #FBE9DE;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.top-pizza-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.top-pizza-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.top-pizza-ings {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.top-pizza-ings strong { color: var(--ink-soft); font-weight: 600; }
.top-pizza-card .btn {
  margin-top: auto;
  align-self: flex-start;
  font-size: 14px;
  padding: 12px 22px;
  min-height: 44px;
}

/* === Dough guide ============================================= */
.dough-list { display: grid; gap: 12px; }
.dough-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.dough-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  min-height: 60px;
}
.dough-head:hover { background: var(--bg-elev); }
.dough-time {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--burgundy);
  color: var(--paper);
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
}
.dough-head-text { flex: 1; }
.dough-head-text h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.dough-head-text p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}
.dough-card.is-open .accordion-chevron { transform: rotate(180deg); }
.dough-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
  display: none;
}
.dough-card.is-open .dough-body { display: block; padding-top: 14px; }
.dough-section { margin: 0 0 14px; }
.dough-section:last-child { margin: 0; }
.dough-section h4 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.dough-section p, .dough-section ol, .dough-section ul {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.dough-section ol, .dough-section ul { padding-left: 22px; display: grid; gap: 4px; }
.dough-table {
  margin: 0;
  font-size: 13px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  color: var(--ink-soft);
}
.dough-table dt {
  font-weight: 600;
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dough-table dd { margin: 0; color: var(--ink-soft); }

.info-panel {
  margin: 28px 0 40px;
  padding: 24px;
  background: #FBE9DE;
  border: 1px solid #E8C7B6;
  border-radius: var(--radius-md);
}
.info-panel h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--burgundy-deep);
}
.info-panel h3 + p { margin: 0 0 16px; }
.info-panel p:last-child { margin: 0; }
.info-panel p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* === Tips grid =============================================== */
.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .tips-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .tips-grid { grid-template-columns: 1fr 1fr 1fr; } }
.tip-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tip-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FBE9DE;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px;
}
.tip-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tip-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* === Timer button + toast ==================================== */
.timer-btn {
  margin: 0 0 6px;
  align-self: stretch;
  padding: 10px 18px;
  min-height: 40px;
  background: transparent;
  border: 1px solid rgba(244,233,212,0.35);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .15s ease;
}
.timer-btn:hover { border-color: var(--gold); color: #FBF6EA; }
.timer-btn.is-running { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.timer-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ink);
  color: #FBF6EA;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(27, 20, 14, 0.4);
  animation: fadeUp .25s ease;
}
@media (min-width: 720px) { .timer-toast { bottom: 28px; } }
.timer-toast[hidden] { display: none; }
.timer-toast-time {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.timer-toast-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.timer-toast.is-done {
  background: var(--burgundy);
  animation: pulseDone 1.2s ease-in-out infinite;
}
.timer-toast.is-done .timer-toast-label { color: var(--gold); }
@keyframes pulseDone {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.04); }
}
.timer-toast-stop {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(244,233,212,0.2);
  background: transparent;
  color: #FBF6EA;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.timer-toast-stop:hover { background: rgba(244,233,212,0.1); }

/* === Adjust sticky CTA position when timer-toast is visible === */
.timer-toast:not([hidden]) ~ .sticky-cta { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }

/* === Make hero1 a bit lighter on mobile (give tabs room) ===== */
@media (max-width: 640px) {
  .hero { padding: 16px 0 18px; }
  .hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .lede { font-size: 15.5px; }
  .panel-head h2 { font-size: 19px; }
  .tab { padding: 8px 14px; font-size: 13.5px; min-height: 42px; }
  .tab svg { width: 18px; height: 18px; }
  .tabs-row { padding: 6px 12px; }
}
