/* Landing `/` + thanks (web_landing_spec §5). Token v3 (apps/mobile/lib/core/theme/tokens.dart):
   cream #F6F3EE, ink #1B1F1C, ink-muted #5F6360, wine #6F2E3A, garis #E4DFD6.
   Mobile first, satu kolom. Tanpa JS. Berkas terpisah supaya CSP cukup style-src 'self'. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/static/fonts/SourceSerif4Variable-Roman.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F3EE;
  --ink: #1B1F1C;
  --muted: #5F6360;
  --wine: #6F2E3A;
  --wine-dark: #5A2430;
  --line: #E4DFD6;
  --surface: #FFFFFF;
  --danger: #B42318;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--wine);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  flex-wrap: wrap; /* DE di 320-375 px: menu turun ke baris kedua */
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--wine);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: var(--wine); }
.site-nav .sep { width: 1px; height: 16px; background: var(--line); }
.lang { display: flex; gap: 10px; }
.lang a {
  display: inline-block;
  color: var(--muted);
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.lang a[aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--wine);
}

/* ---------- hero ---------- */
main { flex: 1; display: flex; align-items: center; }

.hero { padding: 56px 0 48px; max-width: 640px; }

.headline {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--wine);
  font-size: clamp(56px, 16vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.lead { font-size: 18px; margin: 0 0 28px; max-width: 34em; }

/* ---------- form ---------- */
.waitlist { display: flex; flex-direction: column; gap: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot: tidak terlihat dan tidak terjangkau keyboard/pembaca layar; bot mengisinya. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.waitlist input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--surface);
  /* #8F887C: 3,5:1 di putih, 3,2:1 di cream (WCAG 1.4.11 batas kontrol >= 3:1; review M-10) */
  border: 1px solid #8F887C;
  border-radius: 8px;
}
.waitlist input[aria-invalid="true"] { border-color: var(--danger); }

.btn {
  min-height: 52px;
  padding: 12px 24px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: #FFFFFF;
  background: var(--wine);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.btn:hover { background: var(--wine-dark); }

.err { color: var(--danger); font-size: 14px; margin: 0; }
.consent { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.consent a { color: var(--muted); }
.closed { font-size: 17px; font-weight: 500; color: var(--wine); margin: 0; }
.disclaimer { color: var(--muted); font-size: 14px; margin: 20px 0 0; max-width: 34em; }

/* ---------- thanks ---------- */
.thanks { padding: 72px 0; text-align: center; margin: 0 auto; max-width: 720px; }
.thanks h1 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--wine);
  font-size: clamp(32px, 7vw, 52px);
  line-height: 1.15;
  margin: 0 0 8px;
}
.thanks p { font-family: var(--serif); color: var(--wine); font-size: clamp(22px, 5vw, 36px); margin: 0 0 32px; line-height: 1.2; }
.btn-outline {
  display: inline-block;
  padding: 12px 40px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--wine);
  text-decoration: none;
  border: 1.5px solid var(--wine);
  border-radius: 6px;
}
.btn-outline:hover { background: var(--wine); color: #FFFFFF; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 28px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--wine); }

/* ---------- layar lebar: input + tombol satu baris, judul di tengah ---------- */
@media (min-width: 720px) {
  .wordmark { font-size: 44px; }
  .site-nav { gap: 24px; font-size: 16px; }
  .hero { margin: 0 auto; text-align: center; max-width: 760px; }
  .headline { font-size: 120px; }
  .lead, .disclaimer { margin-left: auto; margin-right: auto; }
  .waitlist { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .waitlist input[type="email"] { flex: 1 1 320px; max-width: 380px; }
  .waitlist .err, .waitlist .consent { flex-basis: 100%; }
}
