/* Papan Tiket. Loaded after mvp.css, so the resets below undo its element styling. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/static/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/static/fonts/martian-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/static/fonts/martian-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ground: #0F2A22;
  --paper: #F3F1EA;
  --white: #FFFFFF;
  --accent: #FF6B2C;
  --accent-text: #FF8A57;
  --muted: #C4D0C9;
  --ink-muted: #40524A;
  --line: #6E8579;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", "Courier New", monospace;
}

/* Reset what mvp.css styles on bare elements */
header, footer, section, article, nav {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
  font-weight: inherit;
}
section { display: block; flex-wrap: nowrap; justify-content: normal; }
h1, h2, h3, p { margin: 0; }
p { width: auto; }
ul { margin: 0; padding: 0; list-style: none; }
ul li { padding: 0; }
a, a:visited { display: inline; color: var(--paper); font-weight: inherit; }
aside, section aside, article aside {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  width: auto;
}
section aside:hover { box-shadow: none; }
form {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  min-width: 0;
  padding: 0;
}
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0 0 10px; }
[hidden] { display: none !important; }

body {
  background: var(--ground);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
}
.page { overflow: hidden; }
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 64px) 48px;
}
.stack-lg { display: flex; flex-direction: column; gap: clamp(64px, 9vw, 112px); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

.mono { font-family: var(--mono); font-size: 14px; }
.muted { color: var(--muted); }
.label { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent-text); }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.h-sub { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }

/* Buttons */
.btn, .btn:visited {
  display: flex;
  align-items: center;
  background: var(--accent);
  color: var(--ground);
  font-weight: 700;
  text-decoration: none;
}
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-lg { min-height: 48px; padding: 0 22px; }

/* Header */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; }
.brand, .brand:visited { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; text-decoration: none; }
.brand::before { content: ""; width: 46px; height: 44px; background: url("/static/img/si-mpul-logo.webp") center / contain no-repeat; }
.topnav { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px 28px; font-size: 16px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead { max-width: 50ch; font-size: clamp(18px, 2vw, 21px); color: var(--muted); text-wrap: pretty; }

/* Example tickets */
.tickets { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; }
.ticket {
  background: var(--paper);
  color: var(--ground);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.ticket + .ticket { margin-top: -6px; }
.t1 { transform: rotate(-2.4deg); }
.t2 { background: var(--white); transform: rotate(1.6deg); }
.t3 { transform: rotate(-1deg); }
.ticket-text { display: flex; flex-direction: column; gap: 4px; }
.ticket-title { font-weight: 700; }
.tid { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); }
.tag { font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 4px 8px; }
.tag-new { background: var(--accent); }
.tag-doing { background: var(--ground); color: var(--paper); }
.tag-done { border: 1px solid var(--ground); padding: 3px 7px; }

/* Sections */
.block { display: flex; flex-direction: column; gap: 28px; }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  border-top: 2px solid var(--paper);
}
.step { padding: 18px 24px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.step strong { font-size: 22px; }
.step-art { width: 100%; max-width: 240px; height: 200px; object-fit: contain; object-position: left center; margin: 0 0 8px; }

/* Si Mpul art */
.hero-art { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.hero-art img { width: min(100%, 420px); height: auto; margin: 0; }
.hero-art .tickets { flex: none; width: 100%; margin-top: -28px; position: relative; }
.about-head img { width: 100%; max-width: 480px; height: auto; margin: 12px 0 0; }
.plan-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.plan-row .plan { flex: 3 1 420px; min-width: 0; }
.plan-art { flex: 1 1 200px; min-width: 0; max-width: 300px; height: auto; margin: 0; }
.status-art { width: min(100%, 240px); height: auto; margin: 0; align-self: center; }

/* FAQ */
.faq-list { border-top: 2px solid var(--paper); }
.faq-list details { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px dashed var(--line); }
.faq-list summary { margin: 0; padding: 14px 0; background: none; color: var(--paper); font-weight: 700; cursor: pointer; }
.faq-list details[open] summary { margin: 0; box-shadow: none; border-radius: 0; }
.faq-list p { margin: 0 0 16px; max-width: 72ch; color: var(--muted); }

/* Closing band, shaped like a ticket */
.cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: clamp(24px, 4vw, 40px); background: var(--accent); color: var(--ground); }
.cta::before, .cta::after { content: ""; position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--ground); }
.cta::before { left: -14px; }
.cta::after { right: -14px; }
.cta img { flex: 0 1 220px; min-width: 0; height: auto; margin: 0 auto; }
.cta-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-copy p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-dark, .btn-dark:visited { background: var(--ground); color: var(--paper); }

/* About */
section[id] { scroll-margin-top: 24px; }
.about { display: flex; flex-wrap: wrap; gap: 32px 56px; }
.about-head { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.about-body { flex: 3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-points { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--paper); }
.about-points li { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 0; border-bottom: 1px dashed var(--line); }

/* Plan ticket */
.plan { background: var(--paper); color: var(--ground); display: flex; flex-direction: column; }
.plan-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan h3 { font-size: 32px; font-weight: 800; line-height: 1.1; }
.incl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 8px 32px;
}
.note { font-size: 15px; color: var(--ink-muted); }
.perf { display: flex; align-items: center; }
.notch { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--ground); }
.notch:first-child { margin-left: -11px; }
.notch:last-child { margin-right: -11px; }
.perf-line { flex: 1; border-top: 2px dashed var(--ground); }
.plan-foot {
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.amount { font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.per { font-size: 16px; }

/* Add-ons */
.addon-group { display: flex; flex-direction: column; gap: 12px; }
.addons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 0 40px;
  border-top: 2px solid var(--paper);
}
.addon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 48px;
  border-top: 2px dashed var(--line);
  padding-top: 24px;
  font-size: 15px;
  color: var(--muted);
}
.foot-col { display: flex; flex-direction: column; }
.foot-col:first-child { flex: 0 1 62ch; min-width: 0; }
.foot-col strong { color: var(--paper); }
.foot-links { gap: 2px; }

/* Order and payment pages */
.stack { display: flex; flex-direction: column; gap: 32px; }
.alert { background: var(--paper); color: var(--ground); border-left: 8px solid var(--accent); padding: 14px 18px; }
.alert ul { display: flex; flex-direction: column; gap: 4px; }

.order { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.order-narrow { max-width: 560px; }
.fields { flex: 3 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

/* Radios and checkboxes look like the design's pressed buttons; the input itself is hidden but stays focusable */
.opt { position: relative; display: flex; }
.opt > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.opt > input + .tile {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px 16px;
  box-sizing: border-box;
  min-height: 52px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--paper);
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  position: static;
}
.opt > input + .tile strong { font-weight: 700; }
.opt > input:checked + .tile { background: var(--accent); border-color: var(--accent); color: var(--ground); }
.opt > input:focus-visible + .tile { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.opt > input:disabled + .tile { cursor: not-allowed; }

.opts-months, .opts-hours { display: grid; gap: 10px; }
.opts-months { grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); }
.opts-months .opt > input + .tile { min-height: 60px; color: var(--ground); font-weight: 700; }
.opts-months .opt > input:not(:checked) + .tile { background: var(--paper); border-color: var(--paper); }
.opts-hours { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 8px; }
.opt > input + .tile-col { flex-direction: column; align-items: flex-start; justify-content: center; min-height: 76px; gap: 2px; }
.tile .mono, .row .mono { font-size: 13px; }

.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  min-height: 52px;
  padding: 4px 8px 4px 14px;
  border: 1px solid var(--line);
}
.row.on { background: var(--accent); border-color: var(--accent); color: var(--ground); }
.row-text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.stepper { display: flex; align-items: center; }
.step-btn {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ground);
  font: inherit;
  font-weight: 700;
}
.row.on .step-btn { background: var(--ground); color: var(--paper); }
.stepper input {
  width: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }


.client { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.client-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.client label, .bank label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 15px; font-weight: 400; }
.client input, .bank select {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  font: inherit;
  color: var(--ground);
}
.client input { min-height: 48px; padding: 0 12px; border: 0; background: var(--paper); }
.bank { display: flex; flex-direction: column; gap: 4px; }
.bank select { min-height: 44px; padding: 0 8px; border: 1px solid var(--ground); background: var(--white); }

/* Summary ticket */
.sum { flex: 2 1 340px; min-width: 0; background: var(--paper); color: var(--ground); display: flex; flex-direction: column; }
.sum a, .sum a:visited { color: var(--ground); text-decoration: underline; }
.sum-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.cap { margin: 0 0 8px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.5; }
.srow { display: flex; justify-content: space-between; gap: 16px; }
.srow > span + span { white-space: nowrap; }
.sum-lines { display: flex; flex-direction: column; gap: 6px; }
.srow-strong { margin-top: 6px; font-weight: 700; }
.sum-total { display: flex; flex-direction: column; margin-top: 12px; }
.sum-total > span:first-child { font-size: 15px; }

.methods { display: flex; flex-direction: column; gap: 8px; }
.methods .opt > input + .tile { border-color: var(--ground); color: var(--ground); font-weight: 700; }
.methods .opt > input:checked + .tile { background: var(--ground); color: var(--paper); }
.methods .opt > input:disabled + .tile { border: 1px dashed var(--ink-muted); background: none; color: var(--ink-muted); font-weight: 400; }
.limit { font-size: 14px; font-weight: 400; }
.pay-btn {
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--ground);
  font: inherit;
  font-weight: 700;
}
.pay-btn:disabled { background: var(--line); color: var(--ink-muted); }

/* Status page */
.status { max-width: 640px; }
.status .tag { align-self: flex-start; }
.h-ticket { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.status-sum { gap: 6px; }
.btn-alt, .btn-alt:visited { background: none; border: 2px solid var(--ground); }

/* Legal pages */
.prose { gap: 16px; max-width: 72ch; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { margin: 24px 0 0; font-size: clamp(22px, 3vw, 26px); font-weight: 800; line-height: 1.2; color: var(--paper); }
.prose p, .prose ul { margin: 0; color: var(--paper); }
.prose ul { padding-left: 22px; list-style: disc; }
.prose li { margin-bottom: 6px; }
.prose a, .prose a:visited { color: var(--accent-text); }
.prose p.muted { color: var(--muted); font-size: 16px; }

/* WhatsApp buttons: the logo takes the button's text colour */
.wa { display: inline-flex; align-items: center; gap: 8px; }
.wa::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("/static/img/whatsapp.svg") center / contain no-repeat;
  mask: url("/static/img/whatsapp.svg") center / contain no-repeat;
}

/* Phones: header shows only the brand and order button, the ticket journey is centered */
@media (max-width: 720px) {
  .top { flex-wrap: nowrap; }
  .topnav a:not(.btn) { display: none; }
  #alur h2 { text-align: center; }
  .step { align-items: center; padding-right: 0; text-align: center; }
  .step-art { object-position: center; }
}

/* Hard offset shadow: white on the dark ground, near-black on light surfaces */
.plan, .sum, .cta { --shadow: var(--ground); }
.btn-dark, .btn-dark:visited { --shadow: var(--white); }
.btn, .btn:visited, .pay-btn, .abtn, .abtn:visited { box-shadow: 4px 4px 0 var(--shadow, var(--white)); }
.btn:active, .pay-btn:active, .abtn:active { box-shadow: 1px 1px 0 var(--shadow, var(--white)); transform: translate(3px, 3px); }
.pay-btn:disabled { box-shadow: none; }

.client input::placeholder { color: var(--ink-muted); opacity: 1; }
