/* ============================================================
   Homewise — site styles (faithful to homewise.nl)
   ============================================================ */

:root {
    --brand-orange: #f36c21;
    --brand-coral: #fb6704;
    --brand-magenta: #e848ba;
    --ink-900: #0a0a0a;
    --ink-700: #2a2a2a;
    --ink-600: #404040;
    --ink-500: #737373;
    --ink-400: #9a9a9a;
    --ink-200: #e8e8ea;
    --surface: #ffffff;
    --surface-soft: #f5f5f5;
    --surface-soft-2: #fafafa;

    /* Peach hero gradient (sampled from homewise.nl) */
    --peach-1: #ffd9c3;
    --peach-2: #ffe6d2;
    --peach-3: #fff1e2;

    --gradient-brand: linear-gradient(95deg, #fb6704 0%, #f36c21 40%, #e848ba 120%);
    --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.04), 0 1px 1px rgba(15, 15, 15, 0.02);
    --shadow-md: 0 6px 24px rgba(15, 15, 15, 0.06), 0 2px 6px rgba(15, 15, 15, 0.03);
    --shadow-lg: 0 20px 60px rgba(15, 15, 15, 0.10), 0 6px 18px rgba(15, 15, 15, 0.05);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --container-max: 1408px;
    --container-pad: 16px;
    --copy-max: 880px;

    --font-sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--ink-900);
    background-color: var(--peach-3);
    background-image: linear-gradient(180deg, rgb(255, 228, 210) 0%, rgb(247, 247, 247) 47.4%);
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-attachment: fixed;
    line-height: 1.55;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* Mountain backdrop on the home page only — full-bleed across the viewport,
   blended via mix-blend-mode: multiply so the bright sky tints the peach background
   rather than overwriting it (matches the live Framer site). */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: max(100%, 1408px);
    aspect-ratio: 1408 / 1126;
    /* Cap the element's height so its absolute box doesn't extend past natural
       content bottom on wide viewports (e.g. 2500px → 2000px tall would push
       body.scrollHeight beyond content, growing whitespace above the footer). */
    max-height: 1126px;
    background-image: url("/img/hero-landscape.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
    /* Radial fade anchored to fixed pixel offsets so the transition stays put
       regardless of viewport width. Wider ellipse, centered above the page top
       so the fade starts higher up. */
    -webkit-mask-image: radial-gradient(ellipse 2400px 850px at 50% -400px, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
            mask-image: radial-gradient(ellipse 2400px 850px at 50% -400px, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 0;
}
/* Site-wide noise grain overlay — sits below page content so text/buttons stay clean.
   Screen-blended so dark grain lightens the peach gradient subtly (matches live). */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("/img/noise.png");
    background-repeat: repeat;
    background-size: 128px 128px;
    mix-blend-mode: screen;
    opacity: 1;
    pointer-events: none;
    z-index: 1;
}
/* Make sure all page content paints above the noise overlay */
body > * { position: relative; z-index: 3; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 0.4em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; padding: 8px 12px; background: #000; color: #fff; z-index: 9999; border-radius: 6px; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.muted { color: var(--ink-500); }
.eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 14px;
    letter-spacing: 0.005em;
}
/* Home hero eyebrow: large solid orange wordmark (matches homewise.nl) */
.hero--home .eyebrow {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    font-weight: 500;
    color: var(--brand-orange);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
    line-height: 1;
}
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0 0 36px;
    text-align: center;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}
.site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom-color: rgba(15, 15, 15, 0.06);
    box-shadow: 0 4px 16px rgba(15, 15, 15, 0.04);
}
@media (prefers-reduced-motion: reduce) {
    .site-header { transition: none; }
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.brand-logo { display: block; height: 36px; width: auto; }
.brand--footer .brand-logo { height: 32px; }
.site-nav { display: flex; align-items: center; gap: 14px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--ink-900);
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    background: #fff;
}
.nav-link:hover { background: var(--surface-soft); }
.nav-link.is-active { background: var(--ink-900); color: #fff; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--ink-200);
    background: #fff;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink-900); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 60px 0 80px;
    overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }

/* Home hero: single-column centered with phone below */
.hero--home .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}
.hero--home .hero-copy {
    max-width: var(--copy-max);
    width: 100%;
    margin: 0 auto;
}
.hero--home .hero-copy > * { width: 100%; }
.hero--home .hero-intro { margin-left: auto; margin-right: auto; }
.hero--home .eyebrow { margin: 0 0 18px; }
.hero-title {
    font-weight: 600;
    color: var(--ink-900);
    max-width: 100%;
    margin: 0 0 28px;
    overflow-wrap: break-word;
}
.hero--home .hero-title {
    font-size: clamp(2rem, 5.5vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

/* Rotating hero titles: stack via grid, fade up-and-out / in-from-below */
.hero-title-rotator {
    display: grid;
    grid-template-areas: "stack";
    margin: 0 0 28px;
    width: 100%;
}
.hero-title-rotator > .hero-title {
    grid-area: stack;
    justify-self: center;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
    will-change: opacity, transform;
}
.hero-title-rotator > .hero-title.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.hero-title-rotator > .hero-title.is-leaving {
    opacity: 0;
    transform: translateY(-24px);
}
@media (prefers-reduced-motion: reduce) {
    .hero-title-rotator > .hero-title { transition: none; }
}
.hero-intro {
    font-size: 1.05rem;
    color: var(--ink-700);
    margin: 0 0 24px;
}
.hero--home .hero-intro { max-width: 720px; }
.hero-intro p { margin: 0 0 14px; }
.hero-intro p:last-child { margin-bottom: 0; }
.hero-cta {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 500;
    color: var(--brand-orange);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    margin: 8px 0 28px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* App store badges */
.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}
.app-badges--hero { justify-content: center; width: 100%; }
.app-badge {
    display: inline-flex;
    align-items: stretch;
    border-radius: 10px;
    transition: transform 0.15s ease, filter 0.15s ease;
    line-height: 0;
}
.app-badge:hover { transform: translateY(-1px); filter: brightness(1.05); }
.app-badge img { display: block; height: auto; }
.app-badges--hero .app-badge img { height: 56px; width: auto; }
.app-badges--footer .app-badge img { height: 44px; width: auto; }

/* Hero phone mock */
.hero-device {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    /* Warm orange ground-shadow under the device */
    filter:
        drop-shadow(0 30px 60px rgba(243, 108, 33, 0.32))
        drop-shadow(0 8px 20px rgba(243, 108, 33, 0.18));
}
.hero-device-frame {
    position: relative;
    width: 100%;
    max-width: 276px;
    padding: 10px;
    background: #0a0a0a;
    border-radius: 38px;
    overflow: hidden;
    box-shadow:
        inset 0 0 0 1.5px #1a1a1a,
        inset 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.hero-device-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 36%;
    height: 18px;
    background: #0a0a0a;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}
.hero-device-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
    border-radius: 28px;
}

/* Inner-page hero */
.hero--inner {
    padding: 80px 0 80px;
}
.hero--inner .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
}
.hero--inner .hero-copy { max-width: var(--copy-max); position: relative; z-index: 2; }
/* Per-page hero photos replaced by the site-wide mountain backdrop on body::before */
.hero-bg-image { display: none; }
.hero--support, .hero--contact { padding-bottom: 60px; }

/* ---------- Callout band ---------- */
.callout {
    padding: 90px 0 60px;
    background: transparent;
    text-align: center;
}
.callout-inner { max-width: 1000px; margin: 0 auto; }
.callout-body {
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--brand-orange);
    max-width: 980px;
    margin: 0 auto;
}
.callout-body p { margin: 0; }
.callout-char {
    color: var(--peach-1);
    transition: color 220ms ease-in-out;
}
.callout-char.is-lit { color: var(--brand-orange); }
@media (prefers-reduced-motion: reduce) {
    .callout-char { transition: none; }
}

/* ---------- Features ---------- */
.features { padding: 60px 0 80px; background: transparent; }
.feature-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: #fce0d2;
    border-radius: var(--radius-lg);
    padding: 24px;
}
.feature-card {
    background: #fff;
    border: 1px solid rgba(243, 108, 33, 0.18);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 1px 0 rgba(243, 108, 33, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}
.feature-card-image {
    margin: -24px -24px 16px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-soft);
}
.feature-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(243, 108, 33, 0.35);
}
.feature-card h3 { margin: 0 0 6px; }
.feature-card p { color: var(--ink-600); margin: 0; line-height: 1.55; }

/* ---------- Steps ---------- */
.steps { padding: 80px 0 100px; background: transparent; }
.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.step-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    padding: 26px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.step-card h3 { margin: 10px 0 4px; }
.step-card p { color: var(--ink-600); margin: 0; }
.step-num {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1;
}
.step-num--1 { background: #e5f6ff; color: #4ec3f7; }
.step-num--2 { background: #e3f8f4; color: #2bccba; }
.step-num--3 { background: #ffeede; color: #ff8c5a; }

/* ---------- Over / inner prose layout ---------- */
.prose-sections { padding: 60px 0 100px; background: #fff; }
.prose-section {
    max-width: 760px;
    margin: 0 0 48px;
    padding: 0;
}
.prose-section h2 {
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    margin: 0 0 16px;
}
.prose-section .prose-body {
    color: var(--ink-700);
    font-size: 1.02rem;
    line-height: 1.65;
}
.prose-section .prose-body p { margin: 0 0 14px; }

/* ---------- Support layout ---------- */
.support-grid { padding: 80px 0 100px; background: #fff; }
.support-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
}
.support-faq .section-title { text-align: left; margin-bottom: 12px; }
.support-faq .muted { margin-bottom: 18px; }
.support-form { display: flex; flex-direction: column; }

.faq-list { display: flex; flex-direction: column; }
.faq-item {
    border-top: 1px solid var(--ink-200);
}
.faq-item:last-of-type { border-bottom: 1px solid var(--ink-200); }
.faq-item > summary {
    padding: 20px 4px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    gap: 16px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
    content: "+";
    color: var(--brand-orange);
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}
.faq-item[open] > summary::after { content: "−"; }
.faq-answer {
    padding: 0 4px 20px;
    color: var(--ink-600);
}
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--brand-orange); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact / forms ---------- */
.contact-section { padding: 40px 0 100px; background: #fff; }
.contact-inner { max-width: 720px; margin: 0 auto; }

.contact-iframe {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    /* Height tuned to fit the form-builder forms without internal scroll.
       Support form has a select + extra field so it's a bit taller; the
       contact form has whitespace below — adjust here if forms change. */
    height: 600px;
}

/* ---------- Rich text / prose ---------- */
.content-block { padding: 60px 0 100px; background: #fff; }
.rich-text { max-width: 740px; }
.rich-text--prose { font-size: 1.05rem; color: var(--ink-700); }
.rich-text h2 { margin-top: 40px; margin-bottom: 12px; color: var(--ink-900); }
.rich-text h3 { margin-top: 28px; }
.rich-text p { margin: 0 0 16px; }
.rich-text ul, .rich-text ol { padding-left: 1.2em; margin: 0 0 16px; }
.rich-text a { color: var(--brand-orange); text-decoration: underline; text-underline-offset: 3px; }

.policy-list { list-style: none; padding: 0; margin: 0; }
.policy-list li { padding: 10px 0; border-bottom: 1px solid var(--ink-200); }
.policy-list a { color: var(--brand-orange); }

/* ---------- Footer ---------- */
.site-footer {
    background: transparent;
    border-top: 1px solid var(--ink-200);
    padding: 60px 0 24px;
    color: var(--ink-700);
}
.footer-inner {
    display: grid;
    gap: 40px;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    align-items: start;
}
.footer-brand .app-badges { justify-content: flex-start; margin-top: 22px; }
.brand--footer { font-size: 1.15rem; }
.brand--footer .brand-mark { width: 28px; height: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; }
.footer-col h3 { font-size: 0.92rem; font-weight: 600; margin: 0 0 6px; color: var(--ink-900); }
.footer-col a { color: var(--ink-700); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--brand-orange); }
.footer-col p { margin: 0; line-height: 1.55; }
.footer-socials { flex-direction: row; gap: 12px; align-items: center; }
.social {
    display: inline-flex;
    width: 32px; height: 32px;
    align-items: center; justify-content: center;
    background: transparent;
    color: var(--ink-900);
    transition: color 0.15s ease, transform 0.15s ease;
}
.social svg { width: 28px; height: 28px; }
.social:hover { transform: translateY(-1px); color: var(--brand-orange); }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--ink-200);
    color: var(--ink-500);
    font-size: 0.85rem;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink-500); }
.footer-bottom a:hover { color: var(--brand-orange); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero--home .hero-copy { max-width: none; }
    .hero-device-frame { max-width: 240px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .support-grid-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        background: #fff;
        border-bottom: 1px solid var(--ink-200);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
        align-items: stretch;
    }
    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link { padding: 10px 14px; text-align: left; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .feature-grid, .step-list { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 60px; }
    .hero--inner { padding: 80px 0 60px; }
    .callout { padding: 60px 0 30px; }
    .features, .steps, .support-grid, .content-block, .prose-sections { padding: 56px 0 64px; }
    .section-title { margin-bottom: 28px; }
}
