:root {
    color-scheme: light dark;
    --ink: #10212b;
    --muted: #526671;
    --blue: #087fbd;
    --blue-dark: #075f8b;
    --sky: #dff2fc;
    --paper: #fbfdfe;
    --surface: #ffffff;
    --line: #c9dce6;
    --warm: #f7d671;
    --shadow: 0 24px 70px rgba(7, 69, 101, 0.13);
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f6fbfd;
        --muted: #b8cbd4;
        --blue: #43b8f3;
        --blue-dark: #8ad5fa;
        --sky: #102d3d;
        --paper: #081821;
        --surface: #10242f;
        --line: #294553;
        --warm: #f0ce66;
        --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 20; transform: translateY(-180%); padding: .7rem 1rem; border-radius: .6rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 4px; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; color: white; }
.nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: .75rem; background: rgba(255,255,255,.14); font-size: .8rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { text-decoration: none; font-size: .94rem; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: white; color: #075f8b; font-weight: 800; text-decoration: none; }
.button-small { padding: .62rem 1rem; }

.hero { overflow: hidden; min-height: 760px; padding: 160px 0 110px; background: radial-gradient(circle at 72% 38%, rgba(255,255,255,.18), transparent 20rem), linear-gradient(135deg, #075f8b 0%, #0799dd 68%, #35b4e9 100%); color: white; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.eyebrow { margin: 0 0 .9rem; font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { margin-bottom: 1.5rem; max-width: 690px; font-size: clamp(4rem, 8vw, 7.2rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2.4rem, 5vw, 4.3rem); }
h3 { font-size: 1.45rem; letter-spacing: -.025em; }
.lede { max-width: 650px; margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.2rem; }
.app-store-button { display: inline-flex; align-items: center; gap: .65rem; min-width: 184px; padding: .62rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: .8rem; background: #081116; color: white; text-decoration: none; font-size: 1.25rem; font-weight: 650; line-height: 1; box-shadow: 0 12px 28px rgba(0,0,0,.16); }
.app-store-button small { display: block; margin-bottom: .22rem; font-size: .61rem; font-weight: 500; letter-spacing: .02em; }
.apple { font-size: 1.2rem; }
.text-link { font-weight: 750; text-underline-offset: .3em; }
.availability { margin-top: 1rem; color: rgba(255,255,255,.72); font-size: .88rem; }

.focus-demo { position: relative; display: grid; place-items: center; min-height: 440px; }
.demo-window { position: relative; z-index: 2; width: min(100%, 390px); aspect-ratio: .82; padding: 1.25rem; border: 1px solid rgba(255,255,255,.46); border-radius: 2.8rem; background: rgba(251,253,254,.95); color: #10212b; box-shadow: 0 36px 90px rgba(2,44,67,.3); transform: rotate(3deg); }
.demo-topbar { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 750; color: #536772; }
.demo-word { display: grid; min-height: 250px; place-items: center; font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -.045em; }
.demo-progress { height: 4px; overflow: hidden; border-radius: 99px; background: #d7e3e9; }
.demo-progress span { display: block; width: 57%; height: 100%; border-radius: inherit; background: #087fbd; }
.demo-controls { display: flex; justify-content: center; align-items: center; gap: 2.4rem; padding-top: 1.4rem; font-size: 1.7rem; }
.demo-play { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; border-radius: 50%; background: #087fbd; color: white; font-size: 1rem; }
.orbit { position: absolute; border-radius: 50%; }
.orbit-one { width: 95px; height: 95px; left: 0; bottom: 12%; background: var(--warm); opacity: .95; }
.orbit-two { width: 46px; height: 46px; right: 1%; top: 3%; border: 9px solid rgba(255,255,255,.55); }

.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section-heading { max-width: 730px; margin-bottom: 3rem; }
.section-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 1.1rem; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mode-card { overflow: hidden; border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); box-shadow: var(--shadow); }
.mode-visual { display: grid; min-height: 310px; place-items: center; background: #0d80bd; color: white; }
.single-word { font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 5rem); }
.reading-preview { position: relative; padding: 1.5rem; background: #dff2fc; color: #10212b; }
.reading-preview img { width: 62%; max-height: 220px; object-fit: cover; border-radius: 1.4rem; box-shadow: 0 14px 35px rgba(7,69,101,.18); }
.reading-preview span { position: absolute; right: 1.5rem; bottom: 1.5rem; width: 55%; padding: 1rem; border-radius: 1rem; background: white; box-shadow: 0 8px 25px rgba(7,69,101,.15); font-family: Georgia, serif; }
.mode-copy { padding: 2rem; }
.mode-copy h3 { margin: 1rem 0 .7rem; }
.mode-copy p { color: var(--muted); }
.pill { display: inline-block; padding: .35rem .7rem; border-radius: 99px; background: var(--sky); color: var(--blue-dark); font-size: .75rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }

.soft-section { background: var(--sky); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.benefit-icon { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; margin-bottom: 1.3rem; border-radius: 1rem; background: var(--surface); color: var(--blue-dark); box-shadow: 0 8px 24px rgba(7,69,101,.1); font-weight: 850; }
.benefits-grid h3 { margin-bottom: .6rem; }
.benefits-grid p { margin: 0; color: var(--muted); }

.story-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 5rem; }
.story-heading { margin-bottom: 0; }
.story-stack { position: relative; min-height: 520px; }
.story-card { position: absolute; width: 280px; margin: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 1.7rem; background: var(--surface); box-shadow: var(--shadow); }
.story-card img { width: 100%; aspect-ratio: 1; border-radius: 1.1rem; object-fit: cover; }
.story-card figcaption { padding: .8rem .3rem .25rem; font-weight: 780; }
.story-card-one { z-index: 3; left: 18%; top: 0; transform: rotate(-3deg); }
.story-card-two { z-index: 2; right: 2%; top: 15%; transform: rotate(7deg); }
.story-card-three { z-index: 1; left: 2%; bottom: 0; transform: rotate(-10deg); }

.trust-section { background: #102f40; color: white; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 5rem; }
.check-list { display: grid; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 2rem; color: rgba(255,255,255,.82); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #80d5ff; font-weight: 900; }

.cta-section { padding: 2rem 0 6rem; background: #102f40; }
.cta-card { padding: clamp(3rem, 8vw, 6rem); border-radius: 2.5rem; background: linear-gradient(135deg, #087fbd, #1fa9e9); color: white; text-align: center; }
.cta-card p:not(.eyebrow) { margin: 0 auto 2rem; max-width: 560px; color: rgba(255,255,255,.85); font-size: 1.1rem; }
.app-store-button-light { margin-inline: auto; }

.site-footer { padding: 3.5rem 0; background: #071923; color: #d8e7ee; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.footer-grid p { margin: .3rem 0 0; color: #98b2bf; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-grid nav a { color: inherit; text-underline-offset: .3em; }
.copyright { grid-column: 1 / -1; font-size: .85rem; }

.page-header { padding: 145px 0 75px; background: linear-gradient(135deg, #075f8b, #0799dd); color: white; }
.page-header h1 { font-size: clamp(3.2rem, 7vw, 5.4rem); }
.page-header p { max-width: 650px; font-size: 1.15rem; color: rgba(255,255,255,.84); }
.content-page { padding: 5rem 0 7rem; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 3rem; font-size: 1.9rem; letter-spacing: -.025em; }
.prose h3 { margin-top: 2.4rem; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--blue-dark); font-weight: 650; text-underline-offset: .2em; }
.notice { padding: 1.2rem 1.4rem; border-left: 4px solid var(--blue); border-radius: 0 .8rem .8rem 0; background: var(--sky); }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2rem; }
.support-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--surface); }
.support-card h2 { margin: 0 0 .6rem; font-size: 1.25rem; }
.support-card p { margin: 0; }

@media (max-width: 820px) {
    .nav-links > a:not(.button) { display: none; }
    .hero { min-height: auto; padding-top: 130px; }
    .hero-grid, .story-layout, .trust-grid { grid-template-columns: 1fr; }
    .focus-demo { min-height: 390px; }
    .demo-window { max-width: 330px; }
    .mode-grid, .benefits-grid { grid-template-columns: 1fr; }
    .story-layout { gap: 2rem; }
    .story-stack { min-height: 500px; }
    .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .container { width: min(100% - 1.5rem, 1120px); }
    .brand-mark { display: none; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    h1 { font-size: 3.7rem; }
    .mode-visual { min-height: 250px; }
    .story-stack { min-height: 440px; transform: scale(.86); transform-origin: top center; }
    .story-card { width: 240px; }
    .footer-grid { grid-template-columns: 1fr; }
    .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
