/* Simmour recipe demo pages — matches the live app's design language */

:root {
  --paper: #FFFFFF;
  --panel: #FFFFFF;
  --panel2: #FAFAFA;
  --ink: #111111;
  --ash: #767676;
  --faint: #8A8A8A;
  --line: #909090;
  --flame: #FF5A36;
  --flame-text: #E32900;
  --flame-bg: #FFF1EC;
  --steam: #0F9D6E;
  --steam-text: #0C815A;
  --steam-bg: #E9F9F2;
  --butter: #B8860B;
  --butter-text: #966D09;
  --butter-bg: #FBF3DE;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ---- site header ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.logo-word { display: inline-flex; align-items: baseline; font-size: 20px; font-weight: 800; letter-spacing: -.6px; }
.coming-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  background: var(--flame-bg);
  color: var(--flame-text);
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---- demo notice ---- */
.demo-notice {
  background: var(--steam-bg);
  border-bottom: 1px solid var(--steam);
  padding: 18px 20px;
}
.demo-notice-inner {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.demo-badge {
  display: inline-block;
  background: var(--steam);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.demo-notice-body { flex: 1; min-width: 200px; }
.demo-notice-body p {
  font-size: 14px;
  color: var(--steam-text);
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 5px;
}
.demo-notice-body .demo-hint {
  font-size: 12.5px;
  color: var(--steam-text);
  opacity: .75;
  margin: 0;
}
.demo-notice a { font-size: 13px; font-weight: 700; color: var(--steam-text); text-decoration: none; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.demo-notice a:hover { text-decoration: underline; }

/* ---- app shell ---- */
.app-shell { max-width: 940px; margin: 0 auto; padding: 22px 16px 64px; }

/* ---- title row ---- */
.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.title-row h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.4px;
  line-height: 1.2;
  margin-bottom: 4px;
}
.title-row .meta { font-size: 13px; color: var(--ash); }
.title-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* ---- buttons ---- */
.btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: opacity .1s;
}
.btn-ghost {
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--ink);
}
/* ---- live teaser card ---- */
.live-teaser {
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.live-teaser-icon {
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--flame);
  white-space: nowrap;
}
.live-pulse {
  width: 9px; height: 9px;
  border-radius: 9px;
  background: var(--flame);
  display: inline-block;
  flex-shrink: 0;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}
.live-teaser-body { flex: 1; min-width: 180px; }
.live-teaser-body p {
  font-size: 14px;
  line-height: 1.55;
  opacity: .85;
  margin: 0;
}
.live-teaser-body strong { opacity: 1; color: #fff; font-weight: 700; }

/* ---- time control ---- */
.time-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.mode-toggle {
  display: inline-flex;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}
.mode-btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 6px 13px;
  font-weight: 600;
  font-size: 13px;
  transition: background .1s, color .1s;
}
.mode-btn.active { background: var(--ink); color: #fff; }
.mode-btn:not(.active) { background: transparent; color: var(--ash); }

input[type="time"] {
  font-family: inherit;
  font-size: 15px;
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--ink);
}

.time-hint { font-size: 13px; color: var(--ash); }
.time-hint b { color: var(--flame-text); font-weight: 600; }

/* ---- tabs ---- */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 16px;
  /* Equal-width tabs when there's room; scrolls instead of squeezing/wrapping
     labels on narrow phones where 4 tabs won't fit at a readable size. */
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1 0 auto;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 9px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 14.5px;
  transition: background .1s, color .1s;
}
.tab-btn[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-btn[aria-selected="false"] { background: transparent; color: var(--ash); }

/* ---- legend ---- */
.legend {
  margin-bottom: 16px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 15px;
}
.legend > summary {
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px 18px;
  margin-top: 12px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
}
.lsw {
  width: 12px; height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
  display: inline-block;
}
.legend-note {
  font-size: 13px;
  color: var(--ash);
  margin-top: 11px;
  line-height: 1.5;
}
.legend-note a { color: var(--steam-text); }

/* ---- step explain button ---- */
.step-explain-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px; height: 21px;
  border-radius: 11px;
  border: 1.5px solid var(--steam);
  background: var(--paper);
  color: var(--steam-text);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
  transition: background .1s;
}
.step-explain-btn:hover { background: var(--steam-bg); }

/* ---- step explain panel ---- */
.step-explain-panel {
  margin-top: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}

/* ---- section headings ---- */
.section-heading {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ash);
  font-weight: 700;
  margin: 26px 4px 12px;
  text-transform: uppercase;
}

/* ---- mise en place card ---- */
.mise-card {
  background: var(--steam-bg);
  border: 1px solid var(--steam);
  border-radius: 16px;
  padding: 13px 16px;
}
.mise-intro { font-size: 13.5px; color: var(--ash); margin-bottom: 9px; line-height: 1.5; }
.mise-row { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; }
.mise-bullet { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--steam); }
.mise-label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mise-detail { font-size: 13.5px; color: var(--ash); }

/* ---- call sheet ---- */
.call-sheet {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.step-row {
  display: flex;
  gap: 12px;
  padding: 11px 15px;
  border-top: 1px solid var(--line);
}
.step-row:first-child { border-top: none; }
.step-passive { background: rgba(0,0,0,.025); }

.step-left { flex: 0 0 80px; text-align: right; min-width: 0; }
.step-clock { font-size: 14px; font-weight: 700; }
.step-dur { font-size: 11.5px; color: var(--faint); margin-top: 1px; }
.step-equip { font-size: 10.5px; color: var(--ash); margin-top: 3px; }
.step-type-icon { display: flex; justify-content: flex-end; margin-top: 5px; }

.step-bar { flex: 0 0 4px; border-radius: 4px; align-self: stretch; }

.step-body { flex: 1; min-width: 0; }
.step-label { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.step-inputs { font-size: 13.5px; color: var(--ash); margin-top: 3px; }
.step-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ash);
  margin-top: 4px;
}
.step-done {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 5px;
  font-size: 13px;
  color: var(--steam-text);
  line-height: 1.4;
}
.step-done b { font-weight: 600; flex-shrink: 0; }

/* serve row */
.serve-row {
  display: flex;
  gap: 12px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  background: var(--butter-bg);
}
.serve-clock { flex: 0 0 80px; text-align: right; font-size: 14px; font-weight: 700; color: var(--butter-text); }
.serve-bar { flex: 0 0 4px; border-radius: 4px; background: var(--butter); align-self: stretch; }
.serve-body { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; color: var(--ink); }

.tab-footnote { color: var(--faint); font-size: 11.5px; text-align: center; margin-top: 22px; line-height: 1.5; }

/* ---- timeline tab ---- */
.gantt-wrap { padding: 4px 0 16px; }

/* Ruler: tick labels ("6:00 pm") spaced across the top, aligned to where
   the bars themselves start/end (158px = row padding + label + gap;
   12px = row's right padding) so ticks line up with the grid below. */
.gantt-time-row { position: relative; height: 14px; margin-bottom: 4px; }
.gantt-ruler { position: absolute; left: 158px; right: 12px; top: 0; height: 100%; }
.gantt-tick {
  position: absolute; top: 0;
  font-size: 10.5px; font-weight: 600; color: var(--ash);
  white-space: nowrap; transform: translateX(-50%);
}
.gantt-tick.gantt-tick-first { transform: translateX(0); }
.gantt-tick.gantt-tick-last { transform: translateX(-100%); }

.gantt {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
/* Vertical gridlines behind the rows, aligned to the same ticks as the ruler. */
.gantt-grid { position: absolute; left: 158px; right: 12px; top: 0; bottom: 0; pointer-events: none; }
.gantt-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); opacity: .6; }

.gantt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 12px 6px;
  border-top: 1px solid var(--line);
  min-height: 36px;
  position: relative;
}
.gantt-row:first-child { border-top: none; }
.gantt-label {
  flex: 0 0 136px;
  font-size: 12px;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-track { flex: 1; height: 16px; position: relative; }
.gantt-bar {
  position: absolute;
  height: 100%;
  border-radius: 4px;
  top: 0;
  min-width: 2px;
}
/* Start-time label, floated just above its bar. Left-aligned to the bar's
   own start by default; JS adds --end (right-aligned to the bar's own end)
   when that would otherwise overflow the chart's right edge. */
.gantt-bar-time {
  position: absolute; left: 0; top: -13px;
  font-size: 10.5px; font-weight: 700; color: var(--ink);
  white-space: nowrap; line-height: 1;
}
.gantt-bar-time.gantt-bar-time--end { left: auto; right: 0; }

/* ---- utensils tab ---- */
.utensil-group { margin-top: 0; }
.utensil-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.utensil-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}
.utensil-row:first-child { border-top: none; }
.utensil-dot { width: 6px; height: 6px; border-radius: 6px; background: var(--ash); flex-shrink: 0; }

/* ---- CTA ---- */
.cta-bar {
  background: var(--ink);
  color: #fff;
  padding: 52px 20px 48px;
  text-align: center;
}
.cta-eyebrow {
  display: inline-block;
  background: var(--flame);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.cta-bar h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.15;
  margin-bottom: 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-bar .cta-lede {
  font-size: 16px;
  opacity: .72;
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.cta-features {
  list-style: none;
  max-width: 380px;
  margin: 0 auto 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cta-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  opacity: .88;
}
.cta-check {
  color: var(--flame);
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.cta-link {
  display: inline-block;
  background: var(--flame);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 0 -1px rgba(200,64,26,.5);
}
.cta-link:hover { opacity: .9; }
.cta-sub {
  margin-top: 16px !important;
  font-size: 13px !important;
  opacity: .55 !important;
}
.cta-sub a { color: #fff; text-decoration: underline; }
.cta-sub a:hover { opacity: .8; }

/* ---- footer ---- */
footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--faint);
  border-top: 1px solid var(--line);
}
footer a { color: var(--flame); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
