:root {
    --cc-bg: #fbfbfd;
    --cc-bg-alt: #f5f5f7;
    --cc-card: #ffffff;
    --cc-border: rgba(0, 0, 0, 0.10);
    --cc-border-strong: rgba(0, 0, 0, 0.16);
    --cc-text: #1d1d1f;
    --cc-text-secondary: #6e6e73;
    --cc-blue: #2f5fad;
    --cc-blue-bright: #4d84e2;
    --cc-blue-deep: #1f3f80;
    --cc-orange: #f5a93d;
    --cc-orange-deep: #e08a1f;
    --cc-gold: #fbd670;
    --cc-app-bg: #eef2f7;
    --cc-cta-gradient: linear-gradient(165deg, #eef4ff 0%, #fbfbfd 45%, #fff3e4 100%);
    --cc-shadow: 0 24px 70px rgba(15, 25, 45, 0.16);
    --cc-shadow-soft: 0 10px 30px rgba(15, 25, 45, 0.08);
    --cc-radius: 20px;
}

/* Dark theme — toggled via the nav button (site.js) or the visitor's OS preference on
   first visit (theme-init.js sets data-theme before paint). Colors chosen to stay
   consistent with the real app's own dark appearance (Theme.swift Palette.dark) now shown
   directly in the hero's real screenshot, even though the site chrome itself doesn't reuse
   those exact tokens 1:1. */
:root[data-theme="dark"] {
    --cc-bg: #0f172a;
    --cc-bg-alt: #16213a;
    --cc-card: #1e293b;
    --cc-border: rgba(255, 255, 255, 0.10);
    --cc-border-strong: rgba(255, 255, 255, 0.18);
    --cc-text: #e2e8f0;
    --cc-text-secondary: #94a3b8;
    --cc-blue: #38bdf8;
    --cc-blue-bright: #7dd3fc;
    --cc-blue-deep: #0ea5e9;
    --cc-orange: #fb923c;
    --cc-orange-deep: #f97316;
    --cc-gold: #fbbf24;
    --cc-app-bg: #0f172a;
    --cc-cta-gradient: linear-gradient(165deg, #16213a 0%, #0f172a 45%, #241a12 100%);
    --cc-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    --cc-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--cc-bg);
    color: var(--cc-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

a, a:link, a:visited {
    color: inherit;
}

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

code {
    font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--cc-bg-alt);
    border: 1px solid var(--cc-border);
    border-radius: 6px;
    padding: 1px 6px;
}

.cc-skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--cc-blue);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 0 0 10px 0;
    z-index: 100;
    font-weight: 700;
}

.cc-skip-link:focus {
    left: 0;
}

/* Gradient text treatment, echoing the app icon's dawn-to-dusk sky */

.cc-gradient-text {
    background: linear-gradient(100deg, var(--cc-orange) 0%, var(--cc-blue-bright) 55%, var(--cc-blue-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Soft blurred glow decoration */

.cc-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(150px);
    opacity: 0.45;
}

.cc-glow-blue {
    background: radial-gradient(circle, var(--cc-blue-bright), transparent 45%);
}

.cc-glow-orange {
    background: radial-gradient(circle, var(--cc-orange), transparent 45%);
    opacity: 0.3;
}

/* Nav */

.cc-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--cc-bg) 72%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--cc-border);
}

.cc-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.cc-brand-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 7px;
}

.cc-nav-links {
    display: flex;
    gap: 28px;
}

.cc-nav-links a,
.cc-nav-links a:link,
.cc-nav-links a:visited {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--cc-text-secondary);
}

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

.cc-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cc-card);
    border: 1px solid var(--cc-border-strong);
    border-radius: 999px;
    padding: 7px 14px 7px 10px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--cc-text);
    cursor: pointer;
    box-shadow: var(--cc-shadow-soft);
}

.cc-theme-toggle-icon {
    font-size: 0.92rem;
    line-height: 1;
}

.cc-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.cc-nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--cc-text);
    border-radius: 2px;
}

/* Buttons */

.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.005em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    border: 1px solid transparent;
}

.cc-btn:active {
    transform: scale(0.97);
}

.cc-btn-primary,
.cc-btn-primary:link,
.cc-btn-primary:visited {
    background: linear-gradient(120deg, var(--cc-blue-bright), var(--cc-blue));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(47, 95, 173, 0.32);
}

.cc-btn-primary:hover {
    box-shadow: 0 16px 38px rgba(47, 95, 173, 0.42);
}

.cc-btn-secondary,
.cc-btn-secondary:link,
.cc-btn-secondary:visited {
    background: var(--cc-card);
    color: var(--cc-text);
    border-color: var(--cc-border-strong);
    box-shadow: var(--cc-shadow-soft);
}

.cc-btn-large {
    padding: 17px 36px;
    font-size: 1.05rem;
}

/* Hero */

.cc-hero {
    position: relative;
    padding: 84px 24px 64px;
}

.cc-hero .cc-glow-blue {
    width: 680px;
    height: 680px;
    top: -320px;
    right: -240px;
}

.cc-hero .cc-glow-orange {
    width: 520px;
    height: 520px;
    bottom: -300px;
    left: -240px;
}

.cc-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.cc-hero-copy,
.cc-hero-visual {
    min-width: 0;
}

.cc-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--cc-blue);
    margin: 0 0 14px;
}

.cc-hero h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.6rem);
    line-height: 1.06;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

.cc-hero-sub {
    font-size: 1.12rem;
    color: var(--cc-text-secondary);
    margin: 0 0 28px;
    max-width: 50ch;
}

.cc-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.cc-hero-note {
    font-size: 0.88rem;
    color: var(--cc-text-secondary);
    margin: 0;
}

.cc-hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Phone mockup */

.cc-phone {
    width: 300px;
    max-width: 100%;
    background: #101014;
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--cc-shadow);
    border: 1px solid rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cc-phone-screen {
    position: relative;
    aspect-ratio: 640 / 1327;
    background: var(--cc-app-bg);
    border-radius: 34px;
    overflow: hidden;
}

.cc-phone-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: none;
}

.cc-phone-shot-light {
    display: block;
}

:root[data-theme="dark"] .cc-phone-shot-light {
    display: none;
}

:root[data-theme="dark"] .cc-phone-shot-dark {
    display: block;
}

/* Sections */

.cc-section {
    position: relative;
    padding: 84px 24px;
}

.cc-section-alt {
    background: var(--cc-bg-alt);
    border-top: 1px solid var(--cc-border);
    border-bottom: 1px solid var(--cc-border);
}

.cc-section-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}

.cc-section h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    margin: 0 0 12px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.cc-section-sub {
    text-align: center;
    color: var(--cc-text-secondary);
    max-width: 60ch;
    margin: 0 auto 52px;
    font-size: 1.08rem;
}

/* Features */

.cc-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cc-feature {
    background: var(--cc-card);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    padding: 28px;
    box-shadow: var(--cc-shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cc-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(47, 95, 173, 0.35);
    box-shadow: 0 18px 40px rgba(15, 25, 45, 0.12);
}

.cc-feature-icon {
    font-size: 1.9rem;
    margin-bottom: 14px;
    line-height: 1;
}

.cc-feature h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.cc-feature p {
    margin: 0;
    color: var(--cc-text-secondary);
    font-size: 0.96rem;
}

/* Chips */

.cc-tool-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
}

.cc-chip {
    background: var(--cc-card);
    border: 1px solid var(--cc-border-strong);
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 600;
    font-size: 0.98rem;
    box-shadow: var(--cc-shadow-soft);
    transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cc-chip:hover {
    color: var(--cc-blue);
    border-color: var(--cc-blue);
    transform: translateY(-2px);
}

/* Privacy section */

.cc-privacy {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 52px;
    align-items: center;
}

.cc-privacy-copy,
.cc-privacy-badges {
    min-width: 0;
}

.cc-privacy-copy h2 {
    text-align: left;
    margin-bottom: 16px;
}

.cc-privacy-copy p {
    color: var(--cc-text-secondary);
    font-size: 1.04rem;
}

.cc-link-arrow,
.cc-link-arrow:link,
.cc-link-arrow:visited {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--cc-blue);
    text-decoration: none;
}

.cc-link-arrow:hover {
    color: var(--cc-blue-deep);
}

.cc-privacy-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cc-badge {
    background: var(--cc-card);
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    padding: 20px 16px;
    font-weight: 600;
    font-size: 0.94rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--cc-shadow-soft);
}

.cc-badge span {
    font-size: 1.5rem;
}

/* CTA */

.cc-cta {
    position: relative;
    padding: 96px 24px;
    text-align: center;
    background: var(--cc-cta-gradient);
    color: var(--cc-text);
    overflow: hidden;
    border-top: 1px solid var(--cc-border);
}

.cc-cta .cc-glow-blue {
    width: 760px;
    height: 420px;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.cc-cta .cc-glow-orange {
    width: 460px;
    height: 460px;
    bottom: -280px;
    right: -160px;
    opacity: 0.2;
}

.cc-cta-inner {
    position: relative;
    z-index: 1;
}

.cc-cta-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 21px;
    filter: drop-shadow(0 14px 34px rgba(31, 63, 128, 0.32));
}

.cc-cta h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.cc-cta p {
    margin: 0 0 28px;
    color: var(--cc-text-secondary);
}

.cc-cta .cc-store-note {
    margin: 16px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cc-text-secondary);
}

.cc-mas-badge {
    display: inline-flex;
    border-radius: 10px;
    transition: transform 0.15s ease;
}

.cc-mas-badge:active {
    transform: scale(0.97);
}

.cc-mas-badge img {
    display: block;
    height: 44px;
    width: auto;
}

.cc-mas-badge img.cc-mas-badge-dark {
    display: none;
}

:root[data-theme="dark"] .cc-mas-badge img.cc-mas-badge-light {
    display: none;
}

:root[data-theme="dark"] .cc-mas-badge img.cc-mas-badge-dark {
    display: block;
}

/* Legal / content pages */

.cc-legal-inner {
    max-width: 760px;
}

.cc-legal h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.cc-legal-updated {
    color: var(--cc-text-secondary);
    font-size: 0.9rem;
    margin: 0 0 32px;
}

.cc-legal h2 {
    text-align: left;
    font-size: 1.28rem;
    margin: 36px 0 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cc-legal p, .cc-legal li {
    color: var(--cc-text-secondary);
    font-size: 1rem;
}

.cc-legal ul {
    padding-left: 20px;
}

.cc-legal a {
    color: var(--cc-blue);
    font-weight: 600;
}

.cc-error {
    text-align: center;
    padding: 40px 0;
}

/* Support page */

.cc-support-contact {
    margin: 24px 0 8px;
}

.cc-faq {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cc-faq details {
    background: var(--cc-card);
    border: 1px solid var(--cc-border);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--cc-shadow-soft);
}

.cc-faq summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--cc-text);
}

.cc-faq summary::-webkit-details-marker {
    display: none;
}

.cc-faq summary::after {
    content: "+";
    float: right;
    font-weight: 700;
    color: var(--cc-blue);
}

.cc-faq details[open] summary::after {
    content: "\2212";
}

.cc-faq p {
    margin: 10px 0 0;
}

/* Footer */

.cc-footer {
    border-top: 1px solid var(--cc-border);
    padding: 40px 24px;
    background: var(--cc-bg-alt);
}

.cc-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cc-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cc-footer-brand img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.cc-footer-links {
    display: flex;
    gap: 20px;
}

.cc-footer-links a,
.cc-footer-links a:link,
.cc-footer-links a:visited {
    text-decoration: none;
    color: var(--cc-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.cc-footer-copy {
    width: 100%;
    margin: 0;
    color: var(--cc-text-secondary);
    font-size: 0.82rem;
}

/* Mobile */

@media (max-width: 860px) {
    .cc-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cc-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .cc-hero-ctas {
        justify-content: center;
    }

    .cc-hero-visual {
        order: -1;
    }

    .cc-privacy {
        grid-template-columns: 1fr;
    }

    .cc-privacy-copy h2 {
        text-align: center;
    }

    .cc-privacy-copy {
        text-align: center;
    }

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

@media (max-width: 620px) {
    .cc-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cc-bg);
        border-bottom: 1px solid var(--cc-border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        display: none;
    }

    .cc-nav-links.cc-open {
        display: flex;
    }

    .cc-nav-toggle {
        display: flex;
    }

    .cc-theme-toggle {
        padding: 7px 10px;
    }

    .cc-theme-toggle-label {
        display: none;
    }

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

    .cc-privacy-badges {
        grid-template-columns: 1fr 1fr;
    }

    .cc-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cc-phone {
        width: 100%;
        max-width: 320px;
    }
}
