/* Components for the /learn and /faq content pages.
   Loaded after styles.css, and reuses its tokens (--navy, --sky, --wrap …). */

/* ---------- page lead ---------- */

.lead-hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, #fff 0%, var(--porcelain) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.lead-title {
  font-family: var(--font-ko);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0.5rem 0 1rem;
}

.lead-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 2rem;
}

.lead-hero .store-row {
  margin-top: 1.75rem;
}

/* ---------- the citable summary block ---------- */

.answer-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  border-radius: var(--r-md);
  background: var(--porcelain-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.answer-box h2 {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky-deep);
  margin: 0 0 0.85rem;
}

.answer-box p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.answer-box strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- letter grid ---------- */

.jamo-grid {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.875rem;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.jamo {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--porcelain-card);
  padding: 0.9rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.jamo-char {
  font-family: var(--font-ko);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--navy);
}

.jamo-rr {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--sky-deep);
  letter-spacing: 0.02em;
}




/* ---------- prose ---------- */

.prose {
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 1.15rem;
}

.prose strong {
  color: var(--navy);
  font-weight: 600;
}

/* ---------- batchim table ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}

.batchim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--porcelain-card);
  min-width: 520px;
}

.batchim-table th,
.batchim-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}

.batchim-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(27, 43, 107, 0.03);
}

.batchim-table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-jamo {
  font-family: var(--font-ko);
  font-size: 1.5rem;
  color: var(--navy);
}

/* ---------- learning path ---------- */

.path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.875rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.path-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--porcelain-card);
  padding: 1.35rem 1.4rem;
}

.path-idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sky-deep);
  letter-spacing: 0.08em;
}

.path-item h3 {
  margin: 0.4rem 0 0.4rem;
  font-size: 1.0625rem;
  color: var(--navy);
}

.path-item p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

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

.faq-list {
  display: grid;
  gap: 1.5rem;
  max-width: 74ch;
}

.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1.5rem;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-q {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.faq-a {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.faq-a em {
  font-style: italic;
  color: var(--navy);
}

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

.cta-band {
  background: var(--porcelain);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.cta-band h2 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.cta-band .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.cta-band .store-row {
  justify-content: center;
  margin-top: 1.75rem;
}

.cta-foot {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.cta-foot a {
  color: var(--sky-deep);
  text-decoration: none;
  font-weight: 500;
}

.cta-foot a:hover {
  text-decoration: underline;
}

/* Sub-heading inside a long section, and quieter footnote-style prose. */
.sub-head {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  color: var(--navy);
  margin: 2.5rem 0 0.85rem;
  letter-spacing: -0.01em;
}
.prose.note {
  font-size: 0.9688rem;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}
.prose.note em {
  font-style: italic;
  color: var(--text);
}

/* ---------- app screenshots ---------- */

.showcase {
  background: linear-gradient(180deg, var(--porcelain) 0%, #fff 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* Six screenshots, laid out 3 + 3 on desktop and 2 + 2 + 2 on narrow screens.
   Explicit counts rather than auto-fit, which would break six into 4 + 2. */
.shot-row {
  display: grid;
  gap: clamp(1rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.5rem);
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 2rem;
}

@media (max-width: 720px) {
  .shot-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shot-fig {
  margin: 0;
  text-align: center;
}

.shot {
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 18px;
}

.shot-fig figcaption {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.showcase .store-row {
  justify-content: center;
}

/* Feature image under the page title, above the store buttons. */
.hero-art {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  border-radius: var(--r-lg);
  margin: 0 0 0.5rem;
  border: 1px solid var(--line-soft);
}
