/* ============ TiffinKit — product page ============ */

:root {
  --tk-bg: #0d0a08;
  --saffron: #f2a93b;
  --turmeric: #e8b93b;
  --chilli: #c93b2e;
  --coral: #e0603f;
  --coriander: #5da24a;
  --mint: #7fc98f;
  --lime: #b8d94a;
  --aubergine: #6b4a8a;
  --cream: #f5ead8;
  --copper: #b87333;
  --tk-ink: #f7f2e8;
  --tk-dim: rgba(247, 242, 232, 0.62);
  --tk-faint: rgba(247, 242, 232, 0.38);
  --meal: linear-gradient(100deg, var(--saffron), var(--coral) 55%, var(--chilli));
}

body {
  background: var(--tk-bg);
  color: var(--tk-ink);
}

/* ---------- hero ---------- */

.tk-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#tk-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tk-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 10, 8, 0.8) 0%, rgba(13, 10, 8, 0.45) 36%, rgba(13, 10, 8, 0) 60%);
  pointer-events: none;
}

.tk-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 7rem 0 5rem;
}

.tk-kicker {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tk-faint);
  margin: 0 0 1.6rem;
}

.tk-kicker.with-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.tk-logo {
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(242, 169, 59, 0.25);
}

.tk-title {
  font-size: clamp(2.4rem, 6.4vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 1.4rem;
  max-width: 14ch;
}

.tk-title .saffron {
  background: var(--meal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tk-sub {
  max-width: 46ch;
  color: var(--tk-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  margin: 0 0 1.8rem;
}

.tk-sub em,
.tk-lead em,
.tk-note em {
  color: var(--tk-ink);
  font-style: normal;
}

.tk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 2.2rem;
}

.tk-chip {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tk-dim);
  border: 1px solid rgba(247, 242, 232, 0.16);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  backdrop-filter: blur(6px);
  background: rgba(24, 18, 12, 0.35);
}

.tk-chip.live {
  color: var(--saffron);
  border-color: rgba(242, 169, 59, 0.35);
}

.tk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.tk-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 1px;
  height: 52px;
  background: rgba(247, 242, 232, 0.14);
  overflow: hidden;
  z-index: 2;
}

.tk-scroll::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--saffron);
  animation: tk-drop 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes tk-drop {
  to { top: 110%; }
}

/* ---------- sections ---------- */

.tk-section {
  position: relative;
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: clamp(5rem, 11vh, 8.5rem) 0;
}

.tk-section .kicker {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 1.2rem;
}

.tk-h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 1.4rem;
}

.tk-lead {
  max-width: 56ch;
  color: var(--tk-dim);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.7;
  margin: 0 0 2.4rem;
}

.tk-note {
  margin-top: 1.8rem;
  color: var(--tk-faint);
  font-size: 0.95rem;
  max-width: 56ch;
  line-height: 1.65;
}

/* household parameters */

.param-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.param {
  border: 1px solid rgba(247, 242, 232, 0.09);
  border-radius: 18px;
  padding: 1.4rem 1.2rem;
  background: linear-gradient(165deg, rgba(46, 32, 18, 0.5), rgba(20, 14, 9, 0.35));
  backdrop-filter: blur(10px);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.35s;
}

.param:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 169, 59, 0.28);
}

.param h3 {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--saffron);
}

.param p {
  color: var(--tk-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* bring-any-recipe flow */

.flow {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.flow-node {
  border: 1px solid rgba(247, 242, 232, 0.12);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  background: rgba(24, 18, 12, 0.5);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.flow-node.accent {
  border-color: rgba(242, 169, 59, 0.4);
  background: linear-gradient(160deg, rgba(64, 40, 16, 0.55), rgba(28, 18, 10, 0.4));
}

.flow-glyph {
  color: var(--saffron);
  font-size: 1.1rem;
}

.flow-arrow {
  display: flex;
  gap: 5px;
}

.flow-arrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  opacity: 0.25;
  animation: flow-pulse 1.8s infinite;
}

.flow-arrow i:nth-child(2) { animation-delay: 0.3s; }
.flow-arrow i:nth-child(3) { animation-delay: 0.6s; }

@keyframes flow-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* handoff */

.handoff {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1rem;
}

.ho-role {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--tk-faint);
  margin: 0 0 0.7rem;
}

.ho-card {
  border: 1px solid rgba(247, 242, 232, 0.1);
  border-radius: 16px;
  padding: 1.2rem 1.2rem;
  background: linear-gradient(165deg, rgba(46, 32, 18, 0.55), rgba(20, 14, 9, 0.4));
}

.ho-card.cook {
  border-color: rgba(93, 162, 74, 0.35);
}

.ho-card-title {
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.ho-card-sub {
  color: var(--tk-dim);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.55;
}

.ho-ribbon {
  text-align: center;
  position: relative;
  padding: 1rem 0;
}

.ho-instruction {
  display: inline-block;
  color: var(--tk-dim);
  font-size: 0.92rem;
  animation: ho-dissolve 6s ease-in-out infinite;
}

.ho-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0.8rem 0;
}

.ho-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
  animation: ho-travel 6s ease-in-out infinite;
}

.ho-dots i:nth-child(1) { animation-delay: 0s; }
.ho-dots i:nth-child(2) { animation-delay: 0.25s; }
.ho-dots i:nth-child(3) { animation-delay: 0.5s; }
.ho-dots i:nth-child(4) { animation-delay: 0.75s; }
.ho-dots i:nth-child(5) { animation-delay: 1s; }

.ho-translated {
  display: inline-block;
  color: var(--mint);
  font-size: 0.95rem;
  font-weight: 600;
  animation: ho-appear 6s ease-in-out infinite;
}

@keyframes ho-dissolve {
  0%, 30% { opacity: 1; filter: blur(0); }
  42%, 88% { opacity: 0.12; filter: blur(2px); }
  96%, 100% { opacity: 1; filter: blur(0); }
}

@keyframes ho-travel {
  0%, 25% { opacity: 0.2; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(-4px); }
  65%, 100% { opacity: 0.2; transform: translateY(0); }
}

@keyframes ho-appear {
  0%, 40% { opacity: 0.12; }
  55%, 85% { opacity: 1; }
  95%, 100% { opacity: 0.12; }
}

/* the week */

.week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.day {
  border: 1px solid rgba(247, 242, 232, 0.1);
  border-radius: 16px;
  padding: 1.1rem 0.9rem;
  text-align: center;
  background: linear-gradient(170deg, rgba(46, 32, 18, 0.5), rgba(20, 14, 9, 0.35));
  transition: opacity 0.7s, transform 0.7s, filter 0.7s, border-color 0.7s;
}

.day-name {
  display: block;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tk-faint);
  margin-bottom: 0.5rem;
}

.day-meal {
  font-weight: 600;
  font-size: 0.95rem;
}

.day.wed {
  border-color: rgba(242, 169, 59, 0.4);
}

.day.wed.dissolving {
  opacity: 0.25;
  transform: scale(0.92);
  filter: blur(1.5px);
}

.day.wed.repaired {
  border-color: rgba(93, 162, 74, 0.55);
}

.week-caption {
  margin-top: 1.4rem;
  color: var(--tk-faint);
  font-size: 0.92rem;
  min-height: 1.4em;
  transition: color 0.5s;
}

.week-caption.hot {
  color: var(--saffron);
}

/* shopping */

.shop-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.4rem;
  align-items: center;
  max-width: 820px;
}

.shop-col h3 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tk-faint);
  margin: 0 0 1rem;
}

.shop-col.accent h3 {
  color: var(--saffron);
}

.shop-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(247, 242, 232, 0.07);
  color: var(--tk-ink);
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.shop-list li.have {
  color: var(--tk-faint);
  text-decoration: line-through;
  text-decoration-color: rgba(242, 169, 59, 0.5);
}

.shop-list li.have span {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--coriander);
}

.shop-arrow {
  font-size: 1.6rem;
  color: var(--saffron);
}

.shop-note {
  margin-top: 1rem;
  color: var(--tk-faint);
  font-size: 0.88rem;
}

/* cook mode */

.cook-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
}

.phone {
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 32px;
  padding: 12px;
  background: #12100c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.phone-screen {
  border-radius: 22px;
  background: linear-gradient(170deg, #1c150e, #0f0c08);
  padding: 1.3rem 1.1rem 1.4rem;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.phone-step-no {
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  color: var(--tk-faint);
  margin: 0 0 0.9rem;
}

.phone-img {
  flex: 1;
  border-radius: 14px;
  background:
    radial-gradient(circle at 65% 35%, rgba(242, 169, 59, 0.5), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(93, 162, 74, 0.4), transparent 50%),
    linear-gradient(160deg, #2e2012, #171008);
  margin-bottom: 1rem;
}

.phone-step {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
}

.phone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.phone-chips span {
  font-size: 0.72rem;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  color: var(--tk-dim);
}

.cook-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cook-points li {
  color: var(--tk-dim);
  padding: 0.7rem 0 0.7rem 1.7rem;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.55;
  border-bottom: 1px solid rgba(247, 242, 232, 0.06);
}

.cook-points li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.75rem;
  color: var(--saffron);
  font-size: 0.7rem;
}

/* final */

.tk-final {
  text-align: center;
  padding-bottom: clamp(6rem, 14vh, 10rem);
}

.tk-final .tk-h2 {
  background: var(--meal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.tk-final .tk-lead {
  margin-left: auto;
  margin-right: auto;
}

/* reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* footer */

.tk-footer {
  border-top: 1px solid rgba(247, 242, 232, 0.08);
  padding: 2.4rem 0 2.8rem;
  text-align: center;
  color: var(--tk-faint);
  font-size: 0.85rem;
}

.tk-footer a {
  color: var(--tk-dim);
  text-decoration: none;
}

.tk-footer a:hover {
  color: var(--saffron);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .param-grid { grid-template-columns: repeat(2, 1fr); }
  .handoff { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(5, 1fr); gap: 0.5rem; }
  .day { padding: 0.8rem 0.4rem; }
  .day-meal { font-size: 0.78rem; }
  .cook-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .phone { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .param-grid { grid-template-columns: 1fr; }
  .shop-cols { grid-template-columns: 1fr; }
  .shop-arrow { transform: rotate(90deg); justify-self: center; }
  .tk-hero-inner { padding-top: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .tk-scroll::after, .flow-arrow i, .ho-dots i, .ho-instruction, .ho-translated { animation: none; }
}
