/*
    PoenPlanner website.

    Colours mirror Resources\Styles\Colors.xaml of the app (Warm Linen theme), so the
    site and the app read as one product. When a colour changes in the app, change the
    matching variable here.

    One light theme only, like the app: no dark mode.
*/

@font-face {
    font-family: "Hero";
    src: url("../assets/fonts/Hero-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Hero";
    src: url("../assets/fonts/Hero-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    /* Hero Bold has an empty glyph for the euro sign (U+20AC). Leaving it out of the range
       makes the browser take the euro sign from Hero Regular and thicken it. */
    unicode-range: U+0000-20AB, U+20AD-FFFF;
}

:root {
    color-scheme: only light;

    --pp-page: #FAF3D8;        /* PPWarmLinenPageColor */
    --pp-panel: #FFFBEC;       /* PPWarmLinenPanelColor */
    --pp-accent: #F6ECCE;      /* PPWarmLinenAccentColor */
    --pp-stroke: #E6DFC4;      /* PPWarmLinenPanelStrokeColor */
    --pp-main: #003366;        /* PPMainColor */
    --pp-slate: #2F4F6F;       /* PPStepByStepButtonIconColor */
    --pp-selection: #CCE0FF;   /* PPSelectionColor */
    --pp-link: #1560BD;        /* PPPlanTrackFlatColor */
    --pp-up: #2EA043;          /* PPPlanTrackUpColor */

    /* Web only: derived from the colours above. */
    --pp-main-deep: #002A54;
    --pp-stroke-strong: #D3CAA6;
    --pp-hero-paper: #FDE9C0;

    --font: "Hero", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

    --container: 1120px;
    --gutter: clamp(20px, 5vw, 40px);
    --band: clamp(56px, 8vw, 104px);
    --radius: 18px;
    --header-height: 96px;
    --hero-fit-h: 100vh;
    --hero-wide-art-w: min(100vw, var(--container) + 48px, max(720px, (var(--hero-fit-h) - (var(--header-height) - 2px) - 24px) * 1.5));
    --shadow-card: 0 1px 2px rgba(0, 51, 102, 0.05), 0 14px 30px -20px rgba(0, 51, 102, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--pp-page);
    color: var(--pp-slate);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--pp-main);
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.2rem, 1.35rem + 3.7vw, 3.7rem);
    letter-spacing: -0.015em;
}

h2 {
    font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
    line-height: 1.25;
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--pp-link);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--pp-main);
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid var(--pp-link);
    outline-offset: 3px;
    border-radius: 6px;
}

[id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.container {
    width: min(100% - 2 * var(--gutter), var(--container));
    margin-inline: auto;
}

.container--narrow {
    --container: 780px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--pp-main);
    color: var(--pp-panel);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
    color: var(--pp-panel);
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

/* A rounded bar that floats above the page. */
.site-header {
    position: sticky;
    top: 8px;
    z-index: 50;
    margin-top: 8px;
    /* Only the bar itself takes clicks; the strip around it passes them on to the page. */
    pointer-events: none;
}

.site-header__inner {
    /* Sizes the narrow bar is calculated from; see the name size below. */
    --hdr-icon: 60px;
    --hdr-badge-h: 40px;
    --hdr-ios-w: calc(var(--hdr-badge-h) * 2.9917);       /* app-store-nl.svg: 119.66 x 40 */
    --hdr-android-w: calc(var(--hdr-badge-h) * 3.3646);   /* google-play-nl.png: 646 x 192 */
    --hdr-stores-w: calc(var(--hdr-ios-w) + 10px + var(--hdr-android-w));
    --hdr-brand-gap: 12px;
    --hdr-name-gap: 12px;
    --hdr-name-max: 1.5rem;
    display: flex;
    align-items: center;
    container-type: inline-size;
    /* A little wider than the page content, so the icon lines up with the text below. */
    width: min(100% - 16px, var(--container) + 48px);
    height: calc(var(--header-height) - 10px);
    padding-inline: clamp(12px, 3vw, 24px);
    border-radius: 28px;
    /* PPWarmLinenPanelColor. Nearly solid where the blur below is not supported, so text
       that scrolls underneath never shows through sharp. */
    background: rgba(255, 251, 236, 0.95);
    box-shadow: 0 0 0 1px rgba(0, 51, 102, 0.08), 0 14px 30px -16px rgba(0, 51, 102, 0.45);
    pointer-events: auto;
}

/* Slightly see-through: the page shows through blurred, like frosted glass. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header__inner {
        background: rgba(255, 251, 236, 0.64);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        backdrop-filter: saturate(160%) blur(14px);
    }
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--hdr-brand-gap);
    margin-right: var(--hdr-name-gap);
    color: var(--pp-main);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .pp-icon {
    --pp-icon-size: var(--hdr-icon);
}

/* Narrow bar (no menu): the name fills the room between icon and badges, up to a maximum.
   "PoenPlanner" in Hero Bold is 6.21 em wide; 6.3 leaves a little slack. The font sizes
   on .brand are the fallback for browsers without container units. */
@supports (width: 1cqw) {
    .brand__name {
        --hdr-name-room: calc(100cqw - var(--hdr-icon) - var(--hdr-brand-gap) - var(--hdr-name-gap) - var(--hdr-stores-w));
        font-size: min(var(--hdr-name-room) / 6.3, var(--hdr-name-max));
    }
}

html[data-platform="ios"] .site-header__inner {
    --hdr-stores-w: var(--hdr-ios-w);
}

html[data-platform="android"] .site-header__inner {
    --hdr-stores-w: var(--hdr-android-w);
}

.site-nav {
    display: none;
    gap: 28px;
    margin-left: auto;
}

.site-nav a {
    color: var(--pp-slate);
    font-size: 0.98rem;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--pp-main);
    text-decoration: underline;
}

/* Store badge(s) in the bar: 40 px is the smallest size Apple allows. */
.site-header .stores--header {
    --badge-h: var(--hdr-badge-h);
    flex: none;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0 0 0 auto;
}

/* QR codes on the outside of the badges, on a PC or Mac only (js/qr-code.js). As tall as
   the badges; larger on hover, because a code this small is hard to scan from a screen.
   The right one grows to the left, so it stays on screen. */
.qr {
    display: none;
    position: relative;
    z-index: 1;
    flex: none;
    width: var(--badge-h);
    height: var(--badge-h);
    border: 1px solid var(--pp-stroke-strong);
    border-radius: 7px;
    background: #FFFFFF;
    transform-origin: 50% 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.qr--android {
    transform-origin: 100% 0;
}

.qr:hover {
    border-color: #FFFFFF;
    transform: scale(4);
    box-shadow: 0 3px 8px -2px rgba(0, 51, 102, 0.35);
}

@media (min-width: 600px) {
    .site-header__inner {
        --hdr-badge-h: 44px;
        --hdr-brand-gap: 14px;
        --hdr-name-gap: 16px;
        --hdr-name-max: 1.75rem;
    }

    .brand {
        font-size: 1.6rem;
    }
}

/* Below this width the QR codes would squeeze the name. */
@media (min-width: 680px) {
    html[data-platform="desktop"] .qr:not(:empty) {
        display: block;
    }

    html[data-platform="desktop"] .site-header__inner {
        --hdr-stores-w: calc(var(--hdr-ios-w) + var(--hdr-android-w) + 2 * var(--hdr-badge-h) + 30px);
    }
}

/* Wide bar, with the menu. The menu needs less room next to one badge (phone, tablet)
   than next to two. */
@media (min-width: 880px) {
    html[data-platform="ios"] .site-nav,
    html[data-platform="android"] .site-nav {
        display: flex;
    }

    html[data-platform="ios"] .site-header__inner,
    html[data-platform="android"] .site-header__inner {
        gap: 28px;
    }

    html[data-platform="ios"] .brand,
    html[data-platform="android"] .brand {
        margin-right: 0;
        font-size: 1.4rem;
    }

    html[data-platform="ios"] .brand__name,
    html[data-platform="android"] .brand__name {
        font-size: inherit;
    }

    html[data-platform="ios"] .site-header .stores--header,
    html[data-platform="android"] .site-header .stores--header {
        margin-left: 0;
    }
}

/* With two badges and two QR codes, the menu fits from 1100 px. */
@media (min-width: 1100px) {
    .site-nav {
        display: flex;
    }

    .site-header__inner {
        gap: 28px;
    }

    .brand {
        margin-right: 0;
        font-size: 1.4rem;
    }

    .brand__name {
        font-size: inherit;
    }

    .site-header .stores--header {
        margin-left: 0;
    }
}

/* Narrow phones: keep icon, name and badge on one line. */
@media (max-width: 379px) {
    .site-header__inner {
        --hdr-brand-gap: 10px;
        --hdr-name-gap: 10px;
    }

    .brand {
        font-size: 1rem;
    }
}

@media (max-width: 339px) {
    .brand__name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
}

/* The app icon in layers that js/icon-anim.js moves. Stacked at rest they are the icon. */
.pp-icon {
    --pp-icon-size: 60px;
    position: relative;
    display: block;
    flex: none;
    width: var(--pp-icon-size);
    height: var(--pp-icon-size);
}

.pp-icon__layer {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
}

.pp-icon__loop {
    opacity: 0;
    pointer-events: none;
}

/* Pivots as a share of the 1024 px artwork: the centre of the phone, the foot of the
   chair's rear leg, the hip. Same points as in OnboardingNameStepView.xaml.cs. */
.pp-icon__phone {
    transform-origin: 30.86% 49.22%;
}

.pp-icon__seat {
    transform-origin: 82.03% 73.05%;
}

.pp-icon__body {
    transform-origin: 76.66% 55.66%;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

/* Phones: the text centred above the portrait illustration, which leaves 2.5% of the screen
   width free on each side. Wider screens put the text in the empty areas of the landscape
   illustration, calibrated to that image (see README.md). */
.hero {
    --hero-bg: var(--pp-hero-paper);
    --hero-top: calc(var(--header-height) - 2px);     /* the header bar and the 8 px above it */
    --hero-art-w: 95vw;
    margin-top: calc(-1 * var(--hero-top));
    padding-top: calc(var(--hero-top) + 8px);
    padding-bottom: 16px;
    background: var(--hero-bg);
    overflow: hidden;
}

@supports (height: 1svh) {
    :root {
        --hero-fit-h: 100svh;
    }
}

.hero__art {
    position: relative;
    width: min(100%, var(--hero-art-w));
    margin-inline: auto;
    container-type: inline-size;
}

.hero__art picture {
    display: block;
}

/* The edges dissolve into the band, so the picture has no visible border. */
.hero__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent), linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent), linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    mask-composite: intersect;
}

.hero__copy {
    padding: 8px 0 14px;
    text-align: center;
}

/* The first sizes are for browsers without container units. */
.hero h1 {
    margin: 0;
    font-size: calc(var(--hero-art-w) * 0.15);
    font-size: 15cqw;
    line-height: 1.1;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.hero__sub {
    margin: 6px 0 0;
    color: var(--pp-slate);
    font-size: max(0.875rem, calc(var(--hero-art-w) * 0.05));
    font-size: max(0.875rem, 5cqw);
    line-height: 1.35;
}

.hero__line {
    display: block;
}

/* Wider than a phone: the landscape illustration, shown whole. It is as wide as the header
   bar at most, and narrower when the window is too low to show it whole. */
@media (min-width: 540px) {
    .hero {
        --hero-art-w: var(--hero-wide-art-w);
    }

    .hero__art {
        aspect-ratio: 3 / 2;
    }

    .hero__img {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .hero__copy {
        display: contents;
    }

    .hero h1,
    .hero__sub {
        position: absolute;
        z-index: 1;
        margin: 0;
        text-align: left;
        transform: translateY(-50%);
    }

    .hero h1 {
        top: 21.8%;
        left: 6%;
        font-size: calc(var(--hero-art-w) * 0.054);
    }

    .hero__sub {
        top: 79%;
        left: 53%;
        right: 3%;
        font-size: clamp(1rem, calc(var(--hero-art-w) * 0.021), 1.5rem);
        font-size: clamp(1rem, 2.1cqw, 1.5rem);
        line-height: 1.4;
    }
}

/* ------------------------------------------------------------------ */
/* Intro                                                               */
/* ------------------------------------------------------------------ */

.intro {
    overflow: hidden;
}

.intro__inner {
    display: grid;
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}

.intro__text {
    max-width: 36rem;
}

.lead,
.feature__text > h2 + p,
.feature__text > h3 + p {
    margin-top: 22px;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    line-height: 1.6;
}

.intro__visual {
    position: relative;
    display: grid;
    place-items: center;
}

.intro__visual::before {
    content: "";
    position: absolute;
    width: min(130%, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--pp-panel) 0%, var(--pp-panel) 35%, rgba(255, 251, 236, 0) 100%);
}

@media (min-width: 780px) {
    .intro__inner {
        grid-template-columns: minmax(310px, 0.85fr) minmax(0, 1.15fr);
    }

    .intro__visual {
        order: -1;
    }
}

/* ------------------------------------------------------------------ */
/* Store buttons                                                       */
/* ------------------------------------------------------------------ */

.stores {
    --badge-h: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.stores--center {
    justify-content: center;
}

.store {
    display: block;
    border-radius: 9px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.store:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

.store img {
    display: block;
    width: auto;
    height: var(--badge-h);
}

/* One store button on a phone, both on a PC or Mac. See js/platform.js. */
html[data-platform="ios"] .store--android,
html[data-platform="android"] .store--ios {
    display: none;
}

html[data-platform="ios"] main .stores,
html[data-platform="android"] main .stores {
    --badge-h: 56px;
}

.trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.trust li,
.checks li {
    position: relative;
    padding-left: 26px;
}

.trust li::before,
.checks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.42em;
    width: 13px;
    height: 7px;
    border-left: 2.5px solid var(--pp-up);
    border-bottom: 2.5px solid var(--pp-up);
    transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/* Phone with a screenshot                                             */
/* ------------------------------------------------------------------ */

.phone {
    position: relative;
    width: min(100%, 310px);
    padding: 10px;
    border-radius: 44px;
    background: #10263D;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 30px 50px -28px rgba(0, 51, 102, 0.55), 0 10px 18px -12px rgba(0, 51, 102, 0.3);
}

@media (max-width: 599px) {
    .phone {
        width: min(100%, 280px);
        padding: 9px;
        border-radius: 40px;
    }

    .phone__screen {
        border-radius: 31px;
    }
}

.phone__screen {
    position: relative;
    /* 6.5 inch phone, 19.5:9. Matches an iPhone 14 and a Galaxy A57 screenshot. */
    aspect-ratio: 9 / 19.5;
    overflow: hidden;
    border-radius: 34px;
    background: var(--pp-panel);
}

.phone__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* The goals screenshots overlap by 779 pixels at their original 1284 x 2778 size. */
.phone__scroll-window {
    position: absolute;
    inset: 0;
    clip-path: inset(4.5% 0 13.5% 0);
}

.phone__scroll-footer {
    clip-path: inset(86.5% 0 0 0);
}

.phone__scroll-content {
    position: absolute;
    inset: 0;
}

.phone__scroll-part2 {
    transform: translateY(28.04%);
    clip-path: inset(43.95% 0 0 0);
}

.phone__scroll-content.is-scrolling {
    transform: translateY(-28.04%);
    transition: transform 3s linear;
}

@media (prefers-reduced-motion: reduce) {
    .phone__scroll-content.is-scrolling {
        transition: none;
    }
}

.phone__img[hidden] {
    display: none;
}

.phone.has-shot .shot-todo {
    display: none;
}

/* Placeholder: tells which app screen still has to be captured. */
.shot-todo {
    position: absolute;
    inset: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 14px;
    border: 2px dashed var(--pp-stroke-strong);
    border-radius: 24px;
    text-align: center;
    line-height: 1.4;
}

.shot-todo__nr {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shot-todo__title {
    color: var(--pp-main);
    font-size: 1.2rem;
    line-height: 1.2;
}

.shot-todo__desc {
    font-size: 0.85rem;
}

.shot-todo__file {
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--pp-accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.band {
    padding-block: var(--band);
}

.band--panel {
    background: var(--pp-panel);
    border-block: 1px solid var(--pp-stroke);
}

.band--accent {
    background: var(--pp-accent);
    border-block: 1px solid var(--pp-stroke);
}

.section-head {
    max-width: 42rem;
    margin: 0 auto clamp(32px, 5vw, 56px);
    text-align: center;
}

.section-head p {
    margin-top: 14px;
    font-size: 1.15rem;
}

.section-foot {
    margin-top: 32px;
    text-align: center;
}

/* Plan / Relax / Repeat */

.principle {
    padding-block: clamp(40px, 6vw, 64px);
}

.principle__grid {
    display: grid;
    gap: 28px clamp(28px, 5vw, 64px);
}

.principle__item h3 {
    margin-bottom: 8px;
}

.principle__item h3::after {
    content: ".";
    color: var(--pp-link);
}

@media (min-width: 760px) {
    .principle__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Feature rows */

.features {
    padding-bottom: clamp(24px, 4vw, 48px);
}

.feature {
    display: grid;
    gap: 36px;
    align-items: center;
    padding-block: clamp(28px, 5vw, 56px);
}

.feature__text {
    max-width: 34rem;
}

.feature__text h2,
.feature__text h3 {
    font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Jouw doelen: one feature row in a band of its own, right under the hero. */
.goals {
    background: var(--pp-hero-paper);
    border-top: 0;
}

.goals .feature {
    padding-block: 0;
}

@media (max-width: 539px) {
    .goals {
        padding-top: 24px;
    }
}

/* A review
   included, so the shadow follows its shape. */
.review {
    max-width: 26rem;
    margin: 28px 0 0;
}

.review img {
    display: block;
    width: 100%;
    filter: drop-shadow(0 10px 14px rgba(0, 51, 102, 0.14));
}

.feature__visual {
    display: grid;
    place-items: center;
}

.checks {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

@media (min-width: 860px) {
    .feature {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(40px, 7vw, 96px);
    }

    .feature__text {
        justify-self: end;
    }

    .feature:nth-of-type(even) .feature__visual {
        order: -1;
    }

    .feature:nth-of-type(even) .feature__text {
        justify-self: start;
    }
}

/* Cards */

.cards {
    display: grid;
    gap: 20px;
}

.card {
    padding: 26px 24px;
    border: 1px solid var(--pp-stroke);
    border-radius: var(--radius);
    background: var(--pp-panel);
    box-shadow: var(--shadow-card);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card p {
    font-size: 1rem;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--pp-selection);
    color: var(--pp-main);
}

.card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 620px) {
    .cards--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 820px) {
    .cards--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .cards--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Kosten */

.prices {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.price {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border: 1px solid var(--pp-stroke);
    border-radius: var(--radius);
    background: var(--pp-page);
}

/* The one with the free trial: a quiet blue edge, the app's selection colour. */
.price--trial {
    border-color: #A9C9F5;
    box-shadow: 0 0 0 3px rgba(204, 224, 255, 0.6);
}

.price h3 {
    font-size: 1.1rem;
}

.price__amount {
    margin: 16px 0 14px;
    color: var(--pp-main);
}

.price__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.price__per {
    display: block;
    margin-top: 4px;
    color: var(--pp-slate);
    font-size: 0.95rem;
}

.price__tag {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 3px 14px;
    border-radius: 999px;
    background: var(--pp-selection);
    color: var(--pp-main);
    font-size: 0.85rem;
    font-weight: 700;
}

.price__text {
    font-size: 0.98rem;
}

.prices__note {
    max-width: 46rem;
    margin: 28px auto 0;
    font-size: 0.95rem;
    text-align: center;
}

@media (min-width: 620px) {
    .prices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1040px) {
    .prices {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.honest {
    margin-top: clamp(40px, 6vw, 64px);
    padding: 28px 26px;
    border: 1px solid var(--pp-stroke);
    border-radius: var(--radius);
    background: var(--pp-page);
}

.honest h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.plain-list {
    display: grid;
    gap: 14px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
}

.plain-list strong {
    color: var(--pp-main);
}

@media (min-width: 900px) {
    .plain-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Veelgestelde vragen */

.faq {
    display: grid;
    gap: 12px;
}

.faq details {
    border: 1px solid var(--pp-stroke);
    border-radius: 14px;
    background: var(--pp-panel);
}

.faq summary {
    position: relative;
    padding: 18px 56px 18px 22px;
    color: var(--pp-main);
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

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

.faq summary::before,
.faq summary::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 14px;
    height: 2px;
    margin-top: -1px;
    border-radius: 1px;
    background: var(--pp-slate);
    transition: transform 0.2s ease;
}

.faq summary::after {
    transform: rotate(90deg);
}

.faq details[open] summary::after {
    transform: rotate(0deg);
}

.faq summary:focus-visible {
    border-radius: 14px;
}

.faq__answer {
    padding: 0 22px 20px;
}

/* ------------------------------------------------------------------ */
/* Download + footer                                                   */
/* ------------------------------------------------------------------ */

.cta {
    padding-block: clamp(64px, 9vw, 112px);
    background: var(--pp-main);
    color: var(--pp-page);
    text-align: center;
}

.cta .pp-icon {
    --pp-icon-size: 96px;
    margin: 0 auto 22px;
}

.cta h1,
.cta h2 {
    margin-bottom: 12px;
    color: var(--pp-panel);
}

.cta__word {
    display: inline-block;
    transform: scale(calc(1 + 0.12 * var(--pp-word-emphasis, 0)));
    -webkit-text-stroke: calc(0.5px * var(--pp-word-emphasis, 0)) currentColor;
}

.cta p {
    font-size: 1.15rem;
}

.cta :focus-visible {
    outline-color: var(--pp-selection);
}

/* 404.html: the download band, filling the screen. */
.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
}

.not-found a:not(.store) {
    color: var(--pp-panel);
    font-weight: 700;
}

.not-found a:not(.store):hover {
    color: var(--pp-selection);
}

.site-footer {
    padding-block: 32px;
    background: var(--pp-main-deep);
    color: rgba(255, 251, 236, 0.78);
    font-size: 0.9rem;
}

.site-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
}

.site-footer__brand {
    color: var(--pp-panel);
    font-size: 1.05rem;
    font-weight: 700;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.site-footer a {
    color: var(--pp-panel);
}

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

.site-footer :focus-visible {
    outline-color: var(--pp-selection);
}

.site-footer__legal {
    margin-top: 20px;
    font-size: 0.78rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */

/* .reveal-on is set by js/site.js, so without JavaScript everything is simply visible. */
.reveal-on .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal-on .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .store,
    .qr,
    .faq summary::before,
    .faq summary::after {
        transition: none;
    }

    .cta__word {
        --pp-word-emphasis: 0 !important;
    }
}
