/*
 * Kukruma landing page (apex kukruma.com) — issue #105.
 *
 * Plain static site, no build step. Brand token VALUES below are mirrored from
 * the app's `theme/tokens.ts` (dark palette) — the source of truth. They are
 * stable brand constants; we copy the values rather than import the RN theme
 * runtime so this page stays fully decoupled from the app's build/release.
 * If the brand palette ever changes in tokens.ts, update the :root vars here.
 */

:root {
  /* Surfaces (dark theme) */
  --bg: #1b1813;
  --bg-section: #211d18;
  --surface: #26221c;
  --surface-2: #2c2721;
  --sunken: #18140f;
  --border: rgba(244, 236, 221, 0.09);
  --border-strong: rgba(244, 236, 221, 0.16);

  /* Text */
  --text: #f4ecdd;
  --text-muted: #b0a48f;
  --text-dim: #8a7d6a;

  /* Brand turmeric */
  --accent: #eeb13c;
  --accent-strong: #e6a028;
  --accent-ink: #211d18; /* dark ink on turmeric fills */
  --accent-subtle: #3a2e18;

  /* App (light) palette — used only inside the phone mockups */
  --app-bg: #faf3e8;
  --app-elevated: #fffcf6;
  --app-sunken: #f1e7d5;
  --app-border: #e7d9c4;
  --app-text: #26221d;
  --app-muted: #6f6253;
  --app-accent: #e6a028;

  /* Folder pastels (light tiles, dark ink) */
  --butter-bg: #fbefc9;   --butter-text: #7c5a10;
  --sage-bg: #deebd0;     --sage-text: #3f6b2f;
  --rose-bg: #f7dde4;     --rose-text: #9c2f46;
  --sky-bg: #d7eaef;      --sky-text: #1f5f6b;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --maxw: 1120px;

  --font-display: "Nunito", system-ui, sans-serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
}

/* --- Fonts (self-hosted, variable) --- */
@font-face {
  font-family: "Nunito";
  src: url("./assets/fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("./assets/fonts/SourceSans3-Variable.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }

a { color: inherit; }

img, svg { display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius); transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(27, 24, 19, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 26px; width: auto; }
.header-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 3px; gap: 2px;
}
.lang-btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  color: var(--text-muted); background: transparent;
  padding: 5px 11px; border-radius: 10px; line-height: 1;
}
.lang-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: 15px;
  border-radius: var(--radius); border: 1px solid transparent;
  padding: 11px 18px; cursor: pointer; text-decoration: none;
  transition: transform 0.08s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { font-size: 17px; padding: 16px 28px; }
.btn .icon { width: 18px; height: 18px; }

/* --- Hero --- */
.hero { padding: 64px 0 40px; }
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
/* Let grid items shrink below the phone mockup's intrinsic width (avoids the
 * fixed-width phone forcing the track wider than the viewport on narrow screens). */
.hero-copy, .hero-art, .ai-copy, .ai-art { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-subtle); color: var(--accent);
  font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 900; }
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  color: var(--text-muted); font-size: 18px; line-height: 1.55;
  margin: 22px 0 28px; max-width: 40ch;
}
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 18px; color: var(--text-dim);
  cursor: not-allowed; opacity: 0.78;
}
.store-badge .glyph { width: 24px; height: 24px; flex: none; }
.store-badge .store-label { line-height: 1.15; text-align: left; }
.store-badge .store-label small { display: block; font-size: 11px; color: var(--text-dim); }
.store-badge .store-label strong { font-size: 16px; font-weight: 800; color: var(--text-muted); }
.soon-ribbon {
  position: absolute; top: -9px; right: -8px;
  background: var(--accent-subtle); color: var(--accent);
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}
.hero-note { margin-top: 22px; color: var(--text-muted); font-size: 15px; }
.hero-note a { color: var(--accent); font-weight: 700; text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }

/* --- Phone mockup --- */
/* Phone mockup: cream screen inside a thin, light bezel so the frame reads
 * clearly against the dark page (a light warm frame, not a dark one). */
.phone {
  width: min(340px, 100%);
  background: #d9cbb4; border-radius: 48px; padding: 5px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(244, 236, 221, 0.22);
  margin: 0 auto;
}
.phone-screen {
  background: var(--app-bg); border-radius: 44px; overflow: hidden;
  color: var(--app-text); font-size: 13px;
}
.phone-statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 4px; font-size: 13px; font-weight: 700; color: var(--app-text);
}
.phone-statusbar .pill { width: 34px; height: 12px; border-radius: 6px; background: var(--app-sunken); }
.phone-body { padding: 8px 16px 18px; }
.phone-titlerow { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 12px; }
.phone-wordmark { height: 18px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #fbeac8; display: grid; place-items: center; color: var(--accent-strong); }
.avatar svg { width: 18px; height: 18px; }
.app-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--app-elevated); border: 1px solid var(--app-border);
  border-radius: 12px; padding: 9px 12px; color: var(--app-muted); margin-bottom: 14px;
}
.app-search svg { width: 16px; height: 16px; }
.app-h { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 9px; }
.app-h h4 { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--app-text); }
.app-h .link { color: var(--accent-strong); font-size: 12px; font-weight: 700; }
.folder-grid-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.folder-mini { border-radius: 13px; padding: 11px 12px; }
.folder-mini svg { width: 17px; height: 17px; margin-bottom: 16px; }
.folder-mini .name { font-weight: 800; font-size: 13px; }
.folder-mini .count { font-size: 11px; opacity: 0.82; }
.fm-butter { background: var(--butter-bg); color: var(--butter-text); }
.fm-sage { background: var(--sage-bg); color: var(--sage-text); }
.fm-rose { background: var(--rose-bg); color: var(--rose-text); }
.fm-sky { background: var(--sky-bg); color: var(--sky-text); }
.recipe-row {
  display: flex; align-items: center; gap: 11px;
  background: var(--app-elevated); border: 1px solid var(--app-border);
  border-radius: 14px; padding: 9px 11px; margin-bottom: 9px;
}
.recipe-thumb { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.recipe-thumb svg { width: 20px; height: 20px; }
.recipe-row .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.recipe-row .meta .t { font-weight: 800; font-size: 13px; color: var(--app-text); }
.recipe-row .rmeta { display: flex; align-items: center; gap: 9px; color: var(--app-muted); font-size: 11px; }
.recipe-row .rmeta .hats svg { width: 12px; height: 12px; }
.recipe-row .chev { color: var(--app-muted); }
.recipe-row .chev svg { width: 16px; height: 16px; }

/* Mini bottom action bar in mockup */
.app-tabbar {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between;
  border-top: 1px solid var(--app-border); padding: 12px 28px 6px; margin-top: 6px;
}
.app-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #9a8d7a; font-size: 11px; font-weight: 700; }
.app-tab svg { width: 18px; height: 18px; }
.app-fab {
  position: absolute; left: 50%; top: -22px; transform: translateX(-50%);
  width: 50px; height: 50px; border-radius: 50%; background: var(--app-accent);
  display: grid; place-items: center; color: var(--accent-ink);
  border: 4px solid var(--app-bg); box-shadow: 0 8px 18px rgba(230, 160, 40, 0.4);
}
.app-fab svg { width: 24px; height: 24px; }

/* Cook-hat rating */
.hats { display: inline-flex; gap: 2px; align-items: center; }
.hats svg { width: 14px; height: 14px; }
.hats .on { color: var(--app-accent); }
.hats .off { color: #d8cab2; }

/* --- Generic section --- */
section.band { padding: 84px 0; }
section.band.alt { background: var(--bg-section); }
.section-head { max-width: 620px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 44px); }
.section-head .lead { color: var(--text-muted); font-size: 18px; margin-top: 16px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 26px;
}
.step-num {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  background: var(--accent); color: var(--accent-ink); border-radius: 12px;
  font-family: var(--font-display); font-weight: 900; font-size: 16px; margin-bottom: 20px;
}
.step-card h3 { font-size: 21px; margin-bottom: 10px; }
.step-card p { color: var(--text-muted); font-size: 16px; }

/* Import bento */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: auto; gap: 20px; margin-top: 48px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.card .card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; margin-bottom: 18px; background: var(--accent-subtle); color: var(--accent);
}
.card .card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 16px; }
.bento-big { grid-row: span 2; display: flex; flex-direction: column; }
.bento-wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding: 22px 28px; }
.bento-wide .card-icon { margin-bottom: 0; flex: none; }
.bento-wide .wide-text h3 { margin-bottom: 4px; }

/* before/after demo inside the big import card */
.demo { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 28px; }
.demo-note, .demo-recipe { border-radius: 13px; padding: 14px 16px; font-size: 13px; flex: 1; }
.demo-note { background: var(--app-sunken); color: var(--app-muted); font-style: italic; line-height: 1.7; }
.demo-recipe { background: var(--app-elevated); color: var(--app-text); }
.demo-recipe .dr-title { font-family: var(--font-display); font-weight: 800; color: var(--app-text); margin-bottom: 8px; font-style: normal; }
.demo-recipe ul { list-style: none; }
.demo-recipe li { display: flex; align-items: center; gap: 7px; color: var(--app-muted); margin-top: 3px; }
.demo-recipe li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--app-accent); flex: none; }
.demo-arrow { color: var(--accent); flex: none; }
.demo-arrow svg { width: 26px; height: 26px; }
.card-icon.ic-instagram { background: #3a2530; color: #e58aab; }
.card-icon.ic-link { background: #1f3338; color: #6fc0cf; }
.card-icon.ic-copy { background: var(--accent-subtle); color: var(--accent); }

/* AI section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-size: 17px; }
.checklist .check {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none;
  background: var(--accent); color: var(--accent-ink); border-radius: 8px;
}
.checklist .check svg { width: 16px; height: 16px; }

/* recipe-detail mockup specifics */
.detail-navrow { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 10px; }
.detail-navrow .icons { display: flex; gap: 14px; color: var(--app-muted); }
.detail-navrow svg { width: 18px; height: 18px; }
.detail-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--app-text); margin-bottom: 12px; }
.chips { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 11px; padding: 6px 11px; font-size: 12px; font-weight: 700; }
.chip svg { width: 14px; height: 14px; }
.chip-butter { background: var(--butter-bg); color: var(--butter-text); }
.chip-sage { background: var(--sage-bg); color: var(--sage-text); }
.app-h.small h4 { font-size: 14px; }
.step-row {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--app-elevated); border: 1px solid var(--app-border);
  border-radius: 13px; padding: 11px 13px; margin-bottom: 9px;
}
.step-row .n {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  background: var(--app-accent); color: var(--accent-ink); border-radius: 50%;
  font-weight: 800; font-size: 12px;
}
.step-row p { color: var(--app-text); font-size: 13px; line-height: 1.45; }
.amt { background: var(--butter-bg); color: var(--butter-text); border-radius: 6px; padding: 1px 6px; font-weight: 800; white-space: nowrap; }

/* Order & favourites */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.feature-card h3 { font-size: 23px; margin-bottom: 8px; }
.feature-card > p { color: var(--text-muted); font-size: 16px; margin-bottom: 22px; }
.rate-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--app-elevated); border: 1px solid var(--app-border);
  border-radius: 14px; padding: 11px 14px; margin-bottom: 12px;
}
.rate-row .thumb { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.rate-row .thumb svg { width: 19px; height: 19px; }
/* Stack title above the rating hats (the title span is inline, so its
 * margin-bottom alone wouldn't force the hats onto the next line). */
.rate-row > span:not(.thumb) { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.rate-row .rt { display: block; color: var(--app-text); font-weight: 800; font-size: 13px; }
.folder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.folder-tile { border-radius: var(--radius); padding: 14px 15px 16px; min-height: 78px; display: flex; flex-direction: column; }
.folder-tile svg { width: 18px; height: 18px; margin-bottom: 14px; }
.folder-tile .ft-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.folder-tile .ft-count { font-size: 12px; opacity: 0.82; }

/* CTA band */
.cta { text-align: center; }
.cta .cta-mark { height: 34px; margin: 0 auto 22px; }
.cta h2 { font-size: clamp(30px, 5vw, 48px); }
.cta p { color: var(--text-muted); font-size: 18px; max-width: 36ch; margin: 16px auto 30px; }
.cta .store-badges { justify-content: center; margin-bottom: 26px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-left img { height: 22px; margin-bottom: 8px; }
.footer-left p { color: var(--text-muted); font-size: 14px; }
.footer-links { display: flex; align-items: center; gap: 22px; color: var(--text-muted); font-size: 14px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero .container, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-art, .ai-art { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-big { grid-row: auto; }
  .bento-wide { grid-column: auto; }
  .two-col { grid-template-columns: 1fr; }
  section.band { padding: 60px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 24px; }
  .container { padding: 0 18px; }
  .header-right .btn-ghost .btn-label { display: none; }
  .bento-wide { flex-direction: column; align-items: flex-start; }
  .demo { flex-direction: column; align-items: stretch; }
  .demo-arrow { transform: rotate(90deg); align-self: center; }
  .footer-links { gap: 14px; }
}

/* Respect reduced motion: show everything, no transitions/animation. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:active { transition: none; transform: none; }
}
