/* ==========================================================================
   KaloriKu — marketing site
   Palet diambil dari ui/theme/Color.kt aplikasi Android.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #65C32F;
  --green-dark: #3F8F1F;
  --green-deep: #2E7D32;
  --lime: #A4D619;
  --orange: #F57C00;
  --cream: #F7FAF5;
  --tint: #EEF6E8;
  --tint-2: #E4F2DC;
  --ink: #16211A;
  --body: #3C4A42;
  --muted: #66766C;
  --line: #E1EBD9;
  --white: #fff;
  --grad: linear-gradient(135deg, #7DC832 0%, #2F9E1E 100%);
  --shadow-sm: 0 1px 2px rgba(22, 33, 26, .05), 0 8px 20px -12px rgba(22, 33, 26, .18);
  --shadow-md: 0 24px 60px -28px rgba(31, 74, 22, .35);
  --shadow-lg: 0 40px 90px -40px rgba(31, 74, 22, .45);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --wrap: 1160px;
  --ease: cubic-bezier(.22, .7, .3, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); text-decoration: none; }

h1, h2, h3 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

::selection { background: #CDEFB8; color: var(--ink); }

:focus-visible {
  outline: 3px solid #2F9E1E;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 250, 245, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(247, 250, 245, .95); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 6px 14px -8px rgba(47, 158, 30, .8); }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }
.brand-name span { color: var(--green); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--body); font-size: .94rem; font-weight: 600; }
.nav a:hover { color: var(--green-dark); }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }
.nav .lang {
  font-size: .8rem; font-weight: 800; letter-spacing: .06em;
  border: 1px solid var(--line); padding: 5px 9px; border-radius: 999px; color: var(--muted);
}
.nav .lang:hover { border-color: var(--green); color: var(--green-dark); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 15px 22px; border-radius: 14px; border: 1px solid transparent;
  color: #fff; background: var(--green-dark);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 11px 18px; font-size: .88rem; border-radius: 999px; background: var(--ink); color: #fff; }
.btn-play {
  background: var(--ink); color: #fff;
  padding: 16px 24px; border-radius: 15px;
  box-shadow: 0 18px 34px -18px rgba(22, 33, 26, .65);
}
.btn-play:hover { background: #0d1712; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); background: #fff; }
.btn-outline { background: transparent; color: var(--green-dark); border-color: #CBDFC1; }
.btn-outline:hover { background: var(--tint); }
.btn-light { background: #fff; color: var(--green-dark); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .4); }
.btn-light:hover { background: #F4FBEF; }
.btn-lg { padding: 18px 28px; font-size: 1.02rem; border-radius: 16px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-dark); }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 780px; height: 780px;
  background: radial-gradient(circle at 50% 50%, rgba(101, 195, 47, .22), rgba(101, 195, 47, 0) 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-dark); background: var(--tint);
  padding: 8px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(101,195,47,.18); }

.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.05rem); }
.hl {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.14rem; color: var(--body); margin-top: 24px; max-width: 34rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none;
  margin: 34px 0 0; padding: 0; font-size: .88rem; color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #C9D8C0; margin-right: 12px; }
.trust strong { color: var(--ink); }

.hero-art { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative; width: min(310px, 78%); border-radius: 46px;
  background: linear-gradient(160deg, #1b211d, #0c110e);
  padding: 11px; box-shadow: var(--shadow-lg);
}
.phone::after {
  content: ""; position: absolute; inset: 5px; border-radius: 41px;
  border: 1px solid rgba(255, 255, 255, .12); pointer-events: none;
}
.phone-screen { border-radius: 36px; overflow: hidden; background: #fff; }
.phone-screen img { width: 100%; height: auto; }

.phone-sm { width: 258px; padding: 9px; border-radius: 40px; }
.phone-sm .phone-screen { border-radius: 32px; }
.phone-sm::after { border-radius: 35px; }

.float-card {
  position: absolute; background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(8px);
}
.float-quota { left: -8%; bottom: 6%; padding: 14px 16px; width: 176px; }
.float-label { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quota-num { display: block; font-size: 1.5rem; color: var(--green-dark); letter-spacing: -.02em; margin-top: 2px; }
.quota-num small { font-size: .8rem; color: var(--muted); font-weight: 700; }
.dots { display: flex; gap: 6px; margin-top: 9px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(101, 195, 47, .16); }

.float-scan { right: -10%; top: 2%; padding: 12px 14px 14px; width: 188px; }
.ai-badge {
  display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: #fff; background: var(--green-deep);
  padding: 4px 8px; border-radius: 6px;
}
.float-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.float-row img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; }
.float-row .float-thumb { width: 40px; height: 40px; border-radius: 11px; background: var(--tint); display: grid; place-items: center; color: var(--green-dark); flex: none; }
.float-row strong { display: block; font-size: .86rem; color: var(--ink); line-height: 1.3; }
.float-row span { font-size: .72rem; color: var(--muted); }
.float-kcal { margin-top: 8px; font-size: 1.2rem; font-weight: 800; color: var(--orange); }
.float-kcal small { font-size: .7rem; color: var(--muted); font-weight: 700; }

/* ------------------------------------------------------------------ sections */
.section { padding: 92px 0; }
.section-tint { background: var(--tint); border-radius: 40px; margin: 0 12px; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.kicker {
  font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: 14px;
}
.section-head h2, .food-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.sub { margin-top: 16px; font-size: 1.05rem; color: var(--muted); max-width: 34rem; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px 28px; box-shadow: var(--shadow-sm); }
.step-num { position: absolute; top: 18px; right: 22px; font-size: .9rem; font-weight: 800; color: #C9DCC0; letter-spacing: .04em; }
.step-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--green-dark); margin-bottom: 18px; }
.step-icon svg { width: 25px; height: 25px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--muted); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.f-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--tint); color: var(--green-dark); margin-bottom: 16px; }
.f-icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 7px; }
.feature p { font-size: .94rem; color: var(--muted); }
.tag {
  font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-dark); background: var(--tint); padding: 3px 7px; border-radius: 5px;
  vertical-align: middle; margin-left: 6px;
}

/* showcase */
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.shot .phone { background: linear-gradient(160deg, #1b211d, #0c110e); }
.shot figcaption { max-width: 300px; text-align: center; }
.shot figcaption strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 4px; }
.shot figcaption span { font-size: .88rem; color: var(--muted); }

/* food section */
.food-section { padding-top: 84px; }
.food-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.lead-sm { font-size: 1.03rem; color: var(--body); margin-top: 18px; }
.food-list { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.food-list li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
}
.food-name { font-weight: 700; color: var(--ink); }
.food-cat { font-size: .72rem; font-weight: 700; color: var(--green-dark); background: var(--tint); padding: 4px 9px; border-radius: 999px; }
.food-kcal { font-weight: 800; color: var(--orange); font-variant-numeric: tabular-nums; }
.note { margin-top: 16px; font-size: .8rem; color: var(--muted); }

.food-art { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.food-art img { width: 100%; }
.food-visual { align-self: center; }
.food-caption { margin-top: 14px; font-size: .86rem; color: var(--muted); }
.dish-tag {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .94); border-radius: 14px; padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}
.dish-tag-text { font-size: .82rem; font-weight: 700; color: var(--ink); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 34px 30px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.25rem; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin-top: 8px; }
.plan-for { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 26px; font-size: .95rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 9px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg); border-radius: 1px;
}
.plan .btn { margin-top: auto; }
.plan-pro { position: relative; background: var(--grad); border-color: transparent; color: #EAF6E3; box-shadow: var(--shadow-md); }
.plan-pro h3, .plan-pro .plan-price { color: #fff; }
.plan-pro .plan-for, .plan-pro li { color: #E4F3DB; }
.plan-pro li::before { border-color: #fff; }
.plan-badge {
  position: absolute; top: 22px; right: 24px;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255, 255, 255, .2); color: #fff; padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
}

/* privacy strip */
.privacy-strip { padding: 16px 0 8px; }
.privacy-inner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 40px 38px; display: grid; grid-template-columns: 1.1fr 1.2fr auto; gap: 32px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.privacy-head h2 { font-size: 1.5rem; }
.privacy-head p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.privacy-points strong { display: block; font-size: .9rem; color: var(--ink); }
.privacy-points span { font-size: .8rem; color: var(--muted); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: #C9DFBC; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--ink); font-size: 1.02rem;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 500; color: var(--green-dark); line-height: 1;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: .95rem; color: var(--muted); }

/* final cta */
.final-cta { padding: 40px 12px 20px; }
.final-inner {
  background: var(--grad); border-radius: 40px; color: #fff; text-align: center;
  padding: 64px 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.final-inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .22), transparent 45%);
  pointer-events: none;
}
.final-inner img { margin: 0 auto 18px; width: 72px; height: 72px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .25)); }
.final-inner h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.final-inner p { color: #E6F5DE; margin-top: 10px; }
.final-inner .btn { margin-top: 26px; }

/* footer */
.site-footer { background: #12241A; color: #C3D6BE; margin-top: 40px; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { border-radius: 9px; }
.site-footer .brand-name span { color: var(--lime); }
.footer-brand p { margin-top: 14px; font-size: .9rem; color: #9DB69A; max-width: 24rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; align-content: start; }
.footer-links a { color: #C3D6BE; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem; color: #8AA487;
}
.footer-bottom .lang { color: #C3D6BE; font-weight: 700; }
.footer-bottom .lang:hover { color: #fff; }

/* ------------------------------------------------------------------ reveal */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 640px; }
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .food-grid { grid-template-columns: 1fr; gap: 40px; }
  .privacy-inner { grid-template-columns: 1fr; gap: 24px; }
  .privacy-points { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .section-tint { margin: 0; border-radius: 0; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .4);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    max-height: calc(100vh - 72px); overflow: auto;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid rgba(0, 0, 0, .05); }
  .nav .lang { border: 0; padding: 10px 4px; border-radius: 0; }
  .nav .btn { margin-top: 10px; justify-content: center; border-radius: 14px; padding: 14px; }
  .nav-toggle { display: block; }

  .steps, .features, .showcase, .plans, .privacy-points { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 2.9rem); }
  .lead { font-size: 1.02rem; }
  /* di layar sempit, dua kartu melayang menutupi progres & daftar makanan:
     sisakan satu (AI scan) dan tempel di tepi kanan bingkai */
  .float-quota { display: none; }
  .float-scan { right: -6px; top: 2%; width: 152px; }
  .showcase { gap: 48px; }
  .final-inner { padding: 48px 22px; border-radius: 32px; }
  .privacy-inner { padding: 28px 24px; border-radius: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
