:root {
  --primary: #183B5B;
  --secondary: #EAF4FB;
  --accent: #F28C28;
  --background: #FFFFFF;
  --text: #334155;
  --muted: #64748B;
  --line: #D9E6EF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.type-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.type-nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
}

.nav-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-finder-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.teacher-finder-link:focus-visible,
.nav-button:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(242, 140, 40, 0.42);
  outline-offset: 3px;
}

.intro {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 64px;
}

.intro h1 {
  max-width: 720px;
  color: var(--primary);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.intro p:last-child {
  max-width: 680px;
  margin-top: 20px;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.kicker {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.compare-section {
  padding: 72px 0;
  background: var(--secondary);
}

.narrow-section {
  background: #fff;
}

.section-heading,
.type-stack,
.content-preview {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  color: var(--primary);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.type-stack {
  display: grid;
  gap: 18px;
}

.type-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.type-label {
  color: var(--muted);
}

.type-label strong,
.type-label span {
  display: block;
}

.type-label strong {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.type-label span {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.sample-h1,
.sample-h2,
.sample-h3,
.sample-card-title {
  color: var(--primary);
  letter-spacing: 0;
}

.sample-h1 {
  max-width: 680px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
}

.sample-h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.35;
}

.sample-h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.sample-card-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.sample-body {
  max-width: 680px;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

.sample-small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.content-preview {
  display: grid;
  grid-template-columns: 190px minmax(0, 680px);
  gap: 28px;
  align-items: start;
}

.content-card {
  max-width: 680px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--secondary);
}

.content-card > * + * {
  margin-top: 22px;
}

@media (max-width: 1024px) {
  .intro h1 {
    max-width: 620px;
    font-size: 36px;
  }

  .sample-h1 {
    font-size: 34px;
  }
}

@media (max-width: 760px) {
  .type-nav {
    min-height: auto;
    padding: 18px 0;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-actions {
    margin-left: auto;
  }

  .intro {
    padding: 56px 0 48px;
  }

  .intro h1 {
    max-width: 620px;
  }

  .sample-h1 {
    line-height: 1.35;
  }

  .section-heading h2,
  .sample-h2 {
    font-size: 28px;
  }

  .sample-h3 {
    font-size: 22px;
  }

  .compare-section {
    padding: 56px 0;
  }

  .type-row,
  .content-preview {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .type-row {
    padding: 22px;
  }

  .content-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .type-nav,
  .intro,
  .section-heading,
  .type-stack,
  .content-preview {
    width: min(100% - 40px, 1120px);
  }

  .nav-button {
    display: none;
  }

  .teacher-finder-link {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .intro {
    padding: 48px 0 42px;
  }

  .intro h1 {
    max-width: 330px;
    font-size: 32px;
  }

  .intro p:last-child {
    margin-top: 24px;
    max-width: 340px;
    line-height: 1.75;
  }

  .sample-h1 {
    font-size: 30px;
  }

  .sample-body {
    line-height: 1.75;
  }
}
