/* ===== Design tokens (solid colors only, no gradients) ===== */
:root {
  --cyan: #00A3C4;
  --blue: #003B73;
  --purple: #4A148C;
  --bg: #FAF9F6;
  --card: #FFFFFF;
  --ink: #1B2430;
  --muted: #5B6573;
  --line: #E3E0D8;
  --danger: #B3261E;
  --ok: #1B7F4B;
  --radius: 4px;
  --font: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; text-decoration: none; }
.logo-offer { color: var(--cyan); }
.logo-mart  { color: var(--blue); }
.logo-smm   { color: var(--purple); font-weight: 600; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--purple); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); padding: 8px 16px; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-block { width: 100%; padding: 15px; font-size: 1rem; }

/* ===== Hero ===== */
.hero { padding: 88px 0 72px; }
.hero-inner { text-align: center; }
.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1.1; font-weight: 800;
  color: var(--blue); letter-spacing: -1.5px; max-width: 14em; margin: 0 auto 18px;
}
.hero-sub { font-size: 1.15rem; color: var(--purple); font-weight: 600; margin-bottom: 32px; }

.badges {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left;
}
.badge {
  display: flex; gap: 14px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-top: 4px solid var(--cyan); border-radius: var(--radius); padding: 18px;
}
.badge:nth-child(2) { border-top-color: var(--blue); }
.badge:nth-child(3) { border-top-color: var(--purple); }
.badge svg { width: 32px; height: 32px; flex: none; fill: var(--blue); }
.badge strong { display: block; font-size: 1rem; }
.badge span { font-size: 0.85rem; color: var(--muted); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; color: var(--blue); text-align: center; letter-spacing: -0.5px; }
.section-sub { text-align: center; color: var(--muted); margin: 8px 0 32px; }

/* Video (16:9) */
.video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--blue); border-radius: var(--radius); overflow: hidden; }
.video-wrap iframe, .video-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 500; }
.video-placeholder svg { width: 64px; height: 64px; fill: var(--cyan); }

/* ===== Card & Form ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
input, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  padding: 12px 14px; border: 1.5px solid #C9C6BD; border-radius: var(--radius);
}
input:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 163, 196, .25); }
input.invalid { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.82rem; min-height: 1.2em; margin-top: 4px; }

.price-box { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: var(--radius); padding: 16px 18px; margin: 8px 0 24px; }
.rate { color: var(--muted); font-size: 0.92rem; }
.total { font-size: 1.6rem; font-weight: 700; color: var(--purple); }

/* ===== Success ===== */
.success-card { text-align: center; border-top: 4px solid var(--ok); outline: none; }
.check { width: 56px; height: 56px; margin: 0 auto 14px; background: var(--ok); border-radius: 50%; display: grid; place-items: center; }
.check svg { width: 32px; height: 32px; fill: #fff; }
.summary { margin: 24px 0; text-align: left; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.delivery { background: var(--bg); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.delivery h3 { font-size: 1rem; color: var(--blue); }
.notice { color: var(--danger); font-weight: 500; font-size: 0.92rem; margin-bottom: 24px; }

/* ===== Footer ===== */
.site-footer { background: var(--blue); color: #fff; text-align: center; padding: 28px 0; font-size: 0.9rem; }

/* ===== Scroll fade-in (driven by IntersectionObserver in script.js) ===== */
.js .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .fade-in.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .hero { padding: 56px 0 48px; }
  .badges { grid-template-columns: 1fr; margin-top: 40px; }
  .section { padding: 48px 0; }
  .card { padding: 22px; }
  .logo { font-size: 1.2rem; }
  .summary div { flex-direction: column; gap: 2px; }
  .summary dd { text-align: left; }
}
