/* SchoolLife 공개 홈 — 흑백 모노크롬. 큰 글자, 넉넉한 여백, 둥근 면과 알약 버튼. */
:root {
  --ground: #f5f5f7;
  --white: #ffffff;
  --ink: #0b0b0c;
  --ink-soft: #55555a;
  --night: #0b0b0c;
  --night-2: #1d1d1f;
  --night-soft: #d1d1d6;
  --r-card: 32px;
  --r-block: 44px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink) var(--ground); }
body {
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.7;
  background: var(--ground); color: var(--ink);
  word-break: keep-all; font-variant-numeric: tabular-nums; overflow-x: clip;
}
::selection { background: var(--ink); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--ground); border-radius: 999px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons: pill, flat ---------- */
.btn {
  display: inline-block; padding: 14px 28px; text-decoration: none; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); border: 0; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-ink, .btn-dark { background: var(--ink); color: #fff; }
.btn-ink:hover, .btn-dark:hover { background: #3a3a3c; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #e8e8ed; }
.btn-lg { padding: 18px 34px; font-size: 1.125rem; }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--ground); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.bar-logo img { height: 34px; width: auto; }
.bar-nav { display: flex; align-items: center; gap: 28px; }
.bar-nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.bar-nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.bar-nav .btn { padding: 10px 22px; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(72px, 10vw, 140px); }
.brand img {
  width: min(420px, 70%); height: auto; margin-left: -4px;
  clip-path: inset(0 100% 0 0); animation: wipe 1.6s var(--ease) .15s forwards;
}
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.hero h1 {
  font-weight: 800; letter-spacing: -.045em; line-height: 1.08;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem); margin: clamp(28px, 4vw, 48px) 0 28px;
}
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); max-width: 34em; margin-bottom: 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.today { background: var(--night); color: #fff; border-radius: var(--r-block); padding: clamp(28px, 3.5vw, 48px); }
.today-top { font-weight: 700; margin-bottom: clamp(28px, 4vw, 56px); }
.today-top span { font-weight: 400; color: var(--night-soft); margin-left: 8px; font-size: .9375rem; }
.today-label { color: var(--night-soft); font-size: .9375rem; }
.today-h { font-weight: 800; letter-spacing: -.04em; line-height: 1.15; font-size: clamp(1.75rem, 3.2vw, 2.75rem); margin: 6px 0 12px; }
.today-when { display: flex; align-items: center; gap: 12px; font-size: 1.1875rem; margin-bottom: clamp(28px, 4vw, 48px); }
.today-when b { background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 16px; font-weight: 800; }
.today-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; border-radius: 16px; font-size: 1rem; }
.today-list li:nth-child(odd) { background: var(--night-2); }
.today-list em { font-style: normal; color: var(--night-soft); white-space: nowrap; }

/* ---------- 하는 일: 둥근 카드 ---------- */
.work { padding: 0 0 clamp(72px, 10vw, 140px); }
.work-title { font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-size: clamp(2rem, 4.6vw, 3.5rem); margin-bottom: clamp(32px, 5vw, 64px); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-card); padding: clamp(28px, 3vw, 40px); transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card h3 { font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.card > p { margin: 14px 0 28px; max-width: 22em; }
.card-dark { background: var(--night); color: #fff; }
.frag { margin-top: auto; background: var(--ground); border-radius: 24px; padding: 20px; }
.card-dark .frag { background: var(--night-2); }
.frag-note { font-size: .875rem; color: var(--ink-soft); margin-bottom: 10px; }
.card-dark .frag-note { color: var(--night-soft); }

.pull li { display: grid; grid-template-columns: 4.5em 1fr; gap: 10px; padding: 11px 14px; border-radius: 14px; font-size: 1rem; }
.pull li:nth-child(odd) { background: var(--white); }
.pull b { font-weight: 800; }
.msg li { padding: 11px 14px; border-radius: 14px; font-size: 1rem; }
.msg li:nth-child(odd) { background: #2a2a2d; }
.msg b { display: block; font-weight: 800; }
.q { font-size: 1.0625rem; margin: 4px 0 14px; }
.q b { font-weight: 800; }
.opts { counter-reset: n; display: grid; gap: 8px; }
.opts li { counter-increment: n; display: flex; gap: 12px; padding: 11px 14px; background: var(--white); border-radius: 14px; font-size: 1rem; }
.opts li::before { content: counter(n) '.'; font-weight: 700; }
.opts .pick { background: var(--ink); color: #fff; }

/* ---------- 원칙 ---------- */
.trust { padding: 0 0 clamp(24px, 3vw, 40px); }
.trust-in {
  background: var(--night); color: #fff; border-radius: var(--r-block);
  padding: clamp(40px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center;
}
.trust h2 { font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-size: clamp(2rem, 4.6vw, 3.5rem); }
.trust p { margin-top: 20px; max-width: 30em; }
.verify li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; font-size: 1.1875rem; }
.verify li:nth-child(odd) { background: var(--night-2); }
.verify b { font: 700 .9375rem/1 var(--font); padding: 8px 16px; border-radius: 999px; }
.verify .ok { background: #fff; color: var(--ink); }
.verify .unk { background: #3a3a3c; color: var(--night-soft); }

/* ---------- 닫는 장면 ---------- */
.close { padding: 0 0 clamp(24px, 3vw, 40px); }
.close-in { background: var(--white); border-radius: var(--r-block); padding: clamp(56px, 9vw, 120px) clamp(20px, 4vw, 56px); text-align: center; }
.close-logo { width: min(900px, 100%); height: auto; margin: 0 auto; }
.close-line { font-weight: 800; letter-spacing: -.04em; font-size: clamp(1.5rem, 3vw, 2.25rem); margin: clamp(24px, 4vw, 44px) 0 28px; }

.foot { padding: 24px 0 40px; font-size: .9375rem; color: var(--ink-soft); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-links a { text-decoration: none; color: var(--ink-soft); }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 진입 ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.hero [data-rise] { animation: rise .8s var(--ease) backwards; animation-delay: calc(var(--d, 0ms) + 500ms); opacity: 1; transform: none; transition: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- 폰·태블릿 ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .trust-in, .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .bar-in { height: 60px; }
  .bar-logo img { height: 28px; }
  .bar-nav { gap: 16px; }
  .actions .btn { width: 100%; text-align: center; }
  .today-list li { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand img { clip-path: none; animation: none; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .hero [data-rise] { animation: none; }
  .card:hover, .btn:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 비밀 입구 ---------- */
.secret { cursor: default; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.gate { border: 0; background: transparent; margin: auto; padding: 20px; max-width: none; width: 100%; max-height: none; color: var(--ink); }
.gate::backdrop { background: rgba(11, 11, 12, .55); }
.gate form { width: 100%; max-width: 400px; margin: 0 auto; background: var(--white); border-radius: var(--r-card); padding: 40px 32px 24px; text-align: center; }
.gate img { height: 44px; width: auto; margin: 0 auto 24px; }
.gate p { margin-bottom: 18px; color: var(--ink-soft); }
.gate input { width: 100%; padding: 16px; font: 700 1.5rem var(--font); letter-spacing: .5em; text-align: center; background: var(--ground); color: var(--ink); border: 0; border-radius: 999px; outline: none; }
.gate input:focus-visible { box-shadow: 0 0 0 3px var(--ink); }
.btn-block { width: 100%; margin-top: 12px; }
.gate .gate-err { min-height: 1.5em; margin: 14px 0 0; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.gate-close { margin-top: 4px; padding: 8px 16px; background: transparent; border: 0; border-radius: 999px; color: var(--ink-soft); font: 500 .9375rem var(--font); cursor: pointer; }
.gate-close:hover { background: var(--ground); }
.gate[open] form { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* ---------- 로그인 · 회원가입 (준비 중) ---------- */
.auth { padding: clamp(24px, 6vw, 72px) 0 clamp(72px, 10vw, 140px); display: grid; place-items: start center; min-height: 70vh; }
.auth-card { width: min(440px, calc(100% - 2 * var(--gutter))); background: var(--white); border-radius: var(--r-card); padding: clamp(28px, 4vw, 44px); }
.auth-card h1 { margin-bottom: 28px; }
.auth-card h1 img { height: 56px; width: auto; margin: 0 auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--ground); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button { padding: 11px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 700 1rem var(--font); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.auth-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.auth-form { display: grid; gap: 16px; }
.auth-form[hidden] { display: none; }
.auth-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9375rem; }
.auth-form input { width: 100%; padding: 14px 18px; border: 0; border-radius: 999px; background: var(--ground); color: var(--ink); font: 400 1rem var(--font); outline: none; }
.auth-form input::placeholder { color: #8e8e93; }
.auth-form input:focus-visible { box-shadow: 0 0 0 3px var(--ink); }
.auth-form .btn-block { margin-top: 8px; }
.auth-msg { margin-top: 20px; padding: 14px 18px; border-radius: 18px; background: var(--ground); font-weight: 600; font-size: .9375rem; }
.auth-msg[hidden] { display: none; }

.notice h1 { font-weight: 800; letter-spacing: -.04em; font-size: 1.75rem; line-height: 1.2; margin-bottom: 12px; }
.notice p { color: var(--ink-soft); }

/* ---------- 문서 페이지(방침) ---------- */
.doc { padding: clamp(24px, 5vw, 56px) 0 clamp(72px, 10vw, 140px); }
.doc-card { width: min(820px, calc(100% - 2 * var(--gutter))); margin: 0 auto; background: var(--white); border-radius: var(--r-card); padding: clamp(28px, 5vw, 64px); }
.doc-card h1 { font-weight: 800; letter-spacing: -.04em; line-height: 1.15; font-size: clamp(2rem, 4.5vw, 2.75rem); }
.doc-note { display: inline-block; margin: 16px 0 24px; padding: 6px 16px; border-radius: 999px; background: var(--ground); font-size: .9375rem; font-weight: 600; }
.doc-card h2 { font-weight: 800; letter-spacing: -.03em; font-size: 1.25rem; line-height: 1.3; margin: 40px 0 10px; }
.doc-card p, .doc-card li { font-size: 1rem; line-height: 1.8; }
.doc-card p + p { margin-top: 10px; }
.doc-card ul { margin: 8px 0 0; padding-left: 1.2em; list-style: disc; }
.doc-card li { padding: 2px 0; }
.doc-card li::marker { color: var(--ink-soft); }
.doc-card a { text-underline-offset: 3px; font-weight: 600; }
.doc-lead { margin: 16px 0 24px; font-size: 1.125rem; }
.doc-actions { margin-bottom: 12px; }
.doc-mail { font-weight: 700; font-size: 1.0625rem; user-select: all; }
.doc-card .btn { text-decoration: none; font-weight: 700; }
.doc-card ul + p { margin-top: 14px; }
.auth-link { justify-self: center; margin-top: 4px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 500 .9375rem var(--font); cursor: pointer; }
.auth-link:hover { background: var(--ground); color: var(--ink); }
.auth-card > .auth-link { display: block; margin: 10px auto 0; }
.auth-hint { color: var(--ink-soft); font-size: .9375rem; }
.auth-form .auth-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: .9375rem; line-height: 1.5; }
.auth-check input { width: 18px; height: 18px; margin-top: 2px; padding: 0; accent-color: var(--ink); flex: none; }
.auth-check a { font-weight: 700; text-underline-offset: 3px; }
.auth-msg a { margin-left: 4px; }

/* 문장 끝에 한두 단어만 남는 줄바꿈을 피한다 */
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
