:root {
  --cream: #FFF8F0;
  --cream-2: #FCEFE0;
  --chili: #E4572E;
  --chili-d: #C8441F;
  --mango: #FFB627;
  --leaf: #2E933C;
  --ink: #2B2420;
  --muted: #7A6E66;
  --line: #EFE3D6;
  --card: #FFFFFF;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(120, 60, 20, .08);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 248, 240, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand b { color: var(--chili); }
.logo-dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.menu { display: flex; gap: 4px; }
.menu a { text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 10px; color: var(--muted); transition: .2s; }
.menu a:hover { color: var(--ink); background: var(--cream-2); }
.menu .cta-sm { background: var(--chili); color: #fff; }
.menu .cta-sm:hover { background: var(--chili-d); color: #fff; }
.burger { display: none; background: none; border: 0; font-size: 1.5rem; }

/* HERO */
.hero { padding: 56px 0 24px; background: radial-gradient(circle at 85% 10%, #FFE1B3 0, transparent 45%), radial-gradient(circle at 0% 90%, #FFD9CC 0, transparent 40%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-block; background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); }
h1 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 18px 0 14px; letter-spacing: -.5px; }
h1 em { font-style: normal; color: var(--chili); }
.hl { background: linear-gradient(transparent 60%, #FFD37A 60%); }
.lead { font-size: 1.07rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--chili); color: #fff; box-shadow: 0 8px 20px rgba(228, 87, 46, .3); }
.btn-primary:hover { background: var(--chili-d); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: .88rem; border-radius: 10px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.sim { padding: 22px; border: 1px solid var(--line); }
.sim-head { font-weight: 700; margin-bottom: 10px; }
.slider { display: block; margin: 12px 0; font-size: .9rem; }
.slider span { display: flex; justify-content: space-between; }
.slider b { color: var(--chili); }
input[type=range] { width: 100%; accent-color: var(--chili); margin-top: 6px; }
.sim-out { margin-top: 14px; background: var(--cream); border-radius: 14px; padding: 14px 16px; }
.sim-out strong { display: block; font-size: 1.9rem; font-family: var(--serif); color: var(--leaf); line-height: 1.2; }
.bar { height: 10px; background: #F1E4D5; border-radius: 99px; overflow: hidden; margin: 10px 0 4px; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mango), var(--leaf)); border-radius: 99px; transition: width .3s; }

.perks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 40px; }
.perk { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: .2s; }
.perk:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.perk b { font-size: 1.5rem; }
.perk h3 { font-size: .98rem; margin: 6px 0 2px; }
.perk p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.45; }
.disclaimer { font-size: .78rem; color: var(--muted); margin-top: 14px; }

/* SECTIONS */
.sec { padding: 72px 0; }
.sec-alt { background: #fff; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.sec-head h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 6px 0 8px; line-height: 1.2; }
.sec-head p { color: var(--muted); margin: 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--chili); }

.toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: .88rem; color: var(--muted); transition: .2s; }
.chip:hover { color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search { flex: 1; min-width: 220px; max-width: 340px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; }
.search:focus, input:focus { outline: 2px solid var(--mango); outline-offset: 1px; }

/* RECIPE GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.rc { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, box-shadow .2s; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; }
.rc:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(120, 60, 20, .14); }
.rc-img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--cream-2); }
.rc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rc:hover .rc-img img { transform: scale(1.05); }
.rc-play { position: absolute; inset: 0; display: grid; place-items: center; }
.rc-play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; font-size: 1.1rem; color: var(--chili); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .2s; }
.rc:hover .rc-play span { transform: scale(1.12); }
.rc-no, .rc-dur { position: absolute; top: 10px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.rc-no { left: 10px; background: var(--mango); color: var(--ink); }
.rc-dur { right: 10px; background: rgba(0, 0, 0, .55); color: #fff; }
.rc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.rc-body h3 { font-size: .98rem; margin: 0; line-height: 1.3; }
.rc-body small { color: var(--muted); font-size: .8rem; }
.rc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; font-size: .78rem; color: var(--muted); }
.rc-pdf { font-weight: 700; color: var(--chili); text-decoration: none; padding: 4px 8px; border-radius: 8px; background: #FFF0EA; }
.rc-pdf:hover { background: #FFE1D4; }
.empty { text-align: center; color: var(--muted); padding: 30px; }

/* BONUS CARD */
.bc .rc-img { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 4rem; }
.soon { position: absolute; bottom: 10px; left: 10px; background: rgba(255, 255, 255, .92); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; color: var(--muted); }

/* TABS & CALC */
.tabs { display: flex; gap: 6px; justify-content: center; background: var(--cream); padding: 6px; border-radius: 16px; width: fit-content; margin: 0 auto 20px; flex-wrap: wrap; }
.sec-alt .tabs { background: var(--cream); }
.sec:not(.sec-alt) .tabs { background: #fff; border: 1px solid var(--line); }
.tab { border: 0; background: none; padding: 10px 18px; border-radius: 12px; font-weight: 700; color: var(--muted); font-size: .92rem; }
.tab.active { background: var(--chili); color: #fff; box-shadow: 0 4px 12px rgba(228, 87, 46, .3); }
.panel.card { padding: 24px; border: 1px solid var(--line); }
.calc-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.calc-grid h3 { font-size: 1rem; margin: 0 0 10px; }
.mt { margin-top: 22px !important; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; gap: 6px; align-items: center; }
.row.r4 { grid-template-columns: 2.2fr .8fr .9fr 1.3fr 30px; }
.row.r3 { grid-template-columns: 2.4fr .8fr 1.4fr 30px; }
.row.r2 { grid-template-columns: 2.6fr 1.4fr 30px; }
.row input, .field input { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .9rem; background: var(--cream); min-width: 0; }
.row-head { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.row .del { border: 0; background: none; color: #C9B8AA; font-size: 1.1rem; padding: 0; }
.row .del:hover { color: var(--chili); }
.btn-add { margin-top: 8px; border: 1px dashed #E0CDBB; background: none; border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: .86rem; color: var(--muted); width: 100%; }
.btn-add:hover { border-color: var(--chili); color: var(--chili); }
.result { background: var(--cream); border-radius: 16px; padding: 18px; align-self: start; position: sticky; top: 80px; }
.field { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.field input { margin-top: 4px; background: #fff; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form2 .field input { background: var(--cream); }
dl { margin: 6px 0 14px; }
dl div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
dl dt { color: var(--muted); }
dl dd { margin: 0; font-weight: 700; text-align: right; }
dl .big { border: 0; background: #fff; border-radius: 12px; padding: 12px; margin-top: 8px; }
dl .big dd { color: var(--leaf); font-size: 1.25rem; font-family: var(--serif); }
dl .neg dd { color: var(--chili); }
.target-box { background: #fff; border-radius: 12px; padding: 12px 14px; font-size: .88rem; border-left: 4px solid var(--mango); }
.calc-foot { display: flex; justify-content: space-between; margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.link { background: none; border: 0; color: var(--muted); font-weight: 600; font-size: .88rem; text-decoration: none; }
.link:hover { color: var(--chili); }

/* TEMPLATES */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.tpl { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.tpl-img { aspect-ratio: 1; background: repeating-conic-gradient(#FBF3EA 0 25%, #fff 0 50%) 0 0/18px 18px; display: grid; place-items: center; }
.tpl-img img { width: 100%; height: 100%; object-fit: contain; }
.tpl-ph { text-align: center; color: var(--muted); font-size: .85rem; padding: 10px; }
.tpl-ph b { display: block; font-size: 2rem; opacity: .5; }
.tpl-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: .86rem; font-weight: 600; border-top: 1px solid var(--line); }
.tpl-foot { gap: 8px; }
.tpl-foot > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-dl { flex: none; color: #fff; background: var(--chili); text-decoration: none; padding: 5px 10px; border-radius: 8px; font-size: .8rem; }
.tpl-dl:hover { background: var(--chili-d); }
.tpl-foot span.off { color: #C9B8AA; font-weight: 500; font-size: .78rem; }
#capChips { justify-content: center; margin-bottom: 18px; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cap { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; }
.cap h4 { margin: 0 0 2px; }
.cap small { color: var(--chili); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; }
.cap pre { white-space: pre-wrap; font: inherit; font-size: .86rem; color: #4A403A; background: var(--cream); padding: 12px; border-radius: 12px; margin: 10px 0; flex: 1; }
.cap button { align-self: flex-start; }

/* DOWNLOADS */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.dl { display: flex; gap: 14px; align-items: center; padding: 18px; text-decoration: none; border: 1px solid var(--line); transition: .2s; }
.dl:hover { transform: translateY(-3px); border-color: var(--mango); }
.dl h3 { margin: 0; font-size: 1rem; }
.dl p { margin: 2px 0 0; font-size: .84rem; color: var(--muted); line-height: 1.45; }
.dl-ico { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.dl-ico.xls { background: #E3F4E5; color: var(--leaf); }
.dl-ico.pdf { background: #FFF0EA; font-size: 1.5rem; }
.dl-go { margin-left: auto; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--chili); font-weight: 800; }
.sec-cta { background: linear-gradient(135deg, #E4572E, #F08A3E 55%, #FFB627); }
.sec-head.light h2, .sec-head.light p { color: #fff; }
.sec-head.light .eyebrow { color: #FFF1D6; }

.foot { padding: 28px 0; font-size: .85rem; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(43, 36, 32, .6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; background: #fff; border-radius: 22px; width: min(920px, 100%); max-height: calc(100vh - 32px); display: grid; grid-template-columns: minmax(0, 360px) 1fr; overflow: hidden; animation: pop .25s; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-media { background: #111; display: grid; place-items: center; min-height: 300px; }
.modal-media video { width: 100%; max-height: calc(100vh - 32px); aspect-ratio: 9/16; object-fit: contain; background: #000; }
.media-soon { color: #fff; text-align: center; padding: 30px; }
.media-soon b { display: block; font-size: 4rem; }
.modal-body { padding: 26px; overflow-y: auto; max-height: calc(100vh - 32px); }
.modal-body h3 { font-family: var(--serif); font-size: 1.6rem; margin: 4px 0 6px; line-height: 1.2; }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); font-size: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.tags span { background: var(--cream); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.bahan-grp h4 { margin: 12px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.bahan-grp ul { margin: 0; padding-left: 18px; font-size: .9rem; }
.bahan-grp li::marker { color: var(--mango); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; position: sticky; bottom: -26px; background: #fff; padding: 12px 0 4px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .9rem; z-index: 200; box-shadow: var(--shadow); }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .perks { grid-template-columns: repeat(3, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
  .dl-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .calc-grid { grid-template-columns: 1fr; }
  .result { position: static; }
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .modal-box { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-media video { max-height: 60vh; }
  .modal-body { max-height: none; overflow: visible; }
  .modal-actions { position: static; }
}
@media (max-width: 560px) {
  .sec { padding: 52px 0; }
  .hero { padding-top: 32px; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rc-body h3 { font-size: .9rem; }
  .search { max-width: none; }
  .form2 { grid-template-columns: 1fr; }
  .row.r4 { grid-template-columns: 1fr 1fr 1fr 30px; }
  .row.r4 > :first-child { grid-column: 1 / -1; }
  .row-head.r4 { display: none; }
  .panel.card { padding: 16px; }
  .tab { padding: 9px 12px; font-size: .85rem; }
}
