/* ============================================================
   Khawoji — marketing site
   Design: banana-leaf night market. A deliberate single dark
   world (not a light/dark toggle) — evening string-light mood,
   turmeric + chili accents lifted from the spice stall, not a
   generic gradient hero.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,900;1,9..144,600&family=Karla:wght@400;500;700&display=swap');

:root {
  --bg: #16332B;
  --bg-deep: #0E211B;
  --bg-raised: #1F4438;
  --bg-raised-2: #29584A;

  --text: #F6EFDD;
  --text-dim: #B9CFC2;
  --text-faint: #7FA093;

  --turmeric: #F4A907;
  --turmeric-soft: #C98B12;
  --chili: #E85B3F;

  --line: rgba(246, 239, 221, 0.14);
  --line-strong: rgba(246, 239, 221, 0.26);

  --display: "Fraunces", ui-serif, Georgia, serif;
  --body: "Karla", ui-sans-serif, system-ui, sans-serif;

  --container: 1160px;
  --pad: clamp(20px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--turmeric);
  color: #1B1410;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 900;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turmeric);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--turmeric);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--turmeric);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--turmeric);
  color: #1B1410;
}

.btn-primary:hover {
  background: #ffbe2e;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--turmeric);
  color: var(--turmeric);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(22, 51, 43, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--turmeric), var(--chili));
  position: relative;
  flex: none;
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  height: 2px;
  background: rgba(27, 20, 16, 0.55);
  border-radius: 2px;
}

.logo-mark::before { top: 10px; }
.logo-mark::after { top: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--turmeric);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 108px) clamp(64px, 10vw, 130px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 560px;
  background: radial-gradient(60% 60% at 70% 30%, rgba(244, 169, 7, 0.16), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  position: relative;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: 1.04;
  margin-top: 18px;
}

.hero-copy h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--turmeric);
}

.hero-sub {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  gap: 28px;
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-stat strong {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
}

.proof-stat span {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Tiffin illustration ---------- */

.tiffin {
  position: relative;
  width: min(340px, 90%);
  margin-inline: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
}

.tiffin-tier {
  position: relative;
  border-radius: 999px;
  background: linear-gradient(155deg, var(--bg-raised-2), var(--bg-raised));
  border: 1px solid var(--line-strong);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: -18px;
}

.tiffin-tier:first-child {
  margin-top: 0;
}

.tiffin-tier .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--turmeric);
  flex: none;
}

.tiffin-tier .label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.tiffin-tier .sub {
  font-size: 12.5px;
  color: var(--text-faint);
}

.tiffin-tier:nth-child(2) { transform: scale(0.96); }
.tiffin-tier:nth-child(3) { transform: scale(0.92); }

.tiffin-handle {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 30px;
  border: 6px solid var(--turmeric);
  border-bottom: none;
  border-radius: 40px 40px 0 0;
}

/* ---------- Sections ---------- */

section {
  padding-block: clamp(64px, 9vw, 116px);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  margin-top: 16px;
}

.section-head p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--text-dim);
  max-width: 54ch;
}

.section-alt {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}

/* ---------- How it works: literal tiffin stack ---------- */

.stack {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.stack-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px clamp(20px, 4vw, 34px);
  position: relative;
}

.stack-step::before {
  content: "";
  position: absolute;
  left: 52px;
  top: -18px;
  width: 1px;
  height: 18px;
  background: var(--line-strong);
}

.stack-step:first-child::before {
  display: none;
}

.stack-tier {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--turmeric), var(--turmeric-soft));
  color: #1B1410;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  flex: none;
}

.stack-step h3 {
  font-size: 21px;
  font-weight: 900;
}

.stack-step p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 56ch;
}

/* ---------- Tiffin subscription band ---------- */

.tiffin-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.tiffin-band-copy .section-head {
  margin-bottom: 26px;
}

.slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.slot-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.slot-chip .flame {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chili);
}

.pay-later-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.pay-later-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 169, 7, 0.18), transparent 70%);
}

.pay-later-card .eyebrow {
  color: var(--turmeric);
}

.pay-later-card h3 {
  font-size: 26px;
  margin-top: 14px;
}

.pay-later-card p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 15.5px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 26px;
}

.week-grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--bg-raised-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
}

.week-grid span.on {
  background: var(--turmeric);
  color: #1B1410;
  border-color: transparent;
}

/* ---------- Vendor section ---------- */

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.vendor-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}

.vendor-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(244, 169, 7, 0.14);
  color: var(--turmeric);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.vendor-card h3 {
  font-size: 18px;
  font-weight: 900;
}

.vendor-card p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.vendor-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Feature strip ---------- */

.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.feature-item {
  background: var(--bg);
  padding: 28px 24px;
}

.feature-item .num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--turmeric-soft);
  letter-spacing: 0.08em;
}

.feature-item h4 {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 900;
}

.feature-item p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ---------- Final CTA ---------- */

.cta-band {
  background: linear-gradient(155deg, var(--bg-raised), var(--bg-deep));
  border-radius: 32px;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line-strong);
}

.cta-band h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
}

.cta-band p {
  margin-top: 16px;
  color: var(--text-dim);
  max-width: 44ch;
}

.cta-options {
  display: grid;
  gap: 14px;
}

.cta-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: rgba(246, 239, 221, 0.06);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cta-option:hover {
  border-color: var(--turmeric);
  background: rgba(246, 239, 221, 0.1);
}

.cta-option strong {
  display: block;
  font-size: 15px;
}

.cta-option span {
  font-size: 13px;
  color: var(--text-faint);
}

.cta-option .arrow {
  font-size: 20px;
  color: var(--turmeric);
  flex: none;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: 14px;
  max-width: 34ch;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--turmeric);
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Responsive ---------- */

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

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .tiffin {
    margin-top: 20px;
  }

  .tiffin-band {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-proof {
    flex-wrap: wrap;
    row-gap: 18px;
  }

  .stack-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .stack-tier {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}
