/* 담임노트 랜딩 페이지 — 외부 리소스 의존 없음 */

:root {
  --blue: #3a7bf7;
  --blue-dark: #1f4fbf;
  --blue-soft: #eef4ff;
  --mint: #35c6a8;
  --lilac: #8b7cf6;
  --ink: #101a2c;
  --ink-soft: #4a586f;
  --line: rgba(16, 26, 44, 0.1);
  --white: #ffffff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 44px rgba(31, 79, 191, 0.12);
  --shadow-lift: 0 26px 60px rgba(31, 79, 191, 0.18);
  --shell: min(1120px, 100% - 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--blue-soft) 0%, #ffffff 42%, #f7f9ff 100%);
  font-family:
    'Pretendard', 'Apple SD Gothic Neo', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    'Noto Sans KR', 'Malgun Gothic', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

em {
  font-style: normal;
  color: var(--blue);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue-dark);
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  width: var(--shell);
  margin: 0 auto;
  padding: 16px 0;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled {
  padding: 10px 20px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(16, 26, 44, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%);
  font-size: 17px;
  box-shadow: var(--shadow-soft);
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.site-nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.header-cta {
  padding: 10px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lift);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu a:hover {
  background: var(--blue-soft);
}

.mobile-menu .mobile-cta {
  margin-top: 4px;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

/* ---------- shared bits ---------- */

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead,
.section-description {
  color: var(--ink-soft);
  font-size: 17px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: var(--shadow-soft);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.button-light {
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.button-light:hover {
  transform: translateY(-2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(58, 123, 247, 0.3);
  padding-bottom: 2px;
}

.text-link:hover {
  border-color: var(--blue);
}

.arrow {
  transition: transform 0.2s ease;
}

.button:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(3px);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 72px 0 96px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: var(--blue);
}

.hero .lead {
  max-width: 30em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 32px 0 30px;
  scroll-margin-top: 100px;
}

.action-note {
  color: var(--ink-soft);
  font-size: 14px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  color: var(--ink-soft);
}

.hero-proof b {
  color: var(--blue);
}

/* phone mockup */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(58, 123, 247, 0.32), transparent 66%);
  filter: blur(18px);
}

.phone {
  position: relative;
  width: 290px;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #1b2740 0%, #0d1424 100%);
  box-shadow: var(--shadow-lift);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 999px;
  background: #0d1424;
  z-index: 2;
}

.phone-screen {
  position: relative;
  height: 520px;
  padding: 52px 20px 20px;
  border-radius: 34px;
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 40%);
  overflow: hidden;
}

.mock-date {
  color: var(--ink-soft);
  font-size: 12px;
}

.mock-title {
  margin: 2px 0 16px;
  font-size: 22px;
  font-weight: 700;
}

.mock-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.mock-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  border-radius: 16px;
  background: var(--blue-soft);
  font-size: 11px;
  color: var(--ink-soft);
}

.mock-stat b {
  font-size: 19px;
  color: var(--blue-dark);
}

.mock-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(16, 26, 44, 0.05);
}

.mock-card span:last-child {
  display: flex;
  flex-direction: column;
}

.mock-card strong {
  font-size: 13px;
}

.mock-card small {
  color: var(--ink-soft);
  font-size: 11px;
}

.mock-dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--blue);
  flex: none;
}

.mock-dot.blue {
  background: var(--blue);
}

.mock-dot.mint {
  background: var(--mint);
}

.mock-dot.lilac {
  background: var(--lilac);
}

.mock-tabs {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 -4px 18px rgba(16, 26, 44, 0.07);
}

.mock-tabs span {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: #dfe6f3;
}

.mock-tabs span.is-active {
  background: var(--blue);
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  animation: bob 5s ease-in-out infinite;
}

.float span:last-child {
  display: flex;
  flex-direction: column;
}

.float strong {
  font-size: 13px;
}

.float small {
  color: var(--ink-soft);
  font-size: 11px;
}

.float-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
}

.float-icon.mint {
  background: var(--mint);
}

.float-top {
  top: 8%;
  right: 0;
}

.float-bottom {
  bottom: 8%;
  left: 0;
  animation-delay: 1.2s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- intro ---------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  padding: 40px 0 24px;
}

.intro h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 56px 0;
}

.card {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.card h3 {
  margin: 18px 0 10px;
  font-size: 21px;
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
}

.card-number {
  position: absolute;
  top: 24px;
  right: 26px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(16, 26, 44, 0.22);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 22px;
  color: #fff;
}

.card-blue .card-icon {
  background: linear-gradient(140deg, var(--blue), var(--blue-dark));
}

.card-lilac .card-icon {
  background: linear-gradient(140deg, #a99bff, var(--lilac));
}

.card-mint .card-icon {
  background: linear-gradient(140deg, #5fd9bf, var(--mint));
}

/* ---------- panels ---------- */

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 40px 0 56px;
}

.panel {
  position: relative;
  padding: 44px 38px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 2.6vw, 34px);
}

.panel p {
  font-size: 15px;
}

.panel-dark {
  color: #fff;
  background: linear-gradient(150deg, #1f2f4d 0%, #101a2c 100%);
}

.panel-dark .eyebrow {
  color: #8fb6ff;
}

.panel-dark em {
  color: #8fb6ff;
}

.panel-dark p {
  color: rgba(255, 255, 255, 0.76);
}

.panel-doodle {
  position: absolute;
  right: 26px;
  bottom: 18px;
  font-size: 30px;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, 0.16);
}

.panel-light {
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.panel-light p {
  color: var(--ink-soft);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.badges span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- trust ---------- */

.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px 0;
  scroll-margin-top: 100px;
}

.trust h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}

.trust-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 16px;
}

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

.closing {
  display: grid;
  justify-items: center;
  gap: 24px;
  margin: 40px auto 72px;
  padding: 72px 32px;
  border-radius: 36px;
  text-align: center;
  color: #fff;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: var(--shadow-lift);
}

.closing .eyebrow,
.closing em {
  color: rgba(255, 255, 255, 0.78);
}

.closing h2 {
  font-size: clamp(30px, 4vw, 46px);
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-tagline {
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-meta a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.footer-meta a:hover {
  color: var(--blue);
}

/* ---------- legal page ---------- */

.legal-body {
  background: linear-gradient(180deg, var(--blue-soft) 0%, #ffffff 34%);
}

.legal-header {
  justify-content: space-between;
}

.legal-shell {
  width: min(760px, 100% - 48px);
  margin: 24px auto 72px;
  padding: 48px 44px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.legal-shell h1 {
  font-size: clamp(30px, 4vw, 42px);
}

.legal-updated {
  margin: 12px 0 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.legal-shell section {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}

.legal-shell h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.legal-shell p,
.legal-shell li {
  color: var(--ink-soft);
  font-size: 15.5px;
}

.legal-shell ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.legal-shell li {
  margin-bottom: 6px;
}

.legal-note {
  margin-top: 32px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--blue-soft);
}

.legal-note strong {
  display: block;
  margin-bottom: 6px;
}

.legal-note p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

.legal-back {
  margin-top: 32px;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  :root {
    --shell: min(1120px, 100% - 32px);
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  /* 처리방침·지원 페이지에는 햄버거 메뉴가 없으므로
     모바일에서도 '홈으로' 버튼을 그대로 보여줍니다. */
  .legal-header .header-cta {
    display: inline-block;
    margin-left: auto;
  }

  .hero,
  .intro,
  .features,
  .panels,
  .trust {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 0 64px;
    gap: 40px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .intro {
    gap: 20px;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .legal-shell {
    padding: 32px 24px;
  }

  .panel {
    padding: 32px 24px;
  }

  .closing {
    padding: 52px 22px;
  }

  .float-top {
    right: -6px;
  }

  .float-bottom {
    left: -6px;
  }

  .footer-meta {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
