/* ============ TOKENS ============ */
:root {
  --ink: #1b1310;
  --ink-2: #2a1e19;
  --chili: #d7261e;
  --chili-d: #a8160f;
  --mustard: #f2b134;
  --leaf: #2f7d32;
  --cream: #f7efe2;
  --paper: #fffaf3;
  --line: #e8dcc9;
  --muted: #7a6a5c;
  --text: #2b211c;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(40, 20, 10, .06), 0 10px 30px -12px rgba(40, 20, 10, .18);
  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Outfit", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--f-body); color: var(--text); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
[hidden] { display: none !important; }
.shell { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-fire { background: var(--chili); color: #fff; box-shadow: 0 8px 24px -8px rgba(215, 38, 30, .7); }
.btn-fire:hover { background: var(--chili-d); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-off { background: #eee4d6; color: var(--muted); cursor: not-allowed; box-shadow: none; }
.btn-off:hover { transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--chili); font-weight: 600; text-decoration: none; font-size: .92rem; }
.link-btn:hover { text-decoration: underline; }

/* ============ TOPBAR ============ */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(27, 19, 16, .92); backdrop-filter: blur(12px); color: #fff; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-head); font-size: 1.25rem; font-weight: 600; }
.logo b { color: var(--mustard); font-weight: 800; }
.logo-badge { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--chili); font-size: 1.2rem; transform: rotate(-8deg); }
.logo-badge.sm { width: 28px; height: 28px; border-radius: 8px; font-size: .9rem; display: inline-grid; vertical-align: middle; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; opacity: .85; transition: background .15s, opacity .15s; }
.nav a i { font-style: normal; font-family: var(--f-mono); font-size: .7rem; color: var(--mustard); margin-right: 6px; }
.nav a:hover { background: rgba(255, 255, 255, .08); opacity: 1; }
.nav .nav-cta { background: var(--mustard); color: var(--ink); opacity: 1; font-weight: 700; margin-left: 8px; }
.nav .nav-cta:hover { background: #ffc44f; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .08); border-radius: 12px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.progress { height: 3px; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mustard), var(--chili)); }

/* ============ HERO ============ */
.hero { position: relative; background: var(--ink); color: #f6ece0; overflow: hidden; padding: 64px 0 0; }
.hero-glow { position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(circle, rgba(215, 38, 30, .45), transparent 65%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-bottom: 64px; }
.tag-hot { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(242, 177, 52, .4); color: var(--mustard); font-size: .88rem; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 800; color: #fff; }
.hero h1 mark { background: none; color: var(--mustard); position: relative; z-index: 0; white-space: nowrap; }
.hero h1 mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .18em; background: var(--chili); z-index: -1; border-radius: 4px; }
.h1-sub { color: rgba(255, 255, 255, .55); }
.hero-lead { font-size: 1.1rem; max-width: 560px; color: rgba(246, 236, 224, .8); margin: 22px 0 30px; }
.hero-lead b { color: #fff; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-btns .btn-line { color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero-stats { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--f-head); font-size: 2rem; color: #fff; line-height: 1; }
.hero-stats span { font-size: .85rem; color: rgba(246, 236, 224, .6); }

/* Receipt simulator */
.receipt { position: relative; background: #fffdf8; color: var(--text); border-radius: 6px 6px 0 0; padding: 26px 24px 30px; font-family: var(--f-mono); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transform: rotate(1.5deg); }
.receipt-head { text-align: center; border-bottom: 2px dashed #d8cbb7; padding-bottom: 14px; margin-bottom: 16px; }
.receipt-head b { display: block; letter-spacing: .08em; font-size: .95rem; }
.receipt-head small { color: var(--muted); font-size: .75rem; }
.rng { display: block; margin-bottom: 16px; }
.rng span { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: 6px; }
.rng b { color: var(--chili); }
input[type="range"] { width: 100%; accent-color: var(--chili); }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px dashed #d8cbb7; padding-top: 14px; }
.receipt-total span { font-size: .8rem; font-weight: 700; }
.receipt-total strong { font-size: 1.45rem; color: var(--ink); }
.meter { position: relative; height: 10px; background: #f0e6d8; border-radius: 999px; margin: 14px 0 8px; overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(45deg, var(--chili), var(--chili) 8px, #e8432f 8px, #e8432f 16px); border-radius: 999px; transition: width .25s; }
.meter-flag { position: absolute; right: 6px; top: -1px; font-size: .55rem; font-weight: 700; color: var(--muted); }
.receipt-note { font-size: .78rem; margin: 0; color: var(--muted); text-align: center; }
.receipt-cut { position: absolute; left: 0; right: 0; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, #fffdf8 0) 0 0 / 16px 12px, linear-gradient(45deg, transparent 8px, #fffdf8 0) 0 0 / 16px 12px; background-repeat: repeat-x; }

/* Ticker */
.ticker { border-top: 1px solid rgba(255, 255, 255, .1); background: var(--chili); overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: tick 110s linear infinite; font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; color: #fff; white-space: nowrap; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } html { scroll-behavior: auto; } }

/* ============ BENTO ============ */
.why { padding: 64px 0 24px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bx { background: var(--cream); border-radius: var(--r); padding: 24px; border: 1px solid var(--line); }
.bx b { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.bx h3 { font-size: 1.15rem; margin-bottom: 6px; }
.bx p { margin: 0; color: var(--muted); font-size: .95rem; }
.bx-wide { grid-column: span 2; }
.bx-red { background: var(--chili); color: #fff; border-color: var(--chili); }
.bx-red p { color: rgba(255, 255, 255, .85); }
.fine { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

/* ============ BLOCKS ============ */
.block { padding: 88px 0; }
.block-cream { background: var(--cream); }
.block-dark { background: var(--ink); color: #f6ece0; }
.block-head { max-width: 680px; margin-bottom: 40px; }
.block-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin: 10px 0 12px; }
.block-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.block-head.light h2 { color: #fff; }
.block-head.light p { color: rgba(246, 236, 224, .7); }
.block-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.block-head-row > div { max-width: 680px; }
.step { display: inline-block; font-family: var(--f-mono); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--chili); }
.block-dark .step { color: var(--mustard); }

/* ============ RECIPES ============ */
.recipe-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 92px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.filters h4 { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 0 10px; }
.search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.search-box:focus-within { border-color: var(--chili); box-shadow: 0 0 0 3px rgba(215, 38, 30, .12); }
.search-box input { border: 0; outline: 0; padding: 12px 0; width: 100%; font: inherit; background: transparent; }
.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; font-weight: 500; color: var(--text); }
.cat:hover { background: rgba(0, 0, 0, .04); }
.cat.active { background: var(--ink); color: #fff; }
.cat em { margin-left: auto; font-style: normal; font-family: var(--f-mono); font-size: .75rem; opacity: .6; }
.sambal-select { width: 100%; font: inherit; font-size: .92rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); cursor: pointer; }
.sambal-select:focus { outline: 0; border-color: var(--chili); box-shadow: 0 0 0 3px rgba(215, 38, 30, .12); }
.rc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(27, 19, 16, .62); color: #fff; display: grid; place-items: center; font-size: 1.15rem; padding-left: 4px; backdrop-filter: blur(4px); transition: transform .18s, background .18s; }
.rc:hover .rc-play { transform: translate(-50%, -50%) scale(1.1); background: var(--chili); }
.rc-dur { position: absolute; right: 10px; bottom: 10px; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; background: rgba(27, 19, 16, .78); color: #fff; padding: 3px 8px; border-radius: 6px; }
.rc-dur.soon { background: rgba(255, 255, 255, .9); color: var(--muted); }
.recipes.list .rc-play, .recipes.list .rc-dur { display: none; }
.heat-list { display: flex; flex-wrap: wrap; gap: 6px; }
.heat { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .85rem; }
.heat.active { background: var(--chili); color: #fff; border-color: var(--chili); }
.filters .link-btn { margin-top: 18px; }

.recipe-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.recipe-bar > span { font-family: var(--f-mono); font-size: .85rem; color: var(--muted); }
.view-toggle { display: flex; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.vt { border: 0; background: transparent; width: 36px; height: 32px; border-radius: 8px; color: var(--muted); }
.vt.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.rc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.rc:hover, .rc:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); outline: none; }
.rc:focus-visible { border-color: var(--chili); }
.rc-art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.rc-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-jar { width: 34%; aspect-ratio: 4 / 5; border-radius: 14px 14px 20px 20px; background: rgba(255, 255, 255, .92); position: relative; display: grid; place-items: center; font-size: 2.4rem; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.rc-jar::before { content: ""; position: absolute; top: -10px; left: 12%; right: 12%; height: 14px; border-radius: 6px; background: var(--ink); }
.rc-no { position: absolute; top: 10px; left: 10px; font-family: var(--f-mono); font-size: .72rem; font-weight: 700; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; }
.rc-heat { position: absolute; top: 10px; right: 10px; font-size: .72rem; font-weight: 700; background: rgba(255, 255, 255, .92); padding: 3px 8px; border-radius: 6px; }
.rc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rc-cat { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--chili); font-weight: 700; }
.rc-body h3 { font-size: 1.08rem; }
.rc-meta { font-size: .82rem; color: var(--muted); }
.rc-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); font-size: .8rem; }
.rc-foot .open { font-weight: 700; color: var(--ink); }
.badge-soon { font-size: .72rem; color: var(--muted); background: var(--cream); padding: 3px 8px; border-radius: 6px; }
.badge-ok { font-size: .72rem; color: var(--leaf); background: #e7f3e7; padding: 3px 8px; border-radius: 6px; font-weight: 600; text-decoration: none; }

/* list view */
.recipes.list { grid-template-columns: 1fr; gap: 10px; }
.recipes.list .rc { flex-direction: row; align-items: stretch; }
.recipes.list .rc-art { aspect-ratio: auto; width: 110px; flex-shrink: 0; }
.recipes.list .rc-jar { width: 52%; font-size: 1.5rem; border-radius: 8px 8px 12px 12px; }
.recipes.list .rc-jar::before { top: -6px; height: 8px; }
.recipes.list .rc-no, .recipes.list .rc-heat { display: none; }
.recipes.list .rc-body { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 16px; }
.recipes.list .rc-body h3 { flex: 1 1 200px; }
.recipes.list .rc-cat { flex-basis: 100%; }
.recipes.list .rc-foot { border: 0; padding: 0; margin: 0; gap: 12px; }
.empty { text-align: center; padding: 40px; color: var(--muted); }

/* ============ CALCULATOR ============ */
.calc { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.calc-steps { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 92px; }
.cstep { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); transition: border-color .15s, background .15s; }
.cstep i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); font-family: var(--f-mono); font-weight: 700; flex-shrink: 0; }
.cstep b { display: block; font-size: .98rem; }
.cstep small { color: var(--muted); font-size: .8rem; }
.cstep.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.cstep.active i { background: var(--chili); color: #fff; }
.cstep.active small { color: rgba(255, 255, 255, .6); }
.calc-links { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 0 6px; }
.calc-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); min-width: 0; }
.pane-grid { display: grid; grid-template-columns: 1fr 300px; gap: 26px; }
.sheet { min-width: 0; }
.sheet h3 { font-size: 1.05rem; margin-bottom: 12px; }
.mt { margin-top: 26px; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.row { display: grid; gap: 6px; align-items: center; }
.row.r4 { grid-template-columns: 2fr .7fr .8fr 1.2fr 32px; }
.row.r3 { grid-template-columns: 2.4fr .7fr 1.3fr 32px; }
.row.r2 { grid-template-columns: 2.4fr 1.3fr 32px; }
.row-head span { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.row input, .fld input { width: 100%; min-width: 0; font: inherit; font-size: .92rem; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.row input:focus, .fld input:focus { outline: 0; border-color: var(--chili); background: #fff; box-shadow: 0 0 0 3px rgba(215, 38, 30, .1); }
.del { border: 0; background: transparent; color: #b9a893; border-radius: 8px; height: 34px; }
.del:hover { background: #fde8e6; color: var(--chili); }
.add-row { margin-top: 8px; border: 1px dashed #cdbca5; background: transparent; border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.add-row:hover { border-color: var(--chili); color: var(--chili); }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; font-weight: 600; margin-bottom: 12px; }
.form2 .fld { margin: 0; }
.tally { background: var(--ink); color: #f6ece0; border-radius: 14px; padding: 20px; align-self: start; position: sticky; top: 92px; }
.tally .fld { color: rgba(246, 236, 224, .8); }
.tally .fld input { background: var(--ink-2); border-color: #3e2f27; color: #fff; }
.tally dl { margin: 6px 0 16px; font-family: var(--f-mono); font-size: .84rem; }
.tally dl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #3e2f27; }
.tally dt { color: rgba(246, 236, 224, .65); }
.tally dd { margin: 0; font-weight: 700; text-align: right; }
.tally .big dt { color: #fff; }
.tally .big dd { color: var(--mustard); font-size: 1.1rem; }
.tally .neg dd { color: #ff7b6e; }
.tally .btn-line { color: #fff; border-color: rgba(255, 255, 255, .3); width: 100%; }
.goal { background: rgba(242, 177, 52, .12); border: 1px solid rgba(242, 177, 52, .35); border-radius: 12px; padding: 12px 14px; font-size: .88rem; }
.goal b { color: var(--mustard); }

/* ============ BRANDING ============ */
.seg { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 28px; flex-wrap: wrap; }
.seg-btn { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.seg-btn.active { background: var(--ink); color: #fff; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tpl { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.tpl-img { aspect-ratio: 1; background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 12px, #f1e6d4 12px, #f1e6d4 24px); display: grid; place-items: center; }
.tpl-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
#tplStiker { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
#tplStiker .tpl-img { aspect-ratio: 16 / 10; }
.tpl-grup { grid-column: 1 / -1; margin: 8px 0 -4px; font-size: .95rem; color: var(--muted); }
.tpl-ph { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 600; }
.tpl-ph b { display: block; font-size: 2rem; }
.tpl-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px 14px; font-size: .88rem; font-weight: 600; border-top: 1px solid var(--line); }
.tpl-foot > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-foot .off { font-size: .78rem; color: var(--muted); font-weight: 500; text-align: center; padding: 9px; border: 1px dashed var(--line); border-radius: 10px; }
.tpl-dl { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  background: var(--chili); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem;
  box-shadow: 0 3px 0 #8e1c12; transition: transform .12s, box-shadow .12s, background .12s; }
.tpl-dl svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 600px) {
  #tplLogo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #tplLogo .tpl-foot { padding: 10px; gap: 8px; font-size: .8rem; }
  #tplLogo .tpl-dl { padding: 9px 6px; font-size: .82rem; gap: 6px; }
}
.tpl-dl:hover { background: #c41f18; transform: translateY(-1px); box-shadow: 0 4px 0 #8e1c12; }
.tpl-dl:active { transform: translateY(2px); box-shadow: 0 1px 0 #8e1c12; }
.tpl-dl:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
.cap-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.cap-cats { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 92px; }
.cap-cats .cat em { display: none; }
.cap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cap { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; }
.cap small { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; color: var(--chili); font-weight: 700; }
.cap h4 { font-size: 1.05rem; margin: 4px 0 10px; }
.cap pre { white-space: pre-wrap; font-family: var(--f-body); font-size: .88rem; background: var(--paper); border-radius: 10px; padding: 12px; margin: 0 0 12px; flex: 1; border-left: 3px solid var(--mustard); }
.cap .btn { align-self: flex-start; }

/* ============ FILES ============ */
.files { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.file { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; text-decoration: none; border-bottom: 1px solid var(--line); }
.file:last-child { border-bottom: 0; }
a.file:hover { background: var(--paper); }
.file-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-family: var(--f-mono); font-weight: 700; font-size: .85rem; background: #e3f1e4; color: var(--leaf); }
.file h3 { font-size: 1.08rem; margin-bottom: 2px; }
.file p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ============ BONUS CAROUSEL ============ */
.carousel-nav { display: flex; gap: 8px; flex-shrink: 0; }
.cnav { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; }
.cnav:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.carousel > * { scroll-snap-align: start; }
.bc { text-decoration: none; color: inherit; }
.bc .rc-art { font-size: 4rem; }
.bc .rc-art .rc-no { background: rgba(0, 0, 0, .6); }

/* ============ STRATEGI ============ */
.strat { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.st { background: var(--ink-2); border: 1px solid #3a2b23; border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.st-ico { font-size: 2.2rem; }
.st h3 { font-size: 1.5rem; color: #fff; }
.st p { margin: 0; color: rgba(246, 236, 224, .7); }
.st ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st li { font-size: .82rem; padding: 5px 12px; border-radius: 999px; background: rgba(242, 177, 52, .12); color: var(--mustard); }
.st .btn { align-self: flex-start; margin-top: 6px; }
.st .btn-off { background: #3a2b23; color: rgba(246, 236, 224, .5); }
.roadmap { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: wk; }
.roadmap li { position: relative; padding: 28px 18px 0 0; border-top: 2px solid #3a2b23; }
.roadmap li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--chili); box-shadow: 0 0 0 4px var(--ink); }
.roadmap b { display: block; font-family: var(--f-head); color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.roadmap span { color: rgba(246, 236, 224, .7); font-size: .92rem; }

/* ============ FOOTER ============ */
.footer { background: #120c0a; color: rgba(246, 236, 224, .7); padding: 26px 0; font-size: .92rem; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer b { color: #fff; }
.footer a { color: var(--mustard); text-decoration: none; }
.footer p { margin: 0; }

/* ============ DRAWER ============ */
.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(18, 12, 10, .6); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; animation: fade .2s; }
.drawer-panel { width: min(560px, 100%); height: 100%; background: var(--paper); display: flex; flex-direction: column; position: relative; animation: slide .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1rem; }
.drawer-x:hover { background: var(--chili); }
.drawer-media { flex-shrink: 0; background: #000; }
.drawer-media video { width: 100%; height: min(62vh, 640px); max-height: none; object-fit: contain; background: #000; display: block; }
/* Player + subtitle per kata (overlay; file video tidak diubah) */
.vplayer { position: relative; background: #000; }
.vsub { position: absolute; left: 6%; right: 6%; bottom: 56px; text-align: center; pointer-events: none; z-index: 1; }
.vsub-line { display: inline; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.05rem, 3.6vw, 1.5rem); line-height: 1.5; color: #fff;
  text-shadow: 0 0 3px #000, 0 2px 4px #000, 0 0 10px rgba(0, 0, 0, .8); -webkit-text-stroke: .5px rgba(0, 0, 0, .6); }
.vsub .w { display: inline-block; padding: 0 .18em; border-radius: 6px; transition: background .08s, color .08s, transform .08s; }
.vsub .w.done { color: #fff; }
.vsub .w.on { background: var(--mustard); color: var(--ink); text-shadow: none; -webkit-text-stroke: 0; transform: scale(1.08); }
.vsub .w:not(.on):not(.done) { opacity: .75; }
.cc-btn { position: absolute; top: 14px; left: 14px; z-index: 2; border: 0; border-radius: 8px; padding: 6px 10px; font-family: var(--f-mono); font-size: .75rem; font-weight: 700; background: var(--mustard); color: var(--ink); }
.cc-btn.off { background: rgba(0, 0, 0, .55); color: #fff; text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { .vsub .w { transition: none; } .vsub .w.on { transform: none; } }
.media-soon { aspect-ratio: 16 / 7; max-height: 32vh; display: grid; place-items: center; text-align: center; color: #fff; font-weight: 600; gap: 4px; padding: 20px; }
.media-soon b { font-size: 3.4rem; display: block; line-height: 1; margin-bottom: 8px; }
.media-soon small { display: block; opacity: .8; font-weight: 500; }
.drawer-body { padding: 22px 26px; overflow-y: auto; flex: 1; }
.drawer-body h3 { font-size: 1.7rem; margin: 6px 0 8px; }
.drawer-body .muted { margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.fact { background: var(--cream); border-radius: 10px; padding: 10px 12px; }
.fact small { display: block; font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; color: var(--muted); }
.fact span { font-weight: 600; font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chips span { font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: #fde8e6; color: var(--chili-d); font-weight: 600; }
.dtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.dtab { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dtab.active { color: var(--ink); border-color: var(--chili); }
.bgrp h4 { font-size: .95rem; margin: 14px 0 6px; }
.bgrp h4:first-child { margin-top: 0; }
.bgrp ul { margin: 0; padding-left: 0; list-style: none; }
.bgrp li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.bgrp li::before { content: "🌶"; position: absolute; left: 0; font-size: .8rem; top: 7px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 16px 44px; font-size: .95rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; font-weight: 700; }
.tipbox { background: rgba(242, 177, 52, .15); border: 1px solid rgba(242, 177, 52, .45); border-radius: 12px; padding: 14px 16px; font-size: .95rem; }
.drawer-actions { padding: 16px 26px; border-top: 1px solid var(--line); background: #fff; display: flex; gap: 10px; flex-wrap: wrap; }
.drawer-actions .btn { flex: 1; }
.drawer-actions .credit { flex: 0 1 auto; font-size: .85rem; padding: 12px 16px; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-by { font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ BELANJA ============ */
.shop { display: grid; gap: 36px; }
.shop-group > header { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.shop-group > header i { font-style: normal; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--mustard); font-family: var(--f-mono); font-weight: 700; display: grid; place-items: center; }
.shop-group h3 { font-family: var(--f-head); font-size: 1.3rem; font-weight: 800; margin: 0 0 2px; }
.shop-group header p { margin: 0; color: var(--muted); font-size: .92rem; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shop-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.shop-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shop-pic { position: relative; aspect-ratio: 4 / 3; background: var(--cream); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.shop-pic img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.shop-pic span { font-size: 2.6rem; }
.shop-pic em { position: absolute; left: 10px; top: 10px; font-style: normal; background: var(--chili); color: #fff; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.shop-txt { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.shop-txt h4 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.shop-txt p { margin: 0 0 14px; color: var(--muted); font-size: .86rem; line-height: 1.45; flex: 1; }
.shop-foot { display: flex; flex-direction: column; gap: 10px; }
.shop-foot b { font-family: var(--f-mono); font-size: .82rem; color: var(--chili-d); }
.shop-btn { display: block; text-align: center; padding: 9px 12px; border-radius: 10px; font-weight: 700; font-size: .86rem; background: #ee4d2d; color: #fff; text-decoration: none; }
.shop-btn:hover { background: #d73211; }
.shop-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 6px; }
.shop-btns .shop-btn { padding-inline: 6px; }
.shop-btn.off { background: var(--cream); color: var(--muted); border: 1px dashed var(--line); cursor: default; }
.shop-note { margin-top: 28px; }

/* ============ TOAST ============ */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 200; box-shadow: var(--shadow); font-size: .92rem; max-width: calc(100% - 32px); text-align: center; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .receipt { max-width: 440px; transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .recipe-layout, .calc { grid-template-columns: 1fr; }
  .filters, .calc-steps { position: static; }
  .calc-steps { flex-direction: row; overflow-x: auto; }
  .cstep { flex: 1 0 auto; }
  .calc-links { flex-direction: row; align-items: center; margin: 0; padding: 0 8px; flex-shrink: 0; }
  .pane-grid { grid-template-columns: 1fr; }
  .tally { position: static; }
  .roadmap { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); padding: 12px 16px 20px; gap: 2px; border-bottom: 1px solid rgba(255, 255, 255, .1); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .cap-wrap { grid-template-columns: 1fr; }
  .cap-cats { position: static; flex-direction: row; flex-wrap: wrap; }
  .cap-cats .cat { width: auto; border: 1px solid var(--line); }
  .strat { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .block { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .bento { grid-template-columns: 1fr; }
  .bx-wide { grid-column: auto; }
  .recipes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rc-body { padding: 12px; }
  .rc-body h3 { font-size: .98rem; }
  .rc-foot .open { display: none; }
  .row.r4 { grid-template-columns: .8fr 1fr 1.3fr 32px; }
  .row.r4 input:first-child { grid-column: 1 / -1; }
  .row.r4.row-head { display: none; }
  .row.r3, .row.r2 { grid-template-columns: 1fr 1fr 32px; }
  .row.r3 input:first-child { grid-column: 1 / -1; }
  .row.r3.row-head { display: none; }
  .form2 { grid-template-columns: 1fr; }
  .calc-body { padding: 16px; }
  .block-head-row { flex-direction: column; align-items: flex-start; }
  .roadmap { grid-template-columns: 1fr; }
  .file { grid-template-columns: 44px 1fr; padding: 16px; }
  .file-ico { width: 44px; height: 44px; }
  .file > :last-child { grid-column: 2; justify-self: start; }
  .drawer-body, .drawer-actions { padding-inline: 18px; }
  .drawer-media video { height: 52vh; }
  .shop-grid { grid-template-columns: 1fr; gap: 12px; }
  .shop-item { flex-direction: row; }
  .shop-pic { flex: none; width: 104px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .shop-pic span { font-size: 2rem; }
  .shop-pic em { left: 6px; right: 6px; top: 6px; text-align: center; font-size: .6rem; padding: 2px 4px; }
  .shop-txt { padding: 12px 14px; }
  .shop-txt p { margin-bottom: 10px; }
}
@media (max-width: 330px) { .recipes { grid-template-columns: 1fr; } }
