:root {
  --forest: #285b43;
  --deep: #193c2e;
  --parchment: #eee5d0;
  --cream: #fbf8ee;
  --gold: #c68b2a;
  --brown: #725239;
  --ink: #272a22;
  --muted: #5f655b;
  --line: #d5ccb5;
  --surface: #fffdf7;
  --radius: 16px;
  --shadow-soft: 0 12px 32px #1d352414;
}

html { scroll-padding-top: 120px; }
body { background: var(--cream); color: var(--ink); line-height: 1.65; }
a { text-decoration-thickness: .08em; }
:focus-visible { outline: 3px solid #e6b556; outline-offset: 4px; }
.wrap { width: min(1240px, calc(100% - 64px)); }

.site-header { background: var(--deep); box-shadow: 0 4px 20px #07180f26; }
.header-inner { max-width: 1500px; min-height: 86px; padding: 10px 32px; gap: 20px; }
.site-header .brand { display: grid; width: 82px; height: 62px; place-items: center; overflow: visible; }
.brand img { width: calc(100% - 12px); height: calc(100% - 10px); object-fit: contain; }
.site-header.compact .brand img { width: 70px; height: 50px; }
.desktop-nav { gap: clamp(10px, 1.1vw, 18px); }
.desktop-nav a { padding: 13px 2px; font-size: .78rem; letter-spacing: .035em; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: #f6d28f; }
.header-actions { gap: 14px; }
.header-actions .auth-link, .store-header-link { font-size: .78rem; }
.store-header-link { border-left: 1px solid #ffffff35; padding-left: 14px; text-decoration: none; }
.store-header-link small { display: block; color: #ead6ad; font-size: .62rem; letter-spacing: .13em; }
.store-header-link strong { color: var(--cream); font-size: .72rem; letter-spacing: .04em; }
.header-actions .button { min-height: 44px; padding: 10px 14px; gap: 10px; font-size: .78rem; }
.header-inner { width: 100%; min-width: 0; }
.desktop-nav, .header-actions { min-width: 0; }
.header-actions .header-sign-in { border-color: transparent; }
.store-header-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 4px; border: 0; color: var(--cream); background: transparent; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.store-header-link:hover { color: #f6d28f; }
.menu-toggle { border-radius: 10px; }
.mobile-nav { padding: 16px max(24px, calc((100vw - 1240px) / 2)) 24px; border-top: 1px solid #ffffff20; box-shadow: 0 14px 24px #07180f2e; }
.mobile-nav a { min-height: 44px; padding: 10px 4px; border-bottom: 1px solid #ffffff14; }

.button { min-height: 50px; padding: 14px 21px; border-radius: 8px; box-shadow: 0 3px 9px #193c2e12; }
.button:hover { transform: translateY(-1px); }
.button.gold { background: #d5a14a; border-color: #d5a14a; color: #1f281e; }
.button.gold:hover { background: #e0b15f; }
.hero { background: var(--deep); }
.hero-inner { min-height: min(720px, calc(100svh - 86px)); padding-top: clamp(50px, 7vw, 88px); padding-bottom: 28px; }
.hero h1 { font-size: clamp(3.6rem, 7.4vw, 6.6rem); }
.hero .eyebrow { color: #f0d7a5; }
.hero-primary-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-primary-actions a { min-width: 175px; min-height: 64px; padding: 12px 16px; border-radius: 9px; }
.hero-primary-actions a:focus-visible { outline-color: #edbd66; }
.hero-primary-actions .continue { border-color: #f0d7a5; }
.pillars { background: var(--parchment); }
.pillar-grid > div { border-color: #9f926f66; }
.section { padding: clamp(60px, 7vw, 92px) 0; }
.section-intro h2, .page-hero h1 { color: var(--deep); }
.page-hero { padding: clamp(42px, 6vw, 68px) 0 clamp(52px, 7vw, 78px); background: var(--parchment); }
.page-hero .wrap { max-width: 1240px; }
.page-hero .breadcrumb { margin-bottom: 22px; }
.page-hero .eyebrow { color: #5b432b; }
.page-hero h1 { max-width: 18ch; }
.card, .quest-card, .price-card, .auth-card, .editor-card { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.card { border-color: var(--line); background: var(--surface); padding: clamp(22px, 3vw, 32px); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px #1d35241d; }
.card h3 { color: var(--deep); }
.text-link { color: #1e5a3d; border-color: #285b4360; }
.notice { border-left-width: 5px; border-radius: 8px; }
.final-cta { padding: clamp(60px, 8vw, 92px) 0; background: var(--deep); }
.final-cta .button.gold { background: #e0b15f; border-color: #e0b15f; }
.footer-top { gap: clamp(30px, 5vw, 64px); }
footer { background: #142d22; }

.pricing-layout { align-items: center; gap: clamp(24px, 5vw, 64px); }
.price-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); background: var(--surface); }
.price { color: var(--deep); }
.price-alt { margin-top: -.7rem; color: var(--muted); font-weight: 650; }
.price-alt span { display: block; font-size: .82rem; font-weight: 400; }
.prelaunch-pricing { gap: 14px; }
.prelaunch-price-card { border-radius: 12px; box-shadow: var(--shadow-soft); }
.faq details { border-bottom-color: var(--line); }
.faq summary { min-height: 52px; padding: 15px 40px 15px 0; }

.site-search { display: flex; flex-direction: column; gap: 9px; }
.site-search label { font-size: .9rem; font-weight: 700; }
.search-control { display: flex; gap: 10px; align-items: stretch; }
.search-control input { flex: 1; min-width: 0; min-height: 50px; padding: 10px 14px; border: 1px solid #9f9b87; border-radius: 8px; background: white; color: var(--ink); }
.site-search-page { max-width: 760px; }
.search-page { padding-bottom: 48px; }
.search-status { margin: 18px 0; color: var(--muted); }
.search-results { display: grid; gap: 12px; padding-left: 1.5rem; }
.search-results li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.search-results a { color: var(--deep); font-size: 1.15rem; font-weight: 750; }
.search-results p { margin: 6px 0 0; color: var(--muted); }
.search-results li::marker { color: var(--brown); font-weight: 700; }

.books-page { margin: 0 auto 64px; padding-top: 38px; --deep-forest: #193c2e; }
.books-page .book-card, .books-page .recommendation-card { border-radius: 14px; box-shadow: var(--shadow-soft); }
.books-page .book-card { border-top-color: var(--gold); }
.books-page .recommendation-card { background: var(--surface); }
.books-page .recommendations { border-top-color: var(--line); }
.books-page .book-list { align-items: stretch; }
.books-page .owner-title-card { border-top: .3rem solid var(--gold); background: var(--surface); }
.books-page .owner-title-card h2 { margin: .25rem 0 .45rem; color: var(--deep-forest); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.books-page .owner-title-card .book-series { margin: 0 0 .6rem; }
.books-page .owner-title-card .recommendation-note { max-width: 42ch; }

/* Public landing pages keep one clear next step and honest availability. */
.home-hero .hero-inner { justify-content: center; gap: 42px; }
.home-hero .hero-copy { max-width: 730px; }
.home-hero h1 { max-width: 12ch; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.home-hero-actions .button { min-width: 205px; }
.home-availability { max-width: 62ch; margin: 0; padding: 14px 16px; border-left: 3px solid #e0b15f; background: #102a20b8; color: #fffaf0; font-size: .88rem; line-height: 1.55; }
.home-availability strong { color: #f5d591; }
.membership-overview { background: var(--surface); }
.membership-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.72fr); align-items: center; gap: clamp(30px,7vw,90px); }
.membership-intro .section-intro { margin: 0; }
.home-book-note, .about-availability { padding: clamp(24px,4vw,40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-soft); }
.home-book-note h3 { color: var(--deep); }
.home-book-note .button { margin-top: 10px; }
.home-next-step { padding-block: 0; }
.launch-note { padding: clamp(28px,5vw,56px); border-radius: var(--radius); background: var(--deep); color: var(--cream); text-align: center; }
.launch-note .eyebrow { color: #f2d493; }
.launch-note h2 { color: var(--cream); }
.launch-note .actions { justify-content: center; }
.launch-note > p:not(.eyebrow) { max-width: 62ch; margin-inline: auto; color: #ece9dc; }
.app-journey { background: #e9dfc4; }
.membership-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid #c4b58f; border-radius: var(--radius); background: #c4b58f; }
.membership-steps > div { padding: clamp(24px,4vw,42px); background: #f7f1e4; }
.membership-steps span { display: inline-grid; width: 36px; height: 36px; place-items: center; margin-bottom: 22px; border: 1px solid #a58b5d; border-radius: 50%; color: var(--brown); font-size: .8rem; font-weight: 750; }
.membership-steps h2 { color: var(--deep); font-size: clamp(1.55rem,2.5vw,2.15rem); }
.membership-steps p { margin-bottom: 0; color: var(--muted); }
.app-features { background: var(--surface); }
.app-feature-grid .card { min-height: 100%; }
.availability-note { max-width: 62ch; margin: 14px 0 0; }
.app-plans { scroll-margin-top: 110px; background: #e9dfc4; }
.app-price-card { display: grid; gap: 16px; }
.app-price-card > .eyebrow { margin-bottom: 0; }
.app-plans .pricing-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.app-plans .pricing-layout > :first-child { align-self: center; }
.app-plans .app-price-card { align-content: start; }
.store-prompt-section { padding-top: 2px; }
.store-prompt-section > .eyebrow { margin-bottom: 8px; }
.store-prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.store-prompt { display: grid; align-content: center; gap: 3px; min-width: 0; min-height: 74px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f4efdf; color: var(--deep); text-align: center; }
.store-prompt span { font-size: .9rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.store-prompt strong { color: var(--brown); font-size: .78rem; letter-spacing: .03em; }
.app-launch-invite .button { margin-top: 16px; }
.app-launch-invite .button:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.prelaunch-form#how-it-works { scroll-margin-top: 110px; }
.price-option { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.price-option .price { margin: 0 0 4px; }
.price-option > p:last-child { margin: 0; color: var(--muted); font-size: .9rem; }
.anchor-alias { position: relative; top: -100px; display: block; height: 0; }
.app-journey + .section { background: var(--surface); }
.guide-index, .resource-index { background: var(--surface); }
.guide-grid .card { min-height: 100%; }
.editorial-intro, .about-lead { max-width: 760px; }
.preparedness-note { padding: clamp(24px,4vw,36px); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); }
.preparedness-note ul, .feature-list { padding-left: 1.25rem; }
.preparedness-note li + li, .feature-list li + li { margin-top: .6rem; }
.community-story { background: var(--surface); }
.community-story .image-frame img { min-height: 330px; max-height: 470px; }
.about-principles { background: var(--surface); }
.about-availability strong { color: var(--deep); font-size: 1.35rem; }
.support-page { background: var(--surface); }
.support-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(250px,.75fr); gap: clamp(24px,5vw,64px); align-items: start; }
.support-topics { display: grid; gap: 16px; }
.support-topic { padding: clamp(22px,3vw,32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.support-topic h2, .support-contact h2 { color: var(--deep); font-size: clamp(1.5rem,2.5vw,2rem); }
.support-topic p:not(.eyebrow), .support-contact p:not(.eyebrow) { color: var(--muted); }
.support-topic .text-link { margin-top: 0; }
.support-contact { position: sticky; top: 120px; padding: clamp(22px,3vw,32px); border-radius: var(--radius); background: var(--deep); color: var(--cream); }
.support-contact .eyebrow { color: #f2d493; }
.support-contact h2 { color: var(--cream); }
.support-contact a { color: #f3d491; }
.support-contact .small { color: #d7dbd1; }

.sign-in-page { min-height: calc(100svh - 86px); padding: clamp(40px, 8vw, 88px) 20px; background: radial-gradient(circle at 50% 0%, #e8dec8 0, var(--cream) 52%); }
.sign-in-card { width: min(100%, 480px); border-radius: 20px; box-shadow: 0 24px 60px #153d2b1f; }
.sign-in-submit { min-height: 52px; border-radius: 9px; }

@media (max-width: 1350px) {
  .header-actions { margin-left: auto; }
  .header-inner { padding-inline: 24px; }
  .header-actions > .auth-link:not([data-customer-auth]), .store-header-link, .store-cart-link { display: none; }
}
@media (max-width: 1450px) {
  .header-actions { margin-left: auto; }
  .header-inner { padding-inline: clamp(16px, 2vw, 28px); gap: clamp(10px, 1.4vw, 20px); }
  .header-actions > .auth-link:not([data-customer-auth]) { display: none; }
  .store-header-link, .header-actions .store-cart-link { display: inline-flex; }
  .header-actions > .auth-link.store-cart-link:not([data-customer-auth]) { display: inline-flex; }
}
@media (max-width: 600px) {
  .store-header-link, .header-actions .store-cart-link { display: none; }
  .header-actions > .auth-link.store-cart-link:not([data-customer-auth]) { display: none; }
}
@media (max-width: 760px) {
  .app-plans .pricing-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  html { scroll-padding-top: 96px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; padding: 8px 18px; gap: 10px; }
  .site-header .brand { width: 70px; height: 52px; }
  .brand img { width: 68px; height: 50px; }
  .site-header.compact .brand img { width: 62px; height: 46px; }
  .header-actions { gap: 10px; }
  .header-actions .button { min-height: 42px; padding: 9px 12px; }
  .hero-inner { min-height: min(740px, calc(100svh - 72px)); padding-top: 44px; }
  .hero h1 { font-size: clamp(3.2rem, 14vw, 4.9rem); }
  .hero-primary-actions { display: grid; grid-template-columns: 1fr; }
  .hero-primary-actions a { width: min(100%, 380px); }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 24px; }
  .pillar-grid > div { padding: 0 12px 0 40px; border-right: 0; }
  .grid, .grid.two, .split, .footer-top { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .search-control { flex-direction: column; }
  .search-control .button { justify-content: center; }
  .books-page { padding-top: 22px; }
  .sign-in-page { min-height: calc(100svh - 72px); }
  .membership-intro, .support-layout { grid-template-columns: 1fr; }
  .membership-steps { grid-template-columns: 1fr; }
  .membership-steps > div { padding: 24px; }
  .support-contact { position: static; }
  .home-hero .hero-inner { justify-content: space-between; gap: 26px; }
  .home-hero-actions { flex-direction: column; align-items: stretch; }
  .home-hero-actions .button { width: min(100%,380px); }
}
@media (max-width: 440px) {
  .wrap { width: calc(100% - 32px); }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-grid > div { padding-left: 42px; }
  .header-actions .button { font-size: .72rem; }
}
@media (max-width: 360px) {
  .app-price-card .price { font-size: clamp(2.75rem, 14vw, 3.25rem); }
  .app-price-card .price > span { white-space: nowrap; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
