/* ==========================================================================
   Unroll — landing page
   Single stylesheet, no framework and no external requests.

   Palette from the design team:
     #FFC0D2  blush
     #DAC2FF  lilac
     #FFFFFF  paper
   Two deeper shades of the same two hues (--blush-deep, --lilac-deep) are
   used only inside gradients, so the page can carry real colour without
   introducing a third hue.
   ========================================================================== */

:root {
    /* Base — true black, matching the app's own UI */
    --ink: #000000;
    --surface: #121214;
    --surface-2: #1b1b1f;
    --hairline: rgba(255, 255, 255, 0.10);
    --hairline-strong: rgba(255, 255, 255, 0.20);

    /* Brand */
    --blush: #ffc0d2;
    --blush-deep: #ff8fb4;
    --lilac: #dac2ff;
    --lilac-deep: #b394ff;
    --paper: #ffffff;

    /* Text */
    --text: #d8d8df;
    --muted: #8d8d97;
    --on-light: #1a1420;      /* body text on the pastel band */
    --on-light-soft: #4a3f57;

    /* Type — system stack resolves to SF Pro on iPhone and macOS, the same
       face the app itself uses, with nothing to download */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;

    --wrap: 1180px;
    --nav-h: 68px;
}

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

html {
    scroll-padding-top: calc(var(--nav-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;          /* the hero glows extend past the viewport */
    -webkit-font-smoothing: antialiased;
}

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 24px;
}

a {
    color: var(--blush);
    text-underline-offset: 3px;
}

:focus-visible {
    outline: 2px solid var(--lilac);
    outline-offset: 3px;
    border-radius: 8px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 24px;
    top: 12px;
    z-index: 80;
    padding: 10px 16px;
    background: var(--paper);
    color: #000;
    border-radius: 999px;
    text-decoration: none;
}

/* Screen-reader-only text, for labels that shouldn't be shown */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border: 0;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
}

/* Primary sits on dark backgrounds: the brand gradient, dark text on top */
.btn--primary {
    background: linear-gradient(115deg, var(--blush) 0%, var(--lilac) 100%);
    color: #16101d;
    box-shadow: 0 10px 34px rgba(255, 192, 210, 0.22);
}

.btn--primary:hover {
    filter: brightness(1.06);
}

/* Ghost for the secondary action */
.btn--ghost {
    background: transparent;
    border: 1px solid var(--hairline-strong);
    color: var(--paper);
}

.btn--ghost:hover {
    border-color: var(--paper);
}

/* Inverted primary, for use on the light pastel band */
.btn--dark {
    background: #16101d;
    color: var(--paper);
}

.btn--dark:hover {
    background: #251c31;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--hairline);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    color: var(--paper);
    font-size: 1.125rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    text-decoration: none;
}

/* Swap this for <img class="brand__mark" src="assets/img/icon.png" alt="">
   once the app icon is in place; the gradient chip is the stand-in */
.brand__mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    /* background: linear-gradient(135deg, var(--blush), var(--lilac)); */
    object-fit: cover;
}

.nav__links {
    display: flex;
    gap: 26px;
    font-size: 0.9375rem;
}

.nav__links a {
    color: var(--muted);
    text-decoration: none;
}

.nav__links a:hover {
    color: var(--paper);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 72px 0 24px;
    overflow: hidden;
}

/* Two large colour fields behind the hero. This is where most of the page's
   colour comes from, so they are stronger than a typical background wash */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    top: -150px;
    left: -80px;
    width: 560px;
    height: 560px;
    background: rgba(255, 143, 180, 0.46);
}

.hero::after {
    top: 20px;
    right: -140px;
    width: 620px;
    height: 620px;
    background: rgba(179, 148, 255, 0.42);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 7px 16px 7px 12px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.8125rem;
}

.hero__eyebrow b {
    color: var(--blush);
    font-weight: 600;
}

.hero__title {
    margin: 0 0 22px;
    color: var(--paper);
    font-size: clamp(2.75rem, 6vw, 4.25rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hero__lead {
    margin: 0 0 32px;
    max-width: 48ch;
    font-size: clamp(1.0625rem, 2vw, 1.1875rem);
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero__fineprint {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

/* Phone frame holding the real app screenshot */
.phone {
    position: relative;
    justify-self: center;
    width: min(320px, 78vw);
    padding: 10px;
    border: 1px solid var(--hairline-strong);
    border-radius: 52px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.phone__screen {
    border-radius: 42px;
    overflow: hidden;
    background: #000;
}

.phone__screen img {
    width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Section furniture
   -------------------------------------------------------------------------- */
.section {
    padding: 88px 0;
}

.section__head {
    max-width: 52ch;
    margin-bottom: 44px;
}

.section__title {
    margin: 0 0 14px;
    color: var(--paper);
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section__lead {
    margin: 0;
    font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Three ways to start — dashed tiles lifted from the app's home screen
   -------------------------------------------------------------------------- */
.starts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.start {
    padding: 30px 26px 26px;
    border: 1px dashed var(--hairline-strong);
    border-radius: 26px;
    background: var(--surface);
}

.start__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
}

.start__icon svg {
    width: 28px;
    height: 28px;
}

/* Each tile takes one of the two brand hues, alternating */
.start:nth-child(1) .start__icon svg { stroke: var(--blush); }
.start:nth-child(2) .start__icon svg { stroke: var(--lilac); }
.start:nth-child(3) .start__icon svg { stroke: var(--blush); }

.start__title {
    margin: 0 0 8px;
    color: var(--paper);
    font-size: 1.1875rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.start__body {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Templates — the full-bleed pastel band, the page's colour centrepiece
   -------------------------------------------------------------------------- */
.band {
    padding: 84px 0;
    background: linear-gradient(135deg, var(--blush) 0%, #f0cfe6 46%, var(--lilac) 100%);
    color: var(--on-light-soft);
}

.band .section__title {
    color: var(--on-light);
}

.band .section__lead {
    color: var(--on-light-soft);
}

.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
}

.category {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 190px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--on-light);
    font-size: 1.0625rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(90, 50, 110, 0.12);
}

.category:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Four tiles in a 2x2 grid, echoing the collage thumbnails in the app's
   Templates row. Drawn with backgrounds rather than real photography, so no
   image assets are needed and nothing has to be licensed.
   --c1/--c2 are set per card below. */
.category::before {
    content: "";
    position: absolute;
    inset: 12px 12px 52px;
    border-radius: 14px;
    background-repeat: no-repeat;
    background-size: calc(50% - 1.5px) calc(50% - 1.5px);
    background-position: 0 0, 100% 0, 0 100%, 100% 100%;
    background-image:
        linear-gradient(140deg, var(--c1), var(--c2)),
        linear-gradient(140deg, var(--c2), var(--c1)),
        linear-gradient(200deg, var(--c2), var(--c1)),
        linear-gradient(160deg, var(--c1), var(--c2));
}

/* Each category gets its own pairing of the two brand hues, so the row reads
   as four distinct sets rather than one repeated swatch */
.category--1 { --c1: #ff8fb4; --c2: #ffc0d2; }
.category--2 { --c1: #b394ff; --c2: #ffc0d2; }
.category--3 { --c1: #ff8fb4; --c2: #dac2ff; }
.category--4 { --c1: #dac2ff; --c2: #ffffff; }

.band__note {
    margin: 0;
    color: var(--on-light-soft);
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature {
    padding: 26px;
    border: 1px solid var(--hairline);
    border-radius: 20px;
    background: var(--surface);
}

/* A short gradient rule rather than an icon block: it divides the card and
   carries the brand colour without pretending to be a meaningful glyph */
.feature__rule {
    width: 30px;
    height: 3px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blush), var(--lilac));
}

.feature:nth-child(3n+2) .feature__rule {
    background: linear-gradient(90deg, var(--lilac), var(--blush));
}

.feature__title {
    margin: 0 0 8px;
    color: var(--paper);
    font-size: 1.0625rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.feature__body {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Privacy strip
   -------------------------------------------------------------------------- */
.privacy {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    padding: 40px;
    border: 1px dashed var(--hairline-strong);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 192, 210, 0.08), rgba(218, 194, 255, 0.05)),
        var(--surface);
}

.privacy__title {
    margin: 0 0 12px;
    color: var(--paper);
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.privacy__body {
    margin: 0;
    font-size: 1rem;
}

.privacy__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;      /* sit against the panel edge, not mid-column */
}

/* --------------------------------------------------------------------------
   Closing call to action
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    padding: 84px 0 92px;
    overflow: hidden;
    text-align: center;
}

.cta::before {
    content: "";
    position: absolute;
    bottom: -320px;
    left: 50%;
    width: 900px;
    height: 620px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(255, 143, 180, 0.38);
    filter: blur(80px);
    pointer-events: none;
}

.cta > .wrap {
    position: relative;
    z-index: 1;
}

.cta__title {
    margin: 0 auto 18px;
    max-width: 24ch;
    color: var(--paper);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.cta__lead {
    margin: 0 auto 30px;
    max-width: 46ch;
    font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--hairline);
    padding: 36px 0 44px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.875rem;
}

.footer p {
    margin: 0;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer__links a {
    color: var(--muted);
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--paper);
}

/* --------------------------------------------------------------------------
   One orchestrated page-load reveal, applied only to the hero.
   Everything is visible by default, so a failed script or a reduced-motion
   preference never leaves content hidden.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(14px);
    }

    .js .reveal.is-in {
        opacity: 1;
        transform: none;
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Stagger the hero's own children slightly */
    .js .reveal:nth-child(2).is-in { transition-delay: 0.06s; }
    .js .reveal:nth-child(3).is-in { transition-delay: 0.12s; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .hero__lead {
        margin-inline: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .section__head {
        margin-inline: auto;
        text-align: center;
    }

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

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

    .privacy {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .privacy__actions {
        align-items: center;
    }
}

@media (max-width: 720px) {
    .nav__links {
        display: none;         /* the two CTAs stay reachable; links repeat in the footer */
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .wrap {
        padding-inline: 18px;
    }

    .section {
        padding: 64px 0;
    }

    .band {
        padding: 64px 0;
    }

    .starts,
    .features {
        grid-template-columns: 1fr;
    }

    .privacy {
        padding: 28px 22px;
    }

    .hero__actions .btn {
        width: 100%;
    }
}
