/* Don't Worry promotional page. Matches the app's pastel colour-block style. */
.dw-page {
    --ink: #232428;
    --ink-soft: #3B3E58;
    --ground: #E9EFEA;
    --night: #26272C;
    --night-card: #33353B;
    --night-text: #C3C6CD;
    --peach: #F6C3B4;
    --butter: #F6E2A4;
    --periwinkle: #C3C7F6;
    --mint: #C2E6D6;
    --lilac: #DCD2F0;
    --coral: #EE9C86;
    background: var(--ground);
}

.dw-page main {
    color: var(--ink);
}

/* The site's global section style is for narrow pages; these bands are full width.
   :where() keeps this reset weak, so each band's own padding still applies. */
:where(.dw-page) section {
    max-width: none;
    padding: 0;
}

.dw-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.dw-display {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: -0.005em;
}

.dw-mono {
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

.dw-eyebrow {
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.dw-badge-link {
    display: inline-block;
    line-height: 0;
    border-radius: 10px;
}

.dw-badge-link:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 4px;
}

.dw-badge {
    height: 54px;
    width: auto;
}

/* Phone frame around raw app screens */
.dw-phone {
    width: 100%;
    max-width: 290px;
    border-radius: 46px;
    background: var(--ink);
    padding: 10px;
    box-shadow: 0 30px 60px rgba(35, 36, 40, 0.22);
}

.dw-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 37px;
}

/* Hero */
.dw-hero {
    background: var(--peach);
    padding: 96px 0 0;
    overflow: hidden;
}

.dw-hero .dw-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 40px;
    align-items: end;
}

.dw-hero-copy {
    padding-bottom: 96px;
}

.dw-app-id {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.dw-app-id img {
    width: 64px;
    height: 64px;
    border-radius: 15px;
    box-shadow: 0 6px 16px rgba(35, 36, 40, 0.15);
}

.dw-app-id .dw-app-name {
    font-weight: 600;
    font-size: 17px;
}

.dw-hero h1 {
    font-size: clamp(56px, 7.4vw, 96px);
    margin-bottom: 24px;
}

.dw-hero .dw-lead {
    font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 30em;
    margin-bottom: 32px;
}

.dw-hero .dw-small {
    margin-top: 14px;
    font-size: 13px;
    color: var(--ink-soft);
}

.dw-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.dw-hero-visual .dw-phone {
    margin-bottom: -120px;
}


/* How it works */
.dw-how {
    padding: 200px 0 40px;
}

.dw-section-title {
    font-size: clamp(48px, 7vw, 80px);
    margin-bottom: 16px;
}

.dw-section-intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 34em;
    margin-bottom: 56px;
}

.dw-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    border-radius: 40px;
    padding: 56px;
    margin-bottom: 28px;
    overflow: hidden;
}

.dw-step:nth-child(even) .dw-step-copy {
    order: 2;
}

.dw-step-number {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.dw-step h3 {
    font-size: clamp(44px, 5.5vw, 68px);
    margin-bottom: 18px;
}

.dw-step p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 26em;
}

.dw-step .dw-phone {
    justify-self: center;
    max-width: 270px;
}

.dw-step.periwinkle { background: var(--periwinkle); }
.dw-step.butter { background: var(--butter); }
.dw-step.mint { background: var(--mint); }
.dw-step.lilac { background: var(--lilac); }
.dw-step.night { background: var(--night); color: #fff; }
.dw-step.night .dw-step-number,
.dw-step.night p { color: var(--night-text); }

/* App Store gallery */
.dw-gallery {
    padding: 80px 0;
}

.dw-gallery-strip {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 24px;
    padding: 8px 24px 24px;
    max-width: 1080px;
    margin: 0 auto;
}

/* On wider screens all five fit side by side; on phones the row scrolls sideways */
@media (min-width: 861px) {
    .dw-gallery-strip {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
        overflow: visible;
    }

    .dw-gallery-strip img {
        width: 100% !important;
    }
}

.dw-gallery-strip img {
    flex: 0 0 auto;
    width: 64vw;
    max-width: 260px;
    height: auto;
    border-radius: 28px;
    scroll-snap-align: start;
    box-shadow: 0 14px 30px rgba(35, 36, 40, 0.12);
}

/* Categories */
.dw-categories {
    padding: 60px 0 100px;
}

.dw-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.dw-category {
    border-radius: 28px;
    padding: 24px;
}

.dw-category h3 {
    font-size: 26px;
    margin-bottom: 12px;
}

.dw-category p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* Privacy */
.dw-privacy {
    background: var(--night);
    color: #fff;
    padding: 110px 0;
}

.dw-privacy .dw-eyebrow {
    color: var(--night-text);
}

.dw-privacy h2 {
    font-size: clamp(52px, 8vw, 96px);
    margin: 14px 0 48px;
}

.dw-privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.dw-privacy-item {
    background: var(--night-card);
    border-radius: 28px;
    padding: 28px;
}

.dw-privacy-item h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.dw-privacy-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--night-text);
}

.dw-privacy-item .dw-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    margin-bottom: 18px;
}

/* Support note */
.dw-support {
    padding: 80px 0 0;
}

.dw-support-card {
    background: var(--lilac);
    border-radius: 36px;
    padding: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}

.dw-support-card h2 {
    font-size: 40px;
    margin-bottom: 12px;
}

.dw-support-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 44em;
}

.dw-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 16px 24px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    white-space: nowrap;
}

.dw-pill-link:hover,
.dw-pill-link:focus-visible {
    background: #000;
}

/* Final call to action */
.dw-cta {
    padding: 80px 0 40px;
}

.dw-cta-card {
    background: var(--mint);
    border-radius: 44px;
    padding: 56px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.dw-cta-card img.dw-cta-mascot {
    width: 220px;
    height: auto;
}

.dw-cta-card h2 {
    font-size: clamp(52px, 7vw, 88px);
    margin-bottom: 16px;
}

.dw-cta-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 28px;
    max-width: 30em;
}

/* Footer sits on the green ground */
.dw-page footer {
    margin-top: 60px;
}

@media (max-width: 860px) {
    .dw-hero .dw-inner,
    .dw-step,
    .dw-support-card,
    .dw-cta-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .dw-hero {
        padding-top: 72px;
    }

    .dw-hero-copy {
        padding-bottom: 24px;
    }
    .dw-step {
        padding: 36px 28px;
    }

    .dw-step:nth-child(even) .dw-step-copy {
        order: 0;
    }

    .dw-cta-card {
        padding: 36px 28px;
        text-align: left;
    }

    .dw-cta-card img.dw-cta-mascot {
        width: 160px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .dw-gallery-strip {
        scroll-behavior: smooth;
    }
}
