/* hashidari marketing page — Direction C, "Dancheong Bridge".
 * Tokens ported from src/index.css (the app's own design system): lapis
 * blue is the Japanese layer, dancheong red is the Korean layer. See that
 * file's header comment for the full governance rule. This page has no
 * theme toggle and never follows the OS `prefers-color-scheme` — it is
 * always light. */
:root {
  --text: #6d6a75;
  --text-h: #23222b;
  --bg: #fcf9f4;
  --surface: #ffffff;
  --surface-sunken: #f2ede3;
  --border: #eae4d8;

  --accent: #345b9c;
  --accent-bg: #edf2fa;
  --accent-border: #c7d5ec;

  --korean: #c04f42;
  --korean-bg: #fcf0ec;
  --korean-border: #ecc7bd;

  --success: #2e7d5b;
  --success-bg: #ecf5f0;
  --success-border: #bcd8c9;
  --caution: #ba8514;
  --caution-bg: #faf3e2;
  --caution-border: #e8d5a4;

  --shadow: 0 2px 10px rgba(35, 34, 43, 0.08);
  --shadow-raise: 0 1px 4px rgba(35, 34, 43, 0.06);
  --radius: 12px;

  --sans: "Outfit", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  --heading: "Outfit", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  --font-ja: "Noto Sans JP", "Outfit", system-ui, sans-serif;
  --font-ko: "Noto Sans KR", "Outfit", system-ui, sans-serif;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Sticky nav is ~81px tall at every width. */
  scroll-padding-top: 81px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  letter-spacing: 0.15px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:lang(ja) {
  font-family: var(--font-ja);
}

:lang(ko) {
  font-family: var(--font-ko);
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 700;
  color: var(--text-h);
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
}

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

/* Nav */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.nav__brand {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-h);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav__links a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}

.nav__links a:hover {
  color: var(--text-h);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .nav__section-links {
    display: none;
  }
}

/* "Log in" + "Create free account" side by side: compact on phones so the
   header never scrolls sideways, and only the primary one on the narrowest
   (the hero and footer still offer "Log in"). */
@media (max-width: 480px) {
  .nav__inner {
    padding: 12px 16px;
    gap: 12px;
  }

  .nav__actions {
    gap: 8px;
  }

  .nav__actions .btn {
    padding: 9px 12px;
    font-size: 14px;
  }
}

@media (max-width: 359px) {
  .nav__actions .btn--secondary {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.92;
}

.btn--secondary {
  background: transparent;
  color: var(--text-h);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent-border);
}

/* Hero */
.hero {
  padding: 56px 0 64px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
  }
}

.hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__fine-print {
  font-size: 14px;
  color: var(--text);
  max-width: 48ch;
}

.hero__image {
  display: flex;
  justify-content: center;
}

.hero__image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Sections */
section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

/* Anchor jumps: land with the eyebrow pill ~16px below the sticky nav
   (the section's 64px top padding sits above it). */
section[id] {
  scroll-margin-top: -48px;
}

.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  /* Darker than --korean: 13px text needs 4.5:1 on the bridge band's
     --korean-bg. */
  color: #b0473b;
  margin-bottom: 12px;
}

.section__heading {
  font-size: 30px;
  letter-spacing: -0.4px;
  margin-bottom: 16px;
  max-width: 40ch;
}

@media (max-width: 640px) {
  .section__heading {
    font-size: 24px;
  }
}

.section__body {
  font-size: 17px;
  line-height: 1.6;
  max-width: 62ch;
  margin-bottom: 8px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

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

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

.step__number {
  font-family: var(--mono, monospace);
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

/* Stats / What's inside */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

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

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat__value {
  font-family: var(--heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--text-h);
}

.stat__label {
  font-size: 14px;
  color: var(--text);
  margin-top: 4px;
}

.sources-note {
  font-size: 14px;
  color: var(--text);
  max-width: 68ch;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 24px;
}

.sources-note p + p {
  margin-top: 12px;
}

/* Korean bridge */
.korean-bridge {
  background: var(--korean-bg);
}

.korean-bridge .section__body strong {
  color: var(--korean);
}

.bridge__link {
  font-weight: 600;
}

.bridge-example {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--korean-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 15px;
  margin: 4px 6px 4px 0;
}

.bridge-example .ja {
  color: var(--accent);
  font-weight: 600;
}

.bridge-example .ko {
  color: var(--korean);
  font-weight: 600;
}

/* Value cards (offline / free-to-start) */
.value-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 760px) {
  .value-cards {
    grid-template-columns: 1fr;
  }
}

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

.value-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* In beta band */
.beta-band {
  background: var(--surface-sunken);
  text-align: center;
}

.beta-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  /* Darker than --caution: 13px text needs 4.5:1 on --caution-bg. */
  color: #8a6110;
  background: var(--caution-bg);
  border: 1px solid var(--caution-border);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

.beta-band .section__heading,
.beta-band .section__body {
  margin-left: auto;
  margin-right: auto;
}

.beta-band .btn {
  margin-top: 20px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text);
}

.footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--text);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--text-h);
}

#sources {
  scroll-margin-top: 80px;
}

/* FAQ */
.faq {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.faq__item summary {
  cursor: pointer;
  font-family: var(--heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-h);
}

.faq__item p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* Sources & licenses page */
.sources-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sources-table th,
.sources-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.sources-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.sources-table tbody th {
  color: var(--text-h);
  font-weight: 600;
}

.sources-table__by {
  display: block;
  color: var(--text);
  font-size: 13px;
}

@media (max-width: 640px) {
  .sources-table,
  .sources-table tbody,
  .sources-table tr,
  .sources-table th,
  .sources-table td {
    display: block;
  }

  .sources-table thead {
    display: none;
  }

  .sources-table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .sources-table th,
  .sources-table td {
    border-bottom: 0;
    padding: 4px 14px;
  }
}

/* Legal pages (privacy, terms) */
.legal {
  padding: 56px 0 72px;
}

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

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.65;
}

.legal p {
  margin: 0 0 14px;
}

.legal h2 {
  font-size: 20px;
  margin: 36px 0 8px;
  scroll-margin-top: 80px;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.legal__updated {
  font-size: 14px;
  color: var(--text);
}

.legal__summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 20px 12px;
  margin: 24px 0;
}

.legal__summary h2 {
  margin-top: 16px;
}

.legal__table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.legal__table th,
.legal__table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.legal__table thead th {
  font-size: 13px;
  color: var(--text);
}

.legal__table tbody th {
  color: var(--text-h);
  width: 30%;
}

@media (max-width: 600px) {
  .legal {
    padding: 40px 0 56px;
  }

  .legal__table-wrap {
    overflow-x: visible;
  }

  .legal__table,
  .legal__table tbody,
  .legal__table tr,
  .legal__table th,
  .legal__table td,
  .legal__table tbody th {
    display: block;
    width: auto;
  }

  .legal__table thead {
    display: none;
  }

  .legal__table tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }

  .legal__table th,
  .legal__table td {
    border-bottom: 0;
    padding: 4px 0;
  }
}

/* Hero: a lesson card beside a graded typed review */
.hero__shots {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}

.hero__shots img {
  width: calc(50% - 8px);
  max-width: 236px;
}

.hero__shots img:last-child {
  margin-top: 48px;
}

/* Step screenshots */
.step__shot {
  margin-top: 16px;
}

.step__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-raise);
}

/* How it works with two steps: keep the tall phone shots to phone size */
.steps--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .steps--two {
    grid-template-columns: 1fr;
  }
}

.steps--two .step__shot img {
  max-width: 320px;
  margin: 0 auto;
}

/* Skip what you know: the starting point and "I already knew this" side by side */
.spotlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

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

.spotlight {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.spotlight__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.spotlight h3 {
  font-size: 22px;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.spotlight p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.spotlight p + p {
  margin-top: 12px;
}

.spotlight .spotlight__note {
  font-size: 14px;
  border-left: 3px solid var(--accent-border);
  padding-left: 12px;
}

.spotlight__shot {
  margin-top: 20px;
}

.spotlight__shot img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-raise);
}

@media (max-width: 640px) {
  .spotlight {
    padding: 20px;
  }
}

/* Feature grid (What's inside) */
.features__heading {
  font-size: 22px;
  letter-spacing: -0.3px;
  margin-top: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}

.feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

/* Korean bridge: text beside the one card that shows a cognate */
.bridge__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

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

.bridge__image {
  display: flex;
  justify-content: center;
}

.bridge__image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
