/*
 * RepOcean public pages: landing (index.html), privacy.html, terms.html.
 * Same design tokens as the app (assets/css/app.css) — one brand blue,
 * greys for every surface, Inter, soft depth — with bolder type and
 * spacing than the app shell. Green/red appear only as small text.
 */

:root {
    --ro-primary: #0d6efd;
    --ro-primary-hover: #0b5ed7;
    --ro-primary-active: #0a58ca;
    --ro-primary-soft: #eaf2ff;
    --ro-primary-softer: #f4f8ff;
    --ro-primary-deep: #0a3d91;
    --ro-navy: #0b1b3a;
    --ro-bg: #f7f8fa;
    --ro-surface: #ffffff;
    --ro-text: #19212e;
    --ro-text-muted: #5b6678;
    --ro-line: #e6e9ef;
    --ro-line-strong: #d5dae3;
    --ro-star: #f1a33c;
    --ro-success: #16803c;
    --ro-radius: 12px;
    --ro-radius-lg: 18px;
    --ro-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
    --ro-shadow-md: 0 12px 32px rgba(16, 24, 40, .10);
    --ro-shadow-lg: 0 24px 60px rgba(11, 27, 58, .16);
    --ro-focus: 0 0 0 3px #fff, 0 0 0 5px var(--ro-primary);
    --ro-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: var(--ro-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ro-text);
    background: var(--ro-surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--ro-primary); text-decoration: none; }
a:hover { color: var(--ro-primary-hover); }
:focus-visible { outline: none; box-shadow: var(--ro-focus); border-radius: 6px; }
h1, h2, h3 { color: var(--ro-text); }

.ld-container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.ld-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    background: var(--ro-primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
}
.ld-skip:focus { top: 12px; color: #fff; }

/* Buttons */
.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    border: 1px solid transparent;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
    white-space: nowrap;
    cursor: pointer;
}
.ld-btn:focus-visible { border-radius: 10px; }
.ld-btn-primary { background: var(--ro-primary); color: #fff; box-shadow: 0 1px 2px rgba(13, 110, 253, .25); }
.ld-btn-primary:hover { background: var(--ro-primary-hover); color: #fff; box-shadow: 0 8px 20px rgba(13, 110, 253, .28); transform: translateY(-1px); }
.ld-btn-primary:active { background: var(--ro-primary-active); transform: none; }
.ld-btn-ghost { border-color: var(--ro-line-strong); color: var(--ro-text); background: var(--ro-surface); }
.ld-btn-ghost:hover { border-color: var(--ro-primary); color: var(--ro-primary); }
.ld-btn-lg { padding: 15px 28px; font-size: 17px; }
.ld-btn .fa-arrow-right { font-size: .85em; transition: transform .15s; }
.ld-btn:hover .fa-arrow-right { transform: translateX(3px); }

/* Header */
.ld-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--ro-line);
}
.ld-header .ld-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 12px;
}
.ld-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ro-text);
}
.ld-brand:hover { color: var(--ro-text); }
.ld-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--ro-primary) 0%, var(--ro-primary-deep) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.ld-nav { display: flex; align-items: center; gap: 10px; }
.ld-nav .ld-signin { font-weight: 600; color: var(--ro-text); padding: 8px 12px; }
.ld-nav .ld-signin:hover { color: var(--ro-primary); }
.ld-nav .ld-btn { padding: 10px 18px; font-size: 15px; }

/* Landing header: section links in the middle, menu toggle on phones */
.ld-menu { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 32px; padding: 0; list-style: none; }
.ld-menu a { display: block; padding: 8px 12px; color: var(--ro-text-muted); font-weight: 500; font-size: 15px; border-radius: 8px; }
.ld-menu a:hover { color: var(--ro-text); background: var(--ro-bg); }
.ld-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--ro-line-strong);
    border-radius: 10px;
    background: var(--ro-surface);
    color: var(--ro-text);
    font-size: 17px;
    cursor: pointer;
}

/* Hero */
.ld-hero {
    position: relative;
    background:
        radial-gradient(900px 480px at 88% -8%, var(--ro-primary-soft) 0%, rgba(234, 242, 255, 0) 62%),
        radial-gradient(700px 360px at -10% 110%, var(--ro-primary-softer) 0%, rgba(244, 248, 255, 0) 60%),
        linear-gradient(180deg, #fbfcfe 0%, var(--ro-surface) 100%);
    padding: 80px 0 88px;
    overflow: hidden;
}
.ld-hero::before {
    /* faint dot grid behind the product mock */
    content: "";
    position: absolute;
    inset: 0 0 0 50%;
    background-image: radial-gradient(rgba(13, 110, 253, .13) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
    pointer-events: none;
}
.ld-hero .ld-container {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.ld-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--ro-primary-active);
    background: var(--ro-surface);
    border: 1px solid #cfe0fd;
    border-radius: 999px;
    padding: 6px 14px 6px 8px;
    margin-bottom: 22px;
    box-shadow: var(--ro-shadow-sm);
}
.ld-eyebrow-dot {
    background: var(--ro-primary);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ld-hero h1 {
    font-size: clamp(36px, 5.4vw, 60px);
    line-height: 1.06;
    letter-spacing: -.035em;
    font-weight: 800;
    margin: 0 0 22px;
}
.ld-hero h1 .ld-hl {
    background: linear-gradient(90deg, var(--ro-primary) 0%, var(--ro-primary-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.ld-hero .ld-sub {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ro-text-muted);
    margin: 0 0 32px;
    max-width: 33em;
}
.ld-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ld-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--ro-text-muted);
}
.ld-hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.ld-check { color: var(--ro-success); font-size: 14px; }

/* Hero visual: a small CSS-only slice of the dashboard */
.ld-shot {
    position: relative;
    background: var(--ro-surface);
    border: 1px solid var(--ro-line);
    border-radius: var(--ro-radius-lg);
    box-shadow: var(--ro-shadow-lg);
    overflow: hidden;
}
.ld-shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ro-line);
    background: #fbfcfd;
}
.ld-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ro-line-strong); display: block; }
.ld-shot-bar span { margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--ro-text-muted); }
.ld-shot-body { padding: 18px; display: grid; gap: 14px; }
.ld-shot-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ld-stat {
    border: 1px solid var(--ro-line);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--ro-surface);
}
.ld-stat-label { font-size: 11px; color: var(--ro-text-muted); font-weight: 500; }
.ld-stat-value { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.ld-stat-value small { font-size: 11px; font-weight: 600; color: var(--ro-text-muted); }
.ld-review {
    border: 1px solid var(--ro-line);
    border-radius: 12px;
    padding: 14px;
    background: var(--ro-surface);
}
.ld-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ld-avatar {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: var(--ro-primary-soft);
    color: var(--ro-primary-active);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.ld-avatar.is-grey { background: #eef0f4; color: #4a5568; }
.ld-review-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.ld-review-meta { font-size: 12px; color: var(--ro-text-muted); }
.ld-stars { color: var(--ro-star); font-size: 13px; letter-spacing: 1px; }
.ld-review-text { font-size: 14px; margin: 0 0 10px; }
.ld-tag {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: var(--ro-text-muted);
    background: var(--ro-bg);
    border: 1px solid var(--ro-line);
    border-radius: 999px;
    padding: 2px 9px;
    white-space: nowrap;
}
.ld-tag.is-blue { color: var(--ro-primary-active); background: var(--ro-primary-soft); border-color: #cfe0fd; }
.ld-draft {
    background: var(--ro-primary-softer);
    border: 1px solid #d9e7fe;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}
.ld-draft-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ro-primary-active);
    margin-bottom: 4px;
}
.ld-draft-actions { display: flex; gap: 8px; margin-top: 10px; }
.ld-mini-btn {
    font-size: 12px;
    font-weight: 600;
    border-radius: 7px;
    padding: 5px 12px;
    border: 1px solid var(--ro-line-strong);
    background: var(--ro-surface);
    color: var(--ro-text);
}
.ld-mini-btn.is-primary { background: var(--ro-primary); border-color: var(--ro-primary); color: #fff; }
.ld-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ro-surface);
    border: 1px solid var(--ro-line);
    border-radius: 12px;
    box-shadow: var(--ro-shadow-md);
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.35;
    z-index: 3;
}
.ld-float strong { display: block; font-size: 13px; }
.ld-float div > span { color: var(--ro-text-muted); font-size: 12px; }
.ld-float-icon {
    width: 32px;
    height: 32px;
    flex: none;
    border-radius: 9px;
    background: var(--ro-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.ld-hero-visual { position: relative; padding: 18px 0 26px; }
.ld-float-a { top: -4px; right: -18px; }
.ld-float-b { bottom: 0; left: -26px; }

/* Trust strip */
.ld-strip { border-top: 1px solid var(--ro-line); border-bottom: 1px solid var(--ro-line); background: var(--ro-surface); padding: 28px 0; }
.ld-strip .ld-container { display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.ld-strip-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ro-text-muted); }
.ld-strip-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; margin: 0; padding: 0; list-style: none; }
.ld-strip-logos li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: #4a5568; font-size: 16px; }
.ld-strip-logos i { font-size: 20px; color: #7b8494; }

/* Sections */
.ld-section { padding: 96px 0; }
.ld-section.ld-alt { background: var(--ro-bg); }
.ld-section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.ld-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ro-primary);
    margin-bottom: 12px;
}
.ld-section-head h2, .ld-spot h2 {
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 800;
    margin: 0 0 14px;
}
.ld-section-head p { color: var(--ro-text-muted); font-size: 18px; margin: 0; }

/* Feature spotlights: copy on one side, CSS mock on the other */
.ld-spots { display: grid; gap: 96px; }
.ld-spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ld-spot.is-flip .ld-spot-copy { order: 2; }
.ld-spot h2 { font-size: clamp(26px, 3.2vw, 36px); }
.ld-spot-copy > p { font-size: 17px; color: var(--ro-text-muted); margin: 0 0 22px; }
.ld-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.ld-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.ld-list i {
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--ro-primary-soft);
    color: var(--ro-primary);
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ld-link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.ld-link i { font-size: .8em; transition: transform .15s; }
.ld-link:hover i { transform: translateX(3px); }
.ld-panel {
    background: linear-gradient(160deg, var(--ro-primary-softer) 0%, #eef3fb 100%);
    border: 1px solid var(--ro-line);
    border-radius: 22px;
    padding: 32px;
    position: relative;
}
.ld-panel .ld-shot { box-shadow: var(--ro-shadow-md); }

/* Request mock */
.ld-channels { display: flex; gap: 8px; flex-wrap: wrap; }
.ld-channel {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 9px;
    border: 1px solid var(--ro-line-strong);
    background: var(--ro-surface);
    font-size: 13px;
    font-weight: 600;
    color: var(--ro-text);
}
.ld-channel.is-on { border-color: var(--ro-primary); color: var(--ro-primary-active); background: var(--ro-primary-softer); }
.ld-field { border: 1px solid var(--ro-line-strong); border-radius: 9px; padding: 9px 12px; font-size: 13px; color: var(--ro-text-muted); background: var(--ro-surface); }
.ld-field b { color: var(--ro-text); font-weight: 600; }
.ld-qr-row { display: flex; align-items: center; gap: 14px; }
.ld-qr {
    width: 72px;
    height: 72px;
    flex: none;
    border-radius: 10px;
    border: 1px solid var(--ro-line);
    background:
        linear-gradient(90deg, var(--ro-text) 0 0) 8px 8px / 18px 18px no-repeat,
        linear-gradient(90deg, var(--ro-text) 0 0) 46px 8px / 18px 18px no-repeat,
        linear-gradient(90deg, var(--ro-text) 0 0) 8px 46px / 18px 18px no-repeat,
        repeating-conic-gradient(var(--ro-text) 0 25%, #fff 0 50%) 30px 30px / 12px 12px,
        #fff;
    background-clip: content-box, content-box, content-box, content-box, border-box;
}
.ld-qr-copy { font-size: 13px; color: var(--ro-text-muted); }
.ld-qr-copy strong { display: block; color: var(--ro-text); font-size: 14px; }

/* Widget mock */
.ld-widget-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ld-widget-score { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.ld-widget-sub { font-size: 12px; color: var(--ro-text-muted); }
.ld-widget-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ld-wcard { border: 1px solid var(--ro-line); border-radius: 10px; padding: 10px; background: var(--ro-surface); font-size: 12px; }
.ld-wcard p { margin: 6px 0 0; color: var(--ro-text); line-height: 1.45; }
.ld-wcard .ld-review-name { font-size: 12px; }
.ld-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    background: var(--ro-navy);
    color: #c9d7f2;
    border-radius: 10px;
    padding: 10px 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ld-code b { color: #8fb8ff; font-weight: 500; }

/* Feature grid */
.ld-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ld-feature {
    background: var(--ro-surface);
    border: 1px solid var(--ro-line);
    border-radius: var(--ro-radius);
    box-shadow: var(--ro-shadow-sm);
    padding: 28px 26px;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ld-feature:hover { border-color: #cfe0fd; box-shadow: var(--ro-shadow-md); transform: translateY(-2px); }
.ld-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--ro-primary-soft);
    color: var(--ro-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
}
.ld-feature h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.ld-feature p { font-size: 15px; color: var(--ro-text-muted); margin: 0; }

/* How it works */
.ld-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}
.ld-steps::before {
    /* connector line behind the step numbers */
    content: "";
    position: absolute;
    top: 47px;
    left: 16%;
    right: 16%;
    border-top: 2px dashed #cfe0fd;
}
.ld-step {
    background: var(--ro-surface);
    border: 1px solid var(--ro-line);
    border-radius: var(--ro-radius);
    padding: 28px 26px;
    position: relative;
    text-align: center;
}
.ld-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ro-primary);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 0 6px var(--ro-surface), 0 0 0 7px #cfe0fd;
}
.ld-step h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.ld-step p { font-size: 15px; color: var(--ro-text-muted); margin: 0; }
.ld-steps-cta { text-align: center; margin-top: 40px; }

/* Integrations */
.ld-integrations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ld-integration {
    background: var(--ro-surface);
    border: 1px solid var(--ro-line);
    border-radius: var(--ro-radius);
    padding: 26px 24px;
    box-shadow: var(--ro-shadow-sm);
}
.ld-integration-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--ro-line);
    background: var(--ro-bg);
    color: #3d4757;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.ld-integration h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.ld-integration p { font-size: 14px; color: var(--ro-text-muted); margin: 0; }

/* FAQ */
.ld-faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.ld-faq details {
    background: var(--ro-surface);
    border: 1px solid var(--ro-line);
    border-radius: var(--ro-radius);
    transition: border-color .15s, box-shadow .15s;
}
.ld-faq details[open] { border-color: #cfe0fd; box-shadow: var(--ro-shadow-sm); }
.ld-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 56px 20px 22px;
    font-weight: 600;
    font-size: 17px;
    position: relative;
    border-radius: var(--ro-radius);
}
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ro-primary-soft);
    color: var(--ro-primary);
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
    transition: transform .2s;
}
.ld-faq details[open] summary::after { content: "\2212"; }
.ld-faq details p { margin: 0; padding: 0 22px 20px; color: var(--ro-text-muted); font-size: 16px; }
.ld-faq-more { text-align: center; margin-top: 28px; color: var(--ro-text-muted); }

/* CTA band */
.ld-cta-band { padding: 0 0 96px; }
.ld-cta-box {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(135deg, var(--ro-primary) 0%, var(--ro-primary-deep) 100%);
    color: #fff;
    text-align: center;
    border-radius: 26px;
    padding: 72px 32px;
}
.ld-cta-box h2 {
    color: #fff;
    font-size: clamp(28px, 3.8vw, 42px);
    line-height: 1.15;
    letter-spacing: -.03em;
    font-weight: 800;
    margin: 0 auto 14px;
    max-width: 18em;
}
.ld-cta-box p { color: rgba(255, 255, 255, .88); font-size: 18px; margin: 0 auto 32px; max-width: 34em; }
.ld-cta-box .ld-hero-ctas { justify-content: center; }
.ld-cta-box .ld-btn-primary { background: #fff; color: var(--ro-primary-active); box-shadow: 0 8px 24px rgba(0, 0, 0, .16); }
.ld-cta-box .ld-btn-primary:hover { background: var(--ro-primary-soft); color: var(--ro-primary-active); }
.ld-cta-box .ld-btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.ld-cta-box .ld-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.ld-cta-box :focus-visible { box-shadow: 0 0 0 3px var(--ro-primary-deep), 0 0 0 5px #fff; }
.ld-cta-note { margin-top: 18px !important; margin-bottom: 0 !important; font-size: 14px !important; color: rgba(255, 255, 255, .78) !important; }

/* Footer (legal pages use the compact single row) */
.ld-footer { border-top: 1px solid var(--ro-line); padding: 28px 0; }
.ld-footer .ld-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--ro-text-muted);
}
.ld-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.ld-footer a { color: var(--ro-text-muted); }
.ld-footer a:hover { color: var(--ro-primary); }

/* Full footer on the landing page */
.ld-footer-full { background: var(--ro-bg); padding: 64px 0 28px; }
.ld-footer-full .ld-container { display: block; }
.ld-footer-full nav { display: block; }
.ld-footer-full .ld-brand, .ld-footer-full .ld-brand:hover { color: var(--ro-text); }
.ld-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.ld-footer-about p { margin: 14px 0 0; max-width: 22em; font-size: 15px; }
.ld-footer-col h2 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ro-text); margin: 4px 0 14px; }
.ld-footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ld-footer-col a { font-size: 15px; }
.ld-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--ro-line); padding-top: 24px; font-size: 14px; }

/* Legal pages (privacy.html, terms.html) */
.ld-legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.ld-legal h1 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.02em; margin: 0 0 8px; }
.ld-legal .ld-legal-date { color: var(--ro-text-muted); margin-bottom: 32px; }
.ld-legal h2 { font-size: 20px; margin: 32px 0 10px; letter-spacing: -.01em; }
.ld-legal p, .ld-legal li { color: #3a4556; font-size: 16px; }
.ld-legal ul { padding-left: 22px; }
.ld-legal h3 { font-size: 17px; margin: 22px 0 8px; }
.ld-legal code { font-size: 13px; background: #f1f4f9; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

/* Gentle reveal on scroll (only when JS has opted the page in) */
.js-reveal .ld-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .ld-reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1040px) {
    .ld-menu { margin-left: 16px; }
    .ld-menu a { padding: 8px 9px; }
    .ld-integrations { grid-template-columns: repeat(2, 1fr); }
    .ld-float-a { right: -6px; }
    .ld-float-b { left: -6px; }
}
@media (max-width: 900px) {
    .ld-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .ld-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 10px 20px 18px;
        flex-direction: column;
        align-items: stretch;
        background: var(--ro-surface);
        border-bottom: 1px solid var(--ro-line);
        box-shadow: var(--ro-shadow-md);
    }
    .ld-menu.is-open { display: flex; }
    .ld-menu a { padding: 12px 10px; font-size: 16px; color: var(--ro-text); }
    .ld-header .ld-container { position: relative; }
    .ld-hero { padding: 56px 0 64px; }
    .ld-hero::before { inset: 40% 0 0 0; }
    .ld-hero .ld-container { grid-template-columns: 1fr; gap: 48px; }
    .ld-hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
    .ld-spot { grid-template-columns: 1fr; gap: 36px; }
    .ld-spot.is-flip .ld-spot-copy { order: 0; }
    .ld-spots { gap: 72px; }
    .ld-features { grid-template-columns: repeat(2, 1fr); }
    .ld-steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .ld-steps::before { display: none; }
    .ld-footer-grid { grid-template-columns: repeat(3, 1fr); }
    .ld-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .ld-section { padding: 64px 0; }
    .ld-section-head { margin-bottom: 40px; }
    .ld-section-head p { font-size: 17px; }
    .ld-hero .ld-sub { font-size: 17px; }
    .ld-nav .ld-btn { padding: 9px 14px; font-size: 14px; }
    .ld-nav .ld-signin { padding: 8px 6px; }
    .ld-hero-ctas .ld-btn { width: 100%; }
    .ld-features, .ld-integrations { grid-template-columns: 1fr; }
    .ld-panel { padding: 16px; border-radius: 18px; }
    .ld-shot-body { padding: 14px; }
    .ld-widget-cards { grid-template-columns: 1fr 1fr; }
    .ld-widget-cards .ld-wcard:nth-child(3) { display: none; }
    .ld-float { display: none; }
    .ld-hero-visual { padding: 0; }
    .ld-strip .ld-container { justify-content: center; text-align: center; }
    .ld-strip-logos { justify-content: center; gap: 12px 24px; }
    .ld-cta-band { padding-bottom: 64px; }
    .ld-cta-box { padding: 52px 22px; border-radius: 20px; }
    .ld-footer .ld-container { flex-direction: column; text-align: center; }
    .ld-footer-full .ld-container { text-align: left; }
    .ld-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .ld-footer-bottom { flex-direction: column; }
    .ld-faq summary { font-size: 16px; padding: 18px 52px 18px 18px; }
    .ld-faq details p { padding: 0 18px 18px; }
}
/* On phones the header keeps the brand mark + one CTA; the wordmark and
   Sign in link come back in the menu, hero and footer. */
@media (max-width: 519.98px) {
    .ld-header-cta .ld-brand-name { display: none; }
    .ld-header-cta .ld-signin { display: none; }
    .ld-shot-stats { grid-template-columns: 1fr 1fr; }
    .ld-shot-stats .ld-stat:nth-child(3) { display: none; }
}
@media (min-width: 520px) {
    .ld-menu .ld-menu-signin { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .js-reveal .ld-reveal { opacity: 1; transform: none; }
}
