/* ==========================================================================
   Klilit — design system
   --------------------------------------------------------------------------
   Direction: boutique-modern, not SaaS-modern. The brand mark is a thin
   hand-drawn bronze line on soft paper, so the system is built from that:
   hairline structure, generous air, one heavy geometric sans carrying the
   hierarchy, and bronze used as a LINE and a DETAIL rather than as big
   fills. Two deliberately dark sections (demo, final CTA) give the page a
   rhythm change and are the only places the foil really glows.

   Bronze values are sampled from public/assets/logo.png itself, so the
   palette and the artwork can never drift apart.
   ========================================================================== */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
    /* --- Brand bronze, sampled from the logo artwork --- */
    --bronze: #9A5938;
    --bronze-rgb: 154, 89, 56;
    --bronze-deep: #74381E;
    --bronze-deep-rgb: 116, 56, 30;
    --bronze-light: #C98B5C;
    --bronze-light-rgb: 201, 139, 92;
    --foil-highlight: #EFD3AE;

    /* The foil gradient: dark -> champagne -> dark. Used only on the
       wordmark, the hero's accent word, and the primary CTA's sheen. */
    --foil: linear-gradient(100deg,
        var(--bronze-deep) 0%,
        var(--bronze) 18%,
        var(--bronze-light) 38%,
        var(--foil-highlight) 50%,
        var(--bronze-light) 62%,
        var(--bronze) 82%,
        var(--bronze-deep) 100%);

    /* --- Grounds --- */
    --paper: #FBF8F6;          /* page ground: warm near-white, blush undertone */
    --paper-rgb: 251, 248, 246;
    --paper-tint: #F4EDE8;     /* alternating section ground */
    --surface-lowest: #FFFFFF; /* cards */
    --surface: #F4EDE8;        /* (alias kept: the onboarding form uses it) */
    --cream: #FBF8F6;          /* (alias kept: the onboarding form uses it) */

    /* --- Ink --- */
    --ink: #1E1512;            /* warm espresso near-black */
    --ink-rgb: 30, 21, 18;
    --ink-soft: #2C201B;       /* lifted ink, for gradients on dark surfaces */
    --ink-muted: #75625A;      /* secondary text, clears 4.5:1 on --paper */

    --hairline: #E8DCD3;
    --outline: #E8DCD3;        /* (alias kept: the onboarding form uses it) */

    /* --- Support --- */
    --sage: #3E5C4C;           /* confirmation states only */
    --eucalyptus: #3E5C4C;     /* (alias kept: the onboarding form uses it) */
    --eucalyptus-rgb: 62, 92, 76;
    --error: #B23A2E;
    --error-rgb: 178, 58, 46;

    --white: #FFFFFF;
    --white-rgb: 255, 255, 255;
    --black-rgb: 0, 0, 0;

    /* --- Type --- */
    --font-display: 'Rubik', 'Assistant', system-ui, sans-serif;
    --font-body: 'Assistant', system-ui, -apple-system, sans-serif;
    --font-heading: var(--font-display); /* (alias kept: onboarding form) */
    /* The nav wordmark only. Hurricane is the closest Google font to the
       hand-lettered "Klilit" in the logo; it is loaded with &text=Klilit,
       so it holds those six letters and nothing else. */
    --font-wordmark: 'Hurricane', var(--font-display);

    /* --- Metrics --- */
    --container-w: 1200px;
    --gutter: 24px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --shadow-sm: 0 2px 8px -2px rgba(var(--ink-rgb), 0.06);
    --shadow-md: 0 18px 40px -24px rgba(var(--ink-rgb), 0.22);
    --shadow-lg: 0 40px 80px -40px rgba(var(--ink-rgb), 0.38);
    --shadow-glow: 0 40px 90px -40px rgba(var(--bronze-rgb), 0.55);

    /* Paper grain. Inline SVG so it costs no request, and sits at a low
       enough opacity to read as texture rather than noise. */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Page-wide paper grain. Fixed so it reads as the stock the page is
   printed on rather than something scrolling past. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--grain);
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0 0 0.5em;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
    outline: 2.5px solid var(--bronze);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    max-width: var(--container-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
    position: relative;
    z-index: 2;
}
.container-narrow { max-width: 860px; }

section {
    padding-block: clamp(72px, 9vw, 128px);
    position: relative;
}

/* ==========================================================================
   3. Type scale & section heads
   ========================================================================== */

.display {
    font-size: clamp(2.4rem, 6.2vw, 4.4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.section-head {
    max-width: 680px;
    margin-bottom: clamp(44px, 5vw, 72px);
}
.section-head--center {
    margin-inline: auto;
    text-align: center;
}
.section-head h2 {
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}
.section-head p {
    color: var(--ink-muted);
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    max-width: 58ch;
    margin: 0;
}
.section-head--center p { margin-inline: auto; }

/* The eyebrow is a hairline-ruled label, not a tracked-out caps chip —
   it borrows the logo's line quality instead of the usual template look. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bronze);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.55;
}
.section-head--center .eyebrow::after {
    content: '';
    width: 28px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.55;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
                background-color 0.18s ease, color 0.18s ease,
                border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

/* Primary — the bronze one. The foil lives here as a light band that
   sweeps across on hover: it sits ON TOP of a flat, contrast-checked fill,
   so the text's contrast never moves while the surface still reads metallic. */
.btn-primary {
    background: var(--bronze);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
        transparent 32%,
        rgba(255, 255, 255, 0.5) 48%,
        rgba(255, 255, 255, 0.16) 55%,
        transparent 72%);
    transform: translateX(-130%);
    transition: transform 0.75s ease;
}
.btn-primary:hover {
    background: var(--bronze-deep);
    box-shadow: 0 26px 60px -26px rgba(var(--bronze-deep-rgb), 0.7);
}
.btn-primary:hover::after { transform: translateX(130%); }

.btn-ink {
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow-md);
}
.btn-ink:hover { background: var(--ink-soft); box-shadow: var(--shadow-lg); }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid rgba(var(--ink-rgb), 0.22);
}
.btn-outline:hover {
    border-color: var(--ink);
    background: rgba(var(--ink-rgb), 0.04);
}

/* Quiet secondary action — reads as a link with a hairline, not a button. */
.btn-ghost {
    background: transparent;
    color: var(--ink);
    padding-inline: 4px;
    border-radius: 0;
    overflow: visible;
    box-shadow: inset 0 -1.5px 0 rgba(var(--ink-rgb), 0.2);
}
.btn-ghost:hover { box-shadow: inset 0 -1.5px 0 var(--bronze); color: var(--bronze); }

.btn-light {
    background: var(--paper);
    color: var(--ink);
}
.btn-light:hover { background: var(--white); }

/* The glyph carries the affordance, so the buttons keep the brand's bronze
   rather than going WhatsApp-green — a page dressed in that green would
   read as a WhatsApp tool, which the product is not. */
.wa-glyph {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.btn-sm .wa-glyph { width: 16px; height: 16px; }

.btn-block { width: 100%; }
.btn-sm { font-size: 0.92rem; padding: 11px 22px; }
.btn[disabled] { opacity: 0.55; cursor: default; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .btn-primary::after { display: none; }
}

/* ==========================================================================
   5. Foil text
   ========================================================================== */

/* One orchestrated light-catch on load, then it settles. A perpetual
   shimmer would read as a gimmick; a single sweep reads as foil. */
.foil {
    background: var(--foil);
    background-size: 220% 100%;
    background-position: 65% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--bronze); /* fallback where background-clip:text is unsupported */
    -webkit-text-fill-color: transparent;
    animation: foil-sweep 2.6s ease-out both;
}
@keyframes foil-sweep {
    0%   { background-position: 0% 50%; }
    60%  { background-position: 100% 50%; }
    100% { background-position: 65% 50%; }
}

/* On the dark sections the foil needs to sit brighter to read as metal
   catching light rather than as dark-on-dark. */
.section-dark .foil,
.foil--bright {
    background-image: linear-gradient(100deg,
        var(--bronze) 0%,
        var(--bronze-light) 24%,
        var(--foil-highlight) 48%,
        var(--bronze-light) 70%,
        var(--bronze) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .foil { animation: none; }
}

/* ==========================================================================
   6. Nav
   ========================================================================== */

.nav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 50;
    padding-block: 18px;
    transition: padding-block 0.3s ease;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 10px 20px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
/* Past the fold the bar condenses into a floating island. */
.nav.scrolled { padding-block: 10px; }
.nav.scrolled .nav-inner {
    background: rgba(var(--paper-rgb), 0.82);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-color: var(--hairline);
    box-shadow: var(--shadow-md);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo .wordmark {
    font-family: var(--font-wordmark);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    /* The script's t and K overhang the text box, and the foil gradient is
       painted by background-clip:text, which stops at the box edge — so it
       needs room, or the last letter is cut off. Physical sides on purpose:
       the glyphs are LTR even though the page is RTL. */
    padding: 0.12em 0.3em 0.12em 0.1em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-inline-start: auto;
    margin-inline-end: 8px;
}
.nav-links a {
    text-decoration: none;
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--ink-muted);
    transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) {
    .nav-links { display: none; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */

.hero {
    padding-top: clamp(130px, 17vw, 190px);
    padding-bottom: clamp(70px, 9vw, 120px);
    overflow: hidden;
}

/* Soft bronze light source behind the content, plus the logo's own
   line-art blown up as a faint watermark bleeding off the edge. */
.hero::before {
    content: '';
    position: absolute;
    top: -22%;
    inset-inline-end: -12%;
    width: min(880px, 92vw);
    height: min(880px, 92vw);
    background: radial-gradient(circle,
        rgba(var(--bronze-light-rgb), 0.24) 0%,
        rgba(var(--bronze-light-rgb), 0.10) 42%,
        transparent 68%);
    pointer-events: none;
}
.hero-watermark {
    position: absolute;
    bottom: -16%;
    inset-inline-start: -7%;
    width: min(560px, 60vw);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px 8px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--hairline);
    background: rgba(var(--white-rgb), 0.7);
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 26px;
}
.hero-chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sage);
    box-shadow: 0 0 0 3px rgba(var(--eucalyptus-rgb), 0.18);
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(2.3rem, 5.4vw, 4.05rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.032em;
    margin-bottom: 12px;
    text-wrap: balance;
}
.hero h1 em,
.hero h2 em { font-style: normal; font-weight: 800; }

/* The hero's second line. Kept non-italic on purpose: .foil paints with
   background-clip:text, which only paints inside the inline box, so a
   synthesised italic pushes the first glyph's top past that edge and the
   letter comes out sliced. Upright text has no overhang, so nothing clips. */
.hero h2 {
    /* 70% of the h1's scale, term for term, so the two track together. */
    font-size: clamp(1.61rem, 3.78vw, 2.835rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.022em;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: clamp(1.06rem, 1.7vw, 1.26rem);
    color: var(--ink-muted);
    max-width: 47ch;
    margin-bottom: 36px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.hero-note {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.94rem;
    color: var(--ink-muted);
}
.hero-note svg { width: 17px; height: 17px; color: var(--sage); flex-shrink: 0; }

/* --- hero visual --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-visual .phone { box-shadow: var(--shadow-lg), var(--shadow-glow); }

/* Two floating cards lifting the mock off the page. Static by design —
   the page already spends its motion budget on the load sequence. */
.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    background: rgba(var(--white-rgb), 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    z-index: 3;
}
.float-card small {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-muted);
}
.float-card .ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.float-card .ic svg { width: 17px; height: 17px; }
.float-card--a {
    top: 12%;
    inset-inline-start: -8%;
}
.float-card--a .ic { background: rgba(var(--eucalyptus-rgb), 0.14); color: var(--sage); }
.float-card--b {
    bottom: 13%;
    inset-inline-end: -6%;
}
.float-card--b .ic { background: rgba(var(--bronze-rgb), 0.14); color: var(--bronze); }

@media (max-width: 1180px) {
    .float-card--a { inset-inline-start: -2%; }
    .float-card--b { inset-inline-end: 0; }
}
@media (max-width: 560px) {
    .float-card { display: none; }
}

/* ==========================================================================
   8. Stat strip
   ========================================================================== */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-block: 1px solid var(--hairline);
}
.stat {
    padding: clamp(26px, 3.4vw, 40px) 20px;
    text-align: center;
}
.stat + .stat { border-inline-start: 1px solid var(--hairline); }
.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.stat span { font-size: 0.93rem; color: var(--ink-muted); }
@media (max-width: 620px) {
    .stat-strip { grid-template-columns: 1fr; }
    .stat + .stat { border-inline-start: none; border-top: 1px solid var(--hairline); }
}

/* ==========================================================================
   9. Bento grid (pain + capabilities)
   ========================================================================== */

.pain { background: var(--paper-tint); }

/* The capability grid reuses .bento wholesale — same geometry, different
   ground — so the two card sections read as one system rather than two. */
.caps { background: var(--paper-tint); }

/* Closes the pain grid. She is not being told she is failing: the demand is
   the achievement, the leak is what it costs. See ICP.md. */
.pain-foot {
    max-width: 64ch;
    margin: clamp(32px, 4vw, 48px) auto 0;
    text-align: center;
    color: var(--ink-muted);
    font-size: 1.06rem;
    line-height: 1.65;
}

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bento-cell {
    background: var(--surface-lowest);
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: clamp(26px, 3vw, 38px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
/* The lead cell is the one that gets weight — a grid of three identical
   cards is the generic default and says nothing about the content. */
.bento-cell--lead {
    grid-column: span 2;
    background:
        linear-gradient(150deg,
            rgba(var(--bronze-light-rgb), 0.12) 0%,
            rgba(var(--bronze-light-rgb), 0) 55%),
        var(--surface-lowest);
}
.bento-cell--lead h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
.bento-cell h3 {
    font-size: 1.22rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.015em;
}
.bento-cell p { color: var(--ink-muted); margin: 0; font-size: 1rem; }
.bento-ic {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(var(--bronze-rgb), 0.1);
    color: var(--bronze);
    margin-bottom: 4px;
}
.bento-ic svg { width: 21px; height: 21px; }

@media (max-width: 900px) {
    .bento { grid-template-columns: 1fr; }
    .bento-cell--lead { grid-column: span 1; }
}

/* ==========================================================================
   10. Dark sections
   ========================================================================== */

.section-dark {
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%,
            rgba(var(--bronze-rgb), 0.22) 0%, transparent 62%),
        linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
    color: rgba(var(--white-rgb), 0.78);
}
/* Scoped deliberately: a bare `strong` rule here leaks white text into the
   phone mock, whose surfaces are light — the chat header and the booking
   card both went invisible. The mock insulates itself further below. */
.section-dark h2,
.section-dark h3,
.section-dark .demo-note-item strong { color: var(--white); }
.section-dark .section-head p { color: rgba(var(--white-rgb), 0.66); }
.section-dark .eyebrow { color: var(--bronze-light); }

/* A hairline of foil across the top edge of each dark block — the same
   line quality as the logo, used as a seam. */
.section-dark::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--bronze-light-rgb), 0.55) 25%,
        rgba(var(--bronze-light-rgb), 0.55) 75%,
        transparent);
}

/* ==========================================================================
   11. Demo
   ========================================================================== */

.demo-stage {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 1000px) {
    .demo-stage { grid-template-columns: 1fr; justify-items: center; }
}

.demo-notes {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.demo-notes--end { align-items: flex-start; }
@media (max-width: 1000px) {
    .demo-notes { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

.demo-note-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 290px;
}
.demo-note-item .ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(var(--bronze-light-rgb), 0.16);
    color: var(--bronze-light);
}
.demo-note-item .ic svg { width: 18px; height: 18px; }
.demo-note-item strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 3px;
}
.demo-note-item p {
    margin: 0;
    font-size: 0.94rem;
    color: rgba(var(--white-rgb), 0.62);
    line-height: 1.55;
}

.demo-footnote {
    text-align: center;
    max-width: 52ch;
    margin: clamp(40px, 5vw, 64px) auto 0;
    color: rgba(var(--white-rgb), 0.62);
    font-size: 1.02rem;
}

.demo-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-top: clamp(26px, 3.2vw, 38px);
}
.demo-cta p {
    margin: 0;
    max-width: 48ch;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}
.demo-cta-note {
    font-size: 0.88rem;
    color: rgba(var(--white-rgb), 0.55);
}

/* ==========================================================================
   12. Phone mock (shared component)
   ========================================================================== */

.phone {
    position: relative;
    width: 310px;
    max-width: 100%;
    border-radius: 46px;
    padding: 11px;
    background: linear-gradient(160deg, #3A2A22 0%, #1A1210 52%, #241A15 100%);
    box-shadow: var(--shadow-lg);
    margin-inline: auto;
    flex-shrink: 0;
}
/* A hairline highlight along the rim so the frame reads as a machined
   edge rather than a black rectangle — this is what sells it as a device. */
.phone::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(160deg,
        rgba(var(--bronze-light-rgb), 0.55),
        rgba(255, 255, 255, 0.06) 40%,
        rgba(var(--bronze-rgb), 0.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.phone--hero { width: 288px; }

.phone::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 22px;
    background: #140E0C;
    border-radius: 999px;
    z-index: 3;
}

.phone-screen {
    position: relative;
    background: var(--white);
    /* Pins its own text colour so the mock renders identically whether it
       sits on a light section or a dark one. */
    color: var(--ink);
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 560px;
}
.phone--hero .phone-screen { height: 520px; }

.phone-screen::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 4px;
    border-radius: 999px;
    background: rgba(var(--ink-rgb), 0.22);
    z-index: 4;
    pointer-events: none;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 26px 18px 14px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    color: var(--ink);
    flex-shrink: 0;
}
.chat-head .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(var(--bronze-rgb), 0.12);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.chat-head .avatar img { width: 26px; height: 26px; object-fit: contain; }
.chat-head strong { font-size: 0.95rem; display: block; line-height: 1.3; }
.chat-head .status {
    font-size: 0.76rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.chat-head .status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sage);
}

.chat-log {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    scrollbar-width: none;
    background: var(--paper);
}
.chat-log::-webkit-scrollbar { display: none; }

/* The hero mock scrolls itself, so it shows its scrollbar: without one the
   movement reads as a broken animation rather than as something you can grab.
   The demo mock below stays bare — it is surrounded by copy explaining it. */
.phone--hero .chat-log {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--ink-rgb), 0.3) transparent;
}
.phone--hero .chat-log::-webkit-scrollbar {
    display: block;
    width: 6px;
}
.phone--hero .chat-log::-webkit-scrollbar-track {
    background: transparent;
}
.phone--hero .chat-log::-webkit-scrollbar-thumb {
    background: rgba(var(--ink-rgb), 0.3);
    border-radius: 999px;
}
.phone--hero .chat-log::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--ink-rgb), 0.45);
}

.msg {
    max-width: 84%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.87rem;
    line-height: 1.5;
}
.msg-client {
    align-self: flex-end;
    background: var(--ink);
    color: var(--white);
    border-end-end-radius: 5px;
}
.msg-bot {
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--hairline);
    color: var(--ink);
    border-end-start-radius: 5px;
}

/* Stands in for the photo a client sends. Layered so it reads as a
   soft-focus close-up rather than an empty placeholder block — there is no
   real clinical photo on this site, and inventing one would be a claim. */
.msg.has-img { padding: 5px; width: 54%; }
.msg.has-img .img-chip {
    display: block;
    width: 100%;
    height: 80px;
    border-radius: 13px;
    background:
        radial-gradient(58% 68% at 34% 28%, rgba(255, 255, 255, 0.55), transparent 62%),
        radial-gradient(46% 56% at 72% 74%, rgba(126, 72, 44, 0.42), transparent 66%),
        linear-gradient(145deg, #F1D7BF 0%, #DCB08D 46%, #C08B66 100%);
    box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), 0.08);
}

.msg-booking {
    align-self: flex-start;
    background: var(--white);
    border: 1.5px solid var(--hairline);
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 90%;
    box-shadow: var(--shadow-sm);
}
.msg-booking strong { font-size: 0.82rem; line-height: 1.35; }
.msg-booking .slot-pill {
    background: var(--bronze);
    color: var(--white);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.msg-booked {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(var(--eucalyptus-rgb), 0.12);
    color: var(--sage);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
}
.msg-booked svg { width: 15px; height: 15px; flex-shrink: 0; }

.chat-bar {
    flex-shrink: 0;
    padding: 11px 14px 20px;
    background: var(--white);
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    gap: 9px;
}
.chat-bar .fake-input {
    flex: 1;
    height: 34px;
    border-radius: 999px;
    background: var(--paper-tint);
}
.chat-bar .fake-send {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bronze);
    flex-shrink: 0;
}

/* ==========================================================================
   12b. Bridge (demo -> product)
   ========================================================================== */

/* Lettered rather than renumbering 13-21: it sits between them in page order,
   which is the only thing the numbering encodes. It moved here from before
   the demo on 2026-09-26 — she sees the assistant work, then is told she can
   have one. */

.bridge { background: var(--paper); }

/* background-clip:text clips to the glyph box, and an italic's slant overhangs
   it — which sheared the leading א off. inline-block + a little inline padding
   gives the slant somewhere to land. The hero dodges this by setting its own
   em upright; here the italic is wanted. */
.bridge-punch em {
    display: inline-block;
    padding-inline: 0.16em;
}

.bridge-punch {
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    line-height: 1.38;
    letter-spacing: -0.02em;
    margin: clamp(28px, 3.5vw, 44px) 0 clamp(32px, 4vw, 48px);
}

.bridge-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}
.bridge-points li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px clamp(20px, 2.4vw, 28px);
    background: var(--surface-lowest);
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius);
    color: var(--ink-muted);
    line-height: 1.65;
}
.bridge-points svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--bronze);
}
.bridge-points strong {
    color: var(--ink);
    font-weight: 700;
}

/* ==========================================================================
   13. Steps (how it works)
   ========================================================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 40px);
    counter-reset: step;
}
@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; }
}

/* Numbered because this genuinely is a sequence — it is the order things
   happen in, not decoration. */
.step {
    position: relative;
    padding-top: 30px;
    border-top: 1px solid var(--hairline);
    counter-increment: step;
}
.step::before {
    content: counter(step);
    position: absolute;
    top: -1px;
    inset-inline-start: 0;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    background: var(--paper);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--bronze);
    border: 1.5px solid var(--hairline);
    border-radius: 50%;
}
.step h3 {
    font-size: 1.24rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.step p { color: var(--ink-muted); margin: 0; font-size: 1rem; }

/* ==========================================================================
   14. Comparison
   ========================================================================== */

.compare { background: var(--paper-tint); }

.compare-table {
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-lowest);
}
.compare-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: center;
}
.compare-row + .compare-row { border-top: 1px solid var(--hairline); }
.compare-row > * {
    padding: 18px 20px;
    font-size: 0.98rem;
}
.compare-row > * + * { border-inline-start: 1px solid var(--hairline); }

.compare-head > * {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.02rem;
    padding-block: 22px;
}
.compare-head .col-klilit {
    background: rgba(var(--bronze-rgb), 0.07);
    color: var(--bronze-deep);
}
.compare-row .col-klilit {
    background: rgba(var(--bronze-rgb), 0.045);
    font-weight: 600;
}
.compare-row .col-label { font-weight: 600; }
.compare-row .col-other { color: var(--ink-muted); }

.compare-row .mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.compare-row .mark svg { width: 17px; height: 17px; flex-shrink: 0; }
.col-klilit .mark svg { color: var(--sage); }
.col-other .mark svg { color: rgba(var(--ink-rgb), 0.3); }

@media (max-width: 760px) {
    .compare-row { grid-template-columns: 1fr; }
    .compare-row > * + * { border-inline-start: none; border-top: 1px solid var(--hairline); }
    .compare-head { display: none; }
    .compare-row .col-label {
        background: var(--paper-tint);
        font-family: var(--font-display);
    }
    .compare-row .col-other::before { content: 'מזכירה: '; color: var(--ink-muted); font-weight: 600; }
    .compare-row .col-klilit::before { content: 'קלילית: '; color: var(--bronze-deep); font-weight: 700; }
}

/* ==========================================================================
   15. Pricing
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: start;
}
@media (max-width: 960px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

.plan {
    background: var(--surface-lowest);
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 3vw, 38px) clamp(24px, 2.6vw, 32px);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Gradient border via the two-background trick — a real foil edge rather
   than a flat accent line. */
.plan-featured {
    border-color: transparent;
    background:
        linear-gradient(var(--surface-lowest), var(--surface-lowest)) padding-box,
        linear-gradient(160deg, var(--bronze-light), var(--bronze) 45%, var(--bronze-deep)) border-box;
    box-shadow: var(--shadow-glow);
}
@media (min-width: 961px) {
    .plan-featured { transform: translateY(-14px); }
}

.plan-badge {
    position: absolute;
    top: 0;
    /* Physical left + transform: must centre identically whatever the
       text direction, so this one stays deliberately non-logical. */
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bronze);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.plan h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.plan-desc {
    color: var(--ink-muted);
    font-size: 0.97rem;
    margin-bottom: 24px;
    min-height: 48px;
}

.plan-price {
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--hairline);
}
.plan-was {
    text-decoration: line-through;
    color: var(--ink-muted);
    font-size: 1rem;
    margin-inline-end: 9px;
}
.plan-amount {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3.4vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    /* isolated so a currency symbol beside digits cannot drift under RTL */
    unicode-bidi: isolate;
}
.plan-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-muted);
    letter-spacing: 0;
}
.plan-amount--custom { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.plan-offer {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--sage);
    background: rgba(var(--eucalyptus-rgb), 0.1);
    padding: 5px 12px;
    border-radius: 999px;
}

.plan-features {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    flex: 1;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.97rem;
    line-height: 1.5;
}
.plan-features svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--sage);
}

.plan-business-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.plan-business-form input,
.plan-business-form textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--hairline);
    background: var(--paper);
    color: var(--ink);
    resize: none;
    transition: border-color 0.18s ease;
}
.plan-business-form input:focus,
.plan-business-form textarea:focus { border-color: var(--bronze); }
.plan-business-form textarea { min-height: 72px; }
.plan-business-note {
    font-size: 0.82rem;
    color: var(--ink-muted);
    margin: 4px 0 0;
}
.form-success {
    text-align: center;
    color: var(--sage);
    font-weight: 700;
    font-size: 0.97rem;
    padding: 16px 0;
}
.form-error { color: var(--error); font-size: 0.85rem; margin: 0; }

.pricing-foot {
    text-align: center;
    margin-top: 36px;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   16. FAQ
   ========================================================================== */

.faq { max-width: 820px; margin-inline: auto; }

.faq-item {
    border-bottom: 1px solid var(--hairline);
}
.faq-item:first-child { border-top: 1px solid var(--hairline); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 4px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: clamp(1.02rem, 1.7vw, 1.15rem);
    font-weight: 600;
    letter-spacing: -0.012em;
    transition: color 0.18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--bronze); }

.faq-item summary .chev {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--hairline);
    display: grid;
    place-items: center;
    transition: transform 0.28s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.faq-item summary .chev svg { width: 13px; height: 13px; }
.faq-item[open] summary .chev {
    transform: rotate(180deg);
    background: var(--bronze);
    border-color: var(--bronze);
    color: var(--white);
}

/* grid-rows 0fr -> 1fr is the modern way to animate to auto height. */
.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
.faq-item[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p {
    color: var(--ink-muted);
    margin: 0;
    padding: 0 4px 26px;
    max-width: 68ch;
}
@media (prefers-reduced-motion: reduce) {
    .faq-body, .faq-item summary .chev { transition: none; }
}

/* ==========================================================================
   17. Final CTA
   ========================================================================== */

.final-cta { text-align: center; }
.final-cta .mark {
    width: 54px;
    margin: 0 auto 26px;
    opacity: 0.9;
}
.final-cta h2 {
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 16ch;
    margin-inline: auto;
    margin-bottom: 20px;
    text-wrap: balance;
}
.final-cta p {
    color: rgba(var(--white-rgb), 0.68);
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    max-width: 48ch;
    margin: 0 auto 36px;
}
.final-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.final-cta .btn-ghost {
    color: rgba(var(--white-rgb), 0.85);
    box-shadow: inset 0 -1.5px 0 rgba(var(--white-rgb), 0.3);
}
.final-cta .btn-ghost:hover {
    color: var(--bronze-light);
    box-shadow: inset 0 -1.5px 0 var(--bronze-light);
}

/* ==========================================================================
   18. Footer
   ========================================================================== */

.footer {
    padding-block: 56px;
    background: var(--ink);
    color: rgba(var(--white-rgb), 0.55);
    font-size: 0.92rem;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.footer-logo { width: 150px; opacity: 0.92; }
.footer a {
    color: rgba(var(--white-rgb), 0.78);
    text-decoration: none;
    transition: color 0.18s ease;
}
.footer a:hover { color: var(--bronze-light); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-legal { font-size: 0.82rem; opacity: 0.75; }

/* ==========================================================================
   19. Reveal-on-scroll
   ========================================================================== */

/* Used sparingly — section heads and the big visuals only. A fade-up on
   every element on the page is the generic default and reads as such. */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
                transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* The hero plays one orchestrated entrance on load instead. */
.hero-enter > * { opacity: 0; transform: translateY(18px); animation: enter 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.hero-enter > *:nth-child(1) { animation-delay: 0.05s; }
.hero-enter > *:nth-child(2) { animation-delay: 0.14s; }
.hero-enter > *:nth-child(3) { animation-delay: 0.23s; }
.hero-enter > *:nth-child(4) { animation-delay: 0.32s; }
.hero-enter > *:nth-child(5) { animation-delay: 0.41s; }
.hero-enter > *:nth-child(6) { animation-delay: 0.50s; }
.hero-visual { opacity: 0; transform: translateY(24px); animation: enter 1s cubic-bezier(0.2, 0.7, 0.3, 1) 0.3s forwards; }
@keyframes enter { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-enter > *, .hero-visual { opacity: 1; transform: none; animation: none; }
}

/* ==========================================================================
   20. Utilities
   ========================================================================== */

[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   21. Onboarding form
   --------------------------------------------------------------------------
   A separate, unlinked page that shares this stylesheet. It is driven by the
   tokens above, so it picks up the new palette without needing its own edits.
   ========================================================================== */

.nav-static { position: static; background: var(--paper); }
.nav-static .nav-inner { background: none; box-shadow: none; border-color: transparent; }

.form-page { padding: 40px 0 80px; }
.form-container { max-width: 760px; }
.form-page .section-head { max-width: none; margin-bottom: 36px; text-align: start; }
.form-page .section-head h1 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 14px;
}

.form-draft {
    background: rgba(var(--eucalyptus-rgb), 0.1);
    border: 1px solid rgba(var(--eucalyptus-rgb), 0.25);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--ink);
}

.link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--bronze);
    text-decoration: underline;
    cursor: pointer;
}

.form-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin-bottom: 28px;
    padding: 0;
}
.form-progress li {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-muted);
    background: rgba(var(--ink-rgb), 0.06);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.form-progress li.is-done { background: var(--sage); color: var(--white); }
.form-progress li.is-current { background: var(--bronze); color: var(--white); }

.form-step {
    background: var(--surface-lowest);
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    margin-bottom: 24px;
}
.form-step-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 24px;
}
.form-step-intro { font-size: 0.95rem; color: var(--ink-muted); line-height: 1.7; margin-bottom: 20px; }

.field { margin-bottom: 24px; border: none; padding: 0; }
.field > label, .field > legend {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    padding: 0;
}
.req { color: var(--error); }
.field-hint { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.6; margin-bottom: 10px; }
.field-hint-warn { color: var(--error); font-weight: 500; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="file"],
.field select,
.field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input[dir="ltr"] { text-align: start; }
.field textarea { resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bronze); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--error); box-shadow: 0 0 0 3px rgba(var(--error-rgb), 0.12); }

.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.97rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    cursor: pointer;
}
.choice input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--bronze); cursor: pointer; }
.consents .choice { margin-bottom: 14px; }

.treat-group { border: 1.5px solid var(--hairline); border-radius: var(--radius); padding: 20px 18px; margin-bottom: 20px; }
.treat-group > legend { font-size: 0.95rem; font-weight: 700; color: var(--ink); padding: 0 8px; }
.treatment { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.treatment:last-of-type { border-bottom: none; }
.treatment.is-on { background: rgba(var(--bronze-rgb), 0.05); border-radius: var(--radius-sm); padding-inline: 12px; }
.treatment-detail { margin-top: 14px; padding-inline-start: 28px; }
.treatment-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.treatment-detail .field, .custom-treatment .field { margin-bottom: 12px; }
.treatment-detail .field > label, .custom-treatment .field > label { font-size: 0.85rem; font-weight: 600; }
.custom-treatment { padding: 14px 0; }

.addon-group {
    margin-top: 18px;
    padding: 16px 14px;
    border: none;
    border-inline-start: 3px solid rgba(var(--bronze-rgb), 0.35);
    border-radius: var(--radius-sm);
    background: rgba(var(--white-rgb), 0.6);
}
.addon-group > legend { font-size: 0.9rem; font-weight: 700; color: var(--ink); padding: 0; margin-bottom: 4px; }
.addon { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.addon:last-of-type { border-bottom: none; padding-bottom: 0; }
.addon-detail { margin-top: 10px; padding-inline-start: 28px; }
.addon-detail .field { margin-bottom: 0; }
.addon-detail .field > label { font-size: 0.85rem; font-weight: 600; }

.branch { margin-bottom: 8px; }
.pitch {
    background: rgba(var(--eucalyptus-rgb), 0.07);
    border: 1px solid rgba(var(--eucalyptus-rgb), 0.2);
    border-radius: var(--radius);
    padding: 20px 18px;
    margin-bottom: 24px;
}
.pitch p { font-size: 0.95rem; line-height: 1.75; color: var(--ink); margin-bottom: 12px; }

.form-nav { display: flex; gap: 12px; justify-content: space-between; }
.form-nav .btn { flex: 1 1 auto; }

.form-done {
    background: var(--surface-lowest);
    border: 1.5px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 44px 28px;
    text-align: center;
}
.form-done h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.form-done p { font-size: 1rem; color: var(--ink-muted); line-height: 1.75; max-width: 460px; margin: 0 auto 28px; }

.debug-payload {
    margin-top: 28px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--paper-tint);
    color: var(--ink);
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: start;
    direction: ltr;
    overflow-x: auto;
    white-space: pre;
}

@media (min-width: 640px) {
    .treatment-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .form-nav { justify-content: flex-end; }
    .form-nav .btn { flex: 0 0 auto; min-width: 150px; }
}

@media (max-width: 639px) {
    .form-page { padding: 24px 0 60px; }
    .form-step { padding: 24px 18px; }
    .treat-group { padding: 16px 12px; }
}

.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ==========================================================================
   LEGAL PAGE (/terms)
   --------------------------------------------------------------------------
   Plain on purpose: large phone-first text, one narrow column, no motion.
   It is read in WhatsApp's in-app browser before a patient consents.
   ========================================================================== */

.legal { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.legal .container-narrow { max-width: 720px; }
.legal-head { margin-bottom: clamp(28px, 5vw, 44px); }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.legal h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); margin: 0 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal section { padding-block: 0; margin-bottom: clamp(26px, 4vw, 36px); }
.legal p, .legal li { font-size: 1.08rem; line-height: 1.8; }
.legal ul { margin: 0 0 1em; padding-inline-start: 24px; display: grid; gap: 4px; }
.legal a { color: var(--bronze-deep); text-underline-offset: 3px; }
.legal-version { font-size: 0.95rem; color: var(--ink-muted); margin-bottom: 12px; }
.legal-operator { padding: 14px 18px; background: var(--paper-tint); border-radius: var(--radius-sm); }
.legal .table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--surface-lowest); }
.legal-table { width: 100%; min-width: 480px; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--hairline); vertical-align: top; font-size: 1rem; line-height: 1.6; }
.legal-table th { background: var(--paper-tint); font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-foot { margin-top: clamp(32px, 5vw, 48px); padding-top: 20px; border-top: 1px solid var(--hairline); }

/* ==========================================================================
   ARTICLE (insights pages)
   --------------------------------------------------------------------------
   Content pages outside the funnel. Only existing :root tokens are used, so
   the palette stays a direct translation of the backend's theme.json. Body
   text is --ink on --paper (the verified pair); bronze is a line and a label
   here, never running text. Motion is gated behind html.js-anim, which
   insights.js sets, so a visitor without JS sees every end state.
   ========================================================================== */

.article-hero { padding-block: clamp(56px, 8vw, 104px) clamp(24px, 4vw, 48px); }
.article-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 900px) {
    .article-hero-inner { grid-template-columns: 1.3fr 1fr; max-width: var(--container-w); }
}
.article-hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}
.article-lede {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--ink-muted);
    max-width: 52ch;
}
.article-meta {
    display: flex;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--ink-muted);
}

/* ---- hero clock ---- */
.clock {
    display: grid;
    justify-items: center;
    gap: 22px;
    padding: 28px 22px;
    background: var(--surface-lowest);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.clock-ring { position: relative; width: 150px; height: 150px; }
.clock-ring svg { display: block; }
.clock-track, .clock-fill { fill: none; stroke-width: 7; }
.clock-track { stroke: var(--hairline); }
.clock-fill {
    stroke: var(--bronze);
    stroke-linecap: round;
    stroke-dasharray: 339.3;
    stroke-dashoffset: 0;
}
.clock-center {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.6rem;
}
.clock-state { grid-area: 1 / 1; }
.clock-state--wait { opacity: 0; }
.clock-state--done { color: var(--sage); display: grid; place-items: center; }
.clock-state--done svg { width: 38px; height: 38px; }
.clock-chat { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 300px; }
.clock-chat .msg { max-width: 92%; }

@media (prefers-reduced-motion: no-preference) {
    .clock-fill { animation: clock-fill 8s ease-in-out infinite; }
    .clock-state--wait { animation: clock-wait 8s infinite; }
    .clock-state--done { opacity: 0; animation: clock-done 8s infinite; }
    .clock-chat .msg-client { animation: clock-in 8s infinite; }
    .clock-reply { opacity: 0; animation: clock-reply 8s infinite; }
}
@keyframes clock-fill {
    0% { stroke-dashoffset: 339.3; stroke: var(--bronze-light); }
    60% { stroke-dashoffset: 0; stroke: var(--bronze-light); }
    66%, 92% { stroke-dashoffset: 0; stroke: var(--bronze); }
    100% { stroke-dashoffset: 339.3; stroke: var(--bronze-light); }
}
@keyframes clock-wait { 0%, 60% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes clock-done { 0%, 63% { opacity: 0; transform: scale(.6); } 70%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes clock-in { 0% { opacity: 0; transform: translateY(6px); } 6%, 100% { opacity: 1; transform: none; } }
@keyframes clock-reply { 0%, 64% { opacity: 0; transform: translateY(6px); } 72%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---- takeaways, toc ---- */
.article { padding-top: clamp(16px, 3vw, 32px); }
.takeaways {
    background: var(--surface-lowest);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 4vw, 36px);
    margin-bottom: 28px;
}
.takeaways h2, .toc h2 { font-size: 1.15rem; margin-bottom: 14px; }
.takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.takeaways li {
    position: relative;
    padding-inline-start: 26px;
}
.takeaways li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.72em;
    width: 14px;
    height: 1.5px;
    background: var(--bronze);
}
.toc {
    background: var(--paper-tint);
    border-radius: var(--radius);
    padding: clamp(20px, 3vw, 28px) clamp(22px, 4vw, 36px);
    margin-bottom: clamp(36px, 6vw, 64px);
}
.toc ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--bronze); text-decoration: underline; }

/* ---- border beam: a thin bronze light running round the card ---- */
@property --beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.beam-card { position: relative; }
.beam-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--beam-angle), transparent 0 80%, var(--bronze-light) 92%, var(--foil-highlight) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    .beam-card::after { animation: beam-spin 7s linear infinite; }
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
    .beam-card::after { display: none; }
}

/* ---- prose ---- */
.prose { max-width: 68ch; margin-inline: auto; font-size: 1.08rem; line-height: 1.8; }
.prose-section { padding-block: 0; margin-bottom: clamp(44px, 6vw, 72px); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose a { color: var(--bronze-deep); text-underline-offset: 3px; }
.prose a:hover { color: var(--bronze); }
.prose blockquote {
    margin: 26px 0;
    padding: 4px 22px 4px 0;
    border-inline-start: 3px solid var(--bronze);
    padding-inline: 22px 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.5;
}
.prose .pull {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    line-height: 1.5;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--hairline);
}
.caption { font-size: 0.9rem; color: var(--ink-muted); margin-top: 10px; }
.steps { padding-inline-start: 24px; display: grid; gap: 10px; }

/* ---- HBR stat callout ---- */
.stat-callout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 28px 0;
    padding: clamp(22px, 4vw, 34px);
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-lg);
}
@media (min-width: 640px) { .stat-callout { grid-template-columns: 1fr 1fr; } }
.stat-num {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 4.6rem);
    line-height: 1;
    color: var(--foil-highlight);
    margin-bottom: 10px;
}
.stat-x { font-size: 0.6em; margin-inline-end: 4px; color: var(--bronze-light); }
.stat p { font-size: 0.98rem; line-height: 1.6; color: rgba(var(--white-rgb), 0.8); }
.stat-source {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    padding-top: 16px;
    border-top: 1px solid rgba(var(--white-rgb), 0.16);
    color: rgba(var(--white-rgb), 0.62);
}
.prose .stat-source a { color: var(--foil-highlight); }

/* ---- a day in the clinic ---- */
.day { margin: 30px 0; padding: 22px; background: var(--surface-lowest); border: 1px solid var(--hairline); border-radius: var(--radius); }
.day-title { font-family: var(--font-display); font-weight: 600; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.day-tag { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; color: var(--ink-muted); border: 1px solid var(--hairline); border-radius: 99px; padding: 2px 10px; }
.day-bar {
    position: relative;
    height: 44px;
    background: var(--paper-tint);
    border-radius: 10px;
    margin-bottom: 38px;
}
.day-bar .blk {
    position: absolute;
    inset-block: 6px;
    inset-inline-start: var(--s);
    width: var(--w);
    background: var(--hairline);
    border-radius: 6px;
}
.day-bar .dot {
    position: absolute;
    top: 50%;
    inset-inline-start: var(--p);
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    background: var(--bronze);
    border: 3px solid var(--surface-lowest);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--bronze);
}
html[dir="rtl"] .day-bar .dot { margin: -9px -9px 0 0; }
.day-ends { position: absolute; inset-inline: 0; top: 50px; display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-muted); }
.day-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.98rem; line-height: 1.6; }
.day-list b { color: var(--bronze-deep); margin-inline-end: 8px; }
.day-list em { font-style: normal; font-weight: 600; }

.js-anim .day:not(.is-in) .dot { opacity: 0; transform: translateY(-14px) scale(.6); }
.js-anim .day:not(.is-in) .day-list li { opacity: 0; transform: translateY(8px); }
.dot, .day-list li { transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 0.35s); }
@media (prefers-reduced-motion: reduce) {
    .dot, .day-list li { transition: none; }
    .js-anim .day:not(.is-in) .dot, .js-anim .day:not(.is-in) .day-list li { opacity: 1; transform: none; }
}

/* ---- tables ---- */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: var(--surface-lowest); }
.audit-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.96rem; line-height: 1.55; }
.audit-table th, .audit-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.audit-table th { background: var(--paper-tint); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.audit-table tr:last-child td { border-bottom: 0; }
.audit-table .total td { font-weight: 700; background: var(--paper); }
.audit-table caption { text-align: start; padding: 12px 14px 0; font-family: var(--font-display); font-weight: 600; }
.formula td:last-child { white-space: nowrap; color: var(--ink-muted); }

/* ---- two chat mocks ---- */
.duo { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 28px 0 0; }
@media (min-width: 640px) { .duo { grid-template-columns: 1fr 1fr; } }
.mini-chat { margin: 0; padding: 18px; border-radius: var(--radius); background: var(--paper-tint); display: flex; flex-direction: column; gap: 8px; }
.mini-chat figcaption { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.mini-chat .msg { max-width: 92%; }
.mini-note { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; margin: 8px 0 0; line-height: 1.4; }
.mini-note svg { width: 16px; height: 16px; flex-shrink: 0; }
.mini-chat--bad .mini-note { color: var(--error); }
.mini-chat--good .mini-note { color: var(--sage); }
.js-anim .duo:not(.is-in) .mini-chat--good { opacity: 0; transform: translateY(10px); }
.mini-chat--good { transition: opacity .6s ease .5s, transform .6s ease .5s; }
@media (prefers-reduced-motion: reduce) {
    .js-anim .duo:not(.is-in) .mini-chat--good { opacity: 1; transform: none; }
}

/* ---- the small product box ---- */
.klilit-aside {
    margin: 30px 0 0;
    padding: 22px 24px;
    background: var(--surface-lowest);
    border: 1px solid var(--hairline);
    border-inline-start: 3px solid var(--bronze);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    line-height: 1.7;
}
.aside-tag { display: block; font-weight: 700; color: var(--bronze-deep); font-size: 0.88rem; margin-bottom: 8px; }

/* ---- beams + three layers ---- */
.beams { margin: 28px 0; padding: 18px; background: var(--surface-lowest); border: 1px solid var(--hairline); border-radius: var(--radius); }
.beams svg { display: block; width: 100%; height: auto; }
.beams .node circle { fill: var(--paper-tint); stroke: var(--bronze); stroke-width: 1.5; }
.beams .node use { color: var(--bronze-deep); }
.beams .node text { text-anchor: middle; font-family: var(--font-display); font-weight: 600; font-size: 15px; fill: var(--ink); }
.beams .beam-path { stroke: var(--hairline); stroke-width: 3; stroke-linecap: round; fill: none; }
.beams .beam-run { stroke: var(--bronze); stroke-width: 3; stroke-linecap: round; fill: none; stroke-dasharray: 40 400; stroke-dashoffset: 0; opacity: 0; }
.beams.is-in .beam-run { opacity: 1; animation: beam-run 2.4s ease-in-out infinite; }
.beams.is-in .beam-run--2 { animation-delay: 1.2s; }
@keyframes beam-run { from { stroke-dashoffset: 40; } to { stroke-dashoffset: -190; } }
@media (prefers-reduced-motion: reduce) {
    .beams .beam-run { opacity: 1; stroke-dasharray: none; animation: none !important; }
}
.layers { display: grid; gap: 14px; margin-top: 8px; }
.layer { position: relative; padding: 20px 22px 20px 20px; padding-inline-start: 64px; background: var(--surface-lowest); border: 1px solid var(--hairline); border-radius: var(--radius-sm); }
.layer h3 { margin: 0 0 6px; font-size: 1.1rem; }
.layer p { margin: 0; font-size: 1rem; line-height: 1.7; }
.layer-n { position: absolute; inset-inline-start: 18px; top: 18px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 700; }

.article + #faq { padding-top: 0; }
.final-cta.beam-card { border-radius: var(--radius-xl); padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 40px); }

/* The article uses the home page's .section-dark / .final-cta; nothing to add. */
@media (max-width: 639px) {
    .prose { font-size: 1.04rem; }
    .day { padding: 18px 16px; }
}
