/*
 * Web landing page (desain "Gabungan 1"). Every class is prefixed `lp-` because Metro bundles CSS
 * globally on web. Colours are the app tokens in src/constants/theme.ts (light, and the dark set
 * for the black sections).
 */
@font-face { font-family: 'Mealplanku Display'; font-weight: 800; font-display: swap; src: url('/landing/fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'Mealplanku Sans'; font-weight: 400; font-display: swap; src: url('/landing/fonts/DMSans_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Mealplanku Sans'; font-weight: 500; font-display: swap; src: url('/landing/fonts/DMSans_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'Mealplanku Sans'; font-weight: 600; font-display: swap; src: url('/landing/fonts/DMSans_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Mealplanku Sans'; font-weight: 700; font-display: swap; src: url('/landing/fonts/DMSans_700Bold.ttf') format('truetype'); }

.lp {
  --ink: #141414; --muted: #6B6B6B; --bg: #FAFAFA; --surface: #FFFFFF; --el: #F1F1F1; --chip: #EDEDED;
  --border: #EEEEEE; --yellow: #F8CB46; --red: #B0202F; --red-bg: #FFF4F5;
  --d-text: #F2F2F2; --d-muted: #ABABAB; --d-card: #1C1C1C; --d-el: #262626; --d-chip: #2C2C2C; --d-border: #2E2E2E;
  --shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 4px 18px rgba(0,0,0,0.06);
  --shadow-2: 0 0 0 1px rgba(0,0,0,0.04), 0 8px 28px rgba(0,0,0,0.12);
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font-family: 'Mealplanku Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; scroll-behavior: smooth;
}
.lp *, .lp *::before, .lp *::after { box-sizing: border-box; }
.lp img { display: block; max-width: 100%; }
.lp a { color: inherit; }
.lp h1, .lp h2, .lp h3, .lp p { margin: 0; }
.lp :focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.lp-display { font-family: 'Mealplanku Display', 'Mealplanku Sans', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.lp-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.lp-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.lp-h2 { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.04; }
.lp-lead { font-size: 17px; line-height: 1.55; color: var(--muted); }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.lp-btn:hover { opacity: .9; }
.lp-btn:active { transform: scale(.98); }
.lp-btn--dark { background: var(--ink); color: #FFFFFF !important; }
.lp-btn--light { background: var(--d-text); color: var(--ink) !important; }
.lp-btn svg { flex: none; }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 10; background: rgba(250,250,250,0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.lp-nav__in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.lp-brand img { width: 32px; height: 32px; }
.lp-brand span { font-family: 'Mealplanku Display', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.lp-nav__links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.lp-nav__links a { text-decoration: none; color: var(--muted); }
.lp-nav__links a:hover { color: var(--ink); }
.lp-nav .lp-btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* Hero */
.lp-hero { padding-top: 56px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.lp-hero__copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 24px; }
.lp-hero__title { font-size: clamp(44px, 6.4vw, 88px); line-height: 0.98; letter-spacing: -0.04em; }
.lp-hero__lead { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: var(--muted); max-width: 500px; }
.lp-hero__proof { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.lp-stack { display: flex; }
.lp-stack img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; border: 3px solid var(--bg); }
.lp-stack img + img { margin-left: -12px; }
.lp-hero__visual { flex: 1 1 520px; position: relative; display: flex; justify-content: center; align-items: center; min-height: 680px; }
.lp-hero__bg { position: absolute; inset: 20px 0; background: var(--el); border-radius: 40px; }
.lp-anchor { position: relative; z-index: 2; width: 300px; height: 620px; }
.lp-float { position: absolute; z-index: 3; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-2); }
.lp-float--recipe { left: 256px; top: 214px; width: 200px; overflow: hidden; transform: rotate(-4deg); }
.lp-float--recipe img { width: 100%; height: 130px; object-fit: cover; }
.lp-float--recipe div { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
/* Sits outside the phone's left edge (mirrors the recipe card on the right) so it never covers the plan or the CTA. */
.lp-float--list { left: -190px; bottom: 150px; width: 210px; padding: 8px 16px; transform: rotate(3deg); }
.lp-badge-float { position: absolute; z-index: 4; right: -108px; top: 30px; background: var(--yellow); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,0.10); white-space: nowrap; }

/* Phone mockup */
.lp-phone { width: 300px; height: 620px; background: var(--ink); border-radius: 46px; padding: 9px; box-shadow: 0 24px 60px rgba(0,0,0,0.18); }
.lp-phone__screen { position: relative; height: 100%; background: var(--bg); border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; }
.lp-phone__notch { height: 34px; display: flex; justify-content: center; align-items: center; }
.lp-phone__notch span { width: 84px; height: 22px; border-radius: 999px; background: var(--ink); }
.lp-phone__head { padding: 6px 16px 0; display: flex; align-items: center; justify-content: space-between; }
.lp-phone__title { font-size: 26px; letter-spacing: -0.02em; }
.lp-phone__sub { padding: 2px 16px 0; font-size: 12px; color: var(--muted); font-weight: 500; }
.lp-dates { padding: 12px 12px 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.lp-dates div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 14px; background: var(--surface); }
.lp-dates small { font-size: 9px; color: var(--muted); font-weight: 600; }
.lp-dates b { font-size: 14px; }
.lp-dates .is-on { background: var(--ink); color: #FFFFFF; }
.lp-dates .is-on small { color: #D6D6D6; }
.lp-days { padding: 12px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.lp-day { background: var(--surface); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.lp-day__head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.lp-entry { display: flex; align-items: center; gap: 10px; }
.lp-entry img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.lp-entry div { display: flex; flex-direction: column; gap: 2px; }
.lp-entry b { font-size: 13px; }
.lp-entry small { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lp-tag { border-radius: 6px; padding: 0 5px; font-size: 9px; font-weight: 700; letter-spacing: 0.03em; }
.lp-tag--today { background: var(--yellow); border-radius: 999px; padding: 1px 8px; font-size: 10px; }
.lp-tag--done { background: #EAF6EC; color: #0C7A1E; }
.lp-phone__cta { position: absolute; left: 0; right: 0; bottom: 74px; display: flex; justify-content: center; }
.lp-phone__cta span { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #FFFFFF; border-radius: 999px; padding: 10px 14px 10px 16px; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.lp-count { background: var(--yellow); color: var(--ink); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.lp-tabs { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 54px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-2); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; }
.lp-tabs div { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #8A8A8A; font-size: 9px; font-weight: 600; }
.lp-tabs .is-on { color: var(--ink); font-weight: 700; }

/* Checklist rows */
.lp-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; font-weight: 600; }
.lp-check + .lp-check { border-top: 1px solid var(--border); }
.lp-check span:nth-child(2) { flex: 1; }
.lp-box { flex: none; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.lp-box--on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.lp-check.is-done span:not(.lp-box) { color: var(--muted); opacity: .6; text-decoration: line-through; text-decoration-thickness: 2px; }

/* Recipe marquee */
.lp-recipes { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 0; display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.lp-recipes__head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 24px; }
.lp-recipes__head .lp-h2 { font-size: clamp(32px, 4vw, 48px); }
.lp-marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.lp-marquee__track { display: flex; width: max-content; animation: lp-marquee 90s linear infinite; }
.lp-marquee:hover .lp-marquee__track { animation-play-state: paused; }
.lp-dish { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 148px; padding-right: 28px; }
.lp-dish img { width: 120px; height: 120px; border-radius: 999px; object-fit: cover; }
.lp-dish span { font-size: 14px; font-weight: 600; white-space: nowrap; }
@keyframes lp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lp-marquee__track { animation: none; } .lp { scroll-behavior: auto; } }

/* Features (dark) */
.lp-dark { background: var(--ink); color: #FFFFFF; }
.lp-features { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.lp-features__head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; }
.lp-features__head .lp-h2 { max-width: 640px; }
.lp-dark .lp-lead { color: #A3A3A3; max-width: 380px; }
.lp-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; color: var(--d-text); }
.lp-card { min-width: 0; background: var(--d-card); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--d-border); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.lp-card--wide { grid-column: span 2; gap: 24px; }
.lp-card h3 { font-size: 24px; font-weight: 700; line-height: 1.25; }
.lp-card p { font-size: 15px; line-height: 1.5; color: var(--d-muted); margin-top: 6px; max-width: 460px; }
.lp-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.lp-week div { background: var(--d-el); border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-week small { font-size: 11px; font-weight: 700; color: var(--d-muted); }
.lp-week img { width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 999px; object-fit: cover; }
.lp-week .is-today { background: #333333; box-shadow: inset 0 0 0 1.5px var(--d-text); }
.lp-week .is-today small { color: var(--d-text); }
.lp-rows { background: var(--d-el); border-radius: 16px; padding: 4px 14px; }
.lp-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; font-weight: 600; }
.lp-rows div + div { border-top: 1px solid #333333; }
.lp-warn { display: flex; gap: 12px; align-items: center; background: #3A1C20; border-radius: 16px; padding: 10px; color: #FF8A95; }
.lp-warn img { flex: none; width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.lp-warn div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; }
.lp-warn b { font-size: 14px; color: var(--d-text); }
.lp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-chips span { background: var(--d-chip); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
.lp-card--photo { position: relative; padding: 0; overflow: hidden; min-height: 240px; justify-content: flex-end; box-shadow: none; }
.lp-card--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-card--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,0) 35%, rgba(20,20,20,0.78) 100%); }
.lp-card--photo div { position: relative; z-index: 1; padding: 24px; color: #FFFFFF; }
.lp-card--photo p { color: #EDEDED; }

/* How it works */
.lp-how { background: var(--surface); }
.lp-how__in { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; max-width: 1200px; }
.lp-how__head { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.lp-step { background: var(--bg); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.lp-step__text { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.lp-step__num { width: 32px; height: 32px; border-radius: 999px; border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.lp-step h3 { margin-top: 8px; font-size: 22px; font-weight: 700; }
.lp-step p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.lp-step__ui { margin: auto 24px 0; background: var(--surface); border-radius: 18px 18px 0 0; padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.lp-stepper { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14px; }
.lp-stepper span { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.lp-stepper i { font-style: normal; width: 28px; height: 28px; border-radius: 999px; background: var(--el); display: inline-flex; align-items: center; justify-content: center; }
.lp-stepper i + b + i { background: var(--ink); color: #FFFFFF; }
.lp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-pills span { background: var(--chip); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.lp-pills .is-on { background: var(--ink); color: #FFFFFF; }
.lp-step .lp-entry b { font-size: 14px; }
.lp-step .lp-entry small { font-size: 12px; }
.lp-step .lp-check { font-size: 14px; padding: 6px 0; }

/* Pricing (dark) */
.lp-pricing { max-width: 640px; margin: 0 auto; padding: 80px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.lp-pricing .lp-eyebrow, .lp-pricing__lead, .lp-pricing__note { color: #A3A3A3; }
.lp-pricing__lead { font-size: 17px; }
.lp-pricing__note { font-size: 13px; }
.lp-plans { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; text-align: left; border: 0; margin: 0; padding: 0; }
.lp-plan { position: relative; border-radius: 22px; padding: 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; cursor: pointer; background: var(--d-card); color: var(--d-text); border: 1.5px solid var(--d-border); }
.lp-plan:has(input:checked) { background: var(--d-el); border: 2px solid var(--d-text); }
.lp-plan input { position: absolute; opacity: 0; pointer-events: none; }
.lp-plan:has(input:focus-visible) { outline: 2.5px solid var(--d-text); outline-offset: 3px; }
.lp-plan__info { display: flex; flex-direction: column; gap: 4px; }
.lp-plan__info b { font-size: 17px; }
.lp-plan__info span { font-size: 14px; color: var(--d-muted); }
.lp-plan__info small { font-size: 13px; color: var(--d-muted); }
.lp-plan__badge { position: absolute; top: -13px; left: 18px; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700; }
.lp-radio { flex: none; width: 24px; height: 24px; border-radius: 999px; border: 2px solid var(--muted); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.lp-radio svg { display: none; }
.lp-plan:has(input:checked) .lp-radio { background: var(--d-text); border-color: var(--d-text); }
.lp-plan:has(input:checked) .lp-radio svg { display: block; }
.lp-pricing .lp-btn { width: 100%; max-width: 360px; padding: 17px 24px; }

/* FAQ */
.lp-faq { max-width: 760px; margin: 0 auto; padding: 72px 24px 88px; display: flex; flex-direction: column; gap: 28px; }
.lp-faq .lp-h2 { text-align: center; }
.lp-faq__list { display: flex; flex-direction: column; gap: 10px; }
.lp-faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 0 22px; }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; font-weight: 700; font-size: 17px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary i { flex: none; font-style: normal; width: 28px; height: 28px; border-radius: 999px; background: var(--el); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: transform .2s ease; }
.lp-faq details[open] summary i { transform: rotate(45deg); }
.lp-faq details p { padding: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* CTA */
.lp-cta-wrap { padding: 24px; background: var(--surface); }
.lp-cta { position: relative; overflow: hidden; max-width: 1200px; margin: 0 auto; background: var(--ink); color: #FFFFFF; border-radius: 32px; padding: 104px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.lp-cta h2 { position: relative; z-index: 1; font-size: clamp(40px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.04em; }
.lp-cta p { position: relative; z-index: 1; font-size: 18px; color: #C9C9C9; }
.lp-cta .lp-btn { position: relative; z-index: 1; margin-top: 8px; }
.lp-orb { position: absolute; border-radius: 999px; object-fit: cover; }
.lp-orb--1 { left: -30px; top: -30px; width: 200px; height: 200px; }
.lp-orb--2 { left: 90px; bottom: -50px; width: 150px; height: 150px; }
.lp-orb--3 { right: -40px; bottom: -40px; width: 220px; height: 220px; }
.lp-orb--4 { right: 110px; top: -40px; width: 130px; height: 130px; }

/* Footer */
.lp-footer { border-top: 1px solid var(--border); background: var(--surface); }
.lp-footer__in { padding-top: 32px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; font-size: 14px; color: var(--muted); }
.lp-footer__in img { width: 28px; height: 28px; }
.lp-footer__in a { color: var(--muted); }
.lp-footer__in a:hover { color: var(--ink); }
.lp-footer__copy { margin-left: auto; }

@media (max-width: 760px) {
  .lp-nav__links { display: none; }
  .lp-float, .lp-badge-float, .lp .lp-orb { display: none; }
  .lp-card--wide { grid-column: auto; }
  .lp-hero { padding-top: 32px; }
  .lp-hero__visual { min-height: 0; padding: 40px 0; flex-basis: 100%; }
  .lp-week { gap: 6px; }
  .lp-week div { padding: 8px 2px; }
  .lp-cta { padding: 72px 20px; }
  .lp-footer__copy { margin-left: 0; width: 100%; }
}
