/* =======================================================
   AppShipper mini-site — dark, like the Mac app,
   with the teal accent from its icon.
   Shared mechanics live in ../css/app-page.css.
   ======================================================= */

:root {
    color-scheme: dark;
    --bg: #0d1013;
    --bg-raised: #14191d;
    --card: rgba(24, 31, 36, 0.78);
    --line: rgba(255, 255, 255, 0.08);
    --text: #f1f5f6;
    --text-2: #a3b1b6;
    --text-3: #6f7f85;
    --accent: #2bb3a8;
    --accent-2: #5fd6c9;
    --accent-ink: #04201d;
    --maxw: 1160px;
    --gutter: clamp(16px, 5vw, 36px);
    --focus-ring: var(--accent-2);
    --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -8%, rgba(43, 179, 168, 0.22), transparent 70%),
        radial-gradient(ellipse 50% 40% at 100% 40%, rgba(43, 179, 168, 0.07), transparent 70%);
    background-repeat: no-repeat;
}

/* --- Top bar --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 16, 19, 0.82);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
}

.topnav {
    display: flex;
    gap: 26px;
}

.topnav a {
    color: var(--text-2);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

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

.topbar-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s;
}

.pill-link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.pill-link.is-accent {
    border-color: transparent;
    background: var(--accent);
    color: var(--accent-ink);
}

.pill-link.is-accent:hover {
    background: var(--accent-2);
}

.pill-link svg {
    width: 14px;
    height: 14px;
    margin-top: -2px;
}

/* --- Buttons --- */
.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px 12px 18px;
    border-radius: 14px;
    background: var(--text);
    color: #0b0d10;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(43, 179, 168, 0.55);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(43, 179, 168, 0.7);
}

.btn-store svg {
    width: 26px;
    height: 26px;
}

.btn-store span {
    display: grid;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.btn-store small {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* --- Hero --- */
.hero {
    padding-block: clamp(48px, 9vw, 96px) clamp(40px, 7vw, 72px);
    text-align: center;
}

.hero-icon {
    width: clamp(84px, 14vw, 112px);
    height: auto;
    margin: 0 auto 24px;
    border-radius: 24%;
    box-shadow: 0 24px 48px -16px rgba(43, 179, 168, 0.55);
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent-2);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 16ch;
    margin: 0 auto 20px;
    font-size: clamp(2.2rem, 6.4vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.06;
}

.hero h1 em {
    font-style: normal;
    white-space: nowrap;
    background: linear-gradient(120deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    max-width: 640px;
    margin: 0 auto 32px;
    color: var(--text-2);
    font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin-top: 26px;
    color: var(--text-3);
    font-size: 0.9rem;
    font-weight: 600;
    list-style: none;
}

.hero-meta li::before {
    content: "✓ ";
    color: var(--accent);
}

.hero-shot {
    margin-top: clamp(40px, 7vw, 72px);
}

/* Screenshot of the Mac window — the CSS radius covers the window's own corners */
.mac-shot {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(8px, 1.2vw, 14px);
    background: var(--bg-raised);
    box-shadow:
        0 40px 80px -30px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(0, 0, 0, 0.4);
    cursor: zoom-in;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mac-shot:hover {
    transform: translateY(-4px);
}

.mac-shot.is-static {
    cursor: default;
}

.mac-shot.is-static:hover {
    transform: none;
}

.mac-shot img {
    width: 100%;
    height: auto;
}

/* --- Sections --- */
.section {
    padding-block: clamp(56px, 9vw, 104px);
}

.section-head {
    max-width: 720px;
    margin: 0 auto clamp(36px, 6vw, 60px);
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4.2vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.section-head p:not(.eyebrow) {
    margin-top: 14px;
    color: var(--text-2);
    font-size: clamp(1rem, 1.9vw, 1.1rem);
}

/* Feature rows: copy + screenshot, alternating sides */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.feature + .feature {
    margin-top: clamp(64px, 10vw, 112px);
}

.feature:nth-of-type(even) .feature-copy {
    order: 2;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-tag svg {
    width: 18px;
    height: 18px;
}

.feature h3 {
    margin-bottom: 18px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.ticks {
    display: grid;
    gap: 12px;
    list-style: none;
}

.ticks li {
    position: relative;
    padding-left: 30px;
    color: var(--text-2);
    font-size: 0.98rem;
}

.ticks li::before {
    content: "";
    position: absolute;
    top: 0.3em;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2304201d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
        var(--accent);
}

.ticks strong {
    color: var(--text);
}

/* Small cards */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
    margin-top: clamp(64px, 10vw, 112px);
}

.mini-card {
    padding: clamp(22px, 3.5vw, 32px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
}

.mini-card .card-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(43, 179, 168, 0.14);
    color: var(--accent-2);
}

.mini-card .card-icon svg {
    width: 22px;
    height: 22px;
}

.mini-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.mini-card p {
    color: var(--text-2);
    font-size: 0.97rem;
}

/* Privacy band */
.privacy-band {
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid rgba(43, 179, 168, 0.25);
    border-radius: 28px;
    background:
        radial-gradient(40rem 20rem at 0% 0%, rgba(43, 179, 168, 0.18), transparent 70%),
        var(--bg-raised);
}

.privacy-band .section-head {
    margin-bottom: clamp(28px, 4vw, 40px);
}

.privacy-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
    list-style: none;
}

.privacy-points li {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-2);
    font-size: 0.95rem;
}

.privacy-points strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 1.05rem;
}

/* Pricing */
.plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 24px);
    max-width: 880px;
    margin: 0 auto;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
}

.plan.is-pro {
    border-color: rgba(43, 179, 168, 0.45);
    background:
        radial-gradient(28rem 16rem at 100% 0%, rgba(43, 179, 168, 0.2), transparent 70%),
        var(--card);
}

.plan h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.plan-sub {
    margin-top: 2px;
    color: var(--text-2);
    font-size: 0.95rem;
}

.fine-print {
    max-width: 880px;
    margin: clamp(28px, 4vw, 40px) auto 0;
    color: var(--text-3);
    font-size: 0.85rem;
    line-height: 1.65;
    text-align: center;
}

.fine-print a {
    color: var(--text-2);
}

.fine-print + .fine-print {
    margin-top: 12px;
}

/* Closing call to action */
.cta-final {
    text-align: center;
}

.cta-final h2 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 4.2vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.cta-final p {
    max-width: 560px;
    margin: 0 auto 28px;
    color: var(--text-2);
}

/* --- Footer --- */
.site-footer {
    padding-block: 36px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 0.88rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px 24px;
}

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

.footer-links a {
    color: var(--text-2);
    text-decoration: none;
}

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

.footer-note {
    flex-basis: 100%;
    font-size: 0.8rem;
}

/* --- Lightbox --- */
.lightbox img {
    border-radius: 12px;
}

/* =======================================================
   Responsive
   ======================================================= */
@media (max-width: 900px) {
    .topnav {
        display: none;
    }

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

    .feature:nth-of-type(even) .feature-copy {
        order: 0;
    }

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

@media (max-width: 680px) {
    .mini-grid,
    .plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    /* Phones: the hero already has the big App Store button */
    .topbar-actions .is-accent {
        display: none;
    }

    .btn-store,
    .btn-ghost {
        justify-content: center;
        width: 100%;
    }

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

@media (prefers-reduced-motion: reduce) {
    .mac-shot,
    .btn-store {
        transition: none;
    }
}
