:root {
  --orange: #E07B39;
  --orange-dark: #C4652A;
  --orange-light: #FBEBDD;
  --cream: #FFF8F1;
  --white: #FFFFFF;
  --ink: #2B2420;
  --charcoal: #3A322B;
  --gray: #8A8074;
  --border: #EFE3D5;
  --green: #2E8B57;
  --green-light: #E6F4EC;
  --red: #D64545;
  --red-light: #FBEAEA;
  --pink: #C2185B;
  --pink-light: #FCE4EC;
  --blue: #2C6E9E;
  --blue-light: #E7F1F8;
  --shadow-card: 0 4px 18px rgba(43, 36, 32, 0.08);
  --shadow-card-lg: 0 8px 28px rgba(224, 123, 57, 0.16);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.5;
}
img { max-width: 100%; }
button { font-family: inherit; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #1c120a 0%, #3a2314 55%, #1c120a 100%);
  padding: 1.75rem 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -50px; right: -50px; width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224,123,57,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero-emoji {
  position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 72px; opacity: 0.18;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em; color: var(--orange);
  text-transform: uppercase; margin-bottom: 6px;
}
.hero-title {
  font-size: 30px; font-weight: 800; color: white; line-height: 1.15; margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.62); margin-bottom: 1.1rem; line-height: 1.55; }
.hero-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-pill {
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 99px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.14);
}

/* LOVE NOTE (top banner) */
.love-note {
  background: var(--pink-light); border: 1.5px solid rgba(194,24,91,0.18);
  border-radius: 14px; padding: 0.9rem 1.1rem; margin: 1rem 1.25rem 0;
  display: flex; align-items: center; gap: 12px;
}
.love-note-icon { font-size: 22px; flex-shrink: 0; }
.love-note-text { font-size: 14px; color: var(--pink); font-weight: 600; line-height: 1.5; }

/* STICKY BAR (progress + tabs) */
.sticky-bar {
  position: sticky; top: 0; z-index: 100; background: var(--white);
  border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.progress-row {
  display: flex; align-items: center; gap: 10px; padding: 0.65rem 1.25rem 0.5rem;
}
.prog-label { font-size: 12px; font-weight: 700; color: var(--charcoal); white-space: nowrap; }
.prog-track {
  flex: 1; background: var(--border); border-radius: 99px; height: 8px; overflow: hidden;
}
.prog-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), #F0A05C);
  transition: width 0.4s; width: 0%;
}
.prog-pct { font-size: 13px; font-weight: 700; color: var(--orange-dark); white-space: nowrap; }
.active-timer-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 1.25rem 0.5rem; }
.at-chip {
  font-size: 12px; font-weight: 700; color: var(--orange-dark); background: var(--orange-light);
  padding: 4px 10px; border-radius: 99px;
}

/* TABS */
.tabs-row { display: flex; padding: 0 1.25rem; gap: 4px; }
.tab-btn {
  flex: 1; border: none; background: none; padding: 10px 6px 12px;
  font-size: 14px; font-weight: 700; color: var(--gray); cursor: pointer;
  border-bottom: 3px solid transparent; min-height: 44px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.active { color: var(--orange-dark); border-bottom-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* MAIN */
.main { padding: 1.1rem 1.1rem 2rem; max-width: 720px; margin: 0 auto; }

/* SCHEDULE */
.schedule {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-card);
}
.schedule-title { font-size: 13px; font-weight: 700; color: var(--charcoal); margin-bottom: 10px; }
.schedule-row { display: flex; gap: 0; overflow-x: auto; }
.schedule-item { flex: 1; min-width: 92px; text-align: center; padding: 6px; position: relative; }
.schedule-item:not(:last-child)::after {
  content: '→'; position: absolute; right: -4px; top: 50%; transform: translateY(-50%);
  font-size: 15px; color: var(--gray);
}
.schedule-time { font-size: 13px; font-weight: 700; color: var(--orange-dark); }
.schedule-label { font-size: 11.5px; color: var(--gray); margin-top: 2px; }

/* SECTION DIVIDER */
.section-div { display: flex; align-items: center; gap: 10px; margin: 1.5rem 0 10px; }
.section-div-text {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange-dark); white-space: nowrap;
}
.section-div-line { flex: 1; height: 1px; background: var(--border); }

/* STEP CARD (accordion) */
.step-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.step-card.current { border-color: var(--orange); box-shadow: var(--shadow-card-lg); }
.step-card.completed { opacity: 0.6; }

/* Card header (always visible, click to expand/collapse) */
.card-toggle {
  width: 100%; border: none; background: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px; padding: 0.95rem 1.1rem;
  text-align: left; min-height: 44px;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--orange);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  font-weight: 700; color: white; flex-shrink: 0;
}
.step-num.done { background: var(--green); }
.card-toggle-title { flex: 1; min-width: 0; }
.card-title { font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.card-subtitle { font-size: 12.5px; color: var(--gray); margin-top: 2px; }
.card-pill {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap;
  background: var(--cream); color: var(--gray); border: 1px solid var(--border); flex-shrink: 0;
}
.card-pill.done { background: var(--green-light); color: var(--green); border-color: rgba(46,139,87,0.25); }
.chevron {
  width: 24px; height: 24px; flex-shrink: 0; color: var(--gray);
  transition: transform 0.2s; display: flex; align-items: center; justify-content: center;
}
.step-card.expanded .chevron { transform: rotate(180deg); }

/* Card expandable body */
.card-collapse { display: none; }
.step-card.expanded .card-collapse { display: block; }

/* IMAGE GALLERY */
.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #f2ece2; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%; scroll-snap-align: center; position: relative;
}
.gallery-slide img { width: 100%; height: 210px; object-fit: cover; display: block; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
  color: white; font-size: 12.5px; font-weight: 500; padding: 20px 12px 8px;
  line-height: 1.4;
}
.gallery-dots {
  display: flex; justify-content: center; gap: 6px; padding: 8px 0;
  background: #f2ece2; border-bottom: 1px solid var(--border);
}
.gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.gallery-dot.active { background: var(--orange); width: 16px; border-radius: 4px; transition: all 0.2s; }

/* CARD BODY */
.card-body { padding: 1rem 1.1rem; }

/* BADGES */
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sb { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 99px; }
.sb-stove { background: var(--orange-light); color: var(--orange-dark); }
.sb-warn { background: var(--red-light); color: var(--red); }

/* WARN / TIP / CALL BOXES */
.warn-box {
  background: var(--red-light); border-left: 3px solid var(--red); border-radius: 0 10px 10px 0;
  padding: 10px 12px; font-size: 14px; color: var(--red); font-weight: 500; line-height: 1.5;
  margin-bottom: 10px;
}
.tip-box {
  background: var(--orange-light); border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0;
  padding: 10px 12px; font-size: 14px; color: var(--charcoal); line-height: 1.5; margin-bottom: 10px;
}
.call-box {
  background: linear-gradient(135deg, #16321f, #234a2c); border-radius: 14px;
  padding: 1rem 1.1rem; display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.call-box-icon { font-size: 26px; flex-shrink: 0; }
.call-box-text { color: white; font-size: 14px; font-weight: 600; line-height: 1.5; }

/* SUB ITEMS (checklist) */
.sub-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.sub-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px;
  cursor: pointer; background: var(--cream); transition: background 0.1s; min-height: 44px;
}
.sub-item:active { background: #f0e7d8; }
.sub-chk {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border); background: white;
  flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: white; transition: all 0.15s;
}
.sub-chk.on { background: var(--green); border-color: var(--green); }
.sub-text { font-size: 14px; line-height: 1.6; color: #333; }
.sub-text.done { text-decoration: line-through; color: var(--gray); }

/* TIMER */
.timer-box {
  background: var(--cream); border-radius: 12px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px;
}
.t-digits {
  font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 66px; color: var(--ink);
}
.t-digits.done-color { color: var(--green); }
.t-btn {
  font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 99px; border: none;
  cursor: pointer; min-height: 44px;
}
.t-start { background: var(--ink); color: white; }
.t-pause { background: var(--orange); color: white; }
.t-reset {
  background: white; color: var(--gray); border: 1.5px solid var(--border) !important;
  padding: 10px 14px;
}
.t-label { font-size: 12px; color: var(--gray); font-weight: 500; flex-basis: 100%; }

/* LOVE NOTE (inside final step) */
.love-note-card {
  background: var(--pink-light); border: 1.5px solid rgba(194,24,91,0.2); border-radius: 14px;
  padding: 1rem 1.1rem; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 12px;
}
.love-note-card-icon { font-size: 26px; flex-shrink: 0; }
.love-note-card-text { font-size: 14.5px; color: var(--pink); font-weight: 600; line-height: 1.6; }

/* FINISH CARD */
.finish-card {
  background: linear-gradient(135deg, #1c120a, #3a2314); border-radius: 20px; padding: 1.75rem 1.25rem;
  text-align: center; margin-top: 1.25rem; margin-bottom: 1rem;
}
.finish-emoji { font-size: 44px; margin-bottom: 10px; }
.finish-title { font-size: 21px; font-weight: 800; color: white; margin-bottom: 8px; }
.finish-text { font-size: 14px; color: rgba(255,255,255,0.62); line-height: 1.6; }
.finish-love { font-size: 15.5px; color: var(--orange); font-weight: 700; margin-top: 12px; }

/* INGREDIENTS TAB */
.ing-group {
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.1rem; margin-bottom: 1rem; box-shadow: var(--shadow-card);
}
.ing-group-title {
  font-size: 13px; font-weight: 700; color: var(--orange-dark); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 10px;
}
.ing-list { display: flex; flex-direction: column; gap: 8px; }
.ing-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.ing-bullet { color: var(--orange); flex-shrink: 0; font-weight: 700; }

/* TIPS TAB */
.tips-list { display: flex; flex-direction: column; gap: 10px; }
.tip-card {
  background: var(--white); border: 1.5px solid var(--border); border-left: 4px solid var(--orange);
  border-radius: 14px; padding: 0.9rem 1.1rem; box-shadow: var(--shadow-card);
  font-size: 14.5px; line-height: 1.6; color: var(--charcoal);
}
.tip-card-step { font-size: 11.5px; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }

@media (max-width: 380px) {
  .hero-title { font-size: 26px; }
  .t-digits { font-size: 23px; min-width: 58px; }
}
