:root {
  --bg: #f7f3ea;
  --text: #29251f;
  --muted: #71695f;
  --primary: #aa4630;
  --line: #e2d8ca;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: var(--type-body)/1.75 var(--type-body-family); }
a { color: var(--primary); text-underline-offset: 4px; }
/* Authentication and error pages also share this stylesheet. */
.eyebrow { display: block; color: var(--muted); font-size: var(--type-eyebrow); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1.6; }
.landing-main { max-width: 1240px; margin: auto; padding: 48px 28px 72px; }
.landing-main p { margin: 0; font-family: var(--type-body-family); color: var(--muted); font-size: var(--type-body); font-weight: 400; line-height: 1.75; letter-spacing: normal; }
.landing-main h1, .landing-main h2 { margin: 0 0 24px; font: 400 var(--type-heading)/1.3 Georgia, serif; }
.landing-main h3 { font: 400 var(--type-subheading)/1.4 Georgia, serif; }
.landing-main em { color: var(--primary); font-weight: 400; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 56px; padding: 24px 0 80px; }
.hero-copy > p { margin-bottom: 32px; }
.start-form { display: inline-block; max-width: 100%; margin: 0; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 52px; padding: 14px 26px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font: 650 var(--type-table)/1.5 var(--type-body-family); cursor: pointer; text-decoration: none; }
.primary-button:hover { background: #913a27; }
.interface-preview { min-width: 0; border-radius: 16px; outline-offset: 6px; }
.interface-preview img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 46px #4b342010; }
.feature-stories { border-top: 1px solid var(--line); }
.feature-story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 72px; min-height: 490px; padding: 64px 0; }
.feature-story + .feature-story { border-top: 1px solid var(--line); }
.story-copy { min-width: 0; }
.story-copy p + p { margin-top: 20px; }
.story-reversed { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.story-reversed .story-copy { grid-column: 2; grid-row: 1; }
.story-reversed .story-visual { grid-column: 1; grid-row: 1; }
.story-visual img, .tradition-visual img { display: block; width: 100%; height: auto; }
.character-visual { padding: 18px 20px 18px 0; }
.reading-sheet { position: relative; padding: 32px 36px; border: 1px solid #d9ccba; border-radius: 18px 18px 4px 4px; background: var(--description-card-background); box-shadow: 8px 8px 0 var(--bg), 8px 8px 0 1px #e2d8ca, 16px 16px 0 var(--bg), 16px 16px 0 1px #e8dfd3; }
.reading-sheet-heading { display: flex; align-items: center; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.reading-sheet-heading svg { flex-shrink: 0; color: var(--primary); }
.reading-sheet-heading h3 { margin: 0; }
.reading-sheet blockquote { margin: 24px 0; }
.reading-sheet blockquote p { color: #51483f; }
.reading-sheet blockquote p + p { margin-top: 16px; }
.reading-sheet mark { color: inherit; background: transparent; text-decoration: underline; text-decoration-color: #c88d70; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.reading-topics { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 20px; border-top: 1px solid var(--line); color: #95614c; font-size: var(--type-table); }
.tradition-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 72px; padding: 64px 0; border-top: 1px solid var(--line); }
.knowledge-section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.section-heading-row h2 { margin: 0; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--type-table); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.reading-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--description-card-background); color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.reading-card:hover { border-color: #c39e86; box-shadow: 0 12px 24px #4b34200a; }
.reading-art { padding: 8px 20px; border-bottom: 1px solid var(--line); color: #a76049; }
.reading-art-2 { color: #7c805d; }
.reading-art-3 { color: #918272; }
.reading-art svg { display: block; width: 100%; height: auto; stroke: currentColor; stroke-width: 1.1; }
.reading-card-copy { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.reading-card h3 { margin: 0 0 14px; }
.reading-card p { margin-bottom: 24px; }
.reading-more { display: block; width: fit-content; margin-top: auto; padding-top: 6px; color: var(--primary); font-size: var(--type-table); text-decoration: underline; text-decoration-color: #d8b5a3; text-underline-offset: 5px; }
.faq-section { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 64px; padding: 64px 0 24px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; list-style: none; padding: 22px 34px 22px 0; font-size: var(--type-subheading); line-height: 1.5; cursor: pointer; }
.faq-list details:first-child summary { padding-top: 0; }
.faq-list details:first-child summary::after { top: 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 2px; top: 22px; color: var(--primary); font-size: var(--type-subheading); }
.faq-list details[open] summary::after { content: '-'; }
.faq-list p { margin: 0 0 22px; }
.start-section { display: flex; justify-content: center; padding: 48px 0 16px; }
@media (max-width: 1000px) {
  .hero, .feature-story, .tradition-section, .faq-section { gap: 36px; }
  .reading-sheet { padding: 26px; }
  .reading-sheet-heading { gap: 16px; }
  .reading-sheet-heading svg { width: 64px; height: 64px; }
  .reading-card-copy { padding: 22px; }
}
@media (max-width: 820px) {
  .landing-main { padding: 28px 18px 48px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 12px 0 48px; }
  .feature-story, .story-reversed, .tradition-section { grid-template-columns: 1fr; min-height: 0; gap: 30px; padding: 44px 0; }
  .story-reversed .story-copy, .story-reversed .story-visual { grid-column: auto; grid-row: auto; }
  .character-visual { padding-top: 4px; padding-bottom: 20px; }
  .reading-sheet { padding: 24px; }
  .reading-sheet-heading svg { width: 56px; height: 56px; }
  .knowledge-section { padding: 44px 0; }
  .section-heading-row { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 24px; }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-art svg { height: 160px; }
  .faq-section { grid-template-columns: 1fr; gap: 8px; padding-top: 44px; }
  .start-section { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { .reading-card { transition: none; } }

/* Overlapping product diagrams retain their native square geometry. */
.hero { gap: 28px; padding-bottom: 44px; }
.chart-stack { position: relative; aspect-ratio: 100 / 86; min-width: 0; }
.chart-stack img { position: absolute; width: 72%; height: auto; border: 1px solid #cdbba8; border-radius: 4px; box-shadow: 0 16px 28px #4b342014; }
.chart-back { top: 0; left: 14%; }
.chart-front { top: 14%; left: 0; }
.feature-story { min-height: 0; gap: 48px; padding: 46px 0; }
.story-points { list-style: none; padding: 0; margin: 24px 0 0; }
.story-points li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); }
.story-points li::before { content: ''; position: absolute; left: 0; top: 22px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.story-points + p { margin-top: 24px; }
.feature-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--line); }
.feature-facts dt { font: 400 var(--type-heading)/1.3 Georgia, serif; color: var(--primary); }
.feature-facts dd { margin: 10px 0 0; color: var(--muted); font-size: var(--type-table); }
.strength-stack { position: relative; aspect-ratio: 1.15; }
.strength-stack figure { position: absolute; width: 88%; margin: 0; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px #4b34200c; }
.strength-stack figcaption { font-size: var(--type-table); margin-bottom: 12px; }
.strength-back { top: 0; left: 0; }
.strength-front { bottom: 0; right: 0; }
.life-area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.life-area { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.life-area > span { color: var(--primary); font-size: var(--type-heading); flex: 0 0 28px; text-align: center; }
.life-area h3 { margin: 0 0 3px; }
.life-area p { font-size: var(--type-table); line-height: 1.5; }
.favorability-visual { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--description-card-background); }
.score-heading { display: flex; align-items: center; gap: 14px; }
.score-heading h3 { margin: 0; }
.score-heading > strong { margin-left: auto; font-size: var(--type-heading); font-weight: 400; }
.planet-sign { font-size: var(--type-heading); color: var(--primary); }
.score-positive { color: #397650; }
.score-negative { color: #b24e43; }
.score-balance { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 10px; font-size: var(--type-table); }
.score-track { display: flex; gap: 4px; height: 7px; }
.score-track span:first-child { flex: 2; background: #729e79; border-radius: 4px 0 0 4px; }
.score-track span:last-child { flex: 1; background: #c2796c; border-radius: 0 4px 4px 0; }
.score-factors { list-style: none; padding: 0; margin: 20px 0; }
.score-factors li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--type-table); }
.score-factors strong { font-size: var(--type-subheading); font-weight: 400; }
.tradition-section, .knowledge-section { padding-block: 46px; }
@media (max-width: 820px) {
  .hero { gap: 28px; }
  .feature-story { gap: 28px; padding-block: 36px; }
  .chart-stack { width: 100%; }
  .strength-stack { aspect-ratio: 1.08; }
  .strength-stack figure { padding: 10px; width: 90%; }
  .life-area-grid { gap: 0 16px; }
  .life-area { gap: 8px; }
  .life-area > span { flex-basis: 22px; }
  .favorability-visual { padding: 22px; }
}
.chart-stack { width: 100%; max-width: 540px; justify-self: end; }
.strength-stack { aspect-ratio: auto; }
.strength-stack figure { position: relative; }
.strength-stack .strength-front { margin: -10px 0 0 12%; }
.life-area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.life-area { align-items: flex-start; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--description-card-background); }
.life-area > span { flex-basis: auto; line-height: 1; }
@media (max-width: 1000px) { .life-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .chart-stack { justify-self: center; }
  .strength-stack { aspect-ratio: auto; }
  .strength-stack .strength-front { margin-left: 10%; }
  .life-area { flex-direction: row; gap: 10px; }
  .life-area > span { padding-top: 3px; }
}

@media (max-width: 820px) {
  .chart-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; aspect-ratio: auto; max-width: 540px; }
  .chart-stack img { position: static; width: 100%; }
  .chart-front { grid-column: 1; grid-row: 1; }
  .chart-back { grid-column: 2; grid-row: 1; }
}

.reading-deck { display: grid; padding: 0 16px 16px 0; }
.reading-deck .reading-sheet { grid-area: 1 / 1; min-width: 0; background: var(--bg); box-shadow: none; opacity: 0; pointer-events: none; transform: translate(24px, 24px); transition: transform .65s ease, opacity .65s ease; }
.reading-deck .reading-sheet > * { opacity: 0; transition: opacity .65s ease; }
.reading-deck .is-active { z-index: 3; opacity: 1; transform: translate(0, 0); pointer-events: auto; }
.reading-deck .is-active > * { opacity: 1; }
.reading-deck .is-next { z-index: 2; opacity: 1; transform: translate(8px, 8px); }
.reading-deck .is-third { z-index: 1; opacity: 1; transform: translate(16px, 16px); }
.reading-deck .is-leaving { z-index: 4; opacity: 0; transform: translate(-8px, -12px); }
.reading-symbol { display: grid; place-items: center; flex: 0 0 64px; height: 64px; border: 1px solid var(--line); border-radius: 50%; color: var(--primary); font-size: var(--type-heading); }
@media (prefers-reduced-motion: reduce) { .reading-deck .reading-sheet, .reading-deck .reading-sheet > * { transition: none; } }

/* Equal-sized transparent diagrams in a compact overlapping stack. */
.strength-stack { display: grid; aspect-ratio: auto; padding: 0 14% 30% 0; }
.strength-stack figure { grid-area: 1 / 1; position: relative; width: 100%; inset: auto; margin: 0; }
.strength-stack .strength-front { margin: 0; transform: translate(14%, 48%); }
.strength-stack img { display: block; width: 100%; height: auto; aspect-ratio: 68 / 35; }

@media (max-width: 820px) {
  .reading-deck { position: relative; display: block; transition: height .65s ease; }
  .reading-deck .reading-sheet { position: absolute; top: 0; left: 0; width: calc(100% - 16px); height: calc(100% - 16px); overflow: hidden; }
  .reading-deck .is-active { position: relative; width: 100%; height: auto; }
  .reading-topics { column-gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .reading-deck { transition: none; } }

.life-areas-story { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.life-area-carousel { min-width: 0; }
.life-areas-story .life-area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.life-area-slide { display: contents; }
.life-area-repeat { display: none; }
.life-area-controls { display: none; }
@media (max-width: 820px) {
  .life-areas-story .life-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .life-area-carousel.is-ready .life-area-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
  .life-area-carousel.is-ready .life-area-slide { display: grid; grid-area: 1 / 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; opacity: 0; visibility: hidden; transition: opacity .35s ease; }
  .life-area-carousel.is-ready .life-area-slide.is-active { opacity: 1; visibility: visible; }
  .life-area-carousel.is-ready .life-area-repeat { display: flex; }
  .life-areas-story .life-area { flex-direction: column; }
  .life-area-controls:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 16px; }
  .life-area-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--primary); cursor: pointer; }
  .life-area-controls button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
  .life-area-position { font-size: var(--type-table); color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { .life-area-carousel.is-ready .life-area-slide { transition: none; } }
