/* Max Cam Scanner — same tokens as the app: cream, ink, orange, yellow.
   Brutalist: thick ink borders, hard offset shadows, no blur, no gradients. */
:root {
  --bg: #fff4dd;
  --surface: #fffdf7;
  --ink: #26201a;
  --accent: #ff5c2b;
  --on-accent: #26201a;
  --highlight: #ffd84d;
  --muted: #6b6258;
  --shadow: #26201a;
  --b: 2.5px;
  --r: 10px;
  --off: 4px;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1612;
    --surface: #26201a;
    --ink: #fff4dd;
    --accent: #ff6a3d;
    --on-accent: #1a1612;
    --muted: #b8ac9c;
    --shadow: #000;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1612;
  --surface: #26201a;
  --ink: #fff4dd;
  --accent: #ff6a3d;
  --on-accent: #1a1612;
  --muted: #b8ac9c;
  --shadow: #000;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- shared atoms ---------- */
.eyebrow, .tag {
  display: inline-block;
  font: 800 12px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 12px; }
.tag {
  background: var(--highlight); color: #26201a;
  border: 1.5px solid var(--ink); border-radius: 4px; padding: 5px 8px;
}
.tag.plain { background: var(--surface); color: var(--ink); }
.box {
  background: var(--surface);
  border: var(--b) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--shadow);
}
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 22px;
  font: 800 14px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  border: var(--b) solid var(--ink); border-radius: var(--r);
  box-shadow: var(--off) var(--off) 0 var(--shadow);
  transition: transform .08s, box-shadow .08s;
}
.button:active { transform: translate(var(--off), var(--off)); box-shadow: none; }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.secondary { background: var(--surface); color: var(--ink); }
.button.ink { background: var(--ink); color: var(--bg); box-shadow: var(--off) var(--off) 0 var(--accent); }

/* ---------- header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: var(--b) solid var(--ink);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand { gap: 12px; }
/* hard, blur-free shadow that follows the logo outline */
.brand-icon { width: 38px; height: 38px; filter: drop-shadow(3px 3px 0 #000); }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -.03em; line-height: 1; }
.s-logo img { filter: drop-shadow(1.5px 1.5px 0 #000); }
@media (max-width: 380px) { .brand .tag { display: none; } }
.mark {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--on-accent); font-weight: 900; font-size: 20px;
  border: var(--b) solid var(--ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--shadow);
}
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; font: 700 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 12px; border: 2px solid transparent; border-radius: 20px;
}
.nav a:hover { border-color: var(--ink); }
.nav a[aria-current="page"] { background: var(--highlight); color: #26201a; border-color: var(--ink); }
.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 0; cursor: pointer;
  background: var(--surface); border: var(--b) solid var(--ink); border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--shadow);
}
.menu-toggle span { display: block; width: 20px; height: 2.5px; background: var(--ink); margin: 5px auto; }
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: var(--b) solid var(--ink); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-radius: 0; border: 0; border-bottom: 1.5px solid var(--ink); }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- blended sections ----------
   Each band hands over to the next with a straddling element (phone, ticket,
   card row) that sits half in both colours, so sections flow into each other
   instead of stacking as separate blocks. */
.band { position: relative; }
.band-cream { background: var(--bg); }
.band-yellow { background: var(--highlight); color: #26201a; }
.band-orange { background: var(--accent); color: var(--on-accent); }
.band-ink { background: var(--ink); color: var(--bg); }
.band + .band { border-top: var(--b) solid var(--ink); }
.band-yellow .box, .band-orange .box { color: var(--ink); }

/* hero */
.hero { padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 72px; }
.hero h1 {
  font-size: clamp(46px, 9vw, 92px); line-height: .92; letter-spacing: -.05em;
  margin: 0 0 18px; font-weight: 800;
}
.hero h1 .hl { background: var(--highlight); color: #26201a; padding: 0 .12em; border: var(--b) solid var(--ink); border-radius: 8px; display: inline-block; transform: rotate(-1.5deg); }
.hero p.lead { font-size: 19px; max-width: 34ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.store-soon { display: flex; align-items: center; gap: 10px; margin-top: 22px; font: 700 13px/1.3 var(--mono); color: var(--muted); }
.hero-preview { display: flex; justify-content: center; margin-bottom: -120px; position: relative; z-index: 2; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 28px; }
  .hero-preview { margin-bottom: -150px; }
}

/* phone mock (built from the app's own components) */
.phone {
  width: min(320px, 82vw); aspect-ratio: 9 / 18.5;
  background: var(--ink); border-radius: 38px; padding: 10px;
  box-shadow: 8px 8px 0 var(--shadow);
  border: var(--b) solid var(--ink);
}
.phone.tilt { transform: rotate(2deg); }
.screen {
  height: 100%; border-radius: 29px; overflow: hidden;
  background: #fff4dd; color: #26201a; display: flex; flex-direction: column;
  font-size: 12px; line-height: 1.3;
}
.screen .pad { padding: 14px 14px 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.s-logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; }
.s-logo .mark { width: 22px; height: 22px; font-size: 13px; border-width: 2px; border-color: #26201a; background: #ff5c2b; color: #26201a; box-shadow: 1.5px 1.5px 0 #26201a; }
.s-logo .tag { font-size: 8px; padding: 3px 5px; border-color: #26201a; }
.s-card { background: #fffdf7; border: 2px solid #26201a; border-radius: 8px; box-shadow: 3px 3px 0 #26201a; padding: 10px; }
.s-hero { background: #ff5c2b; display: flex; align-items: center; justify-content: space-between; }
.s-hero b { font-size: 24px; line-height: .95; letter-spacing: -.04em; display: block; }
.s-hero small { font-weight: 600; font-size: 10px; }
.s-dot { width: 44px; height: 44px; border-radius: 50%; background: #26201a; flex: none; display: grid; place-items: center; }
.s-dot i { width: 18px; height: 22px; border: 2.5px solid #fff4dd; border-radius: 3px; display: block; }
.s-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-btn { background: #fffdf7; border: 2px solid #26201a; border-radius: 8px; box-shadow: 2px 2px 0 #26201a; text-align: center; padding: 9px 4px; font: 800 9px/1 var(--mono); letter-spacing: .05em; }
.s-label { display: flex; align-items: center; gap: 6px; font: 800 9px/1 var(--mono); letter-spacing: .06em; }
.s-label::after { content: ""; flex: 1; height: 2px; background: #26201a; }
.s-doc { display: flex; gap: 8px; align-items: center; }
.s-thumb { width: 30px; height: 40px; border: 2px solid #26201a; border-radius: 4px; background: repeating-linear-gradient(#fffdf7 0 5px, #e8dcc4 5px 6px); flex: none; }
.s-doc b { display: block; font-size: 11px; }
.s-tags { display: flex; gap: 4px; margin-top: 4px; }
.s-tags span { font: 800 7px/1 var(--mono); border: 1.5px solid #26201a; border-radius: 3px; padding: 2px 4px; background: #ffd84d; }
.s-tags span.w { background: #fffdf7; }
.s-nav { border-top: 2px solid #26201a; display: grid; grid-template-columns: repeat(3, 1fr); padding: 8px 0 6px; text-align: center; font: 800 7px/1 var(--mono); }
.s-nav span::before { content: ""; display: block; width: 26px; height: 14px; margin: 0 auto 4px; border-radius: 10px; border: 2px solid transparent; }
.s-nav span.on::before { background: #ffd84d; border-color: #26201a; }
.s-ad { height: 18px; background: #fff4dd; display: grid; place-items: center; font: 700 6px/1 var(--mono); color: #6b6258; }
.s-page { flex: 1; border: 2px solid #26201a; border-radius: 8px; background: #fffdf7; box-shadow: 3px 3px 0 #26201a; position: relative; padding: 14px 12px; overflow: hidden; }
.s-page p { margin: 0 0 6px; height: 5px; background: #d9cdb6; border-radius: 2px; }
.s-page p.h { height: 9px; width: 60%; background: #26201a; }
.s-page .mark-hl { position: absolute; left: 10px; top: 54px; width: 70%; height: 10px; background: rgba(255, 216, 77, .7); }
.s-page .sig { position: absolute; right: 14px; bottom: 16px; font: italic 700 20px/1 "Brush Script MT", cursive; color: #1d4ed8; transform: rotate(-6deg); border: 1.5px dashed #ff5c2b; padding: 2px 6px; }
.s-seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid #26201a; border-radius: 8px; padding: 3px; background: #fffdf7; font: 800 9px/1 var(--mono); text-align: center; }
.s-seg span { padding: 7px 0; border-radius: 5px; }
.s-seg span.on { background: #26201a; color: #fff4dd; }
.s-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 12px; }
.s-out span { border: 2px solid #26201a; border-radius: 8px; box-shadow: 2px 2px 0 #26201a; text-align: center; padding: 10px 0; font: 800 9px/1 var(--mono); }
.s-quota { height: 9px; border: 2px solid #26201a; border-radius: 3px; background: #fff4dd; }
.s-quota i { display: block; height: 100%; width: 38%; background: #ff5c2b; }
.s-member { display: flex; align-items: center; gap: 8px; }
.s-member .av { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #26201a; flex: none; }
.s-member div { flex: 1; }
.s-member b { display: block; font-size: 10px; }
.s-member small { font-size: 8px; color: #6b6258; }

/* about / features (yellow band; the phone from the hero hangs into it) */
.section { padding: 88px 0; }
.about { padding-top: 168px; }
@media (max-width: 860px) { .about { padding-top: 196px; } }
.section-title { max-width: 640px; margin-bottom: 36px; }
.section-title h2, .panel h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 12px; }
.section-title p { margin: 0; font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { padding: 20px; }
.feature-card .ico {
  width: 44px; height: 44px; border: var(--b) solid var(--ink); border-radius: 8px;
  display: grid; place-items: center; font: 800 13px/1 var(--mono); margin-bottom: 14px;
  background: var(--highlight); color: #26201a;
}
.feature-card:nth-child(3n+2) .ico { background: var(--accent); color: var(--on-accent); }
.feature-card:nth-child(3n) .ico { background: var(--bg); color: var(--ink); }
.feature-card h3 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* mode strip: OCR vs AI, a "ticket" straddling yellow → cream */
.ticket-wrap { margin-bottom: -64px; position: relative; z-index: 2; margin-top: 56px; }
.ticket { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.ticket > div { padding: 22px 24px; }
.ticket > div + div { border-left: var(--b) solid var(--ink); background: var(--bg); }
.ticket h3 { margin: 10px 0 4px; font-size: 22px; letter-spacing: -.02em; }
.ticket p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket > div + div { border-left: 0; border-top: var(--b) solid var(--ink); }
}

/* screens */
.screens { padding-top: 136px; }
.screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; justify-items: center; }
.screen-grid figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.screen-grid figcaption { font: 800 13px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.screen-grid .phone { width: min(280px, 78vw); }
@media (max-width: 900px) {
  .screen-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(280px, 78vw); overflow-x: auto; justify-items: stretch; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
  .screen-grid figure { scroll-snap-align: center; }
}

/* plans (orange band) */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
.plan { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan h3 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.plan ul { margin: 0; padding-left: 18px; }
.plan li { margin: 4px 0; }
.plan.pro { background: var(--ink); color: var(--bg); box-shadow: var(--off) var(--off) 0 var(--highlight); }
.plan.pro .tag { background: var(--accent); color: var(--on-accent); }

/* account panel (ink band) */
.panel { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.panel > div { max-width: 640px; }
.panel p { margin: 0; color: inherit; opacity: .85; }
.band-ink .eyebrow { color: var(--highlight); }
.band-ink .button.primary { box-shadow: var(--off) var(--off) 0 var(--highlight); border-color: var(--bg); }

/* footer */
.site-footer { border-top: var(--b) solid var(--ink); padding: 28px 0 40px; font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-inner p { margin: 0; color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* legal / support pages */
.legal-page { padding: 48px 0 72px; }
.legal-card { max-width: 780px; }
.legal-card h1 { font-size: clamp(34px, 7vw, 54px); line-height: 1; letter-spacing: -.045em; margin: 0 0 8px; }
.legal-card h2 { font-size: 22px; letter-spacing: -.02em; margin: 36px 0 8px; padding-top: 16px; border-top: var(--b) solid var(--ink); }
.legal-card .meta { font: 700 12px/1.4 var(--mono); color: var(--muted); margin: 0 0 26px; }
.content-card { padding: 18px 20px; margin: 18px 0; }
.content-card.hl { background: var(--highlight); color: #26201a; }
.legal-card ul, .legal-card ol { padding-left: 22px; }
.legal-card li { margin: 5px 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--surface); border: var(--b) solid var(--ink); border-radius: var(--r); padding: 0 18px; }
.faq-list details[open] { box-shadow: var(--off) var(--off) 0 var(--shadow); }
.faq-list summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 800 20px/1 var(--mono); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 16px; }
.support-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 15px; }
table.plain th, table.plain td { text-align: left; padding: 9px 6px; border-bottom: 1.5px solid var(--ink); vertical-align: top; }

/* reveal (driven by ../script.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
.phone.tilt.reveal.visible { transform: rotate(2deg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

/* language switch (EN / ID) */
.nav a.lang {
  border: 2px solid var(--ink); border-radius: 6px; padding: 8px 10px;
  background: var(--surface); box-shadow: 2px 2px 0 #000;
}
@media (max-width: 760px) {
  .nav a.lang { align-self: flex-start; margin-top: 10px; border-bottom: 2px solid var(--ink); }
}
