:root {
  --deep: #08090a;
  --navy: #111315;
  --blue: #21252a;
  --gold: #ff6b18;
  --gold-soft: #ff8a45;
  --paper: #f5f5f7;
  --ink: #111317;
  --gray: #6e737b;
  --pale: #eceef1;
  --line: rgba(17, 19, 23, 0.12);
  --serif: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

html {
  background: var(--paper);
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 19, 23, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 23, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-weight: 400;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.6), transparent 42%);
}

.wrap {
  max-width: 980px;
}

.wide {
  max-width: 1280px;
}

section {
  padding: 120px 0;
}

section[id] {
  scroll-margin-top: 104px;
}

.ebook-nav {
  top: 10px;
  width: min(1500px, calc(100% - 40px));
  min-height: 62px;
  padding: 0 18px;
  border-color: rgba(255,255,255,.12);
  background: rgba(10, 10, 11, .78);
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
}

.ebook-brand img {
  width: 74px;
}

.ebook-brand span {
  color: rgba(255,255,255,.42);
  font-weight: 500;
}

.ebook-site-links {
  color: rgba(255,255,255,.64);
  font-size: 14px;
  font-weight: 430;
}

.ebook-current {
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  font-weight: 480;
}

.ebook-contact,
.btn-gold,
.cta-bar a {
  color: #090a0b;
  background: #fff;
  font-weight: 650;
}

.ebook-contact:hover,
.btn-gold:hover,
.cta-bar a:hover {
  box-shadow: 0 10px 28px rgba(255,255,255,.14);
}

.skip-link:focus,
.ebook-nav :focus-visible,
.btn:focus-visible,
.q-item:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  gap: 12px;
  margin-bottom: 22px;
  color: #7b8087;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  border-radius: 0;
  background: var(--gold);
}

h2,
h2.reveal {
  margin-bottom: 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 520;
  line-height: 1.22;
}

.lead {
  max-width: 720px;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.8;
}

.js .reveal {
  transform: translateY(14px);
  transition-duration: .72s;
  transition-timing-function: cubic-bezier(.22,1,.36,1);
}

/* Hero */
.hero {
  min-height: 880px;
  padding: 142px 0 104px;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    radial-gradient(ellipse at 80% 32%, rgba(255,255,255,.16), transparent 28%),
    radial-gradient(ellipse at 84% 62%, rgba(255,107,24,.18), transparent 34%),
    linear-gradient(118deg, #070809 0%, #0c0d0f 58%, #171513 100%),
    #08090a;
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,9,10,.97) 0%, rgba(8,9,10,.82) 46%, rgba(8,9,10,.16) 100%),
    linear-gradient(180deg, rgba(0,0,0,.2), transparent 40%, rgba(0,0,0,.34));
}

.hero .wrap {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  gap: clamp(52px, 8vw, 120px);
  max-width: 1280px;
}

.hero .wrap::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -70px;
  width: 560px;
  height: 170px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,.14) 0%, rgba(255,107,24,.08) 32%, transparent 70%);
  filter: blur(22px);
  transform: perspective(600px) rotateX(66deg);
}

.hero .wrap > * {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: rgba(255,255,255,.54);
  letter-spacing: .08em;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-family: var(--sans);
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 .g {
  color: var(--gold);
}

.hero .rule {
  width: 112px;
  height: 2px;
  margin-bottom: 28px;
  background: linear-gradient(90deg, var(--gold), rgba(255,107,24,0));
}

.hero .sub {
  max-width: 670px;
  margin-bottom: 36px;
  color: rgba(255,255,255,.67);
  font-size: 17px;
  line-height: 1.85;
}

.hero .meta {
  margin-top: 42px;
  color: rgba(255,255,255,.38);
}

.hero-actions {
  gap: 10px;
}

.btn {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 50px;
}

.btn-ghost {
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.035);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  background: rgba(255,255,255,.07);
}

.hero-book {
  isolation: isolate;
  animation: bookFloat 9s cubic-bezier(.45,0,.55,1) infinite;
}

.hero-book::before {
  content: "";
  position: absolute;
  inset: 9% -10% -7%;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.13);
  background:
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,107,24,.07) 58%, rgba(0,0,0,.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transform: perspective(1100px) rotateY(-12deg) translate(18px, 18px);
}

.hero-book::after {
  bottom: -48px;
  height: 42px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.64), transparent 70%);
  filter: blur(10px);
}

.hero-book img {
  width: min(390px, 30vw);
  height: auto;
  aspect-ratio: 1055 / 1491;
  border-radius: 2px;
  object-fit: cover;
  transform: perspective(1200px) rotateY(-10deg) rotateX(1deg);
  box-shadow: -34px 42px 90px rgba(0,0,0,.56), 0 0 0 1px rgba(255,255,255,.1);
  transition: transform .65s cubic-bezier(.22,1,.36,1), box-shadow .65s ease;
}

.hero-book:hover img {
  transform: perspective(1200px) rotateY(-4deg) rotateX(0) translateY(-6px);
  box-shadow: -24px 48px 110px rgba(0,0,0,.64), 0 0 0 1px rgba(255,255,255,.14);
}

@keyframes bookFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

/* Metrics */
.stats {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.78);
}

.stats .wrap {
  max-width: 1280px;
  border-top: 0;
}

.stats .s {
  padding: 34px 18px;
  border-color: var(--line);
}

.stats .n {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 520;
}

.stats .l {
  color: #858a91;
  letter-spacing: 0;
}

/* Editorial sections */
.sym {
  border-top: 0;
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.58);
}

.sym ul {
  max-width: 820px;
}

.sym li {
  padding: 22px 0 22px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.sym li::before {
  top: 31px;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 0;
  background: var(--gold);
}

.sym .tail,
.confess .pull,
.honest .pull {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 560;
}

.confess {
  background: var(--paper);
}

.confess-grid {
  grid-template-columns: 340px 1fr;
  gap: 72px;
  margin-top: 36px;
}

.portrait img {
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(17,19,23,.1);
}

.portrait .cap {
  text-align: left;
}

.portrait .cap b {
  color: var(--ink);
}

.confess p {
  color: #4f555d;
  font-size: 17px;
  line-height: 1.9;
}

.confess .pull {
  margin: 40px 0;
  padding: 6px 0 6px 24px;
  border-left: 2px solid var(--gold);
  font-size: clamp(23px,3vw,32px);
  line-height: 1.55;
}

/* Interactive diagnosis */
.diag {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    #0a0b0c;
  background-size: 44px 44px;
}

.diag::after {
  content: "";
  position: absolute;
  inset: auto -10% -50% 46%;
  height: 620px;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(255,107,24,.12), transparent 64%);
}

.diag .wide {
  position: relative;
  z-index: 1;
}

.diag h2 {
  color: #fff;
}

.diag .lead {
  color: rgba(255,255,255,.56);
}

.diag-grid {
  grid-template-columns: minmax(0,1.12fr) minmax(360px,.88fr);
  gap: 28px;
}

.q-item {
  min-height: 92px;
  margin-bottom: 10px;
  border-color: rgba(255,255,255,.13);
  border-radius: 6px;
  background: rgba(255,255,255,.035);
}

.q-item:hover,
.q-item.checked {
  border-color: rgba(255,107,24,.56);
  background: rgba(255,107,24,.065);
}

.q-item .box {
  border-color: var(--gold);
}

.q-item .d {
  color: rgba(255,255,255,.46);
}

.rung {
  min-height: 62px;
  border-radius: 4px;
}

.rung.have,
.rung.top.have {
  border-color: rgba(255,107,24,.36);
  background: rgba(255,107,24,.14);
}

.rung.miss {
  border: 1px dashed rgba(255,255,255,.2);
  color: rgba(255,255,255,.46);
}

.verdict {
  border-color: rgba(255,255,255,.13);
  border-radius: 6px;
  background: rgba(255,255,255,.05);
}

.verdict b {
  color: var(--gold-soft);
}

/* Quotes and package */
.excerpt {
  border-color: var(--line);
  background: #fff;
}

.ex-card {
  max-width: 760px;
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  box-shadow: none;
}

.ex-card:hover {
  border-color: rgba(255,107,24,.32);
  transform: translateY(-2px);
}

.ex-card .src {
  color: #8b9097;
  letter-spacing: .06em;
}

.ex-card p {
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(18px,2.4vw,22px);
  line-height: 1.85;
}

.ex-card p b {
  color: var(--ink);
}

.pack-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

.pack {
  min-height: 240px;
  padding: 34px;
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.pack::before {
  height: 2px;
  background: var(--gold);
}

.pack:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(17,19,23,.08);
}

.pack .n {
  color: #90959c;
  font-family: var(--sans);
}

.pack h3 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 550;
}

.pack .tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #5f646b;
  background: #f3f4f5;
}

.terms {
  justify-content: center;
}

.terms span {
  border-radius: 999px;
  color: #696e76;
  background: rgba(255,255,255,.7);
}

.terms span b {
  color: var(--ink);
}

details {
  padding: 4px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,.72);
  transition: border-color .2s ease, background .2s ease;
}

details[open] {
  border-color: rgba(255,107,24,.42);
  background: #fff;
}

summary {
  min-height: 64px;
  color: var(--ink);
  font-weight: 520;
}

summary::after {
  color: #8a8f96;
  font-family: var(--sans);
  font-weight: 300;
}

/* Purchase */
.paths {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eceef1;
}

.path-grid {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.path.light {
  padding: 48px;
  border-color: rgba(17,19,23,.16);
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(17,19,23,.1);
}

.path.light::before {
  height: 3px;
  background: var(--gold);
}

.path-cover {
  height: 250px;
  gap: 54px;
  margin-bottom: 34px;
}

.stack-group {
  width: 166px;
  height: 234px;
}

.bk {
  background-image: url("./assets/hospital-architect-cover.jpg") !important;
  border-color: rgba(17,19,23,.12);
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(17,19,23,.2);
}

.fan-group {
  width: 150px;
  height: 212px;
}

.wbv {
  border-color: rgba(17,19,23,.12);
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(17,19,23,.16);
  filter: saturate(.3);
}

.wb-badge {
  right: -10px;
  top: -10px;
  color: #fff;
  background: #111317;
  box-shadow: 0 8px 22px rgba(17,19,23,.22);
}

.path .who {
  color: #8b9097;
  letter-spacing: .06em;
}

.path.light h3,
.path .price {
  color: var(--ink);
}

.path h3 {
  font-size: 28px;
  font-weight: 540;
}

.path .price {
  font-family: var(--sans);
  font-size: 42px;
  font-weight: 520;
}

.path ul li::before {
  color: var(--gold);
}

.btn-navy {
  color: #fff;
  background: #111317;
}

.btn-navy:hover {
  box-shadow: 0 12px 28px rgba(17,19,23,.18);
}

.honest {
  border-color: var(--line);
  background: #fff;
}

.honest .pull {
  font-size: clamp(28px,4vw,44px);
}

.final {
  padding: 132px 0;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    #08090a;
  background-size: 44px 44px;
}

.final h2 {
  color: #fff;
  font-size: clamp(32px,5vw,56px);
}

.final p {
  color: rgba(255,255,255,.55);
}

footer {
  border-top: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.4);
  background: #08090a;
}

footer a {
  color: rgba(255,255,255,.72) !important;
}

.cta-bar {
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(8,9,10,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cta-bar .t {
  color: rgba(255,255,255,.56);
}

@media (max-width: 920px) {
  section {
    padding: 96px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero .wrap {
    grid-template-columns: 1fr 280px;
    gap: 42px;
  }

  .hero-book img {
    width: 260px;
  }

  .confess-grid {
    grid-template-columns: 280px 1fr;
    gap: 42px;
  }

  .diag-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body {
    background-size: 32px 32px;
  }

  section {
    padding: 76px 0;
  }

  .wrap,
  .wide {
    padding-right: 20px;
    padding-left: 20px;
  }

  .ebook-nav {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 108px 0 78px;
    background-size: 32px 32px, 32px 32px, auto, auto;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(8,9,10,.86), rgba(8,9,10,.42));
  }

  .hero .wrap::after {
    right: 50%;
    bottom: -46px;
    width: 360px;
    height: 120px;
    transform: translateX(50%) perspective(600px) rotateX(66deg);
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero h1 {
    font-size: clamp(44px,13vw,60px);
  }

  .hero .sub {
    font-size: 15px;
  }

  .hero-book {
    justify-self: center;
  }

  .hero-book img {
    width: min(260px, 72vw);
  }

  .stats .wrap {
    grid-template-columns: repeat(2,1fr);
    padding: 0;
  }

  .stats .s {
    min-height: 108px;
  }

  .stats .s:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .stats .s:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  h2,
  h2.reveal {
    font-size: 34px;
  }

  .sym li {
    font-size: 16px;
  }

  .confess-grid {
    grid-template-columns: 1fr;
  }

  .portrait {
    max-width: 100%;
  }

  .portrait img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .pack-grid {
    grid-template-columns: 1fr;
  }

  .path.light {
    padding: 34px 24px;
  }

  .path-cover {
    height: 206px;
    gap: 28px;
  }

  .stack-group {
    width: 126px;
    height: 178px;
  }

  .fan-group {
    width: 112px;
    height: 160px;
  }

  .path .price {
    font-size: 34px;
  }

  .final {
    padding: 96px 0;
    background-size: 32px 32px;
  }
}

@media (max-width: 420px) {
  .path-cover {
    gap: 16px;
  }

  .stack-group {
    width: 112px;
    height: 158px;
  }

  .fan-group {
    width: 98px;
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-book img,
  .hero-book,
  .pack,
  .ex-card {
    animation: none;
    transition: none;
  }
}
