body[data-stage="home"] .reading-only { display: none; }
body:not([data-stage="home"]) .home-footer { display: none; }
body[data-stage="home"] .app-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.home-screen {
  --home-width: min(1120px, calc(100% - 48px));
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 12%, rgba(101, 27, 48, .48), transparent 28rem),
    radial-gradient(circle at 94% 38%, rgba(55, 68, 48, .18), transparent 32rem),
    linear-gradient(160deg, #180a10, #0b0709 58%, #160b0f);
}

.home-hero {
  width: var(--home-width);
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 0 48px;
  text-align: center;
}

.home-emblem {
  width: clamp(112px, 14vw, 156px);
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(211, 171, 96, .2));
  animation: emblemGlow 5s ease-in-out infinite;
}

.home-hero h1,
.home-section h2,
.home-cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.035em;
}

.home-hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: .94;
}

.home-hero p {
  max-width: 620px;
  margin: 0 auto;
  color: #c9b7b1;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.home-directions {
  width: var(--home-width);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 112px;
}

.home-direction {
  min-width: 0;
  border: 1px solid rgba(201, 168, 106, .38);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(28, 13, 18, .9);
}

.home-direction button {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(290px, 1fr) auto;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}

.home-direction.is-available button { cursor: pointer; }
.home-direction.is-soon button { cursor: default; }

.direction-cover { position: relative; min-height: 0; overflow: hidden; }
.direction-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 54%, rgba(20, 8, 13, .92)); }
.direction-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 32%; transition: transform .55s ease, filter .55s ease; }
.is-soon .direction-cover img { filter: saturate(.58) brightness(.72); }

.direction-copy { min-height: 198px; display: flex; flex-direction: column; padding: 25px 24px 23px; }
.direction-copy strong { font: 500 clamp(1.65rem, 2.6vw, 2.25rem)/1.04 var(--serif); }
.direction-copy small { margin-top: 16px; color: var(--gold); font-size: .78rem; line-height: 1.45; }
.direction-copy em { margin-top: auto; padding-top: 26px; color: #dfcabf; font-style: normal; font-size: .82rem; }
.is-soon .direction-copy em { color: #8d7776; }

.home-direction.is-available:hover,
.home-direction.is-available:focus-within { border-color: rgba(221, 187, 119, .86); box-shadow: 0 22px 54px rgba(0, 0, 0, .28); }
.home-direction.is-available:hover img { transform: scale(1.035); }
.home-direction button:focus-visible { outline: 3px solid #efd49b; outline-offset: -4px; }

.home-section {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0;
  border-top: 1px solid rgba(201, 168, 106, .18);
}

.home-section h2,
.home-cta h2 { margin-bottom: 24px; font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: .96; }

.how-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; margin: 0; padding: 0; list-style: none; }
.direction-free { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.button-row { flex-wrap: wrap; }
[data-action="jump-followup"], #returnResultButton { min-height: 44px; }
.how-list li { display: grid; grid-template-columns: auto 1fr; gap: 17px; align-items: start; }
.how-list li > span { color: var(--gold); font: 600 1rem var(--serif); }
.how-list h3 { margin: 0 0 8px; font-size: 1.45rem; }
.how-list p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.58; }

.direction-name,
.example-deck-label { display: block; color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.direction-name { margin-bottom: 10px; }
.example-deck-label { margin: 0 0 14px; }
.example-question { max-width: 620px; color: #cbbab5; font: 500 1.35rem/1.45 var(--serif); }
.example-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 22px; }
.example-cards figure { margin: 0; border: 1px solid rgba(201, 168, 106, .42); background: #1b0d12; }
.example-cards img { width: 100%; aspect-ratio: 2 / 3; display: block; object-fit: cover; }
.example-cards figcaption { padding: 11px 8px; color: var(--gold); font: 600 .95rem var(--serif); text-align: center; }

.example-reading { padding: clamp(24px, 5vw, 44px); color: #241713; background: #eee4d1; box-shadow: 0 14px 42px rgba(0, 0, 0, .22); }
.example-reading > span { display: block; margin-bottom: 17px; color: #856734; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.example-reading p { color: #30211c; font-size: 1rem; line-height: 1.72; }
.example-reading .example-caution { padding-top: 18px; border-top: 1px solid rgba(80, 54, 39, .2); font-size: .9rem; }
.example-reading .text-button { min-height: 44px; color: #765a2f; }

.home-cta {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #10090c url('./home/background-night-architecture.jpg') center 44% / cover no-repeat;
}
.home-cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 6, 9, .97) 12%, rgba(18, 8, 13, .82) 55%, rgba(18, 8, 13, .58)); }
.home-cta-copy { width: min(900px, calc(100% - 48px)); }
.home-cta-copy p { max-width: 590px; color: #d1c0ba; font-size: 1rem; line-height: 1.7; }

.home-primary-button {
  min-height: 56px;
  margin-top: 12px;
  padding: 0 26px;
  border: 1px solid #e3c17b;
  border-radius: 3px;
  background: #c9a86a;
  color: #21140e;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.home-primary-button:hover { transform: translateY(-2px); background: #d8b978; box-shadow: 0 14px 32px rgba(0,0,0,.3); }
.home-primary-button:active { transform: translateY(0); }
.home-primary-button:focus-visible { outline: 3px solid #f6e5ba; outline-offset: 3px; }

.faq-list { border-top: 1px solid rgba(201, 168, 106, .24); }
.faq-list details { border-bottom: 1px solid rgba(201, 168, 106, .2); }
.faq-list summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #e5d8ce; cursor: pointer; list-style: none; font-size: .95rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--gold); font-size: 1.2rem; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 720px; margin: -3px 0 24px; color: var(--muted); font-size: .92rem; line-height: 1.68; }
.privacy-link { min-height: 44px; display: inline-flex; align-items: center; margin-top: 20px; color: var(--gold); font-size: .85rem; text-underline-offset: 5px; }

.home-footer {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, .7fr) 1fr;
  gap: 50px;
  align-items: start;
  margin: 0;
  padding: 54px max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid rgba(201, 168, 106, .16);
  background: #090608;
  text-transform: none;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand strong { color: #e8dccd; font: 600 1.55rem var(--serif); }
.home-footer nav { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); gap: 6px 28px; }
.home-footer a,
.home-footer button { min-height: 44px; display: flex; align-items: center; padding: 0; border: 0; background: none; color: #9c8988; font-size: .78rem; text-align: left; text-decoration: none; cursor: pointer; }
.home-footer a:hover,
.home-footer button:hover { color: var(--gold); }
.footer-legal-note { grid-column: 1 / -1; margin: 4px 0 0; color: rgba(231, 214, 207, .58); font-size: .76rem; line-height: 1.5; }

.info-dialog { width: min(520px, calc(100% - 32px)); padding: 34px; border: 1px solid rgba(201, 168, 106, .5); border-radius: 4px; color: var(--ink); background: #1b0d12; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.info-dialog::backdrop { background: rgba(5, 3, 4, .78); backdrop-filter: blur(5px); }
.info-dialog h2 { margin: 0 42px 16px 0; font-size: 2.4rem; }
.info-dialog p { margin: 0; color: var(--muted); line-height: 1.7; }
#infoDialogText { color: var(--muted); line-height: 1.7; font-size: 1rem; }
.story-section > p { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 760px; }
.story-section .text-button { min-height: 44px; }
.info-dialog--story[open] { display: flex; flex-direction: column; width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; overflow: hidden; }
.info-dialog--story h2 { flex-shrink: 0; font-size: clamp(1.65rem, 5vw, 2.4rem); }
.info-dialog--story #infoDialogText { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.info-dialog--story #infoDialogText p + p { margin-top: 1.1em; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--gold); font-size: 1.8rem; cursor: pointer; }

@keyframes emblemGlow { 0%, 100% { filter: drop-shadow(0 0 18px rgba(211,171,96,.12)); } 50% { filter: drop-shadow(0 0 28px rgba(211,171,96,.28)); } }

@media (max-width: 760px) {
  .home-screen { --home-width: min(100% - 28px, 520px); }
  .home-hero { padding: 34px 0 30px; }
  .home-emblem { width: 112px; margin-bottom: 12px; }
  .home-hero h1 { margin-bottom: 16px; font-size: clamp(2.7rem, 13vw, 4rem); }
  .home-hero p { font-size: 1rem; line-height: 1.58; }
  .home-directions { grid-template-columns: 1fr; gap: 12px; margin-bottom: 70px; }
  .home-direction button { grid-template-columns: 48% 1fr; grid-template-rows: minmax(215px, auto); }
  .direction-copy { min-height: 215px; padding: 22px 18px 18px; }
  .direction-copy strong { font-size: clamp(1.55rem, 7vw, 2rem); }
  .direction-copy small { margin-top: 15px; font-size: .72rem; }
  .direction-copy em { padding-top: 18px; }
  .home-section { width: min(100% - 28px, 620px); padding: 60px 0; }
  .home-section h2, .home-cta h2 { font-size: clamp(2.45rem, 11vw, 3.4rem); }
  .how-list { grid-template-columns: 1fr; gap: 26px; }
  .example-cards { gap: 7px; }
  .example-cards figcaption { padding: 9px 3px; font-size: .78rem; }
  .example-reading { padding: 24px 20px; }
  .home-cta { min-height: 470px; background-position: 62% center; }
  .home-cta::before { background: linear-gradient(rgba(12,6,9,.72), rgba(12,6,9,.94)); }
  .home-cta-copy { width: min(100% - 28px, 620px); }
  .home-primary-button { width: 100%; }
  .home-footer { grid-template-columns: 1fr; gap: 28px; padding: 42px 20px; }
  .home-footer nav { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .home-direction button { grid-template-columns: 44% 1fr; }
  .direction-copy { padding: 18px 14px 15px; }
  .direction-copy strong { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-emblem { animation: none; }
}
