/* ============================================================
   Reflective — marketing site
   Tokens lifted from the Wilma design system via landing.css.
   site.css owns: tokens, base, type, buttons, nav, shared bands,
   footer, responsive core. Page components live in pages.css /
   components.css; motion lives in motion.css.
   ============================================================ */
:root {
    --primary: #702963;
    --primary-50: #faf3f8;
    --primary-100: #f3e3ee;
    --primary-200: #e6c9de;
    --primary-300: #cf9ec1;
    --primary-400: #a85f93;
    --primary-600: #5e2253;
    --primary-700: #4d1c44;
    --primary-tint: #fbf6fa;

    --accent: #5d7a62;
    --accent-50: #f3f6f3;
    --accent-100: #e3ebe4;
    --accent-200: #c5d4c8;
    --accent-300: #9fb6a4;
    --accent-400: #7a9580;
    --accent-600: #4a6450;
    --accent-700: #3a4f3f;
    --accent-tint: #f7faf7;

    --bg: #fafaf9;
    --bg-2: #f5f5f4;
    --surface: #ffffff;
    --surface-2: #fbfaf9;
    --border: #e7e5e4;
    --border-strong: #d6d3d1;
    --hairline: #ececea;

    --text: #1c1917;
    --text-2: #44403c;
    --text-3: #78716c;
    --text-4: #a8a29e;

    --navy: #1e2a47;
    --navy-2: #243155;
    --navy-3: #2c3a62;
    --navy-deep: #16203a;
    --navy-text: #cfd6e6;
    --navy-text-muted: #8c97b3;

    --hue-rose: #b94a6c;
    --hue-amber: #b07a32;
    --hue-sage: #6a8a6f;
    --hue-teal: #4d7a85;
    --hue-indigo: #4a5b94;

    --font-sans:
        ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
        'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-2xl: 22px;

    --shadow-sm:
        0 1px 2px rgba(28, 25, 23, 0.06), 0 1px 3px rgba(28, 25, 23, 0.04);
    --shadow-md:
        0 4px 12px rgba(28, 25, 23, 0.06), 0 2px 4px rgba(28, 25, 23, 0.04);
    --shadow-lg:
        0 12px 32px rgba(28, 25, 23, 0.08), 0 4px 12px rgba(28, 25, 23, 0.05);
    --ring: 0 0 0 3px rgba(112, 41, 99, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

::selection {
    background: var(--primary-100);
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--surface);
    color: var(--text);
    padding: 10px 18px;
    border-radius: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
}

/* ---------------- Type ---------------- */
h1,
h2,
h3 {
    margin: 0;
    text-wrap: balance;
}

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 16px;
}

.h-display {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(42px, 4.6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.015em;
}
.h-display em,
.h-section em {
    font-style: italic;
    font-weight: 600;
    color: var(--primary);
}

.h-section {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.lede {
    font-size: 18.5px;
    line-height: 1.65;
    color: var(--text-2);
    text-wrap: pretty;
    margin: 20px 0 0;
}

.body-copy {
    color: var(--text-2);
    text-wrap: pretty;
    margin: 16px 0 0;
}

/* Keeps hyphenated compounds from splitting across lines. */
.nowrap {
    white-space: nowrap;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 12px 24px;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(77, 28, 68, 0.25);
}
.btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(77, 28, 68, 0.22);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover {
    border-color: var(--text-4);
    background: var(--surface);
    transform: translateY(-1px);
}
.btn-on-dark {
    background: #f5f1e8;
    color: var(--navy);
}
.btn-on-dark:hover {
    background: #fff;
    transform: translateY(-1px);
}
.btn-ghost-dark {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-dark:hover {
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}
.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.trust-line {
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-3);
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.trust-line .sep {
    color: var(--border-strong);
}

/* ---------------- Nav ---------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 249, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--hairline);
    transition: box-shadow 0.3s ease;
}
.nav.scrolled {
    box-shadow: 0 2px 16px rgba(28, 25, 23, 0.06);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 36px;
    height: 64px;
    transition: height 0.28s ease;
}
.nav.scrolled .nav-inner {
    height: 50px;
}
.nav-logo img {
    height: 54px;
    width: auto;
    transition: height 0.28s ease;
}
.nav.scrolled .nav-logo img {
    height: 27px;
}
.nav-links {
    display: flex;
    gap: 28px;
    flex: 1;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.15s ease;
}
.nav-links a:hover {
    color: var(--text);
}
.nav-links a[aria-current='page'] {
    color: var(--text);
    font-weight: 600;
}
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.nav-signin {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    padding: 8px 10px;
}
.nav-signin:hover {
    color: var(--text);
}

/* ---------------- Section scaffolding ---------------- */
.watercolor {
    mix-blend-mode: multiply;
}

.section {
    padding: 110px 0;
}
.section-sm {
    padding: 72px 0;
}
.section-head {
    max-width: 640px;
    margin-bottom: 56px;
}
.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-hero {
    padding: 80px 0 56px;
}
.page-hero .h-display {
    font-size: clamp(38px, 4vw, 52px);
    max-width: 20ch;
}
.page-hero.center {
    text-align: center;
}
.page-hero.center .h-display,
.page-hero.center .lede {
    margin-left: auto;
    margin-right: auto;
}
.page-hero.center .lede {
    max-width: 54ch;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.split-section .art img {
    width: 100%;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 14px;
}
.checklist li {
    position: relative;
    padding-left: 21px;
    color: var(--text-2);
    text-wrap: pretty;
}
.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-300);
}
.checklist li b {
    color: var(--text);
    font-weight: 600;
}

/* ---------------- Shared bands ---------------- */
.band-white {
    background: var(--surface);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}
.band-sage {
    background: var(--accent-tint);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

/* ---------------- Art frames ----------------
   Every illustration sits in a deliberate frame: a softly tinted
   rounded panel. The watercolor's white paper multiplies into the
   panel tint, so art melts into its frame instead of floating as a
   white rectangle on the page background. */
.art-frame {
    border-radius: var(--r-2xl);
    padding: clamp(24px, 4vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.art-frame > img {
    mix-blend-mode: multiply;
    width: 100%;
    height: auto;
}
.art-frame.plum {
    background: var(--primary-tint);
}
.art-frame.sage {
    background: var(--accent-tint);
}
.art-frame.warm {
    background: #faf6f0;
}
.art-frame.paper {
    background: var(--surface);
    border: 1px solid var(--hairline);
}

/* Feather an illustration's outer edges so floor/scene washes
   dissolve into the surrounding panel instead of ending in a
   hard rectangle. */
.img-feather {
    -webkit-mask-image: radial-gradient(
        ellipse 90% 88% at 50% 50%,
        black 58%,
        transparent 96%
    );
    mask-image: radial-gradient(
        ellipse 90% 88% at 50% 50%,
        black 58%,
        transparent 96%
    );
}

.security {
    background: var(--navy);
    color: #fff;
}
.security .h-section {
    color: #f5f1e8;
}
.security .lede {
    color: var(--navy-text);
}
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.security-item {
    border: 1px solid var(--navy-3);
    border-radius: var(--r-xl);
    padding: 26px 26px;
    background: var(--navy-2);
}
.security-item h3 {
    font-size: 15.5px;
    font-weight: 600;
    color: #fff;
}
.security-item p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--navy-text);
    line-height: 1.55;
    text-wrap: pretty;
}

.final-cta {
    background: var(--primary-tint);
    border-top: 1px solid var(--hairline);
    text-align: center;
}
.final-cta .h-section {
    max-width: 20ch;
    margin: 0 auto;
}
.final-cta .lede {
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}
.final-cta .cta-row {
    justify-content: center;
}
.final-cta .fine {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-3);
}

.store-badges {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.store-badge {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--text);
    color: #fff;
    border-radius: 10px;
    padding: 8px 18px;
    text-decoration: none;
    line-height: 1.25;
}
.store-badge .sb-pre {
    font-size: 10px;
    opacity: 0.75;
}
.store-badge .sb-name {
    font-size: 15px;
    font-weight: 600;
}

/* Official store artwork: no chrome of our own, sized by height only. */
.store-badge-img {
    background: none;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
}
.store-badge-img img {
    height: 56px;
    width: auto;
    display: block;
}
.footer .store-badge-img {
    background: none;
}

/* Section head with a CTA sitting to the right of the copy. */
.section-head-wide {
    max-width: none;
}
/* Copy spans the first two of the three card columns below
   (3 x 1fr with a 24px gap => 2 cols + one gap). */
.section-head-wide > .eyebrow,
.section-head-wide > h2 {
    max-width: calc((200% - 24px) / 3);
}
/* Lede keeps that two-column span; the CTA centers in the third column. */
.lede-cta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: center;
}
.lede-cta-row .lede {
    grid-column: 1 / 3;
    max-width: none;
    margin-bottom: 0;
}
.lede-cta-row .cta-row {
    grid-column: 3;
    margin-top: 0;
    justify-content: center;
}
.btn .btn-arrow {
    flex-shrink: 0;
    transition: transform 0.18s ease;
}
.btn:hover .btn-arrow {
    transform: translateX(3px);
}
@media (max-width: 760px) {
    .lede-cta-row {
        display: block;
    }
    .lede-cta-row .cta-row {
        margin-top: 32px;
    }
}

/* ---------------- Footer ---------------- */
.footer {
    background: var(--navy);
    color: var(--navy-text);
    padding: 64px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
}
.footer-logo img {
    height: 25px;
    width: auto;
}
.footer-tag {
    font-size: 13.5px;
    line-height: 1.6;
    margin-top: 16px;
    max-width: 30ch;
    color: var(--navy-text-muted);
}
.footer h4 {
    margin: 0 0 14px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy-text-muted);
}
.footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}
.footer-col a {
    font-size: 14px;
    color: var(--navy-text);
    text-decoration: none;
}
.footer-col a:hover {
    color: #fff;
}
.footer .store-badges {
    margin-top: 0;
}
.footer .store-badge {
    background: var(--navy-3);
}
.footer-base {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--navy-3);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--navy-text-muted);
}

/* ---------------- Responsive core ---------------- */
@media (max-width: 960px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .split-section.art-first .art {
        order: -1;
    }
    .security-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .nav-links {
        display: none;
    }
    .page-hero .h-display {
        font-size: 38px;
    }
    .section {
        padding: 80px 0;
    }
}
@media (max-width: 640px) {
    .wrap {
        padding: 0 20px;
    }
    .nav-inner {
        gap: 14px;
    }
    .nav-signin,
    .btn-sm {
        white-space: nowrap;
    }
    .btn-sm {
        padding: 8px 14px;
    }
}
