/* ============================================================
   CloudVet landing page — standalone stylesheet
   Tokens mirror DESIGN.md. Dark mode via [data-theme="dark"].
   ============================================================ */

:root {
    --primary: #2968E0;
    --primary-hover: #2358C4;
    --primary-ghost: rgba(41, 104, 224, 0.08);
    --accent: #D98B3A;
    --accent-hover: #C47B2E;
    --accent-ghost: rgba(217, 139, 58, 0.08);
    --accent-bg: #FEF6E0;
    --text: #1C2433;
    --text-2: #4A5568;
    --muted: #8694A7;
    --line: #E2E7EE;
    --line-soft: #EDF0F4;
    --bg: #F0F2F5;
    --shell: #F7F8FA;
    --panel: #FFFFFF;
    --success: #1A8A5E;
    --success-bg: #E8F5EE;
    --danger: #C4463A;
    --danger-bg: #FDEDEB;
    --warning: #B8860B;
    --warning-bg: #FEF6E0;
    --info: #2E6DA4;
    --info-bg: #E8F0FA;
    --display: "Familjen Grotesk", "DM Sans", system-ui, sans-serif;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(28, 36, 51, 0.04), 0 1px 3px rgba(28, 36, 51, 0.06);
    --shadow-md: 0 4px 16px rgba(28, 36, 51, 0.06), 0 2px 6px rgba(28, 36, 51, 0.04);
    --shadow-lg: 0 20px 48px rgba(28, 36, 51, 0.10), 0 6px 16px rgba(28, 36, 51, 0.06);
    --cta-bg: #1E52BC;
}

html[data-theme="dark"] {
    --text: #D6DEE8;
    --text-2: #9CAABB;
    --muted: #6B7A8D;
    --line: #252E3B;
    --line-soft: #1B2332;
    --bg: #0D1117;
    --shell: #111820;
    --panel: #161D27;
    --primary: #5B93E8;
    --primary-hover: #7EB0F5;
    --primary-ghost: rgba(91, 147, 232, 0.12);
    --accent: #E8A455;
    --accent-hover: #F2B368;
    --accent-ghost: rgba(232, 164, 85, 0.12);
    --accent-bg: rgba(232, 164, 85, 0.08);
    --success: #4DB88A;
    --success-bg: rgba(77, 184, 138, 0.10);
    --danger: #E86B60;
    --danger-bg: rgba(232, 107, 96, 0.10);
    --warning: #DBA94A;
    --warning-bg: rgba(219, 169, 74, 0.10);
    --info: #6BA3D6;
    --info-bg: rgba(107, 163, 214, 0.10);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.3);
    --cta-bg: #1E52BC;
}

/* ========= RESET (scoped to landing) ========= */
body { margin: 0; }
.landing * , .landing *::before, .landing *::after { box-sizing: border-box; }

.landing {
    margin: 0;
    font: 400 15px/1.6 "DM Sans", system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--panel);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.landing h1, .landing h2, .landing h3, .landing h4, .landing h5 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

/* Display face — public pages only, see DESIGN.md */
.landing h1, .landing h2,
.landing .tier-name,
.landing .price .big, .landing .price-list b { font-family: var(--display); font-weight: 700; }
.landing h1, .landing h2 { letter-spacing: -0.025em; text-wrap: balance; }
.landing h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }

.landing p { margin: 0; }
.landing a { color: inherit; text-decoration: none; }
.landing ul { margin: 0; padding: 0; list-style: none; }
.landing button { font: inherit; cursor: pointer; }
.landing svg { display: block; }

.landing .tnum { font-variant-numeric: tabular-nums; }
.landing .mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ========= SKIP LINK ========= */
.landing .skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
}
.landing .skip-link:focus {
    left: 16px;
    top: 16px;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ========= LAYOUT ========= */
.landing .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========= NAV ========= */
.landing .nav {
    position: sticky; top: 0; z-index: 50;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}
.landing .nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px; gap: 16px;
}
.landing .brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--text);
}
/* Desktop nav breakpoint is MEASURED (four links + two buttons). Re-measure
   when adding a nav link. */
.landing .nav-links { display: none; gap: 28px; margin: 0; }
@media (min-width: 900px) { .landing .nav-links { display: flex; } }
.landing .nav-links a {
    color: var(--text-2); font-size: 14px; font-weight: 500;
    white-space: nowrap;
    transition: color .1s;
}
.landing .nav-links a:hover { color: var(--text); }
.landing .nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Inline auth CTAs collapse into the hamburger menu below 900px. */
.landing .nav-cta > .nav-auth { display: none; }
@media (min-width: 900px) { .landing .nav-cta > .nav-auth { display: inline-flex; } }

/* Hamburger via <details> */
.landing .nav-mobile { display: block; position: relative; }
@media (min-width: 900px) { .landing .nav-mobile { display: none; } }
.landing .nav-mobile summary {
    list-style: none;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text);
    background: var(--panel);
}
.landing .nav-mobile summary::-webkit-details-marker { display: none; }
.landing .nav-mobile summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.landing .nav-mobile .menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 8px;
    min-width: 220px;
    display: flex; flex-direction: column; gap: 2px;
}
.landing .nav-mobile .menu a {
    padding: 10px 12px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; color: var(--text-2);
}
.landing .nav-mobile .menu a:hover { background: var(--shell); color: var(--text); }
.landing .nav-mobile .menu .menu-sep {
    height: 1px; background: var(--line-soft); margin: 6px 4px;
}
.landing .nav-mobile .menu a.menu-cta {
    background: var(--primary); color: #fff;
    text-align: center; margin-top: 2px;
    padding: 12px;
}
.landing .nav-mobile .menu a.menu-cta:hover { background: var(--primary-hover); color: #fff; }

/* Theme toggle button (wires to existing theme-toggle controller in base) */
.landing .theme-btn {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    color: var(--text-2);
    transition: background .1s, border-color .1s;
}
.landing .theme-btn:hover { background: var(--shell); color: var(--text); }
.landing .theme-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.landing .theme-btn .icon-sun { display: none; }
.landing .theme-btn .icon-moon { display: block; }
html[data-theme="dark"] .landing .theme-btn .icon-sun { display: block; }
html[data-theme="dark"] .landing .theme-btn .icon-moon { display: none; }

/* ========= BUTTONS ========= */
.landing .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600; font-size: 14px;
    border: 1px solid transparent;
    transition: background .1s, border-color .1s, color .1s;
    white-space: nowrap;
    cursor: pointer;
}
.landing .btn-lg { min-height: 52px; padding: 14px 24px; font-size: 15px; }
.landing .btn-primary { background: var(--primary); color: #fff; }
.landing .btn-primary:hover { background: var(--primary-hover); color: #fff; }
.landing .btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.landing .btn-ghost:hover { border-color: var(--text-2); background: var(--shell); }

/* <picture> must not become its own box inside the capture frames */
.landing picture { display: contents; }

/* ========= FEATURE LIST (marketing + help pages) ========= */
.landing .f-list { margin-top: 18px; border-bottom: 1px solid var(--line); }
.landing .f-list li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 16px; }

/* ========= COMPARISON ========= */
.landing .sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.landing .compare-wrap {
    margin-top: 28px;
    /* Containing block for the .sr-only cell labels. They are position:absolute
       with no positioned ancestor otherwise, so they resolve against the initial
       containing block, escape this overflow and stretch the DOCUMENT to the
       table's 760px — which is what made the whole page scroll sideways on a
       phone. Contain them here and overflow-x actually clips them. */
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
}
.landing .compare-wrap:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* Mobile-only swipe hint — the mobile block turns it on. */
.landing .compare-hint {
    display: none;
    margin: 22px 0 0;
    text-align: center;
    font-size: 12px; color: var(--muted);
}

.landing table.compare {
    width: 100%; min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
}
.landing table.compare th,
.landing table.compare td {
    padding: 12px 14px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-soft);
}
.landing table.compare tbody tr:last-child th,
.landing table.compare tbody tr:last-child td { border-bottom: 0; }

/* Corner label + feature (row-header) column share the shell tone */
.landing table.compare .compare-corner {
    text-align: left;
    font-size: 11px; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.06em;
    background: var(--shell);
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-radius: var(--radius-lg) 0 0 0;
}
.landing table.compare .compare-feat {
    text-align: left;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    min-width: 210px; width: 34%;
    background: var(--shell);
    border-right: 1px solid var(--line);
}

/* App (column-header) cells */
.landing table.compare thead th.compare-col {
    vertical-align: bottom;
    background: var(--shell);
    border-bottom: 1px solid var(--line);
    padding: 16px 12px 13px;
}
.landing .compare-brand {
    display: block;
    font-weight: 700; font-size: 15px; color: var(--text);
    letter-spacing: -0.01em;
}

/* Highlighted CloudVet lane — accent top-bar + faint tint, neutral hairline sides */
.landing table.compare .compare-col--us,
.landing table.compare .cmp-cell--us {
    background: var(--accent-ghost);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.landing table.compare thead th.compare-col--us {
    background: var(--accent-ghost);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.landing table.compare tbody tr:last-child .cmp-cell--us {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.landing .compare-col--us .compare-brand { color: var(--accent-hover); }

/* Cell marks — flat, no badges */
.landing .cmp-ic { display: inline-flex; align-items: center; justify-content: center; }
.landing .cmp-ic--yes { color: var(--success); }
.landing .cmp-ic--yes svg { width: 18px; height: 18px; }
.landing .cmp-part {
    font-size: 11px; font-weight: 600;
    color: var(--warning);
    text-transform: uppercase; letter-spacing: 0.03em;
}
.landing .cmp-no { color: var(--muted); font-size: 16px; line-height: 1; }

.landing .compare-disclaimer {
    max-width: 720px; margin: 18px auto 0;
    text-align: center;
    font-size: 12px; color: var(--muted); line-height: 1.6;
}

/* ========= PRICING (full grid, /preturi) ========= */
.landing .pricing-grid { display: grid; gap: 48px 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px)  { .landing .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .landing .pricing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.landing .tier { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; border-top: 2px solid var(--line); scroll-margin-top: 80px; }
.landing .tier.featured { border-top-color: var(--primary); }
.landing .tier { position: relative; }
.landing .tier .popular { position: absolute; top: 22px; right: 0; font-size: 13px; font-weight: 600; color: var(--primary); }
.landing .tier .tier-name { font-size: 20px; line-height: 1.25; }
.landing .tier .tier-desc { margin-top: 6px; color: var(--text-2); }
.landing .tier > .btn { width: 100%; margin-top: auto; white-space: normal; text-align: center; }
.landing .price { display: flex; align-items: baseline; gap: 5px; }
.landing .price .big { font-size: 38px; line-height: 1; }
.landing .price .cur, .landing .price .per { color: var(--text-2); }
.landing .tier-feats li { padding: 9px 0; border-top: 1px solid var(--line-soft); color: var(--text-2); font-size: 14px; line-height: 1.45; }
.landing .tier-feats b { color: var(--text); font-weight: 600; }
@media (min-width: 640px) {
    /* Same name height in every column, so prices and lists line up. */
    .landing .tier .tier-name { min-height: 2.5em; }
    .landing .tier .tier-desc { min-height: 4.8em; }
    .landing .tier > .btn { min-height: 68px; }
}
.landing .pricing-note { margin-top: 24px; font-size: 14px; color: var(--text-2); }

/* ========= FOOTER ========= */
.landing footer {
    background: var(--panel); color: var(--text-2);
    padding: 56px 0 28px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
}
.landing .foot-grid {
    display: grid; gap: 32px;
    grid-template-columns: 1.3fr repeat(3, 1fr);
}
@media (max-width: 820px) { .landing .foot-grid { grid-template-columns: 1fr 1fr; } }
.landing .foot-col h4 {
    font-size: 11.5px; font-weight: 600; color: var(--text);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
.landing .foot-col a {
    display: block; color: var(--text-2); padding: 4px 0;
    min-height: 26px;
}
.landing .foot-col a:hover { color: var(--primary); }
.landing .foot-bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
    color: var(--muted); font-size: 12.5px;
}

/* ========= FAQ ========= */
.landing .faq-list {
    max-width: 760px; margin: 48px auto 0;
    border-top: 1px solid var(--line);
}
.landing .faq-item { border-bottom: 1px solid var(--line); }
.landing .faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 0; cursor: pointer; list-style: none;
}
.landing .faq-item summary::-webkit-details-marker { display: none; }
.landing .faq-item summary h3 { font-size: 16px; font-weight: 600; }
.landing .faq-item summary::after {
    content: "+"; font-size: 22px; line-height: 1; color: var(--muted);
    flex-shrink: 0; transition: transform 0.15s ease;
}
.landing .faq-item[open] summary::after { transform: rotate(45deg); }
.landing .faq-item summary:hover h3 { color: var(--primary); }
.landing .faq-item summary:focus-visible {
    outline: 2px solid var(--primary); outline-offset: 2px;
}
.landing .faq-item > p {
    padding: 0 32px 18px 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6;
}

/* ========= MOBILE TIGHTENING ========= */
@media (max-width: 700px) {
    .landing .container { padding: 0 18px; }
    .landing .nav-inner { height: 60px; gap: 8px; }
    .landing .brand { font-size: 16px; }
    .landing table.compare { font-size: 13px; }
    .landing table.compare th,
    .landing table.compare td { padding: 11px 10px; }
    .landing table.compare .compare-feat { min-width: 168px; }
    /* Same treatment for the comparison table: full-bleed so a column is visibly
       clipped at the right edge, plus a scroll hint under it — at 390px only the
       feature column and CloudVet fit, and nothing else said the rest was there. */
    .landing .compare-wrap { margin: 8px -18px 0; border-radius: 0; border-left: 0; border-right: 0; }
    .landing .compare-hint { display: block; }
    /* Pin the feature column: once you swipe to SoftVet/Digitail the rows are
       just ticks and dashes, and without the label beside them the table says
       nothing. border-collapse eats borders on a sticky cell, so the right edge
       is a box-shadow. */
    .landing table.compare .compare-feat,
    .landing table.compare .compare-corner {
        position: sticky; left: 0; z-index: 1;
        box-shadow: 1px 0 0 var(--line);
    }
    .landing .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    /* 30px rows were a cramped target for a thumb; 40px with the same visual
       rhythm just needs the line box opened up. */
    .landing .foot-col a { min-height: 40px; display: flex; align-items: center; }
    .landing .foot-bottom { flex-direction: column; gap: 6px; }
}

/* ========= ACCESSIBILITY ========= */
@media (prefers-reduced-motion: reduce) {
    .landing *, .landing *::before, .landing *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
    }
}

.landing a:focus-visible,
.landing button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ========= MARKETING PAGES (templates/marketing) =========
   One page per search intent, sharing the landing's bands, lists and closing.
   Headings sit in the left column, prose in the right one (same split as FAQ). */
.landing .lp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.landing .lp-crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.landing .lp-hero .lp-crumbs { grid-column: 1 / -1; }
.landing .lp-hero.home-hero { padding: 40px 0 64px; }
.landing .lp-hero.home-hero h1 { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.1; }
.landing .lp-hero .home-hero-side p { font-size: 17px; }
@media (min-width: 900px) {
    .landing .lp-hero.home-hero .container { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}

.landing .lp-prose > * { min-width: 0; }
/* Next to prose headings, the FAQ title drops to their size. */
.landing main:has(.lp-prose) .home-faq h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; }
.landing .lp-prose > h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.015em; margin-top: 56px; }
.landing .lp-prose > h2:first-child { margin-top: 0; }
.landing .lp-prose h3 { font-size: 18px; margin-top: 28px; }
.landing .lp-prose p { color: var(--text-2); font-size: 17px; line-height: 1.65; margin-top: 14px; max-width: 68ch; }
.landing .lp-prose p a, .landing .lp-prose li a { color: var(--primary); font-weight: 600; }
.landing .lp-prose p a:hover, .landing .lp-prose li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.landing .lp-prose strong { color: var(--text); }
@media (min-width: 900px) {
    .landing .lp-prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); column-gap: 56px; }
    .landing .lp-prose > * { grid-column: 2; }
    .landing .lp-prose > h2 { grid-column: 1; }
    .landing .lp-prose > h2 + * { margin-top: 56px; }
    .landing .lp-prose > h2:first-child + *,
    .landing .lp-prose > :first-child { margin-top: 0; }
}

.landing .lp-shot { margin: 28px 0 0; }
.landing .lp-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.landing .lp-shot figcaption { padding-top: 10px; font-size: 14px; color: var(--text-2); }

.landing .lp-related-list { display: grid; column-gap: 56px; margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.landing .lp-related-list a { display: block; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.landing .lp-related-list a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.landing .lp-related-title { font-size: clamp(22px, 2.2vw, 28px); }

/* ========= HELP CENTER (templates/help) =========
   Documentation, so no coloured band: same type and rules, on plain ground. */
.landing .hc-hero { padding-top: 40px; }
.landing .hc-hero .lp-crumbs { color: var(--text-2); }
.landing .hc-hero h1 { margin-top: 24px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; max-width: 22ch; }
.landing .hc-hero .sub { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.landing .hc-hero + .home-section { padding-top: 56px; }
.landing .hc-updated { margin-top: 12px; font-size: 14px; color: var(--text-2); }

.landing .hc-group + .hc-group { margin-top: 56px; }
.landing .hc-group { scroll-margin-top: 88px; }
.landing .hc-group h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.landing .hc-group > p { color: var(--text-2); margin-top: 6px; }
.landing .hc-group .lp-related-list { margin-top: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
    .landing .hc-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); column-gap: 56px; grid-template-rows: auto 1fr; }
    .landing .hc-group h2, .landing .hc-group > p { grid-column: 1; }
    .landing .hc-group .lp-related-list { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-content: start; }
}

.landing .hc-steps { list-style: none; counter-reset: hc-step; margin: 24px 0 0; padding: 0; }
.landing .hc-steps li { counter-increment: hc-step; position: relative; padding: 22px 0 22px 48px; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.landing .hc-steps li::before {
    content: counter(hc-step); position: absolute; left: 0; top: 20px;
    font: 700 22px/1.3 var(--display); color: var(--primary); font-variant-numeric: tabular-nums;
}
.landing .lp-prose .hc-steps h3 { margin-top: 0; }
.landing .lp-prose .hc-steps p { margin-top: 6px; }

.landing .hc-shot { margin-top: 18px; }
.landing .hc-shot a { display: block; cursor: zoom-in; }
/* Phones: let the capture use the full text column instead of the step indent. */
@media (max-width: 700px) {
    .landing .hc-steps .hc-shot { margin-left: -48px; }
}

/* ========= HOME (templates/landing/index.html.twig) =========
   One idea per screen: the day fills up in the hero, then full-height panels
   slide over each other. Motion lives in .is-armed, so it is opt-in from JS. */

.landing .home-hero { background: var(--cta-bg); color: #fff; padding-top: 72px; overflow: hidden; }
.landing .home-hero .container { display: grid; gap: 28px; }
.landing .home-hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; }
.landing .home-hero-side p { font-size: 18px; line-height: 1.55; max-width: 38ch; }
.landing .home-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.landing .home-btn { background: #F2B368; color: #1C2433; }
.landing .home-btn:hover { background: #F7C58B; }
.landing .home-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; padding: 10px 0; }
.landing .home-link:hover { text-decoration-thickness: 2px; }
.landing .home-hero a:focus-visible,
.landing .home-close a:focus-visible { outline-color: #fff; }
@media (min-width: 900px) {
    .landing .home-hero .container { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
}

.landing .home-section { padding: 96px 0 0; }
.landing .compare-wrap { border: 0; border-radius: 0; background: none; border-top: 1px solid var(--line); }
.landing table.compare { min-width: 640px; }
.landing table.compare .compare-corner,
.landing table.compare .compare-feat,
.landing table.compare thead th.compare-col { background: var(--panel); border-right: 0; border-radius: 0; }
.landing table.compare .compare-corner { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; padding-left: 0; }
.landing table.compare .compare-feat { padding-left: 0; }
.landing table.compare .compare-col--us,
.landing table.compare .cmp-cell--us { background: var(--primary-ghost) !important; border-left: 0; border-right: 0; border-radius: 0 !important; }
.landing table.compare thead th.compare-col--us { border-top: 0; }
.landing .compare-col--us .compare-brand { color: var(--primary); }
.landing .cmp-part { font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.landing .compare-disclaimer { margin: 14px 0 0; text-align: left; font-size: 13px; color: var(--text-2); }

.landing .home-faq { display: grid; gap: 28px; }
.landing .faq-list { max-width: none; margin: 0; width: 100%; }
@media (min-width: 900px) { .landing .home-faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 56px; } }

.landing .home-close { margin-top: 96px; background: var(--cta-bg); color: #fff; padding: 72px 0; }
.landing .home-close .container { display: grid; gap: 24px; }
.landing .home-close p { font-size: 17px; max-width: 44ch; }
.landing .home-close h2 { max-width: 16ch; }
@media (min-width: 900px) { .landing .home-close .container { grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; } }

@media (max-width: 700px) {
    .landing .home-hero { padding-top: 44px; }
    .landing .home-hero-actions .btn { width: 100%; }
    .landing .home-section { padding-top: 64px; }
    .landing .home-close { margin-top: 64px; padding: 52px 0; }
    .landing .compare-hint { text-align: left; margin-top: 12px; }
    .landing .compare-wrap { margin: 8px 0 0; }
}

.landing .v-hero { background: var(--cta-bg); color: #fff; overflow: hidden; padding-top: clamp(40px, 7vh, 84px); }
.landing .v-hero h1 { font-size: clamp(42px, 5.7vw, 74px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: wrap; max-width: 13ch; }
@media (min-width: 900px) { .landing .v-hero h1 { max-width: none; } }
@media (max-width: 899px) { .landing .v-hero h1 br { display: none; } }
.landing .v-lead, .landing .v-text > p { text-wrap: pretty; }
.landing .v-lead { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 46ch; }
.landing .v-hero .v-lead { animation: v-rise .7s .45s cubic-bezier(.2, .8, .2, 1) both; }
.landing .v-price .v-lead { color: var(--text-2); }
.landing .v-hero .home-hero-actions { margin-top: 32px; }
.landing .v-word { display: inline-block; animation: v-rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 60ms); }
.landing .v-agenda { margin-top: clamp(36px, 6vh, 64px); height: clamp(280px, 38vw, 480px); overflow: hidden; border-radius: 12px 12px 0 0; background: #fff; animation: v-rise .8s .35s cubic-bezier(.2, .8, .2, 1) both; }
.landing .v-agenda-in { position: relative; }
.landing .v-agenda img { display: block; width: 100%; height: auto; }
.landing .v-tile {
    position: absolute; inset: 0;
    clip-path: inset(var(--t) var(--r) var(--b) var(--l) round 6px);
    transform-origin: var(--cx) var(--cy);
    animation: v-drop .55s cubic-bezier(.3, 1.5, .5, 1) both;
    animation-delay: calc(1s + var(--i) * 260ms);
}

@keyframes v-rise { from { opacity: 0; transform: translateY(32px); } }
@keyframes v-drop { from { opacity: 0; transform: translateY(-24px) scale(.9); } }

/* Panels: each one sticks under the nav and the next slides over it. */
.landing .v-panel { position: sticky; top: 69px; min-height: calc(100vh - 69px); min-height: calc(100svh - 69px); display: grid; align-items: center; color: #1C2433; overflow: hidden; }
.landing .v-panel--teal { background: #CBEBE6; }
.landing .v-panel--blue { background: #D9E5FC; }
.landing .v-panel--amber { background: #F8DCB0; }
.landing .v-panel--ink { background: #1C2433; color: #fff; }
.landing .v-panel .container { width: 100%; display: grid; gap: 36px; padding-top: 32px; padding-bottom: 32px; }
.landing .v-panel h2 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
.landing .v-text > p { margin-top: 18px; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; max-width: 34ch; }
.landing .v-stage { position: relative; width: 100%; overflow: hidden; border-radius: 12px; background: #fff; }
.landing .v-stage img { display: block; width: 100%; height: auto; }
.landing .v-stage--phone { max-width: 460px; }
.landing .v-stage--receipt { max-width: 340px; }
@media (min-width: 900px) {
    .landing .v-panel .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 64px; align-items: center; }
    .landing .v-stage--phone, .landing .v-stage--receipt { justify-self: center; }
}
@media (max-height: 620px) { .landing .v-panel { position: static; min-height: 0; padding: 40px 0; } }

.landing .v-tap { position: absolute; left: 27%; top: 93%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, .55); opacity: 0; }
.landing .v-count { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.landing .v-reel { display: inline-block; height: 1em; overflow: hidden; font: 700 56px/1 var(--display); }
.landing .v-reel > span { display: block; transform: translateY(-2em); }
.landing .v-reel i { display: block; height: 1em; font-style: normal; font-variant-numeric: tabular-nums; }

.is-armed .v-panel .v-text, .is-armed .v-panel .v-stage { opacity: 0; transform: translateY(48px); }
.is-armed .v-panel.is-in .v-text, .is-armed .v-panel.is-in .v-stage { opacity: 1; transform: none; transition: opacity .6s ease-out, transform .8s cubic-bezier(.2, .8, .2, 1); }
.is-armed .v-panel.is-in .v-stage { transition-delay: .15s; }
.is-armed .v-panel.is-in .v-tap { animation: v-tap 1.1s 1.2s ease-out 2; }
@keyframes v-tap { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2); } }
/* The sheet and the register fill in from the top, the way they get written. */
.is-armed .v-stage--sheet img, .is-armed .v-stage--rows img { clip-path: inset(0 0 100% 0); }
.is-armed .is-in .v-stage--sheet img { clip-path: inset(0); transition: clip-path 1.6s .5s cubic-bezier(.4, 0, .2, 1); }
.is-armed .is-in .v-stage--rows img { animation: v-rows 2s .6s both; }
@keyframes v-rows {
    0% { clip-path: inset(0 0 90% 0); animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
    25% { clip-path: inset(0 0 67% 0); animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
    50% { clip-path: inset(0 0 44.5% 0); animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
    75% { clip-path: inset(0 0 22% 0); animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
    100% { clip-path: inset(0); }
}
.is-armed .v-reel > span { transform: none; }
.is-armed .is-in .v-reel > span { transform: translateY(-2em); transition: transform 1.4s .9s cubic-bezier(.6, 0, .2, 1); }
/* The receipt feeds out of the printer. */
.is-armed .v-stage--receipt img { transform: translateY(-100%); }
.is-armed .is-in .v-stage--receipt img { transform: none; transition: transform 1.5s .5s steps(14); }

.landing .v-price { padding: clamp(88px, 14vh, 150px) 0; }
.landing .v-price h2 { font-size: clamp(42px, 7vw, 88px); line-height: 1; letter-spacing: -0.035em; }
.landing .price-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: 48px; }
.landing .price-list li { display: grid; gap: 4px; scroll-margin-top: 88px; }
.landing .price-list b { font-size: 34px; line-height: 1; }
.landing .price-list span { color: var(--text-2); }
.landing .v-price .pricing-note { margin-top: 40px; }
.landing .v-more { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (min-width: 900px) { .landing .price-list { grid-template-columns: repeat(4, 1fr); } }
.is-armed .v-price .price-list li { opacity: 0; transform: translateY(24px); }
.is-armed .v-price.is-in .price-list li { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 110ms); }

.landing .v-questions { scroll-margin-top: 110px; }
.landing .v-questions .container { align-items: start; }
.landing .v-questions h2 { font-size: clamp(30px, 3.4vw, 44px); }
.landing .v-rest > summary { padding: 18px 0; cursor: pointer; font-weight: 600; color: var(--primary); list-style: none; border-bottom: 1px solid var(--line); }
.landing .v-rest > summary::-webkit-details-marker { display: none; }
.landing .v-rest .compare-wrap { border-top: 0; }

@media (max-width: 700px) {
    .landing .v-panel { top: 61px; min-height: calc(100vh - 61px); min-height: calc(100svh - 61px); }
    .landing .v-agenda { margin-right: -18px; border-top-right-radius: 0; }
    .landing .v-agenda-in { width: 720px; }
    .landing .v-stage--phone { max-width: 320px; }
    .landing .v-stage--receipt { max-width: 190px; }
    .landing .v-stage--sheet img, .landing .v-stage--rows img { width: 560px; max-width: none; }
    .landing .v-reel { font-size: 42px; }
}

/* Case study (templates/marketing/studiu-de-caz-*): the figures are the page's
   one idea, so they get the display face at hero size, laid out flat — no
   cards, a rule above each figure. */
.landing .cs-figures { display: grid; gap: 0 56px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; }
.landing .cs-figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 20px 0 8px; border-top: 1px solid var(--line); }
.landing .cs-figures dd { margin: 0; font: 700 clamp(44px, 5vw, 64px)/1 var(--display); letter-spacing: -0.03em; color: var(--text); }
.landing .cs-figures dt { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--text-2); max-width: 26ch; }
.landing .cs-period { margin-top: 20px; font-size: 14px; color: var(--text-2); }
.landing .cs-quote { margin: 0; }
.landing .cs-quote p { font: 600 clamp(22px, 2.4vw, 28px)/1.35 var(--display); color: var(--text); max-width: 40ch; margin-top: 0; }
.landing .cs-quote footer { margin-top: 14px; font-size: 15px; color: var(--text-2); }
.landing .cs-network { margin-top: 28px; font: 600 clamp(20px, 2vw, 24px)/1.35 var(--display); color: var(--text); max-width: 46ch; }
