/* KinetiPlate AI — site styles. Same "Teal Kitchen" palette as the app
   (cream / ink / teal / orange), light by default, dark with the system. */
:root {
  --bg: #faf7f2;
  --bg-rgb: 250, 247, 242;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --border: #e7e0d4;
  --text: #15262d;
  --text-rgb: 21, 38, 45;
  --muted: #5a6a70;
  --teal: #1f6074;
  --teal-rgb: 31, 96, 116;
  --teal-soft: rgba(31, 96, 116, 0.10);
  --cta: #f28a2e;
  --cta-2: #f7a04b;
  --cta-rgb: 242, 138, 46;
  --on-cta: #1a1a1a;
  --success: #5e7d16;
  --danger: #c0392b;
  --grad: linear-gradient(135deg, var(--cta-2), var(--cta));
  --shadow: 0 1px 2px rgba(21, 38, 45, 0.06), 0 10px 28px rgba(21, 38, 45, 0.08);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1a1f;
    --bg-rgb: 14, 26, 31;
    --surface: #15252b;
    --surface-2: #1c2f36;
    --border: #2a3f46;
    --text: #f3f0e9;
    --text-rgb: 243, 240, 233;
    --muted: #9fb2b4;
    --teal: #5fc4c1;
    --teal-rgb: 95, 196, 193;
    --teal-soft: rgba(95, 196, 193, 0.14);
    --cta-2: #f7a04b;
    --success: #a9c46b;
    --danger: #ff8a7a;
    --shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
}
::selection { background: var(--cta); color: var(--on-cta); }
a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cta); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
}
.skip:focus { top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(var(--bg-rgb), 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(var(--bg-rgb), 0.96); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); letter-spacing: -0.01em; white-space: nowrap;
}
.logo img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; }
.logo .ai { color: var(--teal); }
.logo .tm { font-size: 0.5rem; vertical-align: super; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-weight: 800; border-radius: 14px; border: 0; cursor: pointer;
  font-family: var(--font); transition: transform .15s, box-shadow .15s;
}
.btn-cta {
  background: var(--grad); color: var(--on-cta);
  padding: 14px 24px; font-size: 1rem;
  box-shadow: 0 10px 26px rgba(var(--cta-rgb), 0.32);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(var(--cta-rgb), 0.42); }
.btn-cta svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-cta small { display: block; font-size: 0.65rem; font-weight: 600; opacity: 0.8; line-height: 1.1; }
.btn-cta .b-label { line-height: 1.15; text-align: left; }
.btn-cta.sm { padding: 9px 16px; font-size: 0.85rem; border-radius: 999px; box-shadow: 0 6px 18px rgba(var(--cta-rgb), 0.28); white-space: nowrap; }
.nav-links a.btn-cta { color: var(--on-cta); }
@media (max-width: 480px) { .btn-cta.sm { padding: 8px 12px; font-size: 0.78rem; } .logo { font-size: 1.02rem; } }
.btn-ghost {
  color: var(--text); font-size: 0.95rem; font-weight: 700; padding: 12px 18px;
  border: 1.5px solid rgba(var(--teal-rgb), 0.35); border-radius: 14px; background: transparent;
}
.btn-ghost:hover { border-color: var(--teal); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 120px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) {
  .hero { padding-top: 92px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
  .hero-grid .hero-photo img { aspect-ratio: 16 / 10; border-radius: 22px; }
  .hero-card { bottom: 14px; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-soft); color: var(--teal);
  border-radius: 999px; padding: 7px 14px; font-size: 0.8rem; font-weight: 800; margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 20px; text-wrap: balance;
}
h1 em, .accent { font-style: normal; color: var(--teal); }
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 520px; margin-bottom: 28px; }
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-fine { color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--teal-soft); color: var(--text); font-weight: 700; font-size: 0.82rem;
}
.chip svg { width: 15px; height: 15px; color: var(--teal); }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 10 / 11; object-fit: cover; border-radius: 28px;
  box-shadow: 0 30px 70px rgba(21, 38, 45, 0.25);
}
.hero-card {
  position: absolute; left: -16px; bottom: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; max-width: 300px;
}
.hero-card .tile { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.hero-card b { display: block; font-size: 0.9rem; }
.hero-card small { color: var(--muted); font-size: 0.78rem; }
@media (max-width: 900px) { .hero-card { left: 8px; } }

/* ---------- sections ---------- */
section { position: relative; padding: 80px 0; }
.sec-tag { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; text-wrap: balance; }
.sec-sub { color: var(--muted); max-width: 600px; margin-bottom: 40px; font-size: 1.05rem; }
.center { text-align: center; }
.center .sec-sub { margin-left: auto; margin-right: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px;
  box-shadow: var(--shadow);
}
.card .ic {
  width: 46px; height: 46px; border-radius: 14px; font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  background: var(--teal-soft);
}
.card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card .pro { display: inline-block; margin-left: 6px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; background: rgba(var(--cta-rgb), 0.16); color: var(--text); vertical-align: middle; }

/* cooking basics strip */
.clips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 880px) { .clips { grid-template-columns: repeat(3, 1fr); } }
.clip { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; text-align: center; box-shadow: var(--shadow); }
.clip img { width: 100%; aspect-ratio: 1; background: #faf7f2; }
.clip b { display: block; padding: 10px 8px 12px; font-size: 0.9rem; }
.step-demo {
  margin: 26px auto 0; max-width: 620px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
}
.step-demo .num { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.9rem; }
.step-demo p { margin: 2px 0 0; font-size: 1.05rem; line-height: 1.5; }
.kp-tech {
  background: var(--teal-soft); border-radius: 6px; padding: 0 3px;
  text-decoration: underline dotted var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.kp-tech::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: .22em; vertical-align: .08em; border-left: .4em solid var(--teal); border-top: .24em solid transparent; border-bottom: .24em solid transparent; }
.tip { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--teal-soft); font-size: 0.88rem; color: var(--text); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); }
.step .n { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--teal); margin-bottom: 12px; }
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px 24px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.plan.best { border-color: rgba(var(--cta-rgb), 0.6); }
.plan .ribbon { position: absolute; top: -12px; left: 20px; background: var(--grad); color: var(--on-cta); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 1.1rem; font-weight: 800; }
.plan .price { font-size: 2rem; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.02em; }
.plan .price small { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.plan .per { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; }
.plan ul { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; font-size: 0.92rem; color: var(--text); border-top: 1px solid var(--border); }
.plan li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6074' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M5 12l4.5 4.5L19 7'/%3E%3C/svg%3E"); background-size: 10px; background-position: center; background-repeat: no-repeat; }
.plan .note { color: var(--muted); font-size: 0.78rem; margin-top: 10px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); padding: 0 0 16px; font-size: 0.95rem; }

/* notes / disclaimer */
.note-box {
  border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 18px 22px;
  font-size: 0.85rem; color: var(--muted); box-shadow: var(--shadow);
}
.note-box strong { color: var(--text); }

/* footer */
footer { border-top: 1px solid var(--border); padding: 40px 24px 32px; text-align: center; }
.foot-logo { font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; }
.foot-logo .ai { color: var(--teal); }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.foot-links a:hover { color: var(--teal); }
.foot-contact { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.copyright { color: var(--muted); font-size: 0.78rem; opacity: 0.8; }

/* reveal on scroll (content is visible without JS and with reduced motion) */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: translateY(0); }
  .d1 { transition-delay: .07s; } .d2 { transition-delay: .14s; } .d3 { transition-delay: .21s; } .d4 { transition-delay: .28s; } .d5 { transition-delay: .35s; }
}

/* ---------- document pages (terms, privacy, ...) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 100px 24px 60px; }
.doc .back { color: var(--teal); text-decoration: none; font-size: 0.9rem; font-weight: 700; display: inline-block; margin-bottom: 20px; }
.doc .back:hover { text-decoration: underline; }
.doc h1 { font-size: 2.1rem; margin-bottom: 6px; }
.doc .effective { color: var(--muted); font-size: 0.85rem; margin-bottom: 28px; }
.doc h2 { font-size: 1.2rem; font-weight: 800; margin: 30px 0 10px; color: var(--teal); letter-spacing: 0; }
.doc p, .doc li { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 20px; margin-bottom: 12px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }
.doc a { color: var(--teal); }
.doc .highlight { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin: 16px 0; box-shadow: var(--shadow); }
.doc .highlight p:last-child, .doc .highlight ul:last-child { margin-bottom: 0; }
.doc .warning { border-color: rgba(var(--cta-rgb), 0.55); background: rgba(var(--cta-rgb), 0.06); }
.doc .steps-list { counter-reset: step; list-style: none; padding-left: 0; }
.doc .steps-list li { position: relative; padding-left: 40px; margin-bottom: 12px; color: var(--text); }
.doc .steps-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; background: var(--teal); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; }
.doc footer { margin-top: 44px; padding: 20px 0 0; }
.doc footer a { margin: 0 10px; }
