:root {
  --yellow: #FFD400;
  --yellow-soft: #FFF3A3;
  --ink: #111111;
  --paper: #FFFDF2;
  --muted: #5b5640;
  --red: #E63946;
  --blue: #4FC3F7;
  --green: #25D366;
  --ganti: #FF9F1C;
  --radius: 14px;
  --shadow: 5px 5px 0 var(--ink);
  --font-display: 'Bangers', 'Impact', sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--yellow);
  background-image: radial-gradient(rgba(0,0,0,.12) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  line-height: 1.45;
  padding-bottom: 92px;
}
a { color: inherit; }
button { font: inherit; }

.tape {
  height: 22px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 18px, var(--yellow) 18px 36px);
  border-bottom: 3px solid var(--ink);
}
.tape.thin { height: 12px; border: 0; }

.hero, main { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.hero { text-align: center; padding-top: 22px; padding-bottom: 8px; }
.mascot { display: inline-block; transform: rotate(-8deg); filter: drop-shadow(3px 3px 0 rgba(0,0,0,.25)); }
.kicker {
  display: inline-block; margin: 10px 0 4px; padding: 3px 10px;
  background: var(--ink); color: var(--yellow);
  font-weight: 900; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(-1.5deg);
}
h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 13vw, 68px); line-height: .92; letter-spacing: .02em;
  margin: 6px 0 10px;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
}
/* Bangers' 7 reads like a 1 — use the heavy body face for digits */
h1 .yr { color: var(--red); font-family: var(--font-body); font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.tagline { font-size: 16px; margin: 0 auto 8px; max-width: 30em; }

/* Panels */
.panel {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 18px 0;
}
h2 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: .03em;
  font-size: 26px; line-height: 1.05; margin: 0 0 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
h2 small { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
h2 .num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  background: var(--ink); color: var(--yellow); border-radius: 50%; font-size: 18px;
}
h3 { margin: 0 0 8px; font-size: 16px; font-weight: 900; }

/* State picker */
.states { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 420px) { .states { grid-template-columns: repeat(3, 1fr); } }
.state {
  border: 2.5px solid var(--ink); border-radius: 10px; background: #fff;
  padding: 10px 8px; font-weight: 700; font-size: 14px; cursor: pointer; text-align: left;
  box-shadow: 2px 2px 0 var(--ink); transition: transform .08s;
  min-height: 48px; display: flex; flex-direction: column; justify-content: center;
}
.state small { font-weight: 500; font-size: 11px; color: var(--muted); }
.state:active { transform: translate(2px, 2px); box-shadow: none; }
.state[aria-checked="true"] { background: var(--ink); color: var(--yellow); }
.state[aria-checked="true"] small { color: var(--yellow-soft); }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); min-height: 1em; }

/* Plan summary */
.plan { background: var(--ink); color: var(--paper); }
.plan h2 { color: var(--yellow); }
.plan .big { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--yellow); margin: 4px 0 8px; letter-spacing: .02em; }
.budget { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; align-items: center; font-size: 14px; }
.budget button {
  border: 2px solid var(--yellow); background: transparent; color: var(--yellow);
  border-radius: 999px; padding: 6px 14px; font-weight: 900; cursor: pointer; min-height: 40px;
}
.budget button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.plan ol { margin: 0; padding-left: 20px; font-size: 14px; }
.plan li { margin: 3px 0; }
.plan li b { color: var(--yellow); }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; font-weight: 700; margin-bottom: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 3px; display: inline-block; }

.k-holiday, .cal .d.holiday { background: var(--yellow); }
.k-ganti, .cal .d.ganti { background: var(--ganti); }
.k-weekend, .cal .d.weekend { background: var(--ink); color: var(--paper); }
.k-leave, .cal .d.leave { background: repeating-linear-gradient(-45deg, var(--red) 0 4px, #fff 4px 8px); }

/* Deal cards */
.deals { display: grid; gap: 14px; }
.deal {
  border: 3px solid var(--ink); border-radius: 12px; background: #fff;
  padding: 14px; position: relative; overflow: hidden;
}
.deal .rank {
  position: absolute; top: 0; right: 0;
  background: var(--ink); color: var(--yellow);
  font-family: var(--font-display); font-size: 18px; letter-spacing: .04em;
  padding: 4px 10px 4px 14px; border-bottom-left-radius: 12px;
}
.deal .badge {
  display: inline-block; background: var(--red); color: #fff; font-weight: 900; font-size: 11px;
  padding: 2px 8px; border-radius: 4px; transform: rotate(-2deg); letter-spacing: .05em;
}
.deal .headline { font-family: var(--font-display); font-size: 30px; line-height: 1; margin: 8px 0 4px; letter-spacing: .02em; padding-right: 40px; }
.deal .headline em { font-style: normal; color: var(--red); }
.deal .headline .arrow { color: var(--muted); }
.deal .range { font-weight: 700; font-size: 14px; margin: 0 0 2px; }
.deal .apply { font-size: 14px; margin: 0 0 8px; }
.deal .apply b { background: var(--yellow-soft); padding: 0 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.chip { font-size: 12px; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 8px; background: var(--yellow-soft); }
.chip.g { background: #FFE0B8; }
.est { color: var(--red); font-weight: 900; }
.warn { font-size: 12px; color: var(--red); font-weight: 700; margin: 4px 0 0; }
.quip { font-size: 13px; font-style: italic; color: var(--muted); margin: 8px 0 0; }
.deal .actions { display: flex; gap: 8px; margin-top: 10px; }

/* Mini calendar */
.cal { margin-top: 6px; }
.cal .dow, .cal .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .dow span { text-align: center; font-size: 10px; font-weight: 900; color: var(--muted); }
.cal .week { margin-top: 3px; }
.cal .d {
  aspect-ratio: 1 / 1; max-height: 44px; border: 1.5px solid #ccc; border-radius: 6px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; position: relative; background: #fff;
}
.cal .d.in { border-color: var(--ink); border-width: 2px; }
.cal .d.out { opacity: .35; }
.cal .d .m { position: absolute; top: 1px; left: 3px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.cal .d.leave { font-weight: 900; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; }

/* Freebies & full list */
.freebies, .all { list-style: none; margin: 0; padding: 0; }
.freebies li, .all li { padding: 9px 0; border-bottom: 1.5px dashed #c9c2a0; font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.freebies li:last-child, .all li:last-child { border-bottom: 0; }
.freebies .n { font-family: var(--font-display); font-size: 22px; min-width: 64px; }
.all .dt { font-weight: 900; min-width: 92px; }
.all .g { color: #b35f00; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details summary h2::after { content: '▼'; font-size: 14px; margin-left: auto; transition: transform .2s; }
details[open] summary h2::after { transform: rotate(180deg); }
details summary h2 { margin-bottom: 0; }
details[open] summary h2 { margin-bottom: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 16px; border: 3px solid var(--ink); border-radius: 12px;
  font-weight: 900; font-size: 15px; text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); background: #fff; color: var(--ink);
}
.btn:active { transform: translate(3px, 3px); box-shadow: none; }
.btn.wa { background: var(--green); color: #fff; }
.btn.dark { background: var(--ink); color: var(--yellow); }
.btn.ghost { width: 100%; margin-top: 14px; background: var(--yellow-soft); }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); border-width: 2px; }

.sharebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; gap: 10px; justify-content: center;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--yellow); border-top: 3px solid var(--ink);
}
.sharebar .btn { flex: 1; max-width: 270px; white-space: nowrap; font-size: 14px; padding: 10px 12px; }

/* Fine print */
.fine { font-size: 13px; background: var(--yellow-soft); }
.fine ul { margin: 0; padding-left: 18px; }
.fine li { margin: 4px 0; }
.src { margin: 10px 0 0; font-size: 12px; }

.foot { text-align: center; font-size: 13px; margin-top: 24px; }
.foot p { max-width: 560px; margin: 0 auto; padding: 14px 16px 0; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: var(--ink); color: var(--yellow); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 14px; z-index: 20; box-shadow: 3px 3px 0 rgba(0,0,0,.3);
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Digits: Bangers' 7 looks like a 1, so numbers use the heavy body face */
.deal .headline em, .freebies .n, h2 .num { font-family: var(--font-body); font-weight: 900; font-style: italic; }
.deal .headline em { font-size: 28px; }
.freebies .n { font-size: 18px; }
h2 .num { font-style: normal; font-size: 16px; }
.plan .big { font-family: var(--font-body); font-weight: 900; font-style: italic; font-size: 30px; letter-spacing: -.01em; }

/* Email signup */
.signup { background: var(--paper); border-width: 4px; }
.signup .su-pitch { margin: 0 0 12px; font-size: 15px; }
.signup form { display: grid; gap: 10px; }
.signup input[type="email"] {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 700 16px var(--font-body);
  border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink);
}
.signup input[type="email"]:focus { outline: 3px solid var(--red); outline-offset: 2px; }
.signup .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; cursor: pointer; }
.signup .consent input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--ink); }
.signup button { width: 100%; }
.signup button[disabled] { opacity: .6; cursor: wait; }
.su-msg { margin: 0; min-height: 1.2em; font-size: 14px; font-weight: 700; color: var(--red); }
.su-done { background: var(--yellow-soft); border: 2px dashed var(--ink); border-radius: 12px; padding: 14px; }
.su-done p { margin: 0 0 6px; font-size: 14px; }
.su-done .su-big { font-family: var(--font-display); font-size: 28px; letter-spacing: .02em; margin: 0 0 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
