/* Shared styling for the static marketing pages under public/.
   Tokens mirror src/index.css so these pages feel like the app they link into. */

:root {
  --bg: #f5f1ea;
  --panel: #fffdf9;
  --ink: #1d1b18;
  --muted: #736c61;
  --line: #e3dccf;
  --right: #3867d6;
  --right-soft: #d9e4ff;
  --left: #d9702a;
  --left-soft: #ffe1cb;
  --ok: #1e9a61;
  --ok-soft: #cdeedc;
  --bad: #d93b3b;
  --bad-soft: #ffd9d6;
  --radius: 16px;

  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* ---------- Header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}
.brand-keys {
  width: 30px;
  height: 24px;
  border-radius: 5px;
  border: 2px solid var(--ink);
  background: linear-gradient(90deg, transparent 30%, var(--ink) 30% 42%, transparent 42% 58%, var(--ink) 58% 70%, transparent 70%)
    top / 100% 58% no-repeat;
  flex: none;
}

/* ---------- Type ---------- */

h1, h2, h3, p, ul, ol, dl, figure, table { margin: 0; }

h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

main { display: flex; flex-direction: column; gap: 48px; }
section { display: flex; flex-direction: column; gap: 16px; }

p { max-width: 68ch; }

a { color: var(--right); text-underline-offset: 2px; }
a:hover { color: #2a51ad; }
a:focus-visible { outline: 2px solid var(--right); outline-offset: 2px; border-radius: 3px; }

.lede {
  font-size: 19px;
  color: var(--muted);
  max-width: 60ch;
}

.updated {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- The short answer block ---------- */

.answer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--right);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.answer h2 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.answer p { font-size: 18px; max-width: 62ch; }

/* ---------- Callouts ---------- */

.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.note.warn { border-left: 4px solid var(--left); }
.note.good { border-left: 4px solid var(--ok); }
.note h3 { font-size: 16px; }
.note p { font-size: 16px; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15.5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 10px;
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
td.yes { color: var(--ok); font-weight: 600; }
td.no { color: var(--muted); }
tr.highlight td, tr.highlight th { background: var(--right-soft); }

/* ---------- Lists ---------- */

ul.plain, ol.plain {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 66ch;
}
ul.plain li, ol.plain li { padding-left: 4px; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 17px; }
.faq-item p { font-size: 16px; color: var(--muted); }

/* ---------- CTA ---------- */

.cta {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.cta h2 { font-size: 24px; }
.cta p { font-size: 17px; color: var(--muted); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #000; color: #fff; }
.button.secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover { background: var(--panel); border-color: #cbc2b2; color: var(--ink); }

.button-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-foot {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-foot p { max-width: none; }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Language note ---------- */

:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 20px 18px 64px; }
  main { gap: 40px; }
}
