:root {
  color-scheme: light;
  --ink: #162334;
  --muted: #566579;
  --line: #dfe6ee;
  --surface: #ffffff;
  --canvas: #f4f7fa;
  /* 플루언트콜 앱 테마(코랄, apps/english_tutor/lib/configs/app_theme.dart)와 맞춘다. */
  --fluent: #b83c28;
  --fluent-deep: #6b1e14;
  --fluent-soft: #fff4f1;
  --fluent-line: #f3cfc6;
  --body-text: #34465a;
  --wellness: #5362c8;
  --wellness-teal: #42a99b;
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.68;
}

a {
  color: inherit;
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-sub {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

main {
  padding: 56px 0 80px;
}

.hero,
.document {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(26, 47, 73, 0.08);
}

.hero {
  padding: clamp(32px, 6vw, 64px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  margin: 20px 0 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}

.product-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 47, 73, 0.1);
}

.product-card strong {
  display: block;
  font-size: 21px;
}

.product-card span {
  color: var(--muted);
}

.product-card.fluent {
  border-top: 4px solid var(--fluent);
}

.product-card.wellness {
  border-top: 4px solid var(--wellness-teal);
}

.document {
  overflow: hidden;
}

.document-head {
  padding: clamp(30px, 6vw, 58px);
  color: #fff;
}

.document-head.fluent {
  background: linear-gradient(135deg, var(--fluent-deep), var(--fluent));
}

.document-head.wellness {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(135deg, #3f3e8e, var(--wellness) 55%, var(--wellness-teal));
}

.document-head .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.document-head h1 {
  font-size: clamp(32px, 6vw, 52px);
}

.document-head p {
  margin: 14px 0 0;
  opacity: 0.88;
}

.document-body {
  padding: clamp(28px, 6vw, 58px);
}

.document-body h2 {
  margin: 38px 0 10px;
  font-size: 23px;
  letter-spacing: -0.02em;
}

.document-body h2:first-child {
  margin-top: 0;
}

.document-body h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.document-body p,
.document-body li,
.document-body td,
.document-body dd {
  color: var(--body-text);
}

.document-body ol ol,
.document-body ol ul,
.document-body ul ul {
  margin-top: 6px;
}

.document-body li + li {
  margin-top: 4px;
}

.doc-lede {
  font-size: 17px;
}

.app-path {
  font-weight: 700;
  color: var(--ink);
}

.fine {
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}

.notice {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.toc {
  margin: 24px 0 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
}

.toc-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.toc ol {
  margin: 0;
  columns: 2 220px;
  column-gap: 28px;
  font-size: 14px;
}

.toc li + li {
  margin-top: 2px;
}

.table-scroll {
  margin: 14px 0 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.document-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.document-body caption {
  text-align: left;
  padding: 12px 14px 8px;
  font-weight: 700;
  color: var(--ink);
}

.document-body th,
.document-body td {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.document-body thead th {
  background: var(--canvas);
  white-space: nowrap;
}

.document-body tbody th {
  font-weight: 700;
  color: var(--ink);
  min-width: 120px;
}

.transfer-table {
  min-width: 960px;
}

.transfer-table td {
  min-width: 130px;
}

.transfer-table tbody th {
  min-width: 190px;
}

.document-body tbody th .fine {
  display: inline-block;
  margin-top: 4px;
  font-weight: 400;
}

.plans-table td {
  min-width: 150px;
}

.business-info {
  margin-top: 42px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.business-info h2 {
  margin-top: 0;
  font-size: 19px;
}

.business-info dl {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.business-info dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}

.business-info dt {
  color: var(--muted);
}

.business-info dd {
  margin: 0;
}

.crisis {
  margin-bottom: 8px;
  padding: 22px;
  border-radius: 16px;
  background: var(--fluent-soft);
  border: 1px solid var(--fluent-line);
}

.crisis h2 {
  margin-top: 0;
}

.crisis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.crisis-call {
  display: block;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--fluent-line);
  text-decoration: none;
  text-align: center;
}

.crisis-call strong {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  color: var(--fluent);
}

.crisis-call span {
  font-size: 14px;
  color: var(--body-text);
}

.site-footer p {
  margin: 0 0 6px;
}

.document-body ul,
.document-body ol {
  padding-left: 24px;
}

.button {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 750;
}

.language-note {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer {
  color: var(--muted);
  font-size: 14px;
  padding: 0 0 36px;
}

@media (max-width: 680px) {
  .nav {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .nav-links {
    gap: 6px 11px;
    font-size: 12px;
    justify-content: flex-start;
  }

  .business-info dl div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .crisis-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  main {
    padding-top: 28px;
  }
}

/* 앱 받기(/fluentcall/app) 스토어 버튼 */
.store-button {
  display: inline-block;
  min-width: 240px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--ink, #111);
  color: var(--surface, #fff);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
