/* Stenza: the app's graphite surfaces and coral accent; artwork sits on white paper. */
:root {
    --bg: #0e0f12;
    --card: #181a1f;
    --card-raised: #20232a;
    --glass: rgba(24, 26, 31, 0.92);
    --ink: #f4f4f6;
    --ink-2: #acb1bb;
    --line: #31343d;
    --coral: #ff8068;
    --coral-soft: rgba(255, 128, 104, 0.14);
    --on-coral: #1e0e0c;
    --paper: #ffffff;
    --focus-ring: var(--coral);
    --maxw: 1080px;
    /* Shared by .wrap and the carousels, so the first screenshot lines up with the titles. */
    --gutter: clamp(16px, 5vw, 36px);
    color-scheme: dark;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
}

h1,
h2,
h3,
.brand {
    font-family: "Oswald", "Avenir Next Condensed", "Arial Narrow", sans-serif;
}

[hidden] {
    display: none !important;
}

/* --- Top bar --- */
.icon-sprite {
    position: absolute;
}

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

.topbar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.brand img {
    border-radius: 22%;
}

.tabs {
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass);
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding-inline: 16px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.tab svg {
    display: none;
}

.tab:hover {
    color: var(--ink);
}

.tab.is-active {
    background: var(--coral-soft);
    color: var(--coral);
}

.pill-link {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    min-height: 44px;
    padding-inline: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.pill-link:hover {
    border-color: color-mix(in srgb, var(--coral) 45%, transparent);
    color: var(--coral);
}

[data-section] {
    scroll-margin-top: 76px;
}

/* --- Hero --- */
.hero {
    padding-block: clamp(24px, 6vw, 72px) clamp(40px, 7vw, 88px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
}

.hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 22.5%;
    box-shadow: 0 18px 50px -20px rgba(255, 128, 104, 0.55);
    margin-bottom: 24px;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 4.6rem);
    line-height: 1.02;
    font-weight: 600;
    text-transform: uppercase;
    text-wrap: balance;
}

h1 em {
    font-style: normal;
    color: var(--coral);
}

.lead {
    margin-top: 20px;
    max-width: 32em;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--ink-2);
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 11px 24px 11px 18px;
    border-radius: 16px;
    background: var(--coral);
    color: var(--on-coral);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 14px 30px -12px rgba(255, 128, 104, 0.7);
    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(255, 128, 104, 0.85);
}

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

.btn-store span {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.1;
}

.btn-store small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
}

.hero-copy .btn-store {
    margin-top: 24px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.chip {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
}

/* --- Design → stencil --- */
.transfer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}

.sheet {
    display: grid;
    gap: 10px;
}

.sheet img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 18px;
    border: 1px solid var(--line);
}

/* The stencil is black on white, like the sheet that comes out of the printer. */
.sheet-paper img {
    background: var(--paper);
    border-color: transparent;
    box-shadow: 0 40px 80px -40px rgba(255, 128, 104, 0.45);
}

.sheet figcaption {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
    text-align: center;
}

.transfer-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    /* Lines up with the pictures, not with the captions under them. */
    margin-bottom: 30px;
    border-radius: 50%;
    background: var(--coral);
    color: var(--on-coral);
}

/* --- Section titles --- */
.section-title {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

/* --- Features --- */
.features,
.gallery,
.support {
    padding-bottom: clamp(48px, 8vw, 96px);
}

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

.feature {
    padding: 24px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--line);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: var(--coral);
    background: var(--coral-soft);
}

.feature h3 {
    margin-top: 14px;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.25;
}

.feature p {
    margin-top: 6px;
    color: var(--ink-2);
}

.privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: 18px;
    background: var(--coral-soft);
    color: var(--ink-2);
}

.privacy-note svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--coral);
}

.privacy-note strong {
    color: var(--ink);
}

/* --- Screenshots --- */
.gallery-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.gallery-head .section-title {
    margin-bottom: 0;
}

.device-switch {
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
}

.device-switch button {
    min-height: 40px;
    padding-inline: 18px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 600;
}

.device-switch button:hover {
    color: var(--ink);
}

.device-switch button.is-active {
    background: var(--coral-soft);
    color: var(--coral);
}

.shots-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.shots-nav button {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
}

.shots-nav button:not(:disabled):hover {
    color: var(--coral);
}

.shots {
    --shots-gap: 18px;
    --shot-radius: 22px;
    padding-top: 16px;
}

.shots-phone {
    --shot-w: 236px;
}

.shots-pad {
    --shot-w: 380px;
}

.shot-btn > img {
    border: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.8);
}

/* --- Free and Pro --- */
.plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.plan {
    padding: clamp(20px, 3vw, 28px);
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--line);
}

.plan-pro {
    border-color: color-mix(in srgb, var(--coral) 45%, transparent);
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(255, 128, 104, 0.14), transparent 70%),
        var(--card);
}

.plan h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.plan-pro h3 {
    color: var(--coral);
}

.plan-sub {
    margin-top: 2px;
    color: var(--ink-2);
}

.plan-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    list-style: none;
}

.plan-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.plan-list svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--coral);
}

.plan-limit {
    color: var(--ink-2);
}

.plan-limit svg {
    color: var(--ink-2);
}

.plan-note {
    margin-top: 18px;
    font-size: 0.88rem;
    color: var(--ink-2);
}

/* --- Download and support --- */
.download-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card-raised);
}

.download-copy {
    flex: 1 1 30rem;
}

.download-copy h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.download-copy p {
    max-width: 60ch;
    margin-top: 10px;
    color: var(--ink-2);
}

.download-copy a {
    color: var(--coral);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 28px 40px;
    font-size: 0.9rem;
    color: var(--ink-2);
}

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

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

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--coral);
}

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

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

    .btn-store:hover {
        transform: none;
    }
}

/* --- Narrow screens --- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-icon,
    .lead {
        margin-inline: auto;
    }

    .chips {
        justify-content: center;
    }

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

@media (max-width: 760px) {
    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .topbar {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: color-mix(in srgb, var(--bg) 94%, transparent);
    }

    .topbar-inner {
        grid-template-columns: 1fr auto;
        min-height: 58px;
    }

    .tabs {
        position: fixed;
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: 50%;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: min(420px, calc(100% - 32px));
        padding: 6px;
        border-radius: 32px;
        transform: translateX(-50%);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        backdrop-filter: saturate(180%) blur(18px);
        box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.5);
    }

    .tab {
        flex-direction: column;
        gap: 3px;
        padding: 6px 2px;
        font-size: 0.72rem;
    }

    .tab svg {
        display: block;
        width: 22px;
        height: 22px;
    }

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

    /* Swiping is enough on a phone. */
    .shots-bar {
        display: none;
    }

    .shots-phone {
        --shot-w: 200px;
    }

    .shots-pad {
        --shot-w: min(300px, 78vw);
    }
}

@media (max-width: 560px) {
    .transfer {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .sheet {
        width: min(100%, 320px);
    }

    .transfer-arrow {
        margin-bottom: 0;
        transform: rotate(90deg);
    }

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