/* VerticalChinese — xuan paper, pine-soot ink, a single cinnabar seal.
   Identity inherited from the ChinesePoemsIOS app theme. */

:root {
  --paper:        #F4ECD8;
  --paper-raised: #FBF5E6;
  --paper-sunken: #E7DCC2;
  --ink:          #1F1B16;
  --ink-faded:    #6E6253;
  --ink-whisper:  #A89A82;
  --cinnabar:     #A8322A;
  --cinnabar-2:   #CB5C49;
  --hairline:     rgba(31, 27, 22, 0.12);
  --gold:         #B08A3E;

  --serif-display: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --serif-body:    "Spectral", Georgia, "Times New Roman", serif;
  --han:           "Noto Serif SC", "Songti SC", serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  /* layered paper grain + faint cinnabar bloom in the corners */
  background-image:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(168,50,42,0.06), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(176,138,62,0.07), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; }

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

.eyebrow {
  font-family: var(--serif-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  font-weight: 600;
  color: var(--cinnabar);
}

/* ---------- seal logo ---------- */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--cinnabar);
  color: var(--paper-raised);
  font-family: var(--han); font-weight: 700; font-size: 22px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px rgba(251,245,230,0.35), 0 2px 0 rgba(31,27,22,0.18);
  line-height: 1;
  position: relative;
}

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(244,236,216,0.82);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif-display);
  font-size: 23px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; }
.brand small { font-family: var(--han); color: var(--cinnabar); font-size: 19px; }
.nav-links { margin-left: auto; display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-faded); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--serif-body); font-size: 16px; font-weight: 600;
  padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--cinnabar); color: var(--paper-raised);
  box-shadow: 0 2px 0 #7c241e, 0 6px 18px rgba(168,50,42,0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 3px 0 #7c241e, 0 10px 26px rgba(168,50,42,0.34); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #7c241e; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 18px; padding: 16px 30px; }

/* ---------- hero ---------- */
.hero { padding: 78px 0 38px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero h1 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin: 18px 0 8px;
}
.hero h1 .num { color: var(--cinnabar); font-style: italic; position: relative; white-space: nowrap; }
.hero h1 .num::after {
  content: "七天"; position: absolute; right: -1.05em; top: 0.05em;
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--han); font-style: normal; font-size: 0.2em; letter-spacing: 0.18em;
  color: var(--ink-whisper); font-weight: 500;
}
.hero p.lede { font-size: 21px; color: var(--ink-faded); max-width: 30em; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-cta .guarantee { font-size: 14px; color: var(--ink-faded); }
.hero-cta .guarantee b { color: var(--ink); font-weight: 600; }

.credential { margin-top: 30px; display: flex; gap: 14px; align-items: center;
  font-size: 15px; color: var(--ink-faded); border-top: 1px solid var(--hairline); padding-top: 22px; }
.credential .han { font-family: var(--han); color: var(--cinnabar); font-size: 26px; }

/* ---------- reader instrument ---------- */
.reader {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(251,245,230,0.9) inset, 0 22px 50px -28px rgba(31,27,22,0.45);
  overflow: hidden;
}
.reader-top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--hairline);
  background: linear-gradient(var(--paper-raised), var(--paper-sunken));
}
.reader-top .lesson { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-whisper); }
.reader-top .dots { display: flex; gap: 6px; margin-left: 4px; }
.reader-top .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-sunken);
  box-shadow: inset 0 0 0 1px var(--hairline); display: block; }
.reader-top .dots i:first-child { background: var(--cinnabar); box-shadow: none; }

.poem-tabs { margin-left: auto; display: flex; gap: 4px; }
.poem-tabs button {
  font-family: var(--han); font-size: 15px; line-height: 1;
  background: transparent; border: 1px solid transparent; border-radius: 6px;
  padding: 6px 9px; cursor: pointer; color: var(--ink-faded); transition: all .15s;
}
.poem-tabs button:hover { background: var(--paper-sunken); }
.poem-tabs button.on { background: var(--cinnabar); color: var(--paper-raised); }

.reader-body { display: grid; grid-template-columns: 1fr 0.92fr; min-height: 430px; }

/* vertical text column */
.vtext-pane {
  position: relative;
  padding: 26px 22px 22px;
  border-right: 1px solid var(--hairline);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(2em - 1px), rgba(31,27,22,0.05) calc(2em - 1px) 2em);
  overflow-x: auto;
}
.vtext-head { writing-mode: horizontal-tb; margin-bottom: 14px; }
.vtext-head .t-zh { font-family: var(--han); font-weight: 600; font-size: 17px; }
.vtext-head .t-en { font-size: 13px; color: var(--ink-faded); font-style: italic; }
.vtext-head .t-au { font-size: 12px; color: var(--ink-whisper); margin-top: 2px; }

.vtext {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--han);
  font-size: 30px;
  line-height: 1.9;
  letter-spacing: 0.12em;
  height: 320px;
  color: var(--ink);
}
.vtext .line { margin-left: 2px; }
.vtext .han {
  cursor: pointer; padding: 1px 0; border-radius: 4px;
  transition: color .15s, background .15s;
}
.vtext .han:hover { color: var(--cinnabar); }
.vtext .han.active { color: var(--paper-raised); background: var(--cinnabar); }

/* study pane */
.study-pane { padding: 22px 24px; display: flex; flex-direction: column; }
.study-empty { margin: auto; text-align: center; color: var(--ink-whisper); }
.study-empty .big { font-family: var(--han); font-size: 46px; color: var(--paper-sunken);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.study-empty p { font-size: 14px; max-width: 18em; }

.glyph-frame {
  position: relative; width: 200px; height: 200px; margin: 0 auto 6px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline); border-radius: 12px;
  background-image:
    linear-gradient(var(--hairline), var(--hairline)),
    linear-gradient(var(--hairline), var(--hairline));
  background-size: 100% 1px, 1px 100%;
  background-position: center, center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.glyph-frame::before, .glyph-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
/* diagonal rice-grid guides */
.glyph-frame::before {
  background-image: linear-gradient(45deg, transparent calc(50% - 0.5px), var(--hairline) 50%, transparent calc(50% + 0.5px)),
                    linear-gradient(-45deg, transparent calc(50% - 0.5px), var(--hairline) 50%, transparent calc(50% + 0.5px));
}
.glyph-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.glyph-frame .hint path { fill: var(--paper-sunken); }
.glyph-frame .reveal { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }

.study-info { text-align: center; margin-top: 8px; }
.study-info .py { font-family: var(--serif-display); font-style: italic; font-size: 30px; color: var(--cinnabar); }
.study-info .en { font-size: 16px; color: var(--ink-faded); margin-top: 2px; min-height: 1.4em; }
.study-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 8px;
  padding: 9px 14px; font-family: var(--serif-body); font-size: 14px; color: var(--ink);
  transition: all .15s;
}
.icon-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.icon-btn svg { width: 16px; height: 16px; }

.reader-foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 18px; border-top: 1px solid var(--hairline);
  background: var(--paper-sunken); font-size: 13px; color: var(--ink-faded);
}
.reader-foot .spk { margin-left: auto; }
.trans-line { font-style: italic; }

/* ---------- generic section ---------- */
section { padding: 76px 0; }
.section-head { max-width: 38em; margin-bottom: 44px; }
.section-head h2 { font-family: var(--serif-display); font-weight: 600;
  font-size: clamp(34px, 4.4vw, 50px); line-height: 1.05; letter-spacing: -0.01em; margin: 10px 0 12px; }
.section-head p { font-size: 19px; color: var(--ink-faded); margin: 0; }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* path / steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.steps-7 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 1100px) { .steps-7 { grid-template-columns: repeat(7, 1fr); gap: 18px; } }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--ink); }
.step .no { font-family: var(--han); position: absolute; top: -0.1em; right: 0; font-size: 40px; color: var(--paper-sunken); }
.step .day { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cinnabar); font-weight: 600; }
.step h3 { font-family: var(--serif-display); font-size: 25px; font-weight: 600; margin: 6px 0 8px; }
.step p { font-size: 15.5px; color: var(--ink-faded); margin: 0; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.feature { background: var(--paper-raised); padding: 30px 28px; }
.feature .fhan { font-family: var(--han); font-size: 30px; color: var(--cinnabar); }
.feature h3 { font-family: var(--serif-display); font-size: 23px; font-weight: 600; margin: 12px 0 8px; }
.feature p { font-size: 15.5px; color: var(--ink-faded); margin: 0; }

/* pricing */
.price-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.price-card {
  background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 38px 36px; box-shadow: 0 24px 60px -34px rgba(31,27,22,0.5);
  position: relative; overflow: hidden;
}
.price-card .stamp {
  position: absolute; top: 18px; right: 18px; transform: rotate(8deg);
  border: 2px solid var(--cinnabar); color: var(--cinnabar); border-radius: 8px;
  font-family: var(--han); font-size: 13px; letter-spacing: 0.1em; padding: 6px 8px; opacity: 0.85;
}
.price-card .launch { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cinnabar); font-weight: 600; margin-bottom: 6px; }
.price-card .launch s { color: var(--ink-faded); text-decoration-thickness: 1.5px; }
.price-card .amount { font-family: var(--serif-display); font-size: 76px; font-weight: 600; line-height: 1; }
.price-card .amount sup { font-size: 30px; vertical-align: super; color: var(--ink-faded); }
.price-card .once { color: var(--ink-faded); font-size: 15px; margin-bottom: 22px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.price-card li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--hairline); font-size: 16px; }
.price-card li:last-child { border-bottom: 0; }
.price-card li::before { content: "印"; font-family: var(--han); position: absolute; left: 0; top: 9px;
  color: var(--cinnabar); font-size: 15px; }
.price-card .btn { width: 100%; justify-content: center; }
.price-side h2 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(32px,4vw,46px);
  line-height: 1.05; margin: 0 0 14px; }
.price-side p { font-size: 18px; color: var(--ink-faded); }

/* comparison table */
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 640px; }
.cmp th, .cmp td { text-align: center; padding: 16px 14px; border-bottom: 1px solid var(--hairline); }
.cmp thead th { font-family: var(--serif-display); font-weight: 600; font-size: 19px; }
.cmp tbody th { text-align: left; font-family: var(--serif-body); font-weight: 500; color: var(--ink-faded); font-size: 15.5px; }
.cmp td { color: var(--ink-whisper); }
.cmp .us { background: rgba(168,50,42,0.05); }
.cmp thead th.us { color: var(--cinnabar); }
.cmp col.us { background: rgba(168,50,42,0.05); }
.cmp td.us { color: var(--ink); font-weight: 600; }
.cmp .y { font-family: var(--han); color: var(--cinnabar); font-weight: 700; }
.cmp .n { color: var(--ink-whisper); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:first-child td.us { border-top-left-radius: 10px; border-top-right-radius: 10px; }

/* coda — final vertical poem, the screenshot moment */
.coda { padding: 70px 0 40px; }
.coda-inner { display: flex; align-items: center; justify-content: center; gap: 60px; flex-wrap: wrap; }
.coda-poem {
  display: flex; flex-direction: row-reverse; gap: 6px;
  background: var(--paper-raised); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 34px 30px; box-shadow: 0 22px 50px -30px rgba(31,27,22,0.45);
}
.coda-poem .cv {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--han); font-weight: 600; font-size: 34px; line-height: 1.6;
  letter-spacing: 0.1em; color: var(--ink);
}
.coda-side { max-width: 22em; }
.coda-side .prov { font-family: var(--han); font-size: 19px; color: var(--ink); margin: 0 0 6px; letter-spacing: 0.08em; }
.coda-side .prov-en { font-size: 15px; color: var(--ink-faded); font-style: italic; margin: 0 0 22px; }

/* faq */
.faq details {
  border-bottom: 1px solid var(--hairline); padding: 6px 0;
}
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--serif-display); font-size: 23px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 28px;
  color: var(--cinnabar); transition: transform .2s; font-family: var(--serif-body); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-faded); font-size: 17px; max-width: 52em; }

/* cta band */
.band { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 60px 50px;
  text-align: center; position: relative; overflow: hidden; }
.band::before { content: "讀"; position: absolute; font-family: var(--han); font-size: 360px;
  color: rgba(244,236,216,0.04); right: -30px; top: -120px; pointer-events: none; }
.band h2 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(34px,5vw,58px);
  margin: 0 0 12px; color: var(--paper); }
.band p { color: var(--ink-whisper); font-size: 19px; margin: 0 0 28px; }

/* footer */
footer.site { border-top: 1px solid var(--hairline); padding: 40px 0 64px; margin-top: 30px; }
.foot-inner { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; color: var(--ink-faded); font-size: 14px; }
.foot-inner .brand { font-size: 19px; }
.foot-inner .spacer { margin-left: auto; }

/* reveal-on-load */
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .8s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .reader-body { grid-template-columns: 1fr; }
  .vtext-pane { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .price-wrap { grid-template-columns: 1fr; gap: 30px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  body { font-size: 17px; }
}
