/* ==========================================================================
   NESTLY — Landing Page
   Premium, minimal, sage-green aesthetic
   ========================================================================== */

:root {
    /* Palette — richer, more saturated */
    --sage-50:   #E7EFDC;
    --sage-100:  #CCDDB6;
    --sage-200:  #9FBE83;
    --sage-300:  #7CA55C;
    --sage-400:  #5E8942;   /* primary — rich olive-sage */
    --sage-500:  #486D32;
    --sage-600:  #355226;   /* deep forest-sage */
    --sage-700:  #24391A;

    --cream-50:  #FAF2DC;
    --cream-100: #EFE1BA;
    --cream-200: #D7BF87;

    --ink-900:   #141611;   /* warm near-black */
    --ink-700:   #2C2F28;
    --ink-500:   #54584D;
    --ink-300:   #9A9C8E;
    --ink-100:   #D6D2BF;

    --bg:        #F9F1D9;   /* warm cream — no longer washed */
    --bg-alt:    #EEE1BA;
    --bg-dark:   #0F1109;   /* rich near-black with warm undertone */

    /* Typography */
    --font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-2xs: 0.25rem;
    --space-xs:  0.5rem;
    --space-sm:  0.75rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 9rem;

    /* Layout */
    --container:  1240px;
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --dur:  0.6s;

    /* Shadow */
    --shadow-sm: 0 1px 2px rgba(28, 31, 28, 0.04), 0 1px 3px rgba(28, 31, 28, 0.04);
    --shadow-md: 0 4px 16px rgba(28, 31, 28, 0.06), 0 2px 6px rgba(28, 31, 28, 0.04);
    --shadow-lg: 0 20px 60px rgba(28, 31, 28, 0.08), 0 8px 20px rgba(28, 31, 28, 0.04);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

a, button, summary, .color-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink-900);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 300; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; font-family: var(--font-sans); letter-spacing: -0.01em; }
h4 { font-size: 0.95rem; font-weight: 600; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-700); }
h5 { font-size: 0.85rem; font-weight: 600; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-700); }

p { color: var(--ink-700); }

em {
    font-style: italic;
    color: var(--sage-600);
    font-family: var(--font-serif);
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sage-600);
    margin-bottom: var(--space-md);
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section { padding: var(--space-4xl) 0; }

.section-head {
    max-width: 720px;
    margin-bottom: var(--space-2xl);
}

.section-head.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-sub {
    margin-top: var(--space-lg);
    font-size: 1.125rem;
    color: var(--ink-500);
    max-width: 56ch;
}

.section-head.centered .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.95rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 999px;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--ink-900);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--sage-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-900);
    border-color: transparent;
}
.btn-ghost:hover {
    color: var(--sage-700);
}

.btn-sm {
    padding: 0.65rem 1.2rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 249, 245, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.site-header.scrolled {
    border-bottom-color: rgba(28, 31, 28, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: var(--space-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--ink-900);
    font-weight: 500;
}

.logo-mark {
    width: 28px;
    height: 28px;
    color: var(--sage-600);
}

.logo-word {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    gap: var(--space-xl);
    font-size: 0.925rem;
    color: var(--ink-700);
}

.site-nav a {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s var(--ease);
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--sage-600);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.site-nav a:hover {
    color: var(--ink-900);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    background: transparent;
    z-index: 110;
    transition: background 0.2s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background: var(--bg-alt);
    outline: none;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink-900);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
    transform-origin: center;
    pointer-events: none;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    padding: clamp(3rem, 7vw, 5rem) 0 var(--space-4xl);
    background: linear-gradient(180deg, var(--bg) 0%, var(--sage-50) 100%);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-copy { max-width: 580px; }

.hero-title {
    margin: var(--space-md) 0 var(--space-lg);
}

.hero-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 300;
    color: var(--sage-600);
}

.hero-sub {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--ink-500);
    margin-bottom: var(--space-xl);
    max-width: 50ch;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.hero-meta {
    display: flex;
    gap: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--ink-100);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-item strong {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--ink-900);
}

.meta-item span {
    font-size: 0.825rem;
    color: var(--ink-500);
    letter-spacing: 0.02em;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--cream-100) 0%, var(--sage-100) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-illustration {
    width: 85%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(28, 31, 28, 0.12));
}

.hero-badge {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--space-lg);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-700);
    box-shadow: var(--shadow-sm);
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    color: var(--sage-600);
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip {
    padding: var(--space-2xl) 0;
    background: var(--bg);
    border-top: 1px solid var(--ink-100);
    border-bottom: 1px solid var(--ink-100);
}

.trust-strip .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
}

.trust-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-500);
}

.trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: var(--ink-700);
    font-weight: 500;
}

.trust-items .dot {
    color: var(--sage-400);
}

/* ==========================================================================
   PROBLEM
   ========================================================================== */
.problem {
    background: var(--bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.problem-card {
    padding: var(--space-xl);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 12px;
    margin-bottom: var(--space-md);
    color: var(--sage-600);
}

.problem-icon svg { width: 22px; height: 22px; }

.problem-card h3 { margin-bottom: var(--space-sm); }

/* ==========================================================================
   SOLUTION
   ========================================================================== */
.solution {
    background: var(--sage-50);
}

.solution-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-top: var(--space-2xl);
}

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

.product-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--cream-50) 0%, var(--sage-100) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.product-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.color-swatch {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.7), 0 2px 8px rgba(0,0,0,0.18);
    z-index: 2;
}

.feature-list { display: grid; gap: var(--space-lg); }

.feature-list li {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.feature-check {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sage-100);
    border-radius: 50%;
    color: var(--sage-700);
}

.feature-check svg { width: 16px; height: 16px; }

.feature-list strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 2px;
}

.feature-list p { font-size: 0.95rem; color: var(--ink-500); }

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */
.features { background: var(--bg); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease), background 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--sage-50);
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 14px;
    margin-bottom: var(--space-md);
    color: var(--sage-600);
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-card h3 { margin-bottom: var(--space-xs); }

.feature-card p { font-size: 0.95rem; color: var(--ink-500); }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how-it-works {
    background: var(--sage-50);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sage-300) 20%, var(--sage-300) 80%, transparent);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-num {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: var(--ink-900);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-md);
}

.step-visual {
    width: 120px;
    height: 100px;
    margin: 0 auto var(--space-md);
    background: var(--bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-xs);
}

.step p { font-size: 0.9rem; color: var(--ink-500); }

/* ==========================================================================
   SPECS
   ========================================================================== */
.specs-section { background: var(--bg); }

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.spec-block {
    padding: var(--space-xl);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
}

.spec-block h4 { margin-bottom: var(--space-md); color: var(--sage-700); }

.spec-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.spec-list > div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--ink-100);
}
.spec-list > div:last-child { border-bottom: none; }

.spec-list dt {
    font-size: 0.9rem;
    color: var(--ink-500);
    font-weight: 500;
}

.spec-list dd {
    font-size: 0.9rem;
    color: var(--ink-900);
    font-weight: 500;
    text-align: right;
}

/* ==========================================================================
   COLORS
   ========================================================================== */
.colors {
    background: var(--sage-50);
    transition: background 0.7s var(--ease), color 0.7s var(--ease);
}

.color-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.color-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease),
        background 0.5s var(--ease),
        color 0.5s var(--ease);
}

.color-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.color-chip {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.5),
        0 4px 12px rgba(28, 31, 28, 0.1);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.color-card.is-selected .color-chip {
    transform: scale(1.06);
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.6),
        0 8px 22px rgba(28, 31, 28, 0.18);
}

.color-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--ink-900);
    transition: color 0.5s var(--ease);
}

/* ---------- Colors section: dark state (Charcoal selected) ---------- */
.colors.is-dark h2,
.colors.is-dark .color-name {
    color: var(--bg);
}

.colors.is-dark .section-sub {
    color: rgba(255, 255, 255, 0.65);
}

.colors.is-dark .eyebrow {
    color: var(--sage-200);
}

.colors.is-dark .color-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.colors.is-dark .color-card:hover {
    background: rgba(255, 255, 255, 0.12);
}

.colors.is-dark .color-card.is-selected {
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 0 0 2px var(--sage-200),
        var(--shadow-md);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials { background: var(--bg); }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.testimonial {
    padding: var(--space-xl);
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.stars {
    color: var(--sage-500);
    letter-spacing: 0.15em;
    font-size: 1rem;
}

.testimonial blockquote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--ink-900);
    font-weight: 300;
    font-style: italic;
}

.testimonial figcaption {
    font-size: 0.85rem;
    color: var(--ink-500);
    margin-top: auto;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--sage-50); }

.faq-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-3xl);
    align-items: start;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-list details {
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg);
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.faq-list details[open] { background: var(--bg-alt); }

.faq-list summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink-900);
    position: relative;
    padding-right: 2rem;
}

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

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--sage-600);
    transition: transform 0.25s var(--ease);
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: '−';
    transform: rotate(0deg);
}

.faq-list details p {
    margin-top: var(--space-md);
    color: var(--ink-500);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
    background: var(--bg-dark);
    color: var(--bg);
    padding: clamp(4rem, 8vw, 7rem) 0;
    text-align: center;
}

.cta-band h2 {
    color: var(--bg);
    font-weight: 300;
}

.cta-band h2 + p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-md);
    font-size: 1.1rem;
}

.cta-form {
    display: flex;
    max-width: 460px;
    margin: var(--space-xl) auto var(--space-md);
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.85rem 1.2rem;
    color: var(--bg);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.cta-form input::placeholder { color: rgba(255, 255, 255, 0.5); }

.cta-form .btn-primary {
    background: var(--sage-200);
    color: var(--ink-900);
}

.cta-form .btn-primary:hover {
    background: var(--sage-100);
}

.cta-fine {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--ink-100);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr) 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand .logo { margin-bottom: var(--space-md); }

.footer-tag {
    font-size: 0.9rem;
    color: var(--ink-500);
    max-width: 22ch;
}

.footer-col h5 { margin-bottom: var(--space-md); color: var(--ink-700); }

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--ink-500);
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--ink-900); }

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 50%;
    color: var(--ink-700);
    transition: all 0.2s var(--ease);
}

.social-links a:hover {
    background: var(--sage-600);
    color: var(--bg);
    transform: translateY(-2px);
}

.social-links svg { width: 16px; height: 16px; }

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--ink-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.825rem;
    color: var(--ink-500);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a:hover { color: var(--ink-900); }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   STATES
   ========================================================================== */
.color-card.is-selected {
    box-shadow:
        0 0 0 2px var(--sage-600),
        var(--shadow-md);
    background: var(--sage-50);
}

.color-card.is-selected .color-name {
    color: var(--sage-700);
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 960px) {
    section { padding: var(--space-3xl) 0; }

    .site-nav {
        display: none;
        position: fixed;
        inset: 72px 0 0 0;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: var(--space-xl) clamp(1.25rem, 4vw, 2.5rem);
        border-top: 1px solid var(--ink-100);
        overflow-y: auto;
        z-index: 90;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a {
        width: 100%;
        padding: var(--space-md) 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1.25rem;
        font-family: var(--font-serif);
        border-bottom: 1px solid var(--ink-100);
    }
    .nav-toggle { display: flex; }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .hero-meta { gap: var(--space-lg); }

    .problem-grid,
    .features-grid,
    .testimonial-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .solution-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before { display: none; }

    .color-row { grid-template-columns: repeat(5, 1fr); gap: var(--space-md); }

    .faq-inner { grid-template-columns: 1fr; gap: var(--space-xl); }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
    .footer-brand { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 640px) {
    section { padding: var(--space-2xl) 0; }

    h1 { font-size: clamp(2.1rem, 8vw, 2.75rem); line-height: 1.12; }
    h2 { font-size: clamp(1.7rem, 6vw, 2.25rem); line-height: 1.15; }

    /* Let mobile line-wrap happen naturally instead of forced breaks */
    .hero-title br,
    .section-head h2 br,
    .cta-band h2 br { display: none; }

    .container { padding: 0 1.25rem; }

    .hero {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-2xl);
    }
    .hero-sub {
        font-size: 1.02rem;
        margin-bottom: var(--space-lg);
    }
    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        margin-bottom: var(--space-xl);
    }
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
        padding: 1rem 1.4rem;
        min-height: 48px;
    }
    .hero-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-md);
        justify-content: space-between;
        padding-top: var(--space-lg);
    }
    .meta-item { flex: 1 1 30%; min-width: 0; }
    .meta-item strong { font-size: 1.15rem; }
    .meta-item span { font-size: 0.72rem; }

    .hero-badge {
        bottom: var(--space-md);
        left: var(--space-md);
        padding: 0.45rem 0.85rem;
        font-size: 0.72rem;
    }

    .trust-strip { padding: var(--space-xl) 0; }
    .trust-items {
        gap: var(--space-xs) var(--space-sm);
        font-size: 0.78rem;
    }

    .problem-card,
    .feature-card,
    .spec-block,
    .testimonial { padding: var(--space-lg); }

    .product-card { padding: var(--space-lg); }

    .faq-list details { padding: var(--space-md) var(--space-lg); }
    .faq-list summary {
        font-size: 0.98rem;
        min-height: 40px;
        padding-right: 2rem;
    }

    .cta-band { padding: var(--space-3xl) 0; }
    .cta-form {
        flex-direction: column;
        padding: var(--space-sm);
        border-radius: var(--radius-md);
        gap: var(--space-xs);
    }
    .cta-form input { padding: 0.9rem 1rem; }
    .cta-form .btn-primary {
        border-radius: var(--radius-sm);
        padding: 0.95rem 1.2rem;
        min-height: 48px;
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    .footer-brand { grid-column: 1 / -1; }

    .steps { grid-template-columns: 1fr; gap: var(--space-lg); }

    .color-row { grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
    .color-chip { width: 56px; height: 56px; }
    .color-card { padding: var(--space-sm); min-height: 48px; }
    .color-name { font-size: 0.9rem; }

    /* Touch-friendly tap targets */
    .btn-sm { padding: 0.7rem 1.1rem; min-height: 40px; }
    .social-links a { width: 42px; height: 42px; }
}

/* Horizontally scrollable card rows on phones */
@media (max-width: 640px) {
    .problem-grid,
    .features-grid,
    .testimonial-grid,
    .specs-grid {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 1.25rem;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 4px 1.25rem 1.5rem;
        margin: -4px -1.25rem 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .problem-grid::-webkit-scrollbar,
    .features-grid::-webkit-scrollbar,
    .testimonial-grid::-webkit-scrollbar,
    .specs-grid::-webkit-scrollbar {
        display: none;
    }

    .problem-card,
    .feature-card,
    .testimonial,
    .spec-block {
        flex: 0 0 min(78vw, 300px);
        scroll-snap-align: start;
    }

    /* Cards with denser content need a bit more room */
    .testimonial,
    .spec-block { flex-basis: min(82vw, 320px); }

    /* Subtle fade hint on the right edge so users know there's more */
    .problem,
    .features,
    .testimonials,
    .specs-section {
        position: relative;
    }

    /* Disable hover lifts on touch (otherwise cards "stick up" after tap) */
    .problem-card:hover,
    .feature-card:hover,
    .testimonial:hover,
    .spec-block:hover {
        transform: none;
    }
}

/* Tiny phone */
@media (max-width: 400px) {
    h1 { font-size: 2rem; line-height: 1.15; }
    h2 { font-size: 1.55rem; line-height: 1.18; }

    .eyebrow { font-size: 0.7rem; letter-spacing: 0.12em; }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    .meta-item {
        flex-direction: row;
        align-items: baseline;
        gap: var(--space-sm);
        flex: 0 0 auto;
    }
    .meta-item strong { font-size: 1rem; }
    .meta-item span { font-size: 0.8rem; }

    .footer-inner { grid-template-columns: 1fr; gap: var(--space-md); }

    .color-row { gap: 0.4rem; }
    .color-chip { width: 48px; height: 48px; }
    .color-name { font-size: 0.8rem; }
}

/* ==========================================================================
   MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
