:root {
    --bg: #0d0d0f;
    --bg-soft: #141416;
    --surface: #18181b;
    --surface-hover: #1e1e22;

    --border: #29292e;

    --text: #f5f5f7;
    --text-soft: #a7a7ae;
    --text-muted: #74747d;

    --max-width: 1180px;

    --radius-large: 28px;
    --radius-medium: 20px;
    --radius-small: 12px;
}


/* Reset */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--bg);
    color: var(--text-soft);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
}

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

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

a,
button {
    -webkit-tap-highlight-color: transparent;
}


/* Layout */

.container {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}

.section {
    padding: 120px 0;
}

.section-muted {
    background: var(--bg-soft);
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(13, 13, 15, 0.82);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    color: var(--text);

    font-weight: 650;
    letter-spacing: -0.02em;
}

.brand img {
    width: 38px;
    height: 38px;

    object-fit: cover;

    border-radius: 11px;
}

.nav-links {
    display: flex;
    align-items: center;

    gap: 30px;
}

.nav-links a {
    color: var(--text-soft);

    font-size: 0.92rem;

    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}


/* App Hero */

.app-hero {
    padding: 120px 0 130px;
}

.app-hero-grid {
    display: grid;

    grid-template-columns:
        minmax(320px, 0.8fr)
        minmax(0, 1.2fr);

    gap: 100px;

    align-items: center;
}

.app-identity {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.app-icon {
    width: 160px;
    height: 160px;

    object-fit: cover;

    border-radius: 34px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08);

    margin-bottom: 42px;
}

.app-status {
    display: inline-flex;

    margin-bottom: 18px;

    padding: 7px 11px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: #a8ddb9;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    background: rgba(108, 211, 153, 0.08);
}

.app-status.coming-soon {
    color: #bdbdc3;
    background: rgba(255, 255, 255, 0.06);
}

.app-identity h1 {
    margin: 0;

    color: var(--text);

    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;

    line-height: 1;

    letter-spacing: -0.06em;
}

.app-tagline {
    margin: 16px 0 0;

    color: var(--text-soft);

    font-size: 1.05rem;
}


.app-intro h2 {
    margin: 0;

    color: var(--text);

    font-size: clamp(2.5rem, 5vw, 4.7rem);
    font-weight: 650;

    line-height: 1.04;

    letter-spacing: -0.055em;
}

.app-intro > p {
    max-width: 620px;

    margin: 32px 0 0;

    font-size: 1.1rem;
    line-height: 1.75;
}


/* Store buttons */

.hero-buttons,
.download-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.hero-buttons {
    margin-top: 38px;
}

.store-button {
    min-width: 190px;
    min-height: 64px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 9px 20px;

    border: 1px solid var(--border);
    border-radius: 14px;

    color: var(--text);

    font-size: 1rem;
    font-weight: 650;

    line-height: 1.15;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.store-button:hover {
    transform: translateY(-2px);

    border-color: #46464e;

    background: var(--surface-hover);
}

.store-button-primary {
    background: var(--text);
    color: #111113;

    border-color: var(--text);
}

.store-button-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.store-small {
    margin-bottom: 3px;

    font-size: 0.68rem;
    font-weight: 500;

    opacity: 0.75;
}


/* App tags */

.app-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 32px;
}

.app-tags span {
    padding: 6px 10px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text-muted);

    font-size: 0.72rem;
}


/* Section titles */

.section-heading {
    max-width: 760px;

    margin-bottom: 54px;
}

.section-label,
.resource-type {
    display: inline-block;

    color: var(--text-muted);

    font-size: 0.76rem;
    font-weight: 650;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.section-label {
    margin-bottom: 22px;
}

.section-heading h2,
.download-panel h2 {
    margin: 0;

    color: var(--text);

    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 650;

    line-height: 1.08;

    letter-spacing: -0.045em;
}

.section-heading p {
    max-width: 560px;

    margin: 22px 0 0;

    font-size: 1.04rem;
}


/* Screenshots */

.screenshots-section {
    overflow: hidden;
}

.screenshot-rail {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: thin;
    scrollbar-color: #34343a transparent;

    -webkit-overflow-scrolling: touch;

    padding-bottom: 20px;
}

.screenshot-track {
    display: flex;

    gap: 20px;

    width: max-content;

    padding-right: 24px;
}

.screenshot {
    flex: 0 0 auto;

    width: 260px;

    border-radius: 22px;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.screenshot img {
    width: 100%;
    height: auto;
}


/* Features */

.feature-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.feature-card {
    min-height: 270px;

    display: flex;
    flex-direction: column;

    padding: 34px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: rgba(255, 255, 255, 0.015);
}

.feature-number {
    color: var(--text-muted);

    font-size: 0.72rem;

    letter-spacing: 0.12em;
}

.feature-card h3 {
    margin: auto 0 12px;

    color: var(--text);

    font-size: 1.4rem;

    letter-spacing: -0.025em;
}

.feature-card p {
    margin: 0;

    max-width: 440px;

    font-size: 0.94rem;
}


/* Download */

.download-section {
    padding-top: 90px;
    padding-bottom: 90px;
}

.download-panel {
    display: grid;

    grid-template-columns: 1fr auto;

    gap: 70px;

    align-items: center;

    padding: 58px 64px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);
}

.download-panel p {
    margin: 20px 0 0;
}


/* Resources */

.resource-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.resource-card {
    min-height: 220px;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.resource-card:hover {
    transform: translateY(-4px);

    border-color: #3d3d45;

    background: var(--surface-hover);
}

.resource-card h3 {
    margin: 12px 0 10px;

    color: var(--text);

    font-size: 1.25rem;
}

.resource-card p {
    margin: 0;

    font-size: 0.88rem;
}

.resource-arrow {
    color: var(--text);

    font-size: 1.4rem;
}


/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
}

.footer-content {
    min-height: 220px;

    display: grid;

    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;

    gap: 30px;

    align-items: start;

    padding-top: 52px;
    padding-bottom: 42px;
}

.footer-brand {
    color: var(--text);

    font-weight: 650;
}

.footer-content p {
    margin: 4px 0 0;

    color: var(--text-muted);

    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 22px;
}

.footer-links a {
    color: var(--text-muted);

    font-size: 0.82rem;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.copyright {
    grid-column: 1 / -1;

    color: var(--text-muted);

    font-size: 0.76rem;
}


/* Tablet */

@media (max-width: 980px) {

    .section {
        padding: 90px 0;
    }

    .app-hero {
        padding: 90px 0 100px;
    }

    .app-hero-grid {
        grid-template-columns: 1fr;

        gap: 70px;
    }

    .app-identity {
        flex-direction: row;

        align-items: center;

        gap: 32px;
    }

    .app-icon {
        width: 130px;
        height: 130px;

        margin: 0;

        border-radius: 28px;
    }

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

    .download-panel {
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .resource-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        min-height: 170px;
    }

}


/* Mobile */

@media (max-width: 720px) {

    .container {
        width: min(100% - 32px, var(--max-width));
    }

    .site-header {
        position: relative;
    }

    .nav-container {
        min-height: auto;

        flex-direction: column;
        align-items: flex-start;

        gap: 18px;

        padding-top: 18px;
        padding-bottom: 18px;
    }

    .nav-links {
        width: 100%;

        justify-content: space-between;

        gap: 0;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .app-hero {
        padding: 70px 0 85px;
    }

    .app-hero-grid {
        gap: 55px;
    }

    .app-identity {
        flex-direction: column;

        align-items: flex-start;

        gap: 0;
    }

    .app-icon {
        width: 112px;
        height: 112px;

        margin-bottom: 30px;

        border-radius: 25px;
    }

    .app-identity h1 {
        font-size: 3.4rem;
    }

    .app-intro h2 {
        font-size: 2.7rem;
    }

    .app-intro > p {
        font-size: 1rem;
    }

    .hero-buttons,
    .download-buttons {
        flex-direction: column;

        width: 100%;
    }

    .store-button {
        width: 100%;
    }

    .section {
        padding: 75px 0;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .screenshot {
        width: 225px;
    }

.screenshot-rail {
    width: calc(100% - 32px);
}

.screenshot-track {
    gap: 14px;

    padding-right: 16px;
}

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

    .feature-card {
        min-height: 220px;

        padding: 28px;
    }

    .download-panel {
        padding: 34px 24px;

        border-radius: var(--radius-medium);
    }

    .footer-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;

        min-height: auto;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .copyright {
        grid-column: auto;
    }

}


/* Small phones */

@media (max-width: 390px) {

    .nav-links {
        flex-wrap: wrap;

        justify-content: flex-start;

        gap: 10px 18px;
    }

    .app-identity h1 {
        font-size: 3rem;
    }

    .app-intro h2 {
        font-size: 2.4rem;
    }

}

/* =========================================================
   Legal / Support Pages
   ========================================================= */

.page-hero {
    padding: 100px 0 70px;
}

.page-hero-inner {
    max-width: 820px;
}

.page-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 34px;

    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.page-back-link:hover {
    color: var(--text);
}

.page-hero h1 {
    margin: 0;

    color: var(--text);

    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1;

    letter-spacing: -0.06em;
}

.page-description {
    max-width: 700px;

    margin: 26px 0 0;

    color: var(--text-soft);

    font-size: 1.08rem;
    line-height: 1.75;
}

.page-meta {
    margin-top: 24px;

    color: var(--text-muted);

    font-size: 0.82rem;
}


/* Document body */

.document-section {
    padding: 30px 0 120px;
}

.document-container {
    max-width: 820px;
}

.document-content {
    padding-top: 56px;

    border-top: 1px solid var(--border);
}

.document-content h2 {
    margin: 64px 0 18px;

    color: var(--text);

    font-size: 1.5rem;
    font-weight: 650;

    line-height: 1.35;
    letter-spacing: -0.025em;
}

.document-content h2:first-child {
    margin-top: 0;
}

.document-content p {
    margin: 0 0 22px;

    color: var(--text-soft);

    line-height: 1.8;
}

.document-content ul {
    margin: 0 0 28px;

    padding-left: 1.3rem;
}

.document-content li {
    margin-bottom: 10px;

    color: var(--text-soft);

    line-height: 1.75;
}

.document-content strong {
    color: var(--text);
    font-weight: 600;
}

.document-content a {
    color: var(--text);

    border-bottom: 1px solid #45454c;

    transition: border-color 0.2s ease;
}

.document-content a:hover {
    border-color: var(--text);
}


/* Bottom navigation */

.document-navigation {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 80px;
    padding-top: 32px;

    border-top: 1px solid var(--border);
}

.document-navigation a {
    padding: 9px 14px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--text-soft);

    font-size: 0.82rem;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.document-navigation a:hover {
    color: var(--text);

    background: var(--surface);

    border-color: #414149;
}


/* Support */

.support-page-section {
    padding: 20px 0 120px;
}

.support-page-container {
    max-width: 900px;
}

.support-info {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;

    margin-bottom: 54px;
}

.support-info-card {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    background: var(--surface);
}

.support-info-card span {
    display: block;

    margin-bottom: 12px;

    color: var(--text-muted);

    font-size: 0.72rem;
    font-weight: 650;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.support-info-card h2 {
    margin: 0 0 10px;

    color: var(--text);

    font-size: 1.25rem;
}

.support-info-card p {
    margin: 0;

    font-size: 0.9rem;
}

.support-info-card a {
    color: var(--text);
}


/* Tally */

.tally-panel {
    padding: 42px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);
}

.tally-panel-header {
    margin-bottom: 28px;
}

.tally-panel-header h2 {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 1.5rem;
}

.tally-panel-header p {
    margin: 0;

    font-size: 0.92rem;
}

.tally-container {
    width: 100%;
    min-height: 500px;
}

.tally-container iframe {
    display: block;

    width: 100%;

    border: 0;
}


/* Mobile document pages */

@media (max-width: 720px) {

    .page-hero {
        padding: 70px 0 50px;
    }

    .page-hero h1 {
        font-size: 3.2rem;
    }

    .document-section {
        padding-bottom: 85px;
    }

    .document-content {
        padding-top: 38px;
    }

    .document-content h2 {
        margin-top: 48px;

        font-size: 1.3rem;
    }

    .support-page-section {
        padding-bottom: 85px;
    }

    .support-info {
        grid-template-columns: 1fr;
    }

    .tally-panel {
        padding: 26px 20px;

        border-radius: var(--radius-medium);
    }

}