/* Homepage styling is isolated from the existing support and legal pages. */
body.home { --page: #fffaf2; --ink: #452d24; --muted: #765d4d; --accent: #a94716; background: var(--page); color: var(--ink); }
.home main { max-width: none; padding: 0; }
.home h1, .home h2, .home h3 { color: var(--ink); }
.home h2 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.13; letter-spacing: -.035em; margin: 0 0 1.25rem; }
.home h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 .5rem; }
.home p { color: var(--muted); }
.home a { text-decoration: none; }
.home a:hover { text-decoration: underline; }
.home .skip { z-index: 10; }
.home .masthead { max-width: 1280px; min-height: 92px; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.home .brand { display: flex; align-items: center; gap: .65rem; font-size: 1.4rem; letter-spacing: -.04em; }
.brand img { width: 25px; height: auto; }
.home .masthead nav { border: 0; padding: 0; gap: 1.7rem; }
.home .masthead nav a { font-size: .93rem; font-weight: 600; padding: .65rem 0; }
.hero { position: relative; max-width: 1440px; min-height: 740px; margin: 0 auto; display: flex; align-items: center; justify-content: flex-end; padding: 4rem; overflow: hidden; border-radius: 24px; }
.hero-picture { position: absolute; inset: 0; }
.hero-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero-copy { position: relative; width: 49%; max-width: 580px; padding: 2.75rem; background: #fffaf2f5; border-radius: 24px; }
.eyebrow { font-size: .77rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 1.2rem; }
.home .eyebrow { color: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 4vw, 3.75rem); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 1.4rem; }
.hero h1 span { color: var(--accent); }
.intro { font-size: 1.08rem; line-height: 1.7; margin-bottom: 1.7rem; }
.home .button { display: inline-flex; gap: 2rem; align-items: center; min-height: 52px; padding: .75rem 1.5rem; border-radius: 100px; background: #a94716; color: #fffaf2; font-weight: 800; }
.home .button:hover { background: #873610; text-decoration: none; }
.hero .availability { font-size: .82rem; margin: 1rem 0 0; }
.section { max-width: 1140px; margin: 0 auto; padding: 6.5rem 2rem; }
.section-heading { max-width: 490px; }
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.audience-list article { padding: 1.35rem 0; border-bottom: 1px solid #e9dcc9; }
.audience-list article:first-child { padding-top: 0; }
.audience-list article:last-child { border: 0; padding-bottom: 0; }
.audience-list p { margin: 0; }
.small-label { display: block; color: var(--accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6rem; font-weight: 800; }
.how-band { background: #f3eadb; }
.how-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2.5rem 0 0; }
.steps li { position: relative; padding: 0 0 1.6rem 3.5rem; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -.1rem; font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.steps li:last-child { padding-bottom: 0; }
.steps p { margin: 0; }
.reading-preview { margin: 0; text-align: center; }
.reading-preview img { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; border: 6px solid #563e2c; border-radius: 28px; box-shadow: 0 20px 45px #563e2c20; }
figcaption { margin-top: 1.2rem; font-size: .85rem; color: var(--ink); }
figcaption span { font-size: .75rem; color: var(--muted); }
.centered { text-align: center; margin: 0 auto 3rem; max-width: 600px; }
.book-shelf, .learning-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.book-shelf { grid-template-columns: repeat(4, minmax(0,1fr)); }
.book-shelf img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 20px #563e2c15; margin-bottom: 1.25rem; }
.book-shelf h3 { font-size: 1rem; }
.book-shelf p { font-size: .87rem; }
.discovery-heading { margin: 3.5rem 0 1.5rem; border-top: 1px solid #e9dcc9; padding-top: 2.5rem; }
.learning-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
.learning-cards li { margin: 0; }
.learning-cards img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.learning-cards span { display: block; margin-top: .8rem; font-weight: 700; }
.closing { background: #f8eedc; text-align: center; padding: 4.5rem 1.5rem; }
.closing > img { width: 80px; height: auto; border-radius: 20px; margin-bottom: 1.5rem; }
.closing .coming-label { color: var(--ink); font-weight: 800; margin-top: 1.6rem; }
.text-link { text-decoration: underline !important; text-underline-offset: 5px; display: inline-block; padding: .6rem; }
.home footer.site { max-width: 1140px; padding: 2.5rem 2rem; margin-top: 0; }
.home footer.site nav { border: 0; padding-top: .6rem; }
.footer-brand { font-size: 1.2rem; font-weight: 800; }
.footer-brand span { display: block; font-size: .85rem; font-weight: 400; margin-top: .2rem; }
@media (max-width: 1100px) and (min-width: 900px) { .hero { padding: 2rem; min-height: 680px; } .hero-copy { width: 52%; padding: 2rem; } }
@media (max-width: 899px) {
  .home .masthead { min-height: 76px; padding: .8rem 1.5rem; }
  .home .masthead nav { gap: 1rem; }
  .hero { padding: 0; min-height: 0; display: flex; flex-direction: column; border-radius: 0; }
  .hero-copy { order: 0; width: 100%; max-width: 620px; padding: 2.5rem 1.5rem; background: transparent; text-align: center; }
  .hero-picture { position: static; order: 1; display: block; width: 100%; height: 360px; }
  .hero-picture img { object-position: 50% 32%; }
  .hero h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); }
  .section { padding: 4rem 1.5rem; }
  .audience, .how-layout { gap: 3rem; }
  .book-shelf { gap: 1.25rem; }
}
@media (max-width: 599px) {
  .home .masthead { flex-wrap: wrap; justify-content: center; gap: .25rem; padding: .8rem 1rem; }
  .home .masthead nav { width: 100%; justify-content: center; gap: 1.6rem; }
  .home .masthead nav a { font-size: .8rem; }
  .hero-copy { padding: 2rem 1.25rem; }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
  .hero .eyebrow { font-size: .65rem; }
  .hero-picture { height: 280px; }
  .intro { font-size: 1rem; }
  .section { padding: 3.5rem 1.25rem; }
  .audience, .how-layout { grid-template-columns: 1fr; gap: 2rem; }
  .reading-preview img { width: min(100%,280px); }
  .book-shelf { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem 1rem; }
  .learning-cards { grid-template-columns: 1fr; gap: 1.8rem; }
  .learning-cards li { max-width: 360px; width: 100%; margin: 0 auto; }
  .centered { text-align: left; margin-bottom: 2rem; }
  .home footer.site { padding: 2rem 1.25rem; }
}
/* WisperVoice previews keep the original phone proportions. */
.voice-wordmark { display: flex; align-items: center; gap: .65rem; font-size: 1.7rem; font-weight: 800; color: var(--ink) !important; margin: 0 0 1.5rem; }
.voice-wordmark img { width: 27px; height: auto; }
.voice-feature-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 5rem; align-items: center; }
.voice-fan { position: relative; height: 580px; margin-top: 2rem; }
.voice-fan figure { position: absolute; top: 30px; left: 50%; width: 190px; margin: 0; transform-origin: 50% 10%; text-align: center; }
.voice-fan figure:nth-child(1) { transform: translateX(-50%) rotate(28deg); z-index: 1; }
.voice-fan figure:nth-child(2) { transform: translateX(-50%) rotate(-28deg); z-index: 2; }
.voice-fan figure:nth-child(3) { transform: translateX(-50%) rotate(14deg); z-index: 3; }
.voice-fan figure:nth-child(4) { transform: translateX(-50%); z-index: 4; }
.voice-fan img { display: block; width: 100%; height: auto; border: 5px solid #6b4934; border-radius: 27px; box-shadow: 0 18px 35px #5c37172b; }
.voice-fan figcaption { font-size: .8rem; font-weight: 800; }
.voice-feature-list { list-style: none; counter-reset: feature; padding: 0; margin: 0; }
.voice-feature-list li { counter-increment: feature; position: relative; padding: 1.3rem 0 1.3rem 3.2rem; border-bottom: 1px solid #e9dcc9; }
.voice-feature-list li::before { content: counter(feature, decimal-leading-zero); position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.voice-feature-list p { margin: 0; font-size: .94rem; }
.preview-note { font-size: .78rem; line-height: 1.6; }
.voice-features > .preview-note { text-align: center; }
.voice-worlds { background: #f2e6d3; overflow: hidden; }
.category-books { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; padding: 0; margin: 3rem 0 0; text-align: center; }
.category-book { position: relative; aspect-ratio: 2 / 3; filter: drop-shadow(0 16px 12px #5c371730); margin-bottom: 1.5rem; transform: rotate(-5deg); }
.category-books li:nth-child(even) .category-book { transform: rotate(5deg); }
.category-book > img:first-child { position: absolute; inset: 9% 12% 10% 17%; width: 71%; height: 81%; object-fit: cover; }
.category-book .book-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.category-books h3 { font-size: 1rem; }
.category-extra { text-align: center; font-size: .87rem; margin: 2.5rem 0 0; }
.voice-create, .voice-learning { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
.voice-create-art { display: flex; justify-content: center; align-items: center; padding: 2rem 0; }
.voice-create-art img { width: 35%; height: auto; border: 6px solid #fff7e9; border-radius: 28px; box-shadow: 0 14px 25px #5c371729; transform: rotate(-14deg); }
.voice-create-art img:nth-child(2) { margin: -3rem -2rem 0; z-index: 1; transform: rotate(0); }
.voice-create-art img:nth-child(3) { transform: rotate(14deg); }
.voice-learning { display: block; text-align: center; }
.voice-learning .learning-cards { margin-top: 2rem; gap: 1.5rem; }
.voice-learning .learning-cards span { font-size: .8rem; }
.voice-learning .reading-preview img { width: 240px; }
@media(max-width: 899px) {
 .voice-wordmark { justify-content: center; }
 .voice-feature-layout, .voice-create, .voice-learning { grid-template-columns: 1fr; gap: 2rem; }
 .voice-fan { width: min(100%, 520px); margin-inline: auto; }
 .category-books { gap: 1rem; }
 .voice-create-art { max-width: 450px; margin: auto; }
 .voice-learning .learning-cards { grid-template-columns: repeat(3,1fr); }
}
@media(max-width: 599px) {
 .voice-fan { height: 420px; }
 .voice-fan figure { width: min(130px, 32vw); }
 .voice-fan img { border-width: 3px; border-radius: 19px; }
 .category-books { grid-template-columns: repeat(2,1fr); gap: 2rem 1.5rem; }
}
/* The welcome keeps both apps together and its legal links at the bottom. */
body.company { display:flex; flex-direction:column; color-scheme:light; min-height:100svh; --page:#f4ecdf; --ink:#302b25; --muted:#736a5f; --accent:#80613d; --focus:#236590; --company-line:#e1d5c5; --company-peach:#efb78c55; --company-gold:#e6c46744; --company-top:#fffaf4; --voice-surface:#fffefc; --voice-line:#e5d9cb; --voice-accent:#985021; --cast-surface:var(--voice-surface); --cast-line:var(--voice-line); --cast-accent:#805d12; --card-shadow:#78533710; --cast-wallpaper-start:#f2d3a6; --cast-wallpaper-end:#f8edcf; --cast-wave:#ffffff66; background:radial-gradient(ellipse 850px 800px at calc(50% - 610px) 400px,var(--company-peach),transparent 75%),radial-gradient(ellipse 900px 800px at calc(50% + 610px) 650px,var(--company-gold),transparent 75%),linear-gradient(160deg,var(--company-top),var(--page)); }
body.company:has(#home-dark:checked) { color-scheme:dark; --page:#191715; --ink:#f5ede2; --muted:#bfb1a2; --accent:#dfbd8a; --focus:#f1c771; --company-line:#3b332c; --company-peach:#4b332444; --company-gold:#51432233; --company-top:#211c17; --voice-surface:#28221c; --voice-line:#493b2e; --voice-accent:#efbd94; --cast-accent:#e5c778; --card-shadow:#0003; --cast-wallpaper-start:#4a3924; --cast-wallpaper-end:#302a20; --cast-wave:#eed2a414; }
.company .company-wrap { width:min(1200px, calc(100% - 64px)); margin-inline:auto; }
.company main { flex:1; display:flex; flex-direction:column; justify-content:center; padding-bottom:30px; }
.company-tools { display:flex; justify-content:flex-end; padding-block:clamp(16px,2vh,28px) 4px; }
.company-intro { text-align:center; padding-block:32px 36px; }
.company-intro h1 { font-size:clamp(2.6rem,4.2vw,4.25rem); line-height:1.15; letter-spacing:-.045em; margin:0 0 14px; }
.company-intro p { color:var(--muted); font-size:clamp(1rem,1.2vw,1.125rem); line-height:1.7; margin:0; }
.company-intro h1 span { color:var(--accent); font-family:Georgia,serif; font-style:italic; font-weight:400; }
.company-intro .eyebrow { color:var(--accent); font-size:.7rem; margin-bottom:16px; }
.company-intro .company-story { max-width:680px; margin-inline:auto; }
.app-showcase { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.app-panel { --panel-accent:var(--voice-accent); --button-fill:#ee9c55; display:flex; flex-direction:column; min-width:0; border:1px solid var(--voice-line); background:var(--voice-surface); border-radius:24px; overflow:hidden; box-shadow:0 16px 44px var(--card-shadow); }
.app-panel.cast-panel { --panel-accent:var(--cast-accent); --button-fill:#f1cc61; border-color:var(--cast-line); background:var(--cast-surface); }
.voice-art,.cast-art { position:relative; --art-height:clamp(250px,32vh,380px); height:var(--art-height); overflow:hidden; margin:12px 12px 0; border-radius:15px; }
.voice-art img { display:block; width:100%; height:100%; object-fit:cover; object-position:23% 65%; }
.cast-art { background:repeating-radial-gradient(ellipse at 90% 140%,transparent 0 44px,var(--cast-wave) 45px 46px,transparent 47px 76px),linear-gradient(135deg,var(--cast-wallpaper-start),var(--cast-wallpaper-end)); }
.company-phone { position:absolute; top:50%; width:calc(var(--art-height) * .42); max-width:44%; height:auto; border:3px solid #373631; border-radius:24px; box-shadow:0 10px 20px #0004; }
.phone-dark { left:33%; transform:translate(-50%,-50%) rotate(-9deg); }
.phone-light { left:67%; transform:translate(-50%,-50%) rotate(9deg); border-color:#b7ae9a; }
.panel-details { display:flex; flex-direction:column; flex:1; padding:28px; }
.panel-heading { display:flex; align-items:center; gap:16px; }
.panel-heading > img { width:52px; height:auto; border-radius:14px; flex-shrink:0; }
.company .panel-heading h2 { font-size:2rem; letter-spacing:-.04em; line-height:1.15; margin:0 0 4px; }
.company .panel-heading p { color:var(--panel-accent); font-size:1rem; margin:0; }
.panel-details > p { color:var(--muted); font-size:1rem; line-height:1.7; margin:20px 0; }
.panel-features { display:flex; flex-wrap:wrap; gap:8px 18px; list-style:none; border-top:1px solid var(--voice-line); padding:16px 0 0; margin:auto 0 0; color:var(--panel-accent); font-size:.76rem; font-weight:700; }
.panel-features li { margin:0; }
.company .app-entry { color:inherit; text-decoration:none !important; }
.company .app-entry :is(.voice-art,.cast-art) { flex-shrink:0; isolation:isolate; }
.company .app-entry .panel-button { position:absolute; z-index:2; top:80%; left:50%; transform:translate(-50%,-50%); width:max-content; max-width:95%; color:#fff; background:transparent; font-size:clamp(1.3rem,2.1vw,1.8rem); font-weight:800; letter-spacing:-.025em; text-align:center; -webkit-text-stroke:2px #30271f; paint-order:stroke fill; text-shadow:0 2px 3px #000b,0 3px 8px #0008; }
.company .app-entry:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
@media (prefers-reduced-motion:no-preference) {
 .company .app-entry :is(.voice-art,.cast-art) > img { transition:scale .7s cubic-bezier(.2,1.2,.35,1); }
 .company .app-entry:focus-visible :is(.voice-art,.cast-art) > img { scale:1.025; }
 .company .app-entry:focus-visible .panel-button { translate:0 -3px; scale:1.04; }
 @media (hover:hover) {
  .company .app-entry:hover :is(.voice-art,.cast-art) > img { scale:1.025; }
  .company .app-entry:hover .panel-button { translate:0 -3px; scale:1.04; }
 }
 .company .app-entry:active .panel-button { scale:.97; translate:0 0; }
}
.company .company-platforms { text-align:center; font-size:.875rem; color:var(--muted); margin:20px 0 0; }
.company .company-footer { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px 24px; margin-top:0; padding-block:22px; border-top:1px solid var(--company-line); }
.company-footer nav { display:flex; gap:24px; }
.company-footer nav a { color:var(--muted); font-size:.8rem; text-decoration:none; padding-block:8px; }
.company-footer nav a:hover { color:var(--ink); text-decoration:underline; }
.company .company-copyright { color:var(--muted); font-size:.75rem; margin:0; }
@media (max-width:800px) {
 .company .company-wrap { width:calc(100% - 40px); }
 .app-showcase { gap:18px; }
 .panel-details { padding:18px; }
 .panel-details > p br { display:none; }
}
@media (max-width:620px) {
 .company-intro { padding-block:24px 28px; }
 .company-intro .company-story { max-width:340px; margin-inline:auto; font-size:.94rem; }
 .company-intro p br { display:none; }
 .app-showcase { grid-template-columns:1fr; gap:22px; }
 .voice-art,.cast-art { --art-height:220px; }
 .panel-details { padding:20px; }
}
@media (max-height:700px) and (min-width:801px) {
 .company-intro { padding-block:8px 24px; }
 .company-intro h1 { font-size:2.7rem; }
 .voice-art,.cast-art { --art-height:174px; }
 .panel-details { padding:18px 24px; }
 .panel-details > p { margin-block:12px 36px; }
 .company-footer { padding-block:16px; }
}
@media (prefers-reduced-motion:reduce) { .panel-button { transition:none; } }

/* Dark mode is optional on the app page. */
body.voice-home:has(#page-dark:checked) { color-scheme: dark; --page: #181513; --surface: #241d19; --ink: #f7eee3; --muted: #c6b6a7; --accent: #efb989; --line: #49382d; --focus: #f1c771; --hero-panel: #241d19f5; --voice-band: #241e19; --voice-world: #292019; }
.voice-home .hero-copy { background: var(--hero-panel, #fffaf2f5); }
.voice-home .how-band, .voice-home .closing { background: var(--voice-band, #f3eadb); }
.voice-home .voice-worlds { background: var(--voice-world, #f2e6d3); }
.voice-home .voice-feature-list li { border-color: var(--line); }
.voice-home .masthead nav { align-items: center; flex-wrap: wrap; }
@media (max-width: 899px) { .voice-home .hero-copy { background: transparent; } }

.voice-home .masthead a { color: var(--ink); }
.voice-home:has(#page-dark:checked) .brand img, .voice-home:has(#page-dark:checked) .voice-wordmark img { filter: brightness(2.5); }

.voice-platforms .centered { text-align: center; margin-bottom: 2rem; }

/* A short explanation gives each visual a purpose without stretching the page. */
.voice-home .section-heading > p { font-size:1.04rem; line-height:1.7; margin:0; }
.voice-home .voice-features { padding-block:5rem 3.5rem; }
.voice-home .voice-features .section-heading { max-width:620px; margin-bottom:1rem; }
.voice-home .voice-fan { height:540px; }
.voice-home .voice-worlds .section { padding-block:5rem; }
@media (max-width:620px) {
 .company .company-footer { justify-content:center; text-align:center; gap:8px 24px; }
 .company-intro .eyebrow { font-size:.61rem; }
 .company-intro h1 { font-size:clamp(2.5rem,9vw,3.4rem); }
 .panel-features { font-size:.7rem; gap:8px 14px; }
 .voice-home .voice-features { padding-block:3.5rem 2rem; }
 .voice-home .voice-fan { height:340px; margin-top:1rem; }
 .voice-home .voice-worlds .section { padding-block:3.5rem; }
}

/* The regular-book reader uses the same phone proportions as the app previews. */
.voice-reading { padding-block:5rem; }
.voice-reading .reading-preview img { width:min(100%,232px); border:5px solid #6b4934; }
.voice-reading .audience-list article { border-color:var(--line); }
.voice-reading + .voice-create { border-top:1px solid var(--line); }
@media (max-width:599px) { .voice-reading { padding-block:3.5rem; } }
