/* =========================================================
   Habit+ — Marketing site
   Warm editorial design system
   Cream paper · espresso ink · terracotta + moss accents
   Display: Fraunces (optical serif) · UI: Inter
   ========================================================= */

:root {
    /* Surfaces — warm paper */
    --paper:    #F4EEE3;
    --paper-2:  #FBF7EF;   /* raised cards */
    --paper-3:  #ECE3D3;   /* alternating bands */
    --paper-ink:#2A2420;   /* dark espresso band */

    /* Ink / text */
    --ink:    #211D18;
    --ink-2:  #4C463D;     /* body copy */
    --muted:  #786F62;     /* secondary */
    --faint:  #A1968551;   /* hairline-ish text use sparingly */
    --muted-2:#9A8F7E;

    /* Accents */
    --accent:      #D2552B;   /* terracotta — brand expressive */
    --accent-deep: #B5431F;
    --accent-soft: #F6E3D4;   /* tinted fills */
    --moss:        #335C4B;   /* growth / checks */
    --moss-soft:   #DBE6DC;
    --gold:        #D99A2B;
    --peach:       #F3CBA4;

    /* Lines */
    --line:    rgba(33,29,24,0.12);
    --line-2:  rgba(33,29,24,0.20);
    --line-cream: rgba(255,255,255,0.12);

    /* Shadows — soft, warm, layered (no neon) */
    --sh-sm: 0 1px 2px rgba(51,36,20,0.05), 0 2px 6px rgba(51,36,20,0.04);
    --sh:    0 4px 14px rgba(51,36,20,0.06), 0 14px 34px rgba(51,36,20,0.08);
    --sh-lg: 0 8px 24px rgba(51,36,20,0.08), 0 30px 70px rgba(51,36,20,0.14);
    --sh-device: 0 22px 50px rgba(60,38,18,0.20), 0 6px 16px rgba(60,38,18,0.12);

    --r-sm: 12px;
    --r:    18px;
    --r-lg: 26px;
    --r-xl: 34px;
    --pill: 100px;

    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* aliases kept so legal pages keep working */
    --purple: var(--accent);
    --primary-purple: var(--accent);
    --text: var(--ink);
    --text-muted: var(--muted);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--paper);
    color: var(--ink-2);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* warm sunrise wash at the very top + subtle film grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(120% 70% at 78% -8%, rgba(243,203,164,0.55), transparent 55%),
        radial-gradient(90% 60% at 8% 0%, rgba(210,85,43,0.10), transparent 50%);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

h1, h2, h3, h4, h5 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    color: var(--ink);
    line-height: 1.04;
    letter-spacing: -0.015em;
    font-weight: 600;
    font-optical-sizing: auto;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
section { position: relative; }

::selection { background: rgba(210,85,43,0.22); color: var(--ink); }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

/* expressive terracotta word in a heading, with a hand-feel underline */
.mark {
    color: var(--accent);
    position: relative;
    white-space: nowrap;
}
.mark::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -0.06em;
    height: 0.42em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 18' preserveAspectRatio='none'%3E%3Cpath d='M2 13 C40 4 80 4 120 8 C150 11 180 9 198 5' fill='none' stroke='%23D2552B' stroke-width='4' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E") no-repeat center/100% 100%;
    z-index: -1;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 24px;
    border-radius: var(--pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
}
.btn--primary {
    color: #FBF7EF;
    background: var(--ink);
    box-shadow: var(--sh-sm);
}
.btn--primary:hover { transform: translateY(-2px); background: #100D0A; box-shadow: var(--sh); }
.btn--ghost {
    color: var(--ink);
    background: transparent;
    border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--ghost svg { width: 17px; height: 17px; transition: transform 0.3s var(--ease); }
.btn--ghost:hover svg { transform: translateX(3px); }
.btn--sm { padding: 11px 18px; font-size: 0.9rem; }

/* App Store badge (standard black) */
.appstore {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--ink);
    color: #FBF7EF;
    padding: 11px 22px 11px 20px;
    border-radius: 14px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
    box-shadow: var(--sh-sm);
}
.appstore:hover { transform: translateY(-2px); background: #100D0A; box-shadow: var(--sh); }
.appstore svg { width: 25px; height: 25px; flex-shrink: 0; }
.appstore__txt { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.appstore__txt small { font-size: 0.64rem; font-weight: 500; opacity: 0.78; letter-spacing: 0.02em; }
.appstore__txt span { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

/* star ratings */
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }

/* =========================================================
   Navbar
   ========================================================= */
.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(244, 238, 227, 0.82);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border-bottom-color: var(--line);
}
.nav__inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.24rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.brand img { height: 30px; width: 30px; object-fit: contain; border-radius: 8px; }
.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav__links a {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.25s;
    position: relative;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -5px;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }

.nav__toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line-2);
    background: var(--paper-2);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 18px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after  { transform: translate(-50%, 5px); }
.nav__toggle.open span { background: transparent; }
.nav__toggle.open span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav__toggle.open span::after  { transform: translate(-50%, 0) rotate(-45deg); }

.nav__mobile {
    display: none;
    position: fixed;
    top: 72px; left: 16px; right: 16px;
    z-index: 999;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--sh-lg);
    padding: 14px;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__mobile.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.nav__mobile a {
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.2s;
}
.nav__mobile a:hover { background: var(--paper-3); }
.nav__mobile .btn { margin-top: 8px; justify-content: center; }

/* =========================================================
   Eyebrow / section labels (numbered editorial)
   ========================================================= */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-2);
    padding: 7px 14px 7px 8px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--paper-2);
    box-shadow: var(--sh-sm);
    margin-bottom: 28px;
}
.eyebrow .pill {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 3px 9px;
    border-radius: var(--pill);
    letter-spacing: 0.01em;
}

.label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.label::before {
    content: "";
    width: 26px; height: 1.5px;
    background: var(--accent);
    opacity: 0.6;
}
.label .num { color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* =========================================================
   Hero — editorial split
   ========================================================= */
.hero { padding: 150px 0 90px; }
.hero__grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
}
/* prevent flex/grid children from blowing out their track */
.hero__grid > *, .feature > *, .tools-wrap > * { min-width: 0; }
.hero h1 {
    font-size: clamp(2.7rem, 5.1vw, 4.2rem);
    font-weight: 600;
    letter-spacing: -0.024em;
    margin: 22px 0 22px;
    text-wrap: balance;
}
.hero__sub {
    font-size: clamp(1.04rem, 1.4vw, 1.2rem);
    color: var(--ink-2);
    max-width: 46ch;
    margin-bottom: 34px;
}
.hero__cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hero__meta {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.92rem;
}
.hero__meta .avatars { display: flex; }
.hero__meta .avatars span {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--paper);
    margin-left: -10px;
    background-size: cover;
    box-shadow: var(--sh-sm);
}
.hero__meta .avatars span:first-child { margin-left: 0; }
.hero__meta b { color: var(--ink); font-weight: 600; }

/* hero device stage */
.hero__stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
}
.hero__stage .blob {
    position: absolute;
    width: 92%; aspect-ratio: 1/1.05;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    background: linear-gradient(155deg, var(--peach), #EBA77B);
    border-radius: 47% 53% 44% 56% / 55% 46% 54% 45%;
    box-shadow: inset 0 2px 30px rgba(255,255,255,0.4);
    z-index: 0;
}
.hero__stage .device--main {
    position: relative;
    z-index: 2;
    width: clamp(230px, 27vw, 300px);
}
.hero__stage .device--float {
    position: absolute;
    z-index: 3;
    width: clamp(150px, 17vw, 195px);
    right: -2%;
    bottom: 6%;
}
.hero__stage .badge-card {
    position: absolute;
    z-index: 4;
    top: 9%;
    left: -4%;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--sh-lg);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
}
.badge-card .ic {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: var(--moss-soft);
    color: var(--moss);
    flex-shrink: 0;
}
.badge-card .ic svg { width: 20px; height: 20px; }
.badge-card .t b { display: block; font-family: 'Fraunces', serif; font-size: 1rem; color: var(--ink); line-height: 1; }
.badge-card .t span { font-size: 0.76rem; color: var(--muted); }

.device { position: relative; }
.device img { width: 100%; height: auto; filter: drop-shadow(var(--sh-device)); border-radius: 28px; }

/* =========================================================
   Marquee / trust strip
   ========================================================= */
.trust {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
    background: rgba(255,255,255,0.25);
}
.trust__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}
.trust__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-2);
    font-weight: 500;
    font-size: 0.95rem;
}
.trust__item svg { width: 19px; height: 19px; color: var(--moss); flex-shrink: 0; }

/* =========================================================
   Section scaffold
   ========================================================= */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section--alt { background: var(--paper-3); }
.section--alt::before, .section--alt::after {
    content: "";
    position: absolute;
    left: 0; right: 0; height: 1px;
    background: var(--line);
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.sec-head { max-width: 660px; margin: 0 0 clamp(44px, 5vw, 66px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .label { justify-content: center; }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 600; margin-bottom: 16px; }
.sec-head p { color: var(--ink-2); font-size: clamp(1.02rem, 1.3vw, 1.16rem); }

/* =========================================================
   Feature cards
   ========================================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.fcard {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    box-shadow: var(--sh-sm);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.fcard:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: var(--line-2); }
.fcard__ic {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: grid; place-items: center;
    margin-bottom: 20px;
}
.fcard__ic svg { width: 25px; height: 25px; }
.fcard h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 9px; letter-spacing: -0.01em; }
.fcard p { color: var(--ink-2); font-size: 0.98rem; }
.fcard.span-2 { grid-column: span 2; }

/* tints */
.ic-accent { background: var(--accent-soft); color: var(--accent); }
.ic-moss   { background: var(--moss-soft); color: var(--moss); }
.ic-gold   { background: #F6E7C6; color: #B07F18; }
.ic-blue   { background: #D9E6F2; color: #2C6FA3; }
.ic-pink   { background: #F6DCE7; color: #B14A77; }
.ic-violet { background: #E5DEF1; color: #6B53A3; }

/* chips inside the wide card */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.chip {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--pill);
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    display: inline-flex; align-items: center; gap: 8px;
}
.chip .swatch { width: 9px; height: 9px; border-radius: 3px; }

/* =========================================================
   Stats band
   ========================================================= */
.stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.stat {
    background: var(--paper-2);
    text-align: center;
    padding: 34px 18px;
}
.stat .num {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(2.1rem, 3.4vw, 2.9rem);
    line-height: 1;
    color: var(--accent);
    margin-bottom: 8px;
}
.stat .lbl { color: var(--muted); font-size: 0.92rem; }

/* =========================================================
   Feature deep-dives (alternating)
   ========================================================= */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 7vw, 92px);
}
.feature + .feature { margin-top: clamp(80px, 11vw, 140px); }
.feature--reverse .feature__media { order: 2; }

.feature__text h2 { font-size: clamp(1.9rem, 3.3vw, 2.7rem); font-weight: 600; margin-bottom: 18px; }
.feature__text > p { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 26px; max-width: 46ch; }

.feature__list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.feature__list li { display: flex; gap: 14px; align-items: flex-start; }
.feature__list .tick {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 8px;
    display: grid; place-items: center;
    background: var(--moss-soft);
    color: var(--moss);
    margin-top: 1px;
}
.feature__list .tick svg { width: 15px; height: 15px; }
.feature__list b { font-weight: 600; color: var(--ink); }
.feature__list span { color: var(--muted); }
.feature__list li > div { display: flex; flex-direction: column; gap: 2px; }

/* media stage — soft warm card, no glow */
.feature__media { display: flex; justify-content: center; position: relative; }
.media-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 36px 0;
}
.media-stage::before {
    content: "";
    position: absolute;
    width: min(78%, 360px);
    aspect-ratio: 1/1.04;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(6deg);
    background: var(--stage, var(--accent-soft));
    border-radius: 46% 54% 42% 58% / 56% 44% 56% 44%;
    z-index: 0;
}
.media-stage .device { width: clamp(230px, 32vw, 300px); z-index: 1; }

/* =========================================================
   Tools section
   ========================================================= */
.tools-wrap {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(40px, 6vw, 76px);
    align-items: center;
}
.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.tool {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper-2);
    box-shadow: var(--sh-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tool:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--line-2); }
.tool__icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
}
.tool__icon svg { width: 22px; height: 22px; }
.tool h4 { font-size: 1.02rem; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: -0.01em; }
.tool p { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* =========================================================
   CTA band (espresso)
   ========================================================= */
.cta {
    position: relative;
    border-radius: var(--r-xl);
    padding: clamp(50px, 7vw, 88px) 32px;
    text-align: center;
    overflow: hidden;
    background: var(--paper-ink);
    box-shadow: var(--sh-lg);
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(80% 120% at 85% 0%, rgba(243,203,164,0.30), transparent 55%),
        radial-gradient(70% 110% at 5% 100%, rgba(210,85,43,0.32), transparent 55%);
}
.cta > * { position: relative; }
.cta h2 { color: #FBF7EF; font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 600; margin-bottom: 16px; }
.cta p { color: rgba(251,247,239,0.76); font-size: 1.14rem; max-width: 520px; margin: 0 auto 32px; }
.cta .appstore { background: #FBF7EF; color: var(--ink); }
.cta .appstore:hover { background: #fff; }
.cta__cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item {
    border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 26px 8px;
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: color 0.2s;
}
.faq__q:hover { color: var(--accent); }
.faq__q .plus {
    flex-shrink: 0;
    width: 30px; height: 30px;
    position: relative;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    transition: background 0.3s, border-color 0.3s;
}
.faq__q .plus::before,
.faq__q .plus::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    background: var(--ink);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: background 0.3s;
}
.faq__q .plus::before { width: 12px; height: 2px; }
.faq__q .plus::after  { width: 2px; height: 12px; transition: transform 0.35s var(--ease); }
.faq__item.open .plus { background: var(--accent); border-color: var(--accent); }
.faq__item.open .plus::before { background: #fff; }
.faq__item.open .plus::after { background: #fff; transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}
.faq__a p { padding: 0 8px 26px; color: var(--ink-2); font-size: 1.04rem; max-width: 64ch; }
.faq__a a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Footer (espresso)
   ========================================================= */
.footer {
    background: var(--paper-ink);
    color: rgba(251,247,239,0.72);
    padding: 76px 0 36px;
    margin-top: clamp(80px, 10vw, 120px);
}
.footer .brand { color: #FBF7EF; }
.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-cream);
}
.footer__brand .brand { margin-bottom: 16px; }
.footer__brand p { color: rgba(251,247,239,0.6); max-width: 36ch; margin-bottom: 22px; }
.footer__col h5 {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(251,247,239,0.5);
    margin-bottom: 16px;
    font-weight: 700;
}
.footer__col a {
    display: block;
    color: rgba(251,247,239,0.72);
    padding: 7px 0;
    transition: color 0.2s;
}
.footer__col a:hover { color: #FBF7EF; }
.footer__bottom {
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(251,247,239,0.5);
    font-size: 0.9rem;
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.07s; }
[data-delay="2"] { transition-delay: 0.14s; }
[data-delay="3"] { transition-delay: 0.21s; }
[data-delay="4"] { transition-delay: 0.28s; }

.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* =========================================================
   Legal pages (privacy / terms)
   ========================================================= */
.legal {
    max-width: 800px;
    margin: 0 auto;
    padding: 150px 28px 100px;
}
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; margin-bottom: 14px; }
.legal .lead { color: var(--muted); margin-bottom: 48px; }
.legal h2 { font-size: 1.5rem; font-weight: 600; margin-top: 44px; margin-bottom: 14px; color: var(--ink); }
.legal h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; margin-top: 26px; margin-bottom: 10px; color: var(--accent); font-weight: 700; }
.legal p, .legal ul { color: var(--ink-2); margin-bottom: 18px; font-size: 1.04rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .nav__links, .nav__cta .btn { display: none; }
    .nav__toggle { display: block; }
    .nav__mobile { display: flex; }

    .hero { padding-top: 124px; }
    .hero__grid { grid-template-columns: 1fr; gap: 8px; }
    .hero__stage { min-height: 440px; margin-top: 12px; }

    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .fcard.span-2 { grid-column: span 2; }

    .feature { grid-template-columns: 1fr; gap: 40px; }
    .feature--reverse .feature__media { order: 0; }
    .feature__text { text-align: center; }
    .feature__text > p { margin-left: auto; margin-right: auto; }
    .feature__list { text-align: left; max-width: 430px; margin: 0 auto; }
    .feature .label { justify-content: center; }

    .tools-wrap { grid-template-columns: 1fr; }
    .tools-wrap .feature__media { display: none; }

    .footer__top { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: span 2; }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .fcard.span-2 { grid-column: span 1; }
    .tool-grid { grid-template-columns: 1fr; }
    .footer__top { grid-template-columns: 1fr; }
    .footer__brand { grid-column: span 1; }
    .hero__cta { width: 100%; flex-direction: column; align-items: stretch; }
    .hero__cta .btn, .hero__cta .appstore { width: 100%; justify-content: center; }
    .hero__stage .badge-card { left: 0; top: 4%; }
    .trust__row { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
