/* BukuKas Mini landing page. Static, no external fonts or requests. */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --brand: #047857;
  --brand-strong: #065f46;
  --brand-soft: #ecfdf5;
  --brand-soft-text: #065f46;
  --warn-bg: #fffbeb;
  --warn-text: #92400e;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 8px 24px -8px rgb(15 23 42 / 0.12);
  --radius: 20px;
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --surface: #0f172a;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #1e293b;
    --brand: #34d399;
    --brand-strong: #6ee7b7;
    --brand-soft: rgb(52 211 153 / 0.12);
    --brand-soft-text: #6ee7b7;
    --warn-bg: rgb(251 191 36 / 0.12);
    --warn-text: #fcd34d;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.6);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(100% - 32px, 1080px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  display: none;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--brand);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .btn {
    color: #022c22;
  }
}

.btn:hover {
  background: var(--brand-strong);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--surface);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-size: 0.85rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 6vw, 3.25rem);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.1rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.chips li::before {
  content: '✓';
  margin-right: 6px;
  color: var(--brand);
  font-weight: 700;
}

.pending-note {
  display: none;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 0.9rem;
}

.is-pending .pending-note {
  display: block;
}

.phone {
  justify-self: center;
  width: min(100%, 300px);
  border: 8px solid var(--text);
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Sections */
section {
  padding: 48px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-weight: 800;
}

.gallery {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.demo {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 800px) {
  .demo {
    grid-template-columns: 280px 1fr;
  }
}

.demo video {
  width: min(100%, 280px);
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.notice {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--warn-bg);
  color: var(--warn-text);
}

.notice strong {
  display: block;
  margin-bottom: 4px;
}

.notice ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 16px;
}

.price strong {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
}

.checklist {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.checklist li {
  padding: 6px 0 6px 28px;
  position: relative;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* FAQ */
details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

details + details {
  margin-top: 10px;
}

summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style-position: outside;
}

details > :not(summary) {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--muted);
}

/* Document pages (guide, privacy, terms) */
.doc {
  padding: 40px 0 64px;
}

.doc h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
}

.doc h2 {
  margin-top: 40px;
  font-size: 1.4rem;
}

.doc h3 {
  margin-top: 24px;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc .meta {
  color: var(--muted);
}

.doc img {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  width: min(100%, 320px);
}

.draft-banner {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-weight: 600;
}

.toc {
  margin: 24px 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.toc ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* An element marked hidden must stay hidden even when a class gives it a display value. */
[hidden] {
  display: none !important;
}
