/* Theme B tokens (docs/03-design-system.md). Hand colours are only for hand meaning. */
@font-face { font-family: "Mali"; font-weight: 600; font-display: swap; src: url("fonts/Mali-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Mali"; font-weight: 700; font-display: swap; src: url("fonts/Mali-Bold.ttf") format("truetype"); }

:root {
  --sky: #CFEFFF;
  --surface: #FFFFFF;
  --surface-2: #EAF6FD;
  --line: #A9D3EA;
  --raise: #BFDDEE;
  --ink: #1F3A5F;
  --muted: #4F6B88;
  --star: #FFC93C;
  --star-shadow: #E0A800;
  --sun: #FFD23F;
  --grass: #9BE27A;
  --success: #1A7A4C;
  --lh: #3D8BFF;
  --lh-text: #1F5FD1;
  --rh: #FFA23D;
  --rh-text: #A84E00;
  --radius-card: 24px;
  --radius-btn: 18px;
  --gutter: 16px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Mali", "Mitr", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
.hero .wrap > *, .grid > *, .grid-2 > * { min-width: 0; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.top { padding: 20px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 24px; }
.brand img { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 3px 0 var(--raise); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 15px; box-shadow: 0 3px 0 var(--raise); min-height: 44px; display: inline-flex; align-items: center; }

/* hero */
.hero { padding: 24px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.15; margin: 0 0 16px; }
.hero p.lead { font-size: 19px; margin: 0 0 12px; }
.hero p.en { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.hero .pip { max-width: 300px; justify-self: center; }
.pill { display: inline-block; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 15px; }
.btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border-radius: var(--radius-btn); background: var(--star); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; box-shadow: 0 5px 0 var(--star-shadow); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--star-shadow); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* sections */
section { padding: 32px 0; }
h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; line-height: 1.3; }
h3 { font-size: 20px; margin: 0 0 6px; line-height: 1.35; }
.sub { color: var(--muted); margin: 0 0 24px; }
.card { background: var(--surface); border-radius: var(--radius-card); box-shadow: 0 5px 0 var(--raise); padding: 24px; }
.shot { margin: 0; background: var(--surface); border-radius: var(--radius-card); box-shadow: 0 5px 0 var(--raise); padding: 10px; }
.shot img { border-radius: 16px; }
.shot figcaption { padding: 10px 6px 4px; color: var(--muted); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card p { margin: 0; color: var(--muted); }
.lh { color: var(--lh-text); }
.rh { color: var(--rh-text); }
.hands { display: flex; gap: 8px; margin-bottom: 10px; }
.hands span { width: 28px; height: 10px; border-radius: 5px; }
.hands .l { background: var(--lh); }
.hands .r { background: var(--rh); }

.safe { background: var(--surface); border-radius: var(--radius-card); box-shadow: 0 5px 0 var(--raise); padding: 28px; display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--success); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 9px; border: solid #FFFFFF; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.faq details { background: var(--surface); border-radius: 18px; box-shadow: 0 3px 0 var(--raise); padding: 14px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* policy page */
.doc { background: var(--surface); border-radius: var(--radius-card); box-shadow: 0 5px 0 var(--raise); padding: clamp(20px, 4vw, 40px); margin-bottom: 24px; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 4px; line-height: 1.25; }
.doc h2 { font-size: 22px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); font-weight: 600; }
.doc .meta { color: var(--muted); margin: 0 0 16px; }
.doc ul { padding-left: 22px; }
.lang { display: flex; gap: 8px; margin: 0 0 20px; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .pip { max-width: 180px; grid-row: 1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .safe { grid-template-columns: 1fr; }
  .safe img { max-width: 120px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .grid-2, .checks { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
