@font-face {
    font-family: "CantusRounded";
    src: url("./Fonts/sf-compact-rounded/SF-Compact-Rounded-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "CantusRounded";
    src: url("./Fonts/sf-compact-rounded/SF-Compact-Rounded-Semibold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "CantusRounded";
    src: url("./Fonts/sf-compact-rounded/SF-Compact-Rounded-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "CantusMono";
    src: url("./Fonts/sf-mono/SF-Mono-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "CantusMono";
    src: url("./Fonts/sf-mono/SF-Mono-Semibold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
}

:root {
    --cantus-pink: #ff177c;
    --cantus-cyan: #0beaad;
    --cantus-space: #140c23;
    --cantus-indigo: #541388;
    --cantus-top-blue: #06142d;
    --text-main: #f6f3ff;
    --text-muted: #b9adcf;
    --panel: rgba(27, 18, 45, 0.62);
    --panel-border: rgba(255, 255, 255, 0.18);
    --shadow-soft: 0 22px 60px rgba(7, 4, 18, 0.55);
    --page-max: 1120px;
    --radius-large: 28px;
    --radius-medium: 18px;
    --brand-splash-overlay: rgba(20, 12, 35, 0.8);
    --app-icon-drop-shadow: none;
    --cta-pink-glow: color-mix(in srgb, var(--cantus-pink) 34%, transparent);
    --feature-cyan-glow: color-mix(in srgb, var(--cantus-cyan) 12%, transparent);
}

@media (prefers-color-scheme: light) {
    :root {
        --cantus-pink: #d71a69;
        --cantus-cyan: #008566;
        --cantus-space: #f4f0fb;
        --cantus-indigo: #9c80bf;
        --cantus-top-blue: #edf2ff;
        --text-main: #21192f;
        --text-muted: #5a4c72;
        --panel: rgba(255, 255, 255, 0.78);
        --panel-border: rgba(85, 63, 127, 0.2);
        --shadow-soft: 0 20px 52px rgba(57, 36, 96, 0.16);
        --brand-splash-overlay: rgba(255, 255, 255, 0.8);
        --app-icon-drop-shadow: drop-shadow(0 10px 20px rgba(33, 20, 57, 0.26));
        --cta-pink-glow: color-mix(in srgb, var(--cantus-pink) 17%, transparent);
        --feature-cyan-glow: color-mix(in srgb, var(--cantus-cyan) 6%, transparent);
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--cantus-top-blue);
    background:
        radial-gradient(980px circle at 8% -10%, color-mix(in srgb, var(--cantus-cyan) 24%, transparent), transparent 58%),
        radial-gradient(1000px circle at 90% -14%, color-mix(in srgb, var(--cantus-pink) 24%, transparent), transparent 56%),
        linear-gradient(180deg, var(--cantus-top-blue), var(--cantus-space) 30%);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--text-main);
    font-family: "CantusRounded", "Avenir Next", sans-serif;
    line-height: 1.5;
}

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

.page {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 20px 20px 32px;
}

@media (min-width: 761px) {
    .page {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 981px) {
    .page {
        padding-left: 42px;
        padding-right: 42px;
    }
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 11px 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

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

.button-primary {
    color: #ffffff;
    border-color: color-mix(in srgb, var(--cantus-pink) 45%, #ffffff 20%);
    background: linear-gradient(120deg, var(--cantus-pink), color-mix(in srgb, var(--cantus-pink) 58%, var(--cantus-indigo)));
    box-shadow: 0 16px 34px color-mix(in srgb, var(--cantus-pink) 40%, transparent);
}

.button-ghost {
    border-color: var(--panel-border);
    background: color-mix(in srgb, var(--panel) 70%, transparent);
    color: var(--text-main);
}

.hero {
    display: grid;
    grid-template-areas:
        "head"
        "visual"
        "body"
        "mock";
    grid-template-columns: 1fr;
    row-gap: 24px;
    column-gap: 0;
    align-items: start;
    padding: 24px 0 40px;
    isolation: isolate;
}

.hero-copy-head {
    grid-area: head;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    align-self: stretch;
    position: relative;
    z-index: 3;
}

.hero-copy-body {
    grid-area: body;
    display: grid;
    gap: 0;
    position: relative;
    z-index: 3;
}

.eyebrow {
    margin: 0;
    font-family: "CantusMono", "Menlo", monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--cantus-cyan);
}

h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.04;
    max-width: 12ch;
}

@media (prefers-color-scheme: light) {
    .hero-copy-head h1 {
        color: color-mix(in srgb, var(--text-main) 82%, var(--text-muted) 18%);
        -webkit-text-stroke: 5px #ffffff;
        paint-order: stroke fill;
    }
}

.lead {
    margin: 0;
    max-width: none;
    color: var(--text-muted);
    font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-copy-body .lead:first-of-type {
    margin-top: 70px;
}

.hero-copy-body .lead + .lead {
    margin-top: 14px;
}

.support-line {
    margin: 14px 0 0;
    max-width: none;
    color: var(--text-main);
    font-family: "CantusRounded", "Avenir Next", sans-serif;
    font-size: clamp(1.05rem, 2.3vw, 1.28rem);
    font-weight: 700;
    line-height: 1.35;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.app-store-badge-link {
    display: inline-block;
    line-height: 0;
}

.app-store-badge-image {
    width: 190px;
    max-width: 100%;
    height: auto;
    display: block;
}

.platform-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-list li {
    border-radius: 999px;
    padding: 7px 12px;
    border: 1px solid var(--panel-border);
    background: color-mix(in srgb, var(--panel) 78%, transparent);
    font-family: "CantusMono", "Menlo", monospace;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.platform-note {
    margin: 22px 0 0;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: "CantusMono", "Menlo", monospace;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.hero-visual {
    grid-area: visual;
    display: grid;
    align-items: start;
    justify-items: start;
    justify-self: start;
    align-self: start;
    position: relative;
    z-index: 2;
}

.brand-splash-link {
    display: inline-block;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.brand-splash-link:focus-visible .brand-splash {
    outline: 2px solid color-mix(in srgb, var(--cantus-cyan) 70%, #ffffff 12%);
    outline-offset: 3px;
}

.hero-mock {
    grid-area: mock;
    width: min(100%, 460px);
    display: flex;
    justify-self: start;
    align-self: start;
    position: relative;
    z-index: 1;
}

.app-imagery-placeholder {
    width: 100%;
    min-height: 180px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    flex: 1 1 auto;
}

.app-imagery-placeholder img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: contain;
    object-position: center center;
    display: block;
    pointer-events: none;
}

.brand-splash {
    --brand-copy-height: clamp(72px, 9vw, 108px);
    width: fit-content;
    max-width: none;
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 10px;
    align-items: center;
    justify-self: end;
    padding: 20px 24px;
    border-radius: calc(var(--radius-large) + 10px);
    border: 1px solid var(--panel-border);
    background:
        radial-gradient(88% 80% at 14% 8%, color-mix(in srgb, var(--cantus-cyan) 30%, transparent), transparent 70%),
        radial-gradient(90% 84% at 92% 92%, color-mix(in srgb, var(--cantus-pink) 30%, transparent), transparent 70%),
        linear-gradient(0deg, var(--brand-splash-overlay), var(--brand-splash-overlay)),
        color-mix(in srgb, var(--panel) 88%, transparent);
    box-shadow: var(--shadow-soft);
}

.app-icon-shell {
    width: var(--brand-copy-height);
    height: var(--brand-copy-height);
    flex: 0 0 auto;
}

.app-icon-shell img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 24%;
    filter: var(--app-icon-drop-shadow);
}

.brand-splash-copy {
    min-width: max-content;
}

.brand-splash-title {
    margin: 0;
    font-size: clamp(1.05rem, 2.4vw, 1.85rem);
    line-height: 1;
    letter-spacing: 0.01em;
    font-weight: 700;
    white-space: nowrap;
}

.brand-splash-tagline {
    margin: 8px 0 0;
    color: var(--cantus-cyan);
    font-family: "CantusMono", "Menlo", monospace;
    font-size: clamp(0.72rem, 1.3vw, 0.9rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-splash-subtitle {
    margin: 12px 0 0;
    color: var(--text-muted);
    font-size: clamp(0.76rem, 1.4vw, 0.94rem);
    white-space: normal;
}

.section {
    padding: 44px 0;
}

.hero + .section {
    padding-top: 24px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.14;
}

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

.step,
.cta {
    border-radius: var(--radius-medium);
    border: 1px solid var(--panel-border);
    background: color-mix(in srgb, var(--panel) 84%, transparent);
    box-shadow: var(--shadow-soft);
}

.feature-highlight-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card,
.feature-highlight {
    padding: 20px 22px;
    border-radius: var(--radius-medium);
    border: 1px solid color-mix(in srgb, var(--cantus-cyan) 34%, var(--panel-border));
    background:
        linear-gradient(135deg, var(--feature-cyan-glow), transparent 52%),
        color-mix(in srgb, var(--panel) 88%, transparent);
    box-shadow: var(--shadow-soft);
}

.card h3,
.feature-highlight h3 {
    margin: 0 0 10px;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.card p,
.feature-highlight p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.steps {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.step {
    padding: 16px;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.step p {
    margin: 0;
    color: var(--text-muted);
}

.cta {
    text-align: center;
    padding: clamp(24px, 5vw, 40px);
    margin-top: 8px;
    background:
        radial-gradient(110% 120% at 92% 92%, var(--cta-pink-glow), transparent 74%),
        color-mix(in srgb, var(--panel) 84%, transparent);
}

.cta h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.08;
    color: var(--cantus-pink);
}

.cta p {
    margin: 12px auto 0;
    max-width: 46ch;
    color: var(--text-muted);
}

.cta .hero-actions {
    justify-content: center;
}

.social-section {
    padding-top: 24px;
}

.social-section h2 {
    margin: 0 0 16px;
    font-size: clamp(1.4rem, 2.6vw, 1.95rem);
    line-height: 1.1;
}

.social-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.social-link {
    border-radius: var(--radius-medium);
    border: 1px solid var(--panel-border);
    background: color-mix(in srgb, var(--panel) 82%, transparent);
    box-shadow: var(--shadow-soft);
    padding: 12px 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--cantus-cyan) 45%, var(--panel-border));
}

.social-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.social-platform {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
}

.social-handle {
    color: var(--text-muted);
    font-family: "CantusMono", "Menlo", monospace;
    font-size: 0.8rem;
    line-height: 1.25;
    word-break: break-word;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--panel-border);
    background: color-mix(in srgb, var(--panel) 86%, transparent);
}

.social-icon-logo {
    width: 20px;
    height: 20px;
    display: block;
    object-fit: contain;
}

.social-icon-threads .social-icon-logo {
    filter: invert(1);
}

@media (prefers-color-scheme: light) {
    .social-icon-threads .social-icon-logo {
        filter: none;
    }
}

.footer {
    border-top: 1px solid var(--panel-border);
    margin-top: 30px;
    padding-top: 18px;
}

.footer p {
    margin: 0;
    font-family: "CantusMono", "Menlo", monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

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

.footer-links a {
    font-family: "CantusMono", "Menlo", monospace;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cantus-cyan);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
}

.legal-main {
    padding: 20px 0 12px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    font-family: "CantusMono", "Menlo", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cantus-cyan);
}

.legal-back:hover,
.legal-back:focus-visible {
    text-decoration: underline;
}

.legal-shell {
    border-radius: var(--radius-medium);
    border: 1px solid var(--panel-border);
    background: color-mix(in srgb, var(--panel) 86%, transparent);
    box-shadow: var(--shadow-soft);
    padding: clamp(20px, 4vw, 34px);
}

.legal-shell h1 {
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 2.25rem);
    line-height: 1.14;
}

.legal-updated {
    margin: 12px 0 22px;
    color: var(--text-muted);
    font-family: "CantusMono", "Menlo", monospace;
    font-size: 0.82rem;
}

.legal-shell h2 {
    margin: 26px 0 8px;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    line-height: 1.2;
}

.legal-shell h3 {
    margin: 18px 0 8px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.25;
}

.legal-shell p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.legal-shell p + p {
    margin-top: 10px;
}

.legal-shell ul {
    margin: 10px 0 0 18px;
    padding: 0;
    color: var(--text-muted);
}

.legal-shell li + li {
    margin-top: 6px;
}

.fade-up {
    animation: fade-up 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card-grid .card:nth-child(1) { animation: fade-up 620ms cubic-bezier(0.22, 1, 0.36, 1) 40ms both; }
.card-grid .card:nth-child(2) { animation: fade-up 620ms cubic-bezier(0.22, 1, 0.36, 1) 80ms both; }
.card-grid .card:nth-child(3) { animation: fade-up 620ms cubic-bezier(0.22, 1, 0.36, 1) 120ms both; }
.card-grid .card:nth-child(4) { animation: fade-up 620ms cubic-bezier(0.22, 1, 0.36, 1) 160ms both; }
.card-grid .card:nth-child(5) { animation: fade-up 620ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both; }
.card-grid .card:nth-child(6) { animation: fade-up 620ms cubic-bezier(0.22, 1, 0.36, 1) 240ms both; }

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "head"
            "visual"
            "mock"
            "body";
        padding-top: 38px;
    }

    .hero-visual {
        align-items: start;
        justify-self: start;
        align-self: start;
    }

    .hero-mock {
        width: min(100%, 460px);
        justify-self: start;
    }

    .brand-splash-title {
        font-size: clamp(1rem, 3.1vw, 1.5rem);
    }

    .card-grid,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 761px) and (max-width: 980px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
        grid-template-areas:
            "head mock"
            "visual mock"
            "body body";
        column-gap: 18px;
        row-gap: 18px;
    }

    .hero-mock {
        width: min(700px, calc(100% + clamp(70px, 12vw, 140px)));
        max-width: none;
        justify-self: end;
        align-self: stretch;
    }

    .app-imagery-placeholder {
        min-height: 0;
        height: 100%;
    }
}

@media (min-width: 981px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
        grid-template-areas:
            "head mock"
            "visual mock"
            "body body";
        column-gap: 20px;
        row-gap: 20px;
    }

    .hero-mock {
        width: min(820px, calc(100% + clamp(90px, 12vw, 190px)));
        max-width: none;
        justify-self: end;
        align-self: stretch;
    }

    .app-imagery-placeholder {
        min-height: 0;
        height: 100%;
    }
}

@media (max-width: 760px) {
    .hero-copy-head .eyebrow {
        font-size: 0.9rem;
    }

    .hero-copy-head h1 {
        font-size: clamp(2.6rem, 11vw, 3.7rem);
        line-height: 1.02;
    }

    .brand-splash {
        --brand-copy-height: clamp(72px, 20vw, 96px);
        width: fit-content;
        max-width: 100%;
        grid-template-columns: auto minmax(0, 1fr);
        justify-self: start;
        justify-items: start;
        text-align: left;
        gap: 8px;
        padding: 20px 24px;
    }

    .brand-splash-title {
        font-size: clamp(1rem, 4.8vw, 1.45rem);
    }

    .brand-splash-copy {
        min-width: 0;
    }

    .card-grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .feature-highlight-grid {
        grid-template-columns: 1fr;
    }

    .social-link {
        padding: 12px;
    }
}

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