/* ============================================================
   엘리트프로그램 수능 비책 — Editorial Navy/Cream/Gold Theme
   No external dependencies. All assets self-contained.
   ============================================================ */

:root {
  --navy-deep: #0a1730;
  --navy: #10213f;
  --navy-soft: #1b2e52;
  --cream: #f8f3e8;
  --cream-deep: #f0e8d6;
  --paper: #fffdf8;
  --gold: #c8a24a;
  --gold-light: #e4c77c;
  --gold-dark: #9c7a2f;
  --ink: #1b2436;
  --muted: #5b6475;
  --line: rgba(16, 33, 63, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 40px -22px rgba(10, 23, 48, 0.35);
  --font-serif: "Nanum Myeongjo", "Noto Serif KR", Georgia, "Times New Roman", serif;
  --font-sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.3;
}

p { margin: 0 0 1em; color: var(--muted); }

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

section { padding: 88px 0; }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head p { font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 243, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--navy);
}

.brand .mark { width: 38px; height: 38px; flex-shrink: 0; }

.brand .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-text small {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--gold-dark); }

.lang-btn, .nav-toggle {
  border: 1px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { background: var(--navy); color: var(--cream); }

.nav-toggle {
  display: none;
  padding: 8px 10px;
}

@media (max-width: 860px) {
  .main-nav.links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .site-header.nav-open .main-nav.links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 18px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% -10%, rgba(200, 162, 74, 0.18), transparent 55%),
              linear-gradient(180deg, var(--navy-deep), var(--navy) 70%);
  color: var(--cream);
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold-light);
}

.hero h1 {
  color: var(--paper);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero p.lead {
  color: rgba(248, 243, 232, 0.82);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 14px 30px -14px rgba(200, 162, 74, 0.7);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(248, 243, 232, 0.4);
}
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: rgba(248, 243, 232, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(248, 243, 232, 0.16);
  padding: 10px 16px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-badge-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(248, 243, 232, 0.18);
  border-radius: var(--radius-lg);
  padding: 30px;
  width: 100%;
  max-width: 360px;
  backdrop-filter: blur(6px);
}

.hero-badge-card .timeline-mini {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-mini .t-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.timeline-mini .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-light);
  margin-top: 6px;
  flex-shrink: 0;
}

.timeline-mini .t-item strong {
  display: block;
  color: var(--cream);
  font-size: 0.92rem;
}
.timeline-mini .t-item span {
  color: rgba(248, 243, 232, 0.65);
  font-size: 0.84rem;
}

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ---------- English toggle section ---------- */
#english {
  background: var(--navy-soft);
  color: var(--cream);
  display: none;
  padding: 56px 0;
}
#english.open { display: block; }
#english h2 { color: var(--gold-light); }
#english p, #english li { color: rgba(248, 243, 232, 0.85); }
#english ul { padding-left: 20px; }
#english li { margin-bottom: 10px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card .icon {
  width: 52px; height: 52px;
  margin-bottom: 8px;
}

.service-card h3 { font-size: 1.2rem; margin-bottom: 4px; }

.service-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}
.service-card ul li { margin-bottom: 6px; }

.service-card .caveat {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--gold-dark);
  background: rgba(200, 162, 74, 0.1);
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  border-radius: 6px;
}

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

/* ---------- Process ---------- */
.process-strip {
  background: var(--cream-deep);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}

.process-step {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
}

.process-step .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 14px;
  font-family: var(--font-serif);
}

.process-step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.process-step p { font-size: 0.84rem; margin: 0; }

@media (max-width: 920px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ---------- About / Timeline ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.about-text h3 { font-size: 1.3rem; }

.timeline {
  border-left: 2px solid var(--line);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline .t-entry { position: relative; }
.timeline .t-entry::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline .t-date {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  margin-bottom: 4px;
}

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

/* ---------- AI safeguards ---------- */
.ai-panel {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.ai-panel h2 { color: var(--paper); }
.ai-panel .section-head p { color: rgba(248, 243, 232, 0.75); }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.ai-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(248, 243, 232, 0.14);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
}

.ai-item .ico {
  width: 28px; height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-item p { color: rgba(248, 243, 232, 0.82); font-size: 0.92rem; margin: 0; }
.ai-item strong { color: var(--gold-light); display: block; margin-bottom: 4px; font-size: 0.95rem; }

@media (max-width: 760px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-panel { padding: 28px; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }

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

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q .plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: "";
  position: absolute;
  background: var(--gold-dark);
  transition: transform 0.25s;
}
.faq-q .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q .plus::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 4px 20px; font-size: 0.94rem; }

/* ---------- Planner ---------- */
.planner-panel {
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  padding: 36px;
}

.planner-disclaimer {
  background: rgba(200, 162, 74, 0.12);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.86rem;
  color: var(--navy-soft);
  margin-bottom: 28px;
}
.planner-disclaimer strong { color: var(--gold-dark); }

.planner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.planner-field {
  margin-bottom: 18px;
}
.planner-field label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.planner-field input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-sans);
}

.subject-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.subject-row label.subj-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy-soft);
}
.subject-row select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.86rem;
}

.planner-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-dark {
  background: var(--navy);
  color: var(--cream);
}
.btn-dark:hover { background: var(--navy-soft); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }

.planner-result {
  margin-top: 20px;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.plan-table th, .plan-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.plan-table th {
  color: var(--navy);
  font-family: var(--font-serif);
}
.plan-table tfoot td {
  font-weight: 700;
  color: var(--navy);
}

.plan-bar {
  height: 8px;
  border-radius: 6px;
  background: var(--cream-deep);
  overflow: hidden;
  margin-top: 4px;
}
.plan-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

.empty-hint {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 18px 0;
}

@media (max-width: 920px) {
  .planner-grid { grid-template-columns: 1fr; }
  .planner-panel { padding: 24px; }
}

/* ---------- Privacy summary ---------- */
.privacy-summary {
  background: var(--navy-deep);
  color: var(--cream);
}
.privacy-summary h2 { color: var(--paper); }
.privacy-summary .section-head p { color: rgba(248, 243, 232, 0.72); }

.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.privacy-point {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(248, 243, 232, 0.14);
  border-radius: var(--radius-md);
  padding: 22px;
}
.privacy-point h4 { color: var(--gold-light); font-size: 1rem; }
.privacy-point p { color: rgba(248, 243, 232, 0.8); font-size: 0.88rem; margin: 0; }

.privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--gold-light);
  font-weight: 700;
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 2px;
}

@media (max-width: 920px) {
  .privacy-points { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(248, 243, 232, 0.6);
  padding: 40px 0 32px;
  border-top: 1px solid rgba(248, 243, 232, 0.1);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.site-footer .foot-brand {
  font-family: var(--font-serif);
  color: var(--cream);
  font-weight: 700;
}
.site-footer small { display: block; font-size: 0.78rem; margin-top: 4px; }
.site-footer nav a { margin-left: 18px; font-size: 0.84rem; }
.site-footer nav a:hover { color: var(--gold-light); }

/* ---------- Print styles ---------- */
@media print {
  .site-header, .site-footer, .hero, #english,
  #services, #process, #about, #ai, #faq, #privacy-summary,
  .planner-disclaimer, .planner-controls, .planner-actions {
    display: none !important;
  }
  body.printing .site-header,
  body.printing .site-footer { display: none !important; }
  #planner { padding: 0; }
  .planner-panel { box-shadow: none; border: none; padding: 0; }
  .plan-table th, .plan-table td { font-size: 11pt; }
  body { background: #fff; }
}

/* generic utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
