/* Nabi marketing site — tokens mirrored from constants/design.ts so the web
   matches the app exactly. Warm paper ground, ink text, one action accent. */

:root {
  --paper: #F6F3ED;
  --ink: #14110E;
  --card: #FFFFFF;

  --blue: #2B5CE0;
  --red: #C8442F;
  --violet: #7A4BC4;
  --green: #157A54;
  --amber: #C87A17;

  --body: #6E665C;
  --muted: #8A8177;
  --dim: #9A9186;
  --faint: #B0A79C;
  --body-strong: #3A342E;

  --hairline: rgba(20, 17, 14, 0.07);
  --border-card: rgba(20, 17, 14, 0.09);
  --border-strong: rgba(20, 17, 14, 0.14);

  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-card: 20px;
  --radius-lg: 22px;
  --radius-block: 28px;
  --radius-hero: 36px;
  --radius-chip: 999px;

  --sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --kr: 'Noto Sans KR', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Nav ---------- */

.nav {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.brand img { width: 30px; height: 30px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--body-strong);
}

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

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero img.mark {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.05;
  margin: 18px 0 20px;
}

.hero p.lede {
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--body-strong);
  line-height: 1.6;
}

.cta-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-chip);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 14.5px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.link-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink);
}

.link-pill:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Principles / features ---------- */

.section { padding: 48px 0; }

.section-head { text-align: center; margin-bottom: 40px; }

.section-head h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 10px 0 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 680px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px;
}

.feature .diamond {
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature p {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.65;
  margin: 0;
}

/* ---------- Free banner ---------- */

.banner {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-hero);
  padding: 44px 32px;
  text-align: center;
}

.banner .eyebrow { color: var(--amber-light, #E8A63A); }

.banner h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  margin: 10px 0 14px;
  letter-spacing: -0.5px;
}

.banner p {
  max-width: 540px;
  margin: 0 auto;
  color: rgba(246, 243, 237, 0.78);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Support page ---------- */

.page-head {
  padding: 56px 0 8px;
  text-align: center;
}

.page-head h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 14px 0 12px;
}

.page-head p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--body-strong);
  font-size: 15.5px;
  line-height: 1.6;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 36px 0;
}

.contact-card .label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-card .email {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: var(--radius-chip);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover { opacity: 0.92; }

.faq { margin-top: 12px; }

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 2px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.faq details[open] summary::after { content: '\2212'; }

.faq p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--body);
  line-height: 1.7;
}

/* ---------- Legal pages ---------- */

.legal .wrap { max-width: 720px; }

.legal .page-head { padding-bottom: 24px; text-align: left; }
.legal .page-head p { margin: 0; max-width: none; }

.legal .effective {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--faint);
  text-transform: uppercase;
  margin-top: 16px;
  display: block;
}

.legal section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--hairline);
}

.legal section .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.2px;
  margin-right: 10px;
}

.legal section h2 {
  font-size: 16px;
  font-weight: 700;
  display: inline;
}

.legal section p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.75;
  margin: 12px 0 0;
}

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

footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 48px;
  margin-top: 40px;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer .copy {
  font-size: 12.5px;
  color: var(--faint);
  font-family: var(--mono);
}

footer .foot-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
}

footer .foot-links a { text-decoration: none; color: var(--body); }
footer .foot-links a:hover { color: var(--blue); }
