@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/Manrope.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ASTRA Zen Palette (DESIGN.md) */
  --washi-paper: #FAF9F6;
  --silk-warm: #F5F2EB;
  --card-surface: #FFFFFF;
  --card-surface-subtle: #FCFBF8;
  --sumi-ink: #1A1A1A;
  --charcoal-muted: #585854;
  --ash-subtle: #8F8E87;
  --border-zen: #E8E4DA;
  --hanko-vermilion: #C44536;
  --vermilion-subtle: rgba(196, 69, 54, 0.12);
  --vermilion-border: rgba(196, 69, 54, 0.28);
  --sage-soft: #3D6B52;
  --sage-bg: rgba(61, 107, 82, 0.1);

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii & Shadows */
  --radius-surface: 24px;
  --radius-card: 18px;
  --radius-btn: 16px;
  --radius-art: 12px;
  --zen-shadow: 0 8px 28px rgba(26, 26, 26, 0.045), 0 1px 3px rgba(26, 26, 26, 0.03);
  --zen-shadow-hover: 0 12px 32px rgba(26, 26, 26, 0.08), 0 2px 6px rgba(26, 26, 26, 0.04);

  /* Layout */
  --content-max: 540px;
  --header-max: 620px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--washi-paper);
  color: var(--sumi-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration-color: var(--border-zen);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--hanko-vermilion);
  text-decoration-color: var(--hanko-vermilion);
}

/* Header & Progress */
.site-header {
  width: 100%;
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 14px 20px 8px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 40px;
}

.back-btn {
  appearance: none;
  border: 1px solid var(--border-zen);
  background: var(--card-surface);
  color: var(--sumi-ink);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  padding: 0;
}

.back-btn:hover {
  background: var(--silk-warm);
  border-color: #D8D2C5;
}

.back-btn[hidden] {
  display: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--sumi-ink);
}

.brand-enso {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--silk-warm);
  border: 1px solid var(--border-zen);
  border-radius: 10px;
  padding: 2px;
  min-width: 64px;
  justify-content: center;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--charcoal-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--card-surface);
  color: var(--sumi-ink);
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.08);
}

.progress-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-wrap[hidden] {
  display: none;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ash-subtle);
  font-weight: 600;
}

.depth-pill {
  color: var(--hanko-vermilion);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--border-zen);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--hanko-vermilion);
  border-radius: 999px;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Main Stage */
.stage {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 20px 48px;
}

.screen {
  animation: screenIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step 1 Clean Centered Visual Intro (ASTRA Editorial Style) */
.hero-editorial {
  text-align: center;
  margin-bottom: 24px;
  padding-top: 6px;
}

.hero-fan-center {
  position: relative;
  width: 210px;
  height: 112px;
  margin: 0 auto 14px;
}

.hero-fan-center img {
  position: absolute;
  width: 82px;
  height: 102px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.11);
  top: 6px;
}

.hero-fan-center img:nth-child(1) {
  left: 8px;
  transform: rotate(-11deg);
  z-index: 1;
}

.hero-fan-center img:nth-child(2) {
  left: 64px;
  top: 0;
  z-index: 3;
}

.hero-fan-center img:nth-child(3) {
  right: 8px;
  transform: rotate(11deg);
  z-index: 2;
}

.hero-editorial .screen-title,
.hero-editorial .screen-subtitle {
  text-align: center;
}

.hero-editorial .screen-subtitle {
  margin-bottom: 0;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hanko-vermilion);
  margin-bottom: 10px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hanko-vermilion);
}

h1.screen-title {
  font-family: var(--font-serif);
  font-size: clamp(31px, 7.5vw, 40px);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--sumi-ink);
  letter-spacing: -0.01em;
}

h2.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--sumi-ink);
}

h3.card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--sumi-ink);
}

.screen-subtitle {
  margin: 0 0 22px;
  color: var(--charcoal-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Surfaces */
.zen-surface {
  background: var(--card-surface);
  border: 1px solid var(--border-zen);
  border-radius: var(--radius-surface);
  padding: 22px;
  box-shadow: var(--zen-shadow);
}

.zen-surface--warm {
  background: var(--silk-warm);
  box-shadow: none;
}

/* Option List */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.option-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  background: var(--card-surface);
  border: 1px solid var(--border-zen);
  border-radius: var(--radius-btn);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  color: var(--sumi-ink);
  font-family: var(--font-sans);
  box-shadow: 0 2px 8px rgba(26, 26, 26, 0.02);
  transition: transform 0.16s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.option-btn:hover {
  border-color: #CFC8B8;
  box-shadow: var(--zen-shadow);
  transform: translateY(-1px);
}

.option-btn:active {
  transform: scale(0.99);
}

.option-btn.selected {
  border-color: var(--hanko-vermilion);
  background: var(--card-surface-subtle);
  box-shadow: 0 0 0 1px var(--hanko-vermilion);
}

.option-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.option-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--sumi-ink);
  line-height: 1.35;
}

.option-desc {
  font-size: 13px;
  color: var(--charcoal-muted);
  line-height: 1.4;
}

.option-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-zen);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}

.option-btn.selected .option-indicator {
  border-color: var(--hanko-vermilion);
  background: var(--hanko-vermilion);
}

.option-btn--multi .option-indicator {
  border-radius: 7px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Scale 1..5 */
.scale-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.scale-btn {
  appearance: none;
  border: 1px solid var(--border-zen);
  background: var(--card-surface);
  border-radius: var(--radius-btn);
  height: 58px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--sumi-ink);
  cursor: pointer;
  transition: all 0.2s;
}

.scale-btn:hover {
  border-color: #CFC8B8;
  background: var(--silk-warm);
}

.scale-btn.selected {
  background: var(--sumi-ink);
  color: #FFFFFF;
  border-color: var(--sumi-ink);
  transform: translateY(-2px);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ash-subtle);
  margin-bottom: 20px;
}

/* Inputs */
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal-muted);
  margin-bottom: 8px;
}

.zen-input,
.zen-textarea,
.zen-select {
  width: 100%;
  background: var(--card-surface-subtle);
  border: 1px solid var(--border-zen);
  border-radius: var(--radius-btn);
  padding: 15px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--sumi-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.zen-input:focus,
.zen-textarea:focus,
.zen-select:focus {
  border-color: var(--hanko-vermilion);
  background: var(--card-surface);
  box-shadow: 0 0 0 3px var(--vermilion-subtle);
}

.zen-textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.5;
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.2fr;
  gap: 10px;
  margin-bottom: 18px;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 22px;
}

.prompt-chip {
  appearance: none;
  border: 1px solid var(--border-zen);
  background: var(--silk-warm);
  color: var(--charcoal-muted);
  border-radius: 999px;
  padding: 8px 13px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.prompt-chip:hover {
  border-color: var(--hanko-vermilion);
  color: var(--sumi-ink);
  background: var(--card-surface);
}

/* Primary & Secondary Buttons */
.btn-primary {
  appearance: none;
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--sumi-ink);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.16s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
  background: #2C2C2A;
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.99);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  appearance: none;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border-zen);
  border-radius: var(--radius-btn);
  background: var(--card-surface);
  color: var(--sumi-ink);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: var(--silk-warm);
  border-color: #D2CBBF;
}

.btn-vermilion {
  background: var(--hanko-vermilion);
}

.btn-vermilion:hover:not(:disabled) {
  background: #AE3B2D;
}

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }

.consent-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ash-subtle);
  text-align: center;
  line-height: 1.5;
}

/* Interstitial Cards */
.stat-highlight {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  color: var(--hanko-vermilion);
  margin: 4px 0 12px;
}

.zen-quote {
  border-left: 2px solid var(--hanko-vermilion);
  padding: 4px 0 4px 14px;
  margin: 18px 0 0;
  color: var(--charcoal-muted);
  font-size: 14px;
  line-height: 1.6;
}

.feature-points {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--charcoal-muted);
}

.point-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vermilion-subtle);
  color: var(--hanko-vermilion);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Archetype Card (Micro-Reward) */
.archetype-card {
  background: var(--card-surface);
  border: 1px solid var(--border-zen);
  border-radius: var(--radius-surface);
  padding: 18px;
  box-shadow: var(--zen-shadow);
  margin-bottom: 18px;
}

.archetype-frame {
  border: 1px solid var(--border-zen);
  border-radius: var(--radius-card);
  background: var(--card-surface-subtle);
  padding: 18px;
  text-align: center;
}

.archetype-art {
  width: 196px;
  height: 196px;
  object-fit: cover;
  border-radius: var(--radius-art);
  margin: 0 auto 14px;
  display: block;
  border: 1px solid var(--border-zen);
  animation: artReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes artReveal {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.arcana-roman {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--hanko-vermilion);
  text-transform: uppercase;
}

.arcana-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  margin: 4px 0 4px;
  color: var(--sumi-ink);
  line-height: 1.1;
}

.arcana-keyword {
  font-size: 13px;
  color: var(--ash-subtle);
  margin: 0;
}

.insight-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.insight-pill {
  background: var(--silk-warm);
  border: 1px solid var(--border-zen);
  border-radius: 14px;
  padding: 12px 14px;
}

.insight-pill-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hanko-vermilion);
  margin-bottom: 4px;
}

.insight-pill-text {
  font-size: 13px;
  color: var(--sumi-ink);
  line-height: 1.4;
}

/* 3-Card Interactive Deck with 3D Flip */
.spread-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.spread-slot {
  background: var(--card-surface);
  border: 1px dashed #D6CFC1;
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.25s;
}

.spread-slot.filled {
  border-style: solid;
  border-color: var(--border-zen);
  background: var(--card-surface);
  box-shadow: var(--zen-shadow);
  animation: popSlot 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popSlot {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.spread-slot-pos {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash-subtle);
}

.spread-slot.filled .spread-slot-pos {
  color: var(--hanko-vermilion);
}

.spread-slot img {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-zen);
}

.spread-slot-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--sumi-ink);
}

.deck-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  perspective: 900px;
}

.deck-card {
  appearance: none;
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  aspect-ratio: 3 / 4.2;
  padding: 0;
  cursor: pointer;
  position: relative;
  perspective: 800px;
}

.deck-card:disabled:not(.picked) {
  opacity: 0.42;
  cursor: default;
}

.deck-card-flipper {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.deck-card:hover:not(:disabled):not(.picked) .deck-card-flipper {
  transform: translateY(-5px);
}

.deck-card.picked .deck-card-flipper {
  transform: rotateY(180deg);
}

.deck-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  border: 1px solid #DDD6C8;
  background: #F4F0E7;
  padding: 7px;
  box-shadow: 0 5px 14px rgba(26, 26, 26, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-face--back-inner {
  width: 100%;
  height: 100%;
  border: 1px solid #D9D1C0;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(circle at center, #FCFBF8 0%, #EFEAE0 100%);
  position: relative;
}

.deck-face--back-inner::before {
  content: "✦";
  position: absolute;
  top: 7px;
  font-size: 9px;
  color: var(--hanko-vermilion);
  opacity: 0.7;
}

.deck-face--back-inner::after {
  content: "✦";
  position: absolute;
  bottom: 7px;
  font-size: 9px;
  color: var(--hanko-vermilion);
  opacity: 0.7;
}

.deck-card-enso {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--sumi-ink);
  border-top-color: transparent;
  position: relative;
  opacity: 0.82;
}

.deck-card-enso::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hanko-vermilion);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.deck-face--front {
  transform: rotateY(180deg);
  border-color: var(--hanko-vermilion);
  background: var(--card-surface);
  padding: 4px;
}

.deck-face--front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.deck-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hanko-vermilion);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(196, 69, 54, 0.35);
}

/* Advanced Processing Theater (Step 16) */
.processing-box {
  text-align: center;
  padding: 26px 22px;
}

.radial-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
}

.radial-svg {
  width: 132px;
  height: 132px;
  transform: rotate(-90deg);
}

.radial-bg {
  fill: none;
  stroke: var(--border-zen);
  stroke-width: 6;
}

.radial-fg {
  fill: none;
  stroke: var(--hanko-vermilion);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s linear;
}

.radial-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radial-num {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  color: var(--sumi-ink);
  font-variant-numeric: tabular-nums;
}

.radial-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-subtle);
  margin-top: 3px;
}

.calc-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin-top: 20px;
}

.calc-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--sumi-ink);
  margin-bottom: 6px;
}

.calc-bar-pct {
  color: var(--hanko-vermilion);
  font-variant-numeric: tabular-nums;
}

.calc-bar-track {
  height: 7px;
  background: var(--silk-warm);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-zen);
}

.calc-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--sumi-ink);
  border-radius: 999px;
  transition: width 0.2s linear;
}

.calc-bar-fill.done {
  background: var(--hanko-vermilion);
}

/* Micro-commitment popup during processing */
.micro-modal {
  margin-top: 20px;
  background: var(--card-surface-subtle);
  border: 1px solid var(--vermilion-border);
  border-radius: 20px;
  padding: 18px;
  text-align: left;
  box-shadow: var(--zen-shadow);
  animation: screenIn 0.3s ease both;
}

.micro-modal-q {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  margin: 4px 0 14px;
  color: var(--sumi-ink);
}

.micro-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Testimonial Card during processing & paywall */
.testimonial-card {
  margin-top: 18px;
  background: var(--card-surface-subtle);
  border: 1px solid var(--border-zen);
  border-radius: 18px;
  padding: 16px 18px;
  text-align: left;
}

.stars-row {
  color: var(--hanko-vermilion);
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.testimonial-text {
  font-size: 13.5px;
  color: var(--charcoal-muted);
  margin: 0 0 8px;
  line-height: 1.5;
}

.testimonial-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--sumi-ink);
}

/* Wax-Sealed Paper Envelope Discount Reveal (Step 19) */
.seal-card {
  background: var(--card-surface);
  border: 1px solid var(--border-zen);
  border-radius: var(--radius-surface);
  padding: 28px 22px 24px;
  text-align: center;
  box-shadow: var(--zen-shadow);
}

.envelope-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  max-width: 340px;
  margin: 22px auto 10px;
  display: block;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.envelope-shell {
  position: relative;
  width: 100%;
  height: 214px;
  border-radius: 18px;
  background: linear-gradient(165deg, #F7F3EA 0%, #EDE7DA 100%);
  border: 1px solid #DDD5C5;
  box-shadow: 0 14px 32px rgba(26, 26, 26, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.envelope-btn:hover .envelope-shell {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(26, 26, 26, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.envelope-inner-border {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(26, 26, 26, 0.07);
  border-radius: 11px;
  pointer-events: none;
}

.envelope-flap-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 124px;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(26, 26, 26, 0.08));
}

.envelope-bottom-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 112px;
  pointer-events: none;
}

.envelope-to {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--charcoal-muted);
  letter-spacing: 0.02em;
}

.wax-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #D95747 0%, #C44536 55%, #9B3024 100%);
  box-shadow:
    0 10px 22px rgba(155, 48, 36, 0.36),
    inset 0 2px 4px rgba(255, 255, 255, 0.28),
    inset 0 -4px 8px rgba(74, 18, 12, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.envelope-btn:hover .wax-seal {
  transform: translate(-50%, -56%) scale(1.06);
}

.wax-seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 245, 240, 0.42);
}

.wax-seal::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(196, 69, 54, 0.28);
  animation: sealRing 2.4s ease-out infinite;
}

@keyframes sealRing {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.24); opacity: 0; }
}

.wax-seal-mark {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 1;
}

.envelope-hint {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal-muted);
  letter-spacing: 0.01em;
}

/* Opened Editorial Invitation Voucher */
.voucher-card {
  position: relative;
  max-width: 360px;
  margin: 20px auto 8px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFBF8 100%);
  border: 1px solid #DFD7C8;
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 16px 34px rgba(26, 26, 26, 0.08);
  animation: voucherSlideUp 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes voucherSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.voucher-inner {
  border: 1px solid var(--border-zen);
  border-radius: 14px;
  padding: 20px 16px;
  background: var(--card-surface-subtle);
}

.voucher-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-subtle);
  margin-bottom: 6px;
}

.discount-big {
  font-family: var(--font-serif);
  font-size: 62px;
  font-weight: 600;
  line-height: 0.98;
  color: var(--hanko-vermilion);
  margin: 2px 0 8px;
}

.voucher-price-row {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 14px;
}

.voucher-old {
  font-size: 15px;
  color: var(--ash-subtle);
  text-decoration: line-through;
}

.voucher-new {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--sumi-ink);
}

.voucher-divider {
  height: 1px;
  background: repeating-linear-gradient(90deg, #D9D1C2 0 6px, transparent 6px 12px);
  margin: 14px 0;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-surface);
  border: 1px solid var(--vermilion-border);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sumi-ink);
}

.promo-code-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--hanko-vermilion);
  letter-spacing: 0.1em;
}

/* Before / After Comparison & Trajectory Chart */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.compare-col {
  background: var(--card-surface);
  border: 1px solid var(--border-zen);
  border-radius: 18px;
  padding: 15px 14px;
}

.compare-col--after {
  background: var(--card-surface-subtle);
  border-color: var(--sumi-ink);
}

.compare-head {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-subtle);
  margin-bottom: 10px;
}

.compare-col--after .compare-head {
  color: var(--hanko-vermilion);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: var(--charcoal-muted);
  line-height: 1.38;
}

.compare-col--after .compare-list {
  color: var(--sumi-ink);
}

.chart-card {
  background: var(--card-surface);
  border: 1px solid var(--border-zen);
  border-radius: var(--radius-surface);
  padding: 20px;
  box-shadow: var(--zen-shadow);
  margin: 18px 0;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 10px 0 6px;
}

.chart-area {
  opacity: 0;
  transition: opacity 0.9s ease 0.55s;
}

.chart-line-clarity {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.chart-line-noise {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.chart-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.3);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-dot--1 { transition-delay: 0.2s; }
.chart-dot--2 { transition-delay: 0.72s; }
.chart-dot--3 { transition-delay: 1.25s; }

.chart-card.is-visible .chart-line-clarity,
.chart-card.is-visible .chart-line-noise {
  stroke-dashoffset: 0;
}

.chart-card.is-visible .chart-area {
  opacity: 1;
}

.chart-card.is-visible .chart-dot {
  opacity: 1;
  transform: scale(1);
}

/* Paywall Staggered Scroll Reveal */
.pw-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.pw-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Metric bar fill animation */
.metric-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--sumi-ink);
  border-radius: 999px;
  transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--bar-delay, 120ms);
}

.metric-bar--accent > span {
  background: var(--hanko-vermilion);
}

/* Subtle editorial shimmer on primary CTA */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
  animation: ctaShimmer 4.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaShimmer {
  0%, 62% { left: -120%; }
  100% { left: 150%; }
}

@media (prefers-reduced-motion: reduce) {
  .pw-reveal,
  .chart-dot,
  .chart-area {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .chart-line-clarity,
  .chart-line-noise {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .btn-shimmer::after {
    animation: none !important;
  }
}

.chart-note {
  font-size: 11px;
  color: var(--ash-subtle);
  margin: 6px 0 0;
}

/* Metrics bars */
.metric-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 0;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.metric-val {
  color: var(--hanko-vermilion);
}

.metric-bar {
  height: 8px;
  background: var(--silk-warm);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-zen);
}

/* Paywall & Blurred Preview */
.paywall-banner {
  background: var(--silk-warm);
  border: 1px solid var(--border-zen);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.timer-pill {
  background: var(--vermilion-subtle);
  color: var(--hanko-vermilion);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.promo-applied-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--sage-bg);
  border: 1px solid rgba(61, 107, 82, 0.25);
  color: var(--sage-soft);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.cards-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.mini-card {
  background: var(--card-surface);
  border: 1px solid var(--border-zen);
  border-radius: 16px;
  padding: 10px;
  text-align: center;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-zen);
  margin-bottom: 6px;
}

.mini-card-pos {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hanko-vermilion);
}

.mini-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--sumi-ink);
  line-height: 1.15;
}

.preview-chapters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.chapter-box {
  background: var(--card-surface);
  border: 1px solid var(--border-zen);
  border-radius: 18px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

.chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--sumi-ink);
}

.chapter-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.chapter-badge--open {
  background: var(--silk-warm);
  color: var(--charcoal-muted);
}

.chapter-badge--locked {
  background: var(--vermilion-subtle);
  color: var(--hanko-vermilion);
}

.chapter-text {
  font-size: 14px;
  color: var(--charcoal-muted);
  margin: 0;
  line-height: 1.6;
}

.chapter-text--blurred {
  filter: blur(5.5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.72;
}

/* Pricing Box */
.offer-box {
  background: var(--card-surface);
  border: 1.5px solid var(--sumi-ink);
  border-radius: var(--radius-surface);
  padding: 22px;
  box-shadow: var(--zen-shadow);
  margin: 22px 0;
}

.offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.offer-tag {
  display: inline-block;
  background: var(--hanko-vermilion);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.offer-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}

.price-col {
  text-align: right;
  flex-shrink: 0;
}

.price-old {
  font-size: 14px;
  color: var(--ash-subtle);
  text-decoration: line-through;
  display: block;
}

.price-now {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  color: var(--sumi-ink);
}

.price-note {
  font-size: 11.5px;
  color: var(--charcoal-muted);
  display: block;
  margin-top: 3px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--charcoal-muted);
}

.guarantee-box {
  background: var(--silk-warm);
  border: 1px solid var(--border-zen);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 13.5px;
  color: var(--charcoal-muted);
}

.guarantee-box strong {
  color: var(--sumi-ink);
  display: block;
  margin-bottom: 4px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.faq-item {
  background: var(--card-surface);
  border: 1px solid var(--border-zen);
  border-radius: 16px;
  padding: 14px 16px;
}

.faq-item summary {
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--charcoal-muted);
  line-height: 1.55;
}

/* Full Reading View */
.reading-section {
  background: var(--card-surface);
  border: 1px solid var(--border-zen);
  border-radius: var(--radius-surface);
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: var(--zen-shadow);
}

.reading-section h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
}

.reading-section p {
  margin: 0 0 10px;
  color: var(--charcoal-muted);
  line-height: 1.65;
  white-space: pre-line;
}

.reading-section p:last-child {
  margin-bottom: 0;
}

.code-box {
  background: var(--silk-warm);
  border: 1px dashed var(--hanko-vermilion);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin-top: 14px;
}

.code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--sumi-ink);
  margin: 6px 0;
}

/* Alert / Status */
.status-msg {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  background: var(--silk-warm);
  border: 1px solid var(--border-zen);
  color: var(--sumi-ink);
}

.status-msg--error {
  background: var(--vermilion-subtle);
  border-color: var(--vermilion-border);
  color: var(--hanko-vermilion);
}

/* Footer */
.site-footer {
  width: 100%;
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 20px 20px 32px;
  border-top: 1px solid var(--border-zen);
  text-align: center;
  font-size: 12px;
  color: var(--ash-subtle);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.footer-disclaimer {
  max-width: 480px;
  margin: 8px auto 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ash-subtle);
}

/* Legal pages */
.legal-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.legal-wrap h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  margin: 0 0 8px;
}

.legal-wrap h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin: 26px 0 8px;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--charcoal-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

@media (max-width: 440px) {
  .options-grid,
  .insight-pills,
  .compare-grid,
  .micro-modal-actions {
    grid-template-columns: 1fr;
  }
  .deck-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media print {
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF;
  }
  .reading-section {
    box-shadow: none;
    break-inside: avoid;
  }
}
