/* ============================================================
   YEONHWA — Korean Saju (English) · prototype stylesheet
   Design: a reading room at night — ink, candle gold, hanji paper.
   ============================================================ */

:root {
  --ink: #050408;
  --ink-2: #0b0810;
  --ink-3: #120d18;
  --gold: #d9b978;
  --gold-2: #f5e3b6;
  --gold-3: #8d6f3c;
  --line: rgba(217, 185, 120, 0.22);
  --line-soft: rgba(217, 185, 120, 0.12);
  --text: #ece6da;
  --muted: #9d9488;
  --paper: #efe6d4;
  --paper-ink: #2b2419;
  --ok: #7ac9a4;
  --w-wood: #6fc98a;
  --w-fire: #e2786f;
  --w-earth: #d7a44f;
  --w-metal: #c9d0da;
  --w-water: #74a7e0;
  --r: 18px;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.noscroll { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--gold); text-decoration: none; }
::selection { background: rgba(217, 185, 120, .28); }
.serif { font-family: var(--serif); }

/* ---------- ambient background ---------- */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 60% at 78% -8%, rgba(217, 185, 120, .13), transparent 62%),
    radial-gradient(80% 45% at 8% 22%, rgba(92, 46, 110, .16), transparent 70%),
    radial-gradient(100% 60% at 50% 108%, rgba(217, 185, 120, .07), transparent 70%);
}
.bg-grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .045;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.5) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.wrap { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px;
  background: rgba(6,5,9,.93);
  border-bottom: 1px solid rgba(217,185,120,.10);
  backdrop-filter: blur(14px) saturate(1.1);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold-3); display: grid; place-items: center;
  font-family: var(--serif); font-size: 15px; color: var(--gold-2);
  background: radial-gradient(circle at 30% 25%, rgba(217,185,120,.22), transparent 70%);
}
.brand b { font-family: var(--serif); font-size: 17px; letter-spacing: .18em; font-weight: 600; }
.brand span { display: block; font-size: 9px; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-top: -3px; }
.topnav { display: none; gap: 22px; font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.topnav a:hover { color: var(--gold-2); }
.top-cta {
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--gold-3); color: var(--gold-2);
  background: rgba(217, 185, 120, .06);
}

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-art { position: relative; height: 47vh; min-height: 300px; overflow: hidden; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  filter: saturate(.92) contrast(1.02) brightness(.92);
}
.hero-art::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,4,8,.62) 0%, rgba(5,4,8,.10) 34%, rgba(5,4,8,.72) 78%, var(--ink) 100%),
    radial-gradient(90% 70% at 50% 40%, transparent 40%, rgba(5,4,8,.55));
}
.hero-copy {
  position: relative; z-index: 2; margin-top: -140px;
  padding: 0 20px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold-3); }
h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: 40px; line-height: 1.06; letter-spacing: -.01em;
  margin: 12px 0 12px; color: #fbf6ea;
  text-wrap: balance;
}
h1 em { font-style: italic; color: var(--gold-2); }
.lede { color: #cfc7b9; font-size: 14.5px; max-width: 34em; }
.lede b { color: var(--text); font-weight: 600; }

/* ---------- reading form ---------- */
.card {
  position: relative;
  background: linear-gradient(165deg, rgba(24, 18, 30, .92), rgba(12, 9, 16, .94));
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 24px 60px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
}
.form-card { margin: 20px 0 0; padding: 18px 16px 16px; }
.form-card h2 {
  font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .01em;
  margin-bottom: 2px;
}
.form-card .hint { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.field { margin-bottom: 11px; }
.field label {
  display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.field input[type="text"], .field input[type="date"], .field input[type="time"], .field select {
  width: 100%; padding: 11px 12px; border-radius: 11px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(217,185,120,.18);
  color: var(--text); outline: none; font-size: 14.5px;
  transition: border-color .16s, background .16s;
  appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--gold-3); background: rgba(217,185,120,.07); }
.field input::placeholder { color: #6e675d; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
/* Date and time are plain selects so no phone locale can localise them (오전 7:30 · 上午 etc.) */
.row3 select { padding: 11px 22px 11px 10px; font-size: 13.5px; background-position: calc(100% - 13px) 19px, calc(100% - 8px) 19px; }
.toggle {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 11px;
  font-size: 12px; color: var(--muted); cursor: pointer; user-select: none;
}
.toggle input { width: 15px; height: 15px; accent-color: #c9a96b; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 18px; border-radius: 13px;
  font-size: 14.5px; font-weight: 650; letter-spacing: .01em;
  color: #201708;
  background: linear-gradient(140deg, #f7e7bb 0%, #dfbd7d 38%, #c9a25d 72%, #f3ddaa 100%);
  box-shadow: 0 10px 26px -12px rgba(217,185,120,.6), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .12s ease, filter .16s;
}
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: rgba(217,185,120,.07); color: var(--gold-2);
  border: 1px solid var(--gold-3); box-shadow: none; font-weight: 600;
}
.btn:disabled { opacity: .55; }
.micro { font-size: 11px; color: #7f776c; text-align: center; margin-top: 9px; line-height: 1.5; }
.trust {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 4px;
  font-size: 10.5px; letter-spacing: .04em; color: #8d857a;
}
.trust span { display: inline-flex; align-items: center; gap: 5px; }
.trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-3); display: inline-block; }

/* ---------- generic sections ---------- */
section { padding: 46px 20px 0; scroll-margin-top: 62px; }
.sec-head { max-width: 30em; }
.kicker { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); }
h2.sec-title {
  font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.16;
  margin: 8px 0 10px; letter-spacing: -.005em; color: #f7f1e4;
}
.sec-sub { color: var(--muted); font-size: 13.5px; }

.trio { display: grid; gap: 10px; margin-top: 18px; }
.trio .t {
  padding: 15px 15px 14px; border-radius: 14px;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.022);
}
.trio .t .n { font-family: var(--serif); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.trio .t h3 { font-family: var(--serif); font-size: 17px; font-weight: 500; margin: 3px 0 4px; }
.trio .t p { font-size: 12.5px; color: var(--muted); }

/* ---------- result ---------- */
#reading { display: none; }
#reading.on { display: block; }
.result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.result-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.result-head .who { font-size: 11.5px; color: var(--muted); }

.chart { margin-top: 14px; padding: 14px 10px 12px; }
.chart-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pillar { text-align: center; padding: 8px 2px 10px; border-radius: 12px; background: rgba(255,255,255,.026); border: 1px solid transparent; }
.pillar.self { border-color: rgba(217,185,120,.34); background: rgba(217,185,120,.07); }
.pillar .pos { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pillar .han { font-family: var(--serif); font-size: 27px; line-height: 1.2; margin-top: 3px; }
.pillar .han .st { display: block; }
.pillar .rom { font-size: 9.5px; color: #837b70; letter-spacing: .06em; margin-top: 2px; }
.pillar .god { font-size: 9px; color: var(--gold-3); margin-top: 5px; letter-spacing: .04em; }
.chart-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 11px; font-size: 9.5px; letter-spacing: .02em; color: #837b70; }
.chart-foot span:last-child { text-align: right; white-space: nowrap; }

.dm { margin-top: 10px; padding: 17px 16px 16px; }
.dm .tag { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); }
.dm .name { font-family: var(--serif); font-size: 25px; font-weight: 500; margin: 4px 0 2px; color: var(--gold-2); }
.dm .name small { color: var(--text); }
.dm .name .han { font-size: 30px; color: var(--gold-2); }
.dm .name small { font-size: 13px; color: var(--gold); letter-spacing: .06em; margin-left: 7px; }
.dm p { font-size: 13.5px; color: #d6cec1; margin-top: 8px; }
.dm .split { display: grid; gap: 8px; margin-top: 12px; }
.dm .split div { padding-left: 11px; border-left: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.dm .split b { color: var(--gold-2); font-weight: 600; }

.elem { margin-top: 10px; padding: 16px; }
.elem h3 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin-bottom: 3px; }
.elem .note { font-size: 12px; color: var(--muted); margin-bottom: 11px; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 52px 1fr 34px; align-items: center; gap: 8px; font-size: 11px; }
.bar .nm { color: #b8afa2; letter-spacing: .06em; text-transform: uppercase; font-size: 9.5px; }
.bar .track { display: block; height: 8px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar .fill { display: block; height: 100%; border-radius: 999px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bar .pc { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.year { margin-top: 10px; padding: 16px; }
.year .hd { display: flex; align-items: baseline; gap: 9px; }
.year .hd .yr { font-family: var(--serif); font-size: 22px; color: var(--gold-2); }
.year .hd .g { font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.year p { font-size: 13.5px; color: #d6cec1; margin-top: 7px; }

.locked { margin-top: 12px; padding: 16px; overflow: hidden; position: relative; }
.locked h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.locked .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.ch {
  display: flex; align-items: center; gap: 7px; padding: 9px 9px; border-radius: 10px;
  font-size: 11px; white-space: nowrap; color: #b9b0a3; background: rgba(255,255,255,.03); border: 1px solid var(--line-soft);
}
.ch .lk { font-size: 9px; color: var(--gold-3); }
.peek { position: relative; margin-top: 12px; max-height: 92px; overflow: hidden; }
.peek p { font-family: var(--serif); font-size: 15.5px; line-height: 1.55; color: #d6cdbf; filter: blur(2.6px); opacity: .6; user-select: none; }
.peek::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--ink-2) 88%); }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 10px; margin-top: 18px; }
.plan { padding: 17px 16px 15px; display: flex; flex-direction: column; }
.plan.best { border-color: rgba(217,185,120,.5); box-shadow: 0 18px 46px -26px rgba(217,185,120,.5), inset 0 1px 0 rgba(255,255,255,.06); }
.plan .badge {
  align-self: flex-start; font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; color: #23190a; background: linear-gradient(120deg,#f2ddac,#d3ac6c);
  margin-bottom: 9px; font-weight: 700;
}
.plan .pname { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 8px; }
.plan .price b { font-family: var(--serif); font-size: 33px; font-weight: 600; letter-spacing: -.01em; }
.plan .price s { font-size: 12px; color: #6f675d; }
.plan ul { list-style: none; display: grid; gap: 6px; margin: 4px 0 14px; }
.plan li { font-size: 12.5px; color: #c8c0b3; padding-left: 15px; position: relative; }
.plan li::before { content: '·'; position: absolute; left: 3px; color: var(--gold); font-weight: 700; }
.plan li b { color: var(--text); }
.plan .btn { margin-top: auto; }
.plan .fin { font-size: 10.5px; color: #7d756a; text-align: center; margin-top: 7px; }
.pay-note { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.chip { font-size: 9.5px; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-soft); color: #9c9387; text-transform: uppercase; }

/* ---------- sample / paper ---------- */
.paper {
  margin-top: 16px; border-radius: 14px; padding: 20px 18px;
  background:
    radial-gradient(120% 80% at 12% 0%, #fbf4e4, #ece0c9 70%, #e2d3b8 100%);
  color: var(--paper-ink);
  box-shadow: 0 26px 60px -34px rgba(0,0,0,.85), inset 0 0 0 1px rgba(120,95,50,.16);
}
.paper .ph { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: #8a7347; }
.paper h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin: 6px 0 3px; }
.paper .meta { font-size: 10.5px; color: #7b6a4c; margin-bottom: 12px; }
.paper p { font-family: var(--serif); font-size: 15.5px; line-height: 1.62; color: #332a1c; }
.paper p + p { margin-top: 9px; }
.paper .hl { background: linear-gradient(180deg, transparent 62%, rgba(190,150,80,.32) 62%); }
.paper .hanja { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #7d5c22; }
.paper .sig { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 14px; color: #6d5a38; }

/* ---------- how / about ---------- */
.how { display: grid; gap: 9px; margin-top: 16px; }
.how .step { display: grid; grid-template-columns: 26px 1fr; gap: 11px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.02); }
.how .step .i { font-family: var(--serif); color: var(--gold); font-size: 15px; }
.how .step b { display: block; font-size: 13px; font-weight: 600; }
.how .step span { font-size: 12px; color: var(--muted); }

.about { display: grid; gap: 14px; margin-top: 16px; }
.about .art { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-soft); }
.about .art img { width: 100%; height: 260px; object-fit: cover; object-position: 50% 28%; }
.about .txt p { font-size: 13.5px; color: #cfc7b9; }
.about .txt p + p { margin-top: 9px; }
.about .txt .sig { font-family: var(--serif); font-style: italic; color: var(--gold-2); margin-top: 11px; font-size: 15px; }

/* ---------- faq ---------- */
.faq { margin-top: 16px; display: grid; gap: 7px; }
details.q {
  border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255,255,255,.02);
  padding: 12px 14px;
}
details.q summary { font-size: 13.5px; font-weight: 550; cursor: pointer; list-style: none; position: relative; padding-right: 20px; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: '+'; position: absolute; right: 0; top: -2px; color: var(--gold); font-size: 16px; }
details.q[open] summary::after { content: '–'; }
details.q p { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ---------- footer ---------- */
footer { margin-top: 48px; padding: 22px 20px 30px; border-top: 1px solid var(--line-soft); }
footer .fmark { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
footer .fmark b { font-family: var(--serif); letter-spacing: .16em; font-size: 14px; }
footer p { font-size: 10.5px; color: #78716a; line-height: 1.75; }
footer .fnav { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; font-size: 11px; }
footer .disc { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(217,185,120,.12); background: rgba(217,185,120,.03); color: #8a8278; font-size: 10.5px; }
.proto { display: inline-block; margin-top: 10px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #6c655c; border: 1px dashed rgba(255,255,255,.14); padding: 4px 8px; border-radius: 6px; }

/* ---------- checkout sheet ---------- */
.sheet-bg {
  position: fixed; inset: 0; z-index: 60; background: rgba(3,2,6,.66);
  backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .22s;
}
.sheet-bg.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  background: linear-gradient(180deg, #17111f, #0a0710 60%);
  border-top: 1px solid rgba(217,185,120,.34);
  border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  transform: translateY(101%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
  max-height: 92vh; overflow-y: auto;
  box-shadow: 0 -30px 80px -20px rgba(0,0,0,.9);
}
.sheet.on { transform: translateY(0); }
.sheet-x { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #9a9184; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.sheet-x:hover { color: var(--gold-2); border-color: var(--gold-3); }
.sheet .grip { width: 38px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.16); margin: 2px auto 12px; }
.sheet h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.sheet .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.order { margin: 13px 0 12px; padding: 13px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(217,185,120,.05); }
.order .line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.order .line b { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.order .line .amt { font-family: var(--serif); font-size: 22px; }
.order .desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.order .tax { font-size: 10.5px; color: #7d756a; margin-top: 7px; }
.sheet .field { margin-bottom: 10px; }
.paymethods { display: flex; gap: 6px; margin: 2px 0 12px; flex-wrap: wrap; }
.paymethods span { font-size: 9.5px; letter-spacing: .06em; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.05); color: #a79e91; }
.assure { display: grid; gap: 5px; margin: 12px 0 4px; }
.assure div { font-size: 11px; color: #8e867a; display: flex; gap: 7px; }
.assure i { color: var(--gold); font-style: normal; }
.sheet .fine { font-size: 10px; color: #6f685f; margin-top: 10px; line-height: 1.6; }
.proto-note { display: none; margin-top: 10px; padding: 9px 11px; border-radius: 9px; font-size: 11px; color: #f0d9a6; background: rgba(217,185,120,.1); border: 1px solid rgba(217,185,120,.3); }
.proto-note.on { display: block; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .topnav { display: flex; }
  .hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 34px 28px 0; }
  .hero-art { height: 600px; border-radius: 22px; overflow: hidden; order: 2; }
  .hero-art img { height: 100%; }
  .hero-art::after { background: linear-gradient(180deg, rgba(5,4,8,.25), rgba(5,4,8,.05) 40%, rgba(5,4,8,.55)); }
  .hero-copy { margin-top: 0; padding: 0; order: 1; }
  h1 { font-size: 60px; }
  .lede { font-size: 16px; }
  .form-card { padding: 22px 22px 18px; }
  section { max-width: var(--max); margin: 0 auto; padding: 72px 28px 0; }
  h2.sec-title { font-size: 34px; }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .how { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: .9fr 1.1fr; align-items: center; }
  .paper { max-width: 840px; padding: 30px 32px; }
  .paper p { font-size: 17px; line-height: 1.66; }
  .about .art img { height: 420px; }
  .faq { grid-template-columns: 1fr 1fr; align-items: start; }
  footer { max-width: var(--max); margin: 70px auto 0; }
  .sheet { left: auto; right: 24px; bottom: 24px; width: 400px; border-radius: 20px; border: 1px solid rgba(217,185,120,.34); padding: 10px 20px 20px; }
  .chapters { grid-template-columns: 1fr 1fr; }
}

/* ---------- paid confirmation (?paid= return from Gumroad) ---------- */
#paidBox { display: none; padding: 16px 0 4px; }
#paidBox.on { display: block; }
.paid-card {
  border: 1px solid rgba(217,185,120,.34);
  background: linear-gradient(160deg, rgba(217,185,120,.10), rgba(255,255,255,.02));
  border-radius: 18px; padding: 26px 24px 22px;
}
.paid-card .kicker { color: var(--gold); }
.paid-card h2 {
  font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.22;
  margin: 6px 0 8px; color: var(--text);
}
.paid-card h2 em { font-style: italic; color: var(--gold-2, #d9b978); }
.paid-sub { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 620px; }
.paid-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.paid-actions .btn { width: auto; padding: 12px 20px; }
.paid-card .micro { font-size: 11.5px; color: #8f8779; }
.paid-ref { font-size: 11px; color: #7d766b; margin-top: 10px; letter-spacing: .04em; }
