/* 메인(다운로드) 페이지 */

/* ---------- 첫 화면: 어두운 책상 위에 쌓인 논문 */
.hero {
  background: var(--night);
  color: var(--night-ink);
  padding: 0 var(--m);
  overflow: hidden;
}
.hero-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
}
.hero-top .wordmark { color: var(--night-ink); }
.hero-account {
  position: absolute;
  right: 0;
  font-size: 16px;
  font-weight: 700;
  color: #5cc3ad;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.hero-company {
  position: absolute;
  left: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--night-ink-2);
  text-decoration: none;
}
.hero-company:hover { color: #fff; }
.foot-company { color: #fff; font-weight: 700; text-decoration-color: rgb(255 255 255 / 0.4); text-underline-offset: 4px; }
.hero-account:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-title {
  margin-top: clamp(32px, 7vh, 88px);
  text-align: center;
  font-size: clamp(58px, 12.4vw, 184px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.hero-lede {
  max-width: 34ch;
  margin: 26px auto 0;
  text-align: center;
  font-family: var(--font-read);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--night-ink-2);
}

.stack {
  --step: 58px;
  position: relative;
  width: min(100%, 1280px);
  margin: clamp(48px, 9vh, 96px) auto 0;
  padding-top: calc(var(--step) * 4 + 40px);
}
.folder {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(100% - var(--top));
  top: var(--top);
  border-radius: var(--r) var(--r) 0 0;
  text-decoration: none;
  color: #fff;
  transition: transform 0.22s var(--ease);
}
.folder .tab, .front-tab {
  position: absolute;
  top: -40px;
  left: var(--x);
  height: 41px;
  min-width: 132px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  background: inherit;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}
.folder:hover, .folder:focus-visible { transform: translateY(-8px); }
.f1 { --top: 40px; --x: 64%; background: #5d6676; z-index: 1; }
.f2 { --top: calc(40px + var(--step)); --x: 44%; background: #8a5a00; z-index: 2; }
.f3 { --top: calc(40px + var(--step) * 2); --x: 24%; background: #2f4aa8; z-index: 3; }
.f4 { --top: calc(40px + var(--step) * 3); --x: 6%; background: #1c6e62; z-index: 4; }
.front {
  position: relative;
  z-index: 5;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r) var(--r) 0 0;
}
.front-tab { --x: 78%; background: var(--paper); color: var(--ink); }
.dl {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(32px, 4.4vw, 64px) clamp(22px, 4vw, 56px) clamp(40px, 5vw, 72px) clamp(36px, 5vw, 76px);
}
.dl-text h2 { font-size: clamp(30px, 3.4vw, 50px); }
.dl-lede { margin-top: 14px; font-size: 18px; color: var(--ink-2); max-width: 36ch; }
.dl-primary { margin-top: 28px; min-height: 60px; font-size: 18px; }
.dl-meta { margin-top: 12px; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dl-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; }
.dl-list a, .dl-list .row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px 12px 22px;
  position: relative;
  border-radius: var(--r);
  background: var(--paper-2);
  text-decoration: none;
  transition: background-color 0.18s, transform 0.18s var(--ease);
}
.dl-list a::before, .dl-list .row::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 2px;
  background: var(--ink-3);
  opacity: 0.4;
}
.dl-list a:hover { background: var(--accent-soft); transform: translateX(3px); }
.dl-list a:hover::before { background: var(--accent); opacity: 1; }
.dl-list b { font-size: 17px; min-width: 88px; }
.dl-list span { font-size: 15px; color: var(--ink-3); }
.dl-list a .size { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl-list li.off { opacity: 0.6; }
.dl-list li.current { display: none; }
.dl-note { margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.dl-shot { margin: 0; align-self: start; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.dl-shot img { width: 100%; height: auto; transform: scale(1.04); transform-origin: 20% 30%; transition: transform 1.6s var(--ease); }
.in .dl-shot img, .dl-shot.in img { transform: none; }

/* ---------- 기능: 문장마다 스위치 */
.features { background: var(--paper); }
.fband {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 24px;
  min-height: 20vh;
  padding: 28px var(--m) 28px calc(var(--m) + 28px);
  background: var(--paper);
  transition: background-color 0.3s var(--ease);
}
.fband::before {
  content: '';
  position: absolute;
  left: var(--m);
  top: 50%;
  height: 1.2em;
  width: var(--bar);
  border-radius: 3px;
  translate: 0 -50%;
  background: var(--c);
  opacity: 0.35;
  font-size: clamp(22px, 2.6vw, 36px);
  transition: opacity 0.3s;
}
.fband.on { background: color-mix(in srgb, var(--c) 15%, var(--paper)); }
.fband.on::before { opacity: 1; }
.fline { font-size: clamp(22px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink-3); transition: color 0.3s; }
.fband.on .fline { color: var(--ink); }
.fmore { grid-column: 1; font-size: 17px; color: var(--ink-2); max-width: 62ch; display: none; }
.fband.on .fmore { display: block; animation: rise 0.35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.switch {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 64px;
  height: 36px;
  border: 0;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  cursor: pointer;
  transition: background-color 0.2s;
}
.switch i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 0.22s var(--ease);
}
.switch[aria-checked='true'] { background: var(--c); }
.switch[aria-checked='true'] i { transform: translateX(28px); }
.switch:active i { width: 32px; }

/* ---------- 화면: 목록에 손을 대면 미리보기 */
.screens {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 72px);
  padding: clamp(80px, 11vw, 180px) var(--m);
  background: #2f4aa8;
  color: #fff;
}
.screens h2 { font-size: clamp(36px, 4.6vw, 72px); }
.screens-lede { margin-top: 14px; font-size: 18px; color: rgb(255 255 255 / 0.82); }
.screen-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 6px; }
.screen-list button {
  position: relative;
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 16px 18px 16px 30px;
  border: 0;
  border-radius: var(--r);
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.24s, opacity 0.24s;
}
.screen-list button::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 16px;
  bottom: 16px;
  width: var(--bar);
  border-radius: 3px;
  background: #fff;
  opacity: 0.35;
  transition: opacity 0.24s;
}
.screen-list b { font-size: clamp(20px, 1.8vw, 26px); }
.screen-list span { font-size: 16px; color: rgb(255 255 255 / 0.8); }
.screen-list:hover button:not(:hover), .screen-list:focus-within button:not(:focus-visible):not([aria-pressed='true']) { opacity: 0.6; }
.screen-list button[aria-pressed='true'] { background: rgb(255 255 255 / 0.18); }
.screen-list button[aria-pressed='true']::before { opacity: 1; }
.screen-frame {
  position: sticky;
  top: 40px;
  align-self: start;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  overflow: hidden;
  background: #22378a;
}
.screen-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  opacity: 0;
  transition: opacity 0.24s;
}
.screen-frame img.tall { object-fit: contain; object-position: center; }
.screen-frame img.on { opacity: 1; }
.inline-shot { display: none; }

/* ---------- 토큰: 모델 스위치를 크게 */
.tokens {
  --field: #8a5a00;
  position: relative;
  min-height: 92svh;
  padding: clamp(80px, 10vw, 150px) var(--m) 0;
  background: var(--field);
  color: #fff;
  overflow: hidden;
  transition: background-color 0.35s var(--ease);
}
.tokens[data-model='sonnet'] { --field: #155a50; }
.tokens[data-model='opus'] { --field: #2f4aa8; }
.tokens-text { max-width: 680px; }
.tokens h2 { font-size: clamp(30px, 3.6vw, 54px); font-variant-numeric: tabular-nums; }
.tokens h2 span { display: inline-block; }
.tokens h2 span.bump { animation: bump 0.32s var(--ease); }
@keyframes bump { from { transform: translateY(10px); opacity: 0.2; } to { transform: none; opacity: 1; } }
.tokens-text p { margin-top: 18px; font-size: 18px; max-width: 46ch; color: rgb(255 255 255 / 0.86); }
.model-switch {
  position: absolute;
  right: -6vw;
  bottom: -5vh;
  display: grid;
  grid-auto-flow: column;
  gap: 0.12em;
  padding: 0.12em;
  font-size: clamp(30px, 6.4vw, 104px);
  border-radius: 0.14em;
  background: rgb(0 0 0 / 0.22);
}
.model-switch button {
  display: grid;
  gap: 0.05em;
  min-width: 3.6em;
  padding: 0.32em 0.5em 0.36em;
  border: 0;
  border-radius: 0.1em;
  background: none;
  color: #fff;
  font-size: 1em;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.24s, color 0.24s;
}
.model-switch b { font-size: 1em; font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.model-switch span { font-size: 0.26em; font-weight: 600; opacity: 0.8; }
.model-switch button:hover { background: rgb(255 255 255 / 0.1); }
.model-switch button[aria-checked='true'] { background: #fff; color: var(--field); }

/* ---------- 요금: 두 칸 */
.plans { display: grid; grid-template-columns: 5fr 7fr; }
.plan {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 4vw, 64px) var(--m);
}
.plan.read { background: var(--paper); }
.plan.ai { background: var(--accent); color: var(--accent-ink); }
.plan h2 { font-size: clamp(44px, 5vw, 80px); }
.plan-who { margin-top: 18px; font-size: 20px; max-width: 28ch; line-height: 1.55; }
.plan.read .plan-who { color: var(--ink-2); }
.plan-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 48px; }
.plan-price { font-size: clamp(48px, 8vw, 132px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 20px; font-weight: 700; letter-spacing: 0; margin-left: 8px; }

/* ---------- 질문 */
.faq {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 32px;
  padding: clamp(80px, 11vw, 180px) var(--m);
}
.faq h2 { font-size: clamp(32px, 3.6vw, 56px); position: sticky; top: 96px; align-self: start; }
.faq-list { display: grid; gap: 8px; }
.faq details { background: var(--paper); border-radius: var(--r); transition: background-color 0.24s; }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 64px 16px 34px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 22px;
  bottom: 22px;
  width: var(--bar);
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.35;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 26px;
  top: 50%;
  width: 16px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: currentColor;
}
.faq summary i { position: absolute; right: 26px; top: 50%; width: 16px; height: 3px; margin-top: -1.5px; border-radius: 2px; background: currentColor; transform: rotate(90deg); transition: transform 0.24s var(--ease); }
.faq details[open] { background: var(--accent); color: var(--accent-ink); }
.faq details[open] summary::before { background: var(--accent-ink); opacity: 0.6; }
.faq details[open] summary i { transform: rotate(0deg); }
.faq details p { padding: 0 34px 26px; font-size: 17px; max-width: 58ch; }
.faq details[open] p { animation: rise 0.3s var(--ease); }
.faq details[open] .link { color: var(--accent-ink); }
.faq code { font-size: 15px; padding: 2px 6px; border-radius: 2px; background: rgb(0 0 0 / 0.16); }

/* ---------- 마무리: 블록으로 쌓은 이름 */
.foot { background: var(--night); color: var(--night-ink); padding: clamp(56px, 7vw, 110px) var(--m) 40px; }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 180px; text-decoration: none; }
.blocks span {
  flex: 1;
  height: var(--h);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.08em;
  background: var(--c);
  color: var(--night);
  font-size: clamp(40px, 9vw, 148px);
  font-weight: 800;
  line-height: 1;
  border-radius: 2px 2px 0 0;
  transition: height 0.4s var(--ease);
}
.blocks:hover span:nth-child(odd) { height: calc(var(--h) - 6%); }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; max-width: 900px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-links a { color: var(--night-ink-2); text-decoration: none; font-size: 16px; }
.foot-links a:hover { color: #fff; }
.foot-biz { margin-top: 48px; font-size: 13px; line-height: 1.7; color: var(--night-ink-2); max-width: 80ch; }
.foot-last { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; color: var(--night-ink-2); font-size: 15px; }

/* ---------- 휴대폰 */
@media (max-width: 860px) {
  .hero-title { font-size: 15vw; margin-top: 40px; }
  .stack { --step: 48px; }
  .folder .tab, .front-tab { min-width: 0; padding: 0 18px; font-size: 15px; height: 33px; top: -32px; }
  .f1 { --x: 66%; } .f2 { --x: 42%; } .f3 { --x: 20%; } .f4 { --x: 2%; } .front-tab { --x: 70%; }
  .dl { grid-template-columns: 1fr; }
  .dl-primary { width: 100%; justify-content: center; }
  .fband { min-height: 132px; padding-left: calc(var(--m) + 22px); }
  .fline { font-size: 6.2vw; }
  .switch { width: 56px; height: 32px; }
  .switch i { width: 24px; height: 24px; }
  .switch[aria-checked='true'] i { transform: translateX(24px); }
  .screens { grid-template-columns: 1fr; }
  .screen-frame { display: none; }
  .inline-shot { display: block; margin: 8px 0 18px; border-radius: var(--r); width: 100%; height: auto; }
  .inline-shot[width='780'] { max-width: 260px; }
  .tokens { min-height: 86svh; }
  .model-switch { right: auto; left: var(--m); bottom: 28px; font-size: 8.4vw; }
  .model-switch button { min-width: 0; padding: 0.4em 0.42em; }
  .dl-list a { flex-wrap: wrap; row-gap: 2px; }
  .dl-list b { min-width: 0; }
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 70svh; }
  .plan.ai { order: -1; }
  .plan-foot .btn { width: 100%; justify-content: center; }
  .plan-price { font-size: 22vw; }
  .faq { grid-template-columns: 1fr; }
  .faq h2 { position: static; font-size: 9vw; }
  .faq summary { font-size: 18px; min-height: 64px; }
  .blocks { height: 22svh; }
  .blocks span { font-size: 9vw; }
  .foot-links { grid-template-columns: 1fr 1fr; }
}
