/* 새김 — 소개·지원 페이지
   토큰은 앱 디자인 시스템(Saegim-iOS/Saegim/Plan/03-디자인-시스템.md)에서 가져왔다.
   앱이 라이트 고정이라 이 페이지도 라이트 고정 — 같은 물건으로 보여야 한다. */

:root {
  --ink:        #1C1B17;
  --ink-soft:   #3E3B33;
  --muted:      #6B675C;
  --faint:      #8A8574;
  --paper:      #EDE9DE;
  --surface:    #F7F5EF;
  --bright:     #FCFBF7;
  --border:     #E7E3D7;
  --border-2:   #DDD8C8;
  --yellow:     #FFE14A;
  --yellow-2:   #FFD21E;
  --red:        #E25A46;
  --green:      #1F6B4A;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               system-ui, "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;   /* 한국어 — 어절 중간에서 끊지 않는다 */
}

/* height:auto 필수 — <img>에 CLS 방지용 width/height 속성을 달아 두면, CSS로 폭만 바꿨을 때
   속성의 height(px)가 그대로 살아 이미지가 가로로 눌린다. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

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

/* 모노 라벨 — 앱의 CONCEPT 1/9 · D+1 배지와 같은 목소리 */
.mono {
  font-family: var(--mono); font-weight: 600;
  font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint);
}

/* ── 헤더 ────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(237,233,222,.82);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand {
  font-size: 21px; font-weight: 800; letter-spacing: -.03em;
  color: var(--ink); text-decoration: none;
}
.site-head nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }

/* ── 히어로: 문제 제기 ───────────────────────── */
.hero { padding: clamp(64px, 11vw, 132px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 76px); align-items: center; }

.hero h1 {
  font-size: clamp(38px, 6.4vw, 82px);
  font-weight: 900; line-height: 1.1; letter-spacing: -.045em;
  margin-top: 22px;
}
.hero h1 .dim { color: var(--faint); }
.hero .lede { margin-top: 26px; max-width: 30em; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.hero .turn {
  margin-top: 20px; font-size: clamp(17px, 1.7vw, 21px); font-weight: 700;
  letter-spacing: -.02em; color: var(--ink);
}

/* ── 시그니처: 눌러보는 인출 카드 ────────────── */
/* 앱 복습 화면의 카드를 그대로 옮겼다. 기능을 설명하는 대신 방문자가 직접 해보게 한다. */
.recall {
  width: 100%; text-align: left; cursor: pointer;
  background: var(--bright); border: 1px solid var(--border-2);
  border-radius: 20px; padding: 26px 26px 22px;
  box-shadow: 0 26px 50px rgba(28,27,23,.09), 0 3px 10px rgba(28,27,23,.05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.recall:hover { transform: translateY(-3px); box-shadow: 0 34px 62px rgba(28,27,23,.12), 0 4px 12px rgba(28,27,23,.06); }
.recall-tags { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.tag {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 99px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
}
.tag.is-day { background: var(--yellow); color: #6B4A00; border-color: transparent; }
.recall-body {
  font-size: clamp(17px, 1.7vw, 20px); line-height: 1.72; font-weight: 500;
  letter-spacing: -.015em;
}

/* 암기펜 알약 — 닫히면 색으로 덮고, 열리면 글자가 드러난다 */
.pen {
  position: relative; display: inline-block;
  border-radius: 5px; padding: 0 3px; margin: 0 -3px;
  color: transparent;
  transition: color .34s var(--ease) .06s, background-color .34s var(--ease);
}
.pen::after {
  content: ""; position: absolute; inset: 0; border-radius: 5px;
  background: var(--red);
  transition: transform .38s var(--ease), opacity .28s var(--ease);
  transform-origin: left center;
}
.pen.pen-2::after { background: var(--yellow-2); }
.is-open .pen { color: var(--ink); }
.is-open .pen::after { transform: scaleX(0); opacity: 0; }

.recall-hint {
  display: flex; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 14px; color: var(--faint);
}
.recall-hint .key {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  border: 1px solid var(--border-2); border-radius: 6px; padding: 2px 7px; color: var(--muted);
}
.is-open .recall-hint { color: var(--green); }

/* ── 메커니즘 ────────────────────────────────── */
.mech { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--border); }
.mech h2 {
  font-size: clamp(26px, 3.6vw, 44px); font-weight: 900;
  letter-spacing: -.035em; line-height: 1.24; max-width: 18em;
}
.mech p { margin-top: 20px; max-width: 40em; color: var(--muted); }

/* 파이프라인 — 순서가 실제 정보인 유일한 자리라 여기서만 흐름을 그린다 */
.pipe { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 44px; }
.pipe-step {
  flex: 1 1 190px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px;
}
.pipe-step .mono { display: block; margin-bottom: 8px; font-size: 11px; }
.pipe-step b { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; display: block; }
.pipe-step span.note { font-size: 14px; color: var(--muted); }
.pipe-step.is-last { background: var(--ink); border-color: var(--ink); }
.pipe-step.is-last b { color: var(--bright); }
.pipe-step.is-last .mono { color: var(--yellow); }
.pipe-step.is-last span.note { color: #CFCABA; }

/* ── 증거: 실제 화면 ─────────────────────────── */
.proof { padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 104px); border-top: 1px solid var(--border); }
.proof-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: baseline; }
.proof-head h2 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 900; letter-spacing: -.035em; }
.proof-head p { color: var(--muted); max-width: 34em; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 34px); margin-top: 48px; }
.shot figcaption { margin-top: 18px; }
.shot figcaption b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.shot figcaption span { font-size: 14.5px; color: var(--muted); }
.shot .frame {
  overflow: hidden; border-radius: 4px;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.shot img { width: 100%; }

/* ── 요금 ────────────────────────────────────── */
.pricing { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--border); }
.pricing h2 { font-size: clamp(26px, 3.6vw, 44px); font-weight: 900; letter-spacing: -.035em; }
.pricing > .wrap > p { margin-top: 16px; color: var(--muted); max-width: 40em; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 40px; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.plan.is-plus { background: var(--ink); border-color: var(--ink); }
.plan h3 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.plan .price { margin-top: 8px; font-family: var(--mono); font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.plan.is-plus h3 { color: var(--bright); }
.plan.is-plus .price { color: var(--yellow); }
.plan ul { list-style: none; margin-top: 20px; font-size: 15.5px; }
.plan li { position: relative; padding-left: 19px; margin-top: 10px; color: var(--ink-soft); }
.plan li::before { content: "·"; position: absolute; left: 5px; font-weight: 800; }
.plan.is-plus li { color: #E6E2D6; }

/* 반론 해소 — 결제 전에 걸리는 것들을 먼저 치운다 */
.objections { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.objection b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.objection span { font-size: 15px; color: var(--muted); }
.fineprint { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.75; color: var(--faint); }

/* ── 마무리 CTA ──────────────────────────────── */
.cta { padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 112px); border-top: 1px solid var(--border); text-align: center; }
.cta h2 { font-size: clamp(28px, 4.4vw, 54px); font-weight: 900; letter-spacing: -.04em; line-height: 1.16; }
.cta p { margin: 20px auto 0; max-width: 30em; color: var(--muted); }
.cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-block; padding: 15px 28px; border-radius: 99px;
  font-size: 16px; font-weight: 700; letter-spacing: -.015em; text-decoration: none;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bright);
  transition: transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn.is-ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn.is-ghost:hover { border-color: var(--faint); }
.cta .soon { display: block; margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; color: var(--faint); }

/* ── 지원 페이지 ─────────────────────────────── */
.page-head { padding: clamp(56px, 8vw, 88px) 0 8px; }
.page-head h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 900; letter-spacing: -.04em; }
.page-head p { margin-top: 16px; color: var(--muted); max-width: 40em; }

.contact { margin: 36px 0 8px; padding: 30px; background: var(--ink); border-radius: 20px; }
.contact .label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .2em; color: var(--yellow); text-transform: uppercase; }
.contact a {
  display: inline-block; margin-top: 12px; word-break: break-all;
  font-size: clamp(20px, 3.2vw, 30px); font-weight: 800; letter-spacing: -.03em;
  color: var(--bright); text-decoration-color: rgba(255,225,74,.55);
}
.contact small { display: block; margin-top: 14px; color: #CFCABA; font-size: 14px; line-height: 1.7; }

.faq { padding: 48px 0 8px; }
.faq h2 { font-size: 26px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 4px; }
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details summary {
  cursor: pointer; list-style: none; display: flex; gap: 14px; align-items: flex-start;
  font-size: 17px; font-weight: 700; letter-spacing: -.02em;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; margin-left: auto; flex: none;
  font-family: var(--mono); font-size: 19px; color: var(--faint); line-height: 1.3;
}
details[open] summary::after { content: "–"; }
details .answer { padding-top: 12px; color: var(--muted); }
details .answer strong { color: var(--ink); font-weight: 600; }

.docs { padding: 48px 0 8px; }
.docs h2 { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.doc-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.doc-links a {
  padding: 12px 22px; border-radius: 99px; text-decoration: none; font-size: 15px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border-2); color: var(--ink);
}
.doc-links a:hover { background: var(--bright); border-color: var(--faint); }

/* ── 푸터 ────────────────────────────────────── */
.site-foot { padding: 36px 0 56px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; }
.site-foot .who { font-weight: 700; color: var(--ink-soft); }
.site-foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ── 스크롤 등장 — 한 번만, 조용히 ───────────── */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.is-in { opacity: 1; transform: none; }

/* ── 반응형 ──────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; gap: 40px; }
  .shot .frame { max-width: 320px; margin: 0 auto; }
  .shot figcaption { text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-foot nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
}
