:root {
    color-scheme: light;
    --paper: #f4f1ea;
    --paper-strong: #e9e1d1;
    --surface: #fffef9;
    --surface-raised: #e7f2f0;
    --ink: #202a33;
    --muted: #69736e;
    --line: rgba(32, 42, 51, 0.12);
    --gold: #8b5e34;
    --gold-soft: #fff4da;
    --teal: #0b6e77;
    --teal-soft: #e7f2f0;
    --rose: #7d4e57;
    --rose-soft: #f5e8e9;
    --green: #4f8d4b;
    --green-soft: #e8f1e3;
    --night: #17130f;
    --shadow: 0 18px 45px rgba(32, 42, 51, 0.12);
    --radius: 8px;
    --max-width: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 254, 249, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-wrap,
.section-inner,
.hero {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
}

.nav-wrap {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(139, 94, 52, 0.22);
}

.brand-mark {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-mark span:last-child {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a,
.nav-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    font-weight: 850;
    padding: 0 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--ink);
    background: rgba(11, 110, 119, 0.08);
    outline: none;
}

.site-nav a.nav-button,
.nav-button {
    border: 1px solid rgba(11, 110, 119, 0.18);
    background: var(--teal);
    color: #ffffff;
}

.site-nav a.nav-button:hover,
.site-nav a.nav-button:focus-visible {
    background: #075961;
    color: #ffffff;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-weight: 900;
}

.hero {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: start;
    gap: 48px;
    padding: 34px 0 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--teal);
}

.hero h1,
.section-title h2,
.legal-title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(56px, 9vw, 104px);
    line-height: 0.92;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 620px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 720;
}

.hero-actions,
.download-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.store-links {
    align-items: center;
}

.store-link {
    display: inline-flex;
    line-height: 0;
    border-radius: var(--radius);
    transition: transform 160ms ease, filter 160ms ease;
}

.store-link:hover,
.store-link:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.05);
    outline: none;
}

.store-link img {
    width: auto;
    height: 56px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    padding: 0 18px;
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button.primary {
    background: var(--ink);
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(32, 42, 51, 0.18);
}

.button.secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}

.button.tertiary {
    background: var(--teal);
    color: #ffffff;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 620px;
    margin-top: 30px;
}

.proof-item {
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 254, 249, 0.72);
}

.proof-item strong {
    display: block;
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
}

.proof-item span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: auto;
}

.home-screen-preview {
    width: clamp(238px, 20vw, 258px);
    margin: 0;
    border-radius: 36px;
    background: var(--night);
    box-shadow: var(--shadow);
    line-height: 0;
    overflow: hidden;
}

.home-screen-preview img {
    width: 100%;
    height: auto;
    border-radius: 36px;
}

.feature-panel,
.tool-card,
.media-card,
.download-panel,
.legal-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(32, 42, 51, 0.08);
}

.mini-label,
.card-kicker {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.section {
    padding: 76px 0;
}

#practice {
    padding-top: 0;
}

.section.alt {
    background: var(--surface);
}

.section-title {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 32px;
    margin-bottom: 28px;
}

.section-title h2 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.section-title p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    font-weight: 720;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.feature-panel {
    min-height: 390px;
    padding: 22px;
}

.feature-panel h3,
.tool-card h3,
.download-panel h2 {
    margin: 12px 0 8px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.08;
}

.feature-panel p,
.tool-card p,
.download-panel p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.panel-visual {
    min-height: 150px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    padding: 14px;
    border: 1px solid var(--line);
}

.panel-visual.gold {
    background: var(--gold-soft);
}

.panel-visual.teal {
    background: var(--teal-soft);
}

.panel-visual.rose {
    background: var(--rose-soft);
}

.drill-list,
.stage-list,
.metric-list {
    display: grid;
    gap: 8px;
}

.drill-list span,
.stage-list span,
.metric-list span {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius);
    background: rgba(255, 254, 249, 0.78);
    padding: 0 10px;
    font-size: 13px;
    font-weight: 900;
}

.stage-list span::after,
.metric-list span::after {
    content: attr(data-value);
    color: var(--muted);
    font-size: 12px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.tool-card {
    min-height: 250px;
    padding: 20px;
}

.tool-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: #ffffff;
    font-weight: 950;
}

.tool-icon.teal {
    background: var(--teal);
}

.tool-icon.gold {
    background: var(--gold);
}

.tool-icon.rose {
    background: var(--rose);
}

.tool-icon.green {
    background: var(--green);
}

.tool-card ul,
.legal-card ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-weight: 740;
}

.tool-card li + li,
.legal-card li + li {
    margin-top: 7px;
}

.media-band {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.media-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.media-copy h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1;
}

.media-copy p {
    color: var(--muted);
    font-size: 17px;
    font-weight: 720;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.media-card {
    overflow: hidden;
    background: var(--surface);
}

.media-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.media-card div {
    padding: 14px;
}

.media-card strong,
.media-card span {
    display: block;
}

.media-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 760;
}

.download-panel {
    padding: 34px;
    background: linear-gradient(135deg, var(--night), #243232);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
}

.download-panel h2,
.download-panel p {
    color: #ffffff;
}

.download-panel p {
    opacity: 0.78;
}

.site-footer {
    background: var(--night);
    color: rgba(255, 255, 255, 0.82);
}

.footer-inner {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 22px 0;
    font-size: 14px;
    font-weight: 760;
}

.footer-brand {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.footer-brand span:last-child {
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
}

.footer-contact {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 900;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-contact:hover,
.footer-contact:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
    outline: none;
}

.legal-main {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 82px;
}

.legal-title {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.02;
}

.legal-card {
    margin-top: 24px;
    padding: clamp(22px, 4vw, 38px);
}

.legal-card h2 {
    margin: 30px 0 8px;
    color: var(--ink);
    font-size: 23px;
}

.legal-card h3 {
    margin: 22px 0 8px;
    color: var(--ink);
    font-size: 18px;
}

.legal-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-weight: 690;
}

.legal-card strong {
    color: var(--ink);
}

.text-link {
    color: var(--teal);
    font-weight: 900;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

@media (max-width: 980px) {
    .hero,
    .section-title,
    .media-band {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 48px;
    }

    .hero-visual {
        justify-content: center;
        min-height: auto;
    }

    .home-screen-preview {
        width: min(310px, 72vw);
    }

    .home-screen-preview img {
        max-height: 620px;
    }

    .practice-grid,
    .tool-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav {
        position: fixed;
        inset: 72px 12px auto 12px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    body.menu-open .site-nav {
        display: flex;
    }

    .site-nav a,
    .nav-button {
        justify-content: flex-start;
        width: 100%;
    }

    .store-link img {
        height: 50px;
    }

    .hero {
        gap: 30px;
        padding-top: 36px;
    }

    .hero h1 {
        font-size: clamp(62px, 18vw, 92px);
    }

    .hero-proof,
    .practice-grid,
    .tool-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
