/* ============================================
   KIWI LANDING (#5)
   Faithful translation of docs/design/Kiwi Landing.dc.html.
   All values come from the design tokens (tokens.css).
   ============================================ */

@import url('/styles/tokens.css');

/* ---- base ---- */
.ld {
    margin: 0;
    background: var(--surface);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    color: var(--text-primary);
}
.ld * { box-sizing: border-box; }
.ld summary::-webkit-details-marker { display: none; }
.ld summary::marker { content: ""; }

/* ---- header ---- */
.ld-header {
    width: 100%;
    background: var(--card);
    border-bottom: 1px solid var(--border-light);
}
.ld-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
}
.ld-brand { display: flex; align-items: center; gap: 12px; }
.ld-mark {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(71, 45, 48, .25));
}
.ld-wordmark { font-family: var(--font-display); font-size: 24px; color: var(--mocha); }
.ld-header-nav { display: flex; align-items: center; gap: 22px; }
.ld-login {
    font-weight: 600;
    font-size: 14px;
    color: var(--plum);
    text-decoration: none;
}
.ld-btn-coral {
    font-weight: 600;
    font-size: 14px;
    color: var(--surface);
    background: var(--coral);
    padding: 10px 22px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: background .15s;
}
.ld-btn-coral:hover { background: var(--coral-dark); }

/* ---- popovers (native <details>) ---- */
.ld-pop { position: relative; }
.ld-pop summary { cursor: pointer; user-select: none; list-style: none; }
.ld-btn-outline {
    font-weight: 600;
    font-size: 14px;
    color: var(--mocha);
    background: var(--card);
    border: 1.5px solid var(--border);
    padding: 9px 18px;
    border-radius: var(--radius-btn);
    transition: border-color .15s, background .15s;
    display: inline-block;
}
.ld-btn-outline:hover { border-color: var(--sage); background: var(--surface); }
.ld-pop-panel {
    position: absolute;
    width: 298px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-popover);
    padding: 18px 20px;
    z-index: 50;
    text-align: left;
}
.ld-pop-down .ld-pop-panel { top: calc(100% + 10px); right: 0; }
.ld-pop-up .ld-pop-panel {
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    padding: 20px 22px;
}
.ld-pop-eyebrow {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--plum-light);
    text-transform: uppercase;
}
.ld-pop-panel p { margin: 9px 0 0; font-size: 13px; line-height: 1.55; color: var(--mocha); }
.ld-pop-up .ld-pop-panel p { font-size: 13.5px; }
.ld-pop-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--plum-light);
    line-height: 1.5;
}

/* ---- hero ---- */
.ld-hero { width: 100%; padding: 92px 64px 80px; text-align: center; }
.ld-eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--plum-light);
    margin-bottom: 22px;
}
.ld-h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 64px;
    line-height: 1.08;
    color: var(--mocha);
    margin: 0 auto;
    max-width: 820px;
    text-wrap: pretty;
}
.ld-sub {
    font-size: 20px;
    line-height: 1.6;
    color: var(--plum);
    max-width: 600px;
    margin: 26px auto 0;
    text-wrap: pretty;
}
.ld-cta-stack {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.ld-btn-cta {
    display: inline-flex;
    font-weight: 700;
    font-size: 19px;
    color: var(--surface);
    background: var(--coral);
    padding: 18px 46px;
    border-radius: var(--radius-card);
    text-decoration: none;
    box-shadow: var(--shadow-cta);
    transition: background .15s, transform .15s;
}
.ld-btn-cta:hover { background: var(--coral-dark); transform: translateY(-2px); }
.ld-cta-note { font-size: 13px; color: var(--plum-light); }

/* ---- recognition checklist ---- */
.ld-check {
    width: 100%;
    background: var(--card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 68px 64px;
}
.ld-h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 36px;
    color: var(--mocha);
    text-align: center;
    margin: 0 0 36px;
}
.ld-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 860px;
    margin: 0 auto;
}
.ld-check-item {
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    font-size: 15.5px;
    line-height: 1.45;
}
.ld-check-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--sage);
    color: var(--mocha);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.ld-check-close {
    font-family: var(--font-display);
    font-size: 23px;
    color: var(--mocha);
    text-align: center;
    margin: 36px 0 0;
}

/* ---- walkthrough ---- */
.ld-steps {
    max-width: 1180px;
    margin: 0 auto;
    padding: 76px 64px;
    display: flex;
    flex-direction: column;
    gap: 68px;
}
.ld-step { display: flex; align-items: center; gap: 48px; }
.ld-step-rev { flex-direction: row-reverse; }
.ld-step-text { flex: 1; }
.ld-step-chip {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--amber-deep);
    background: var(--peach);
    padding: 6px 11px;
    border-radius: 9px;
}
.ld-h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 30px;
    color: var(--mocha);
    margin: 14px 0 10px;
}
.ld-step-p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--plum);
    max-width: 400px;
}
.ld-shot {
    width: 56%;
    height: auto;
    aspect-ratio: 913 / 540;
    object-fit: cover;
    object-position: top;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
}
.ld-shot-wide { aspect-ratio: 913 / 422; }

/* animated demo frames (steps 3 & 4) */
.ld-demo {
    position: relative;
    width: 56%;
    aspect-ratio: 913 / 540;
    flex-shrink: 0;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.ld-demo > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Step 3 — drag-to-calendar demo. A task styled like the real backlog row
   drags out of the folder; the target column washes amber (the app's real
   drag-active tint) and lands as the real scheduled-block style. */
.ld-demo-tint {
    position: absolute;
    left: 60%;
    top: 69%;
    width: 7.6%;
    height: 31%;
    background: rgba(232, 176, 75, .12);
    opacity: 0;
}
.ld-demo-chip {
    position: absolute;
    left: 13%;
    top: 64.5%;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px 5px 7px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--sage);
    border-radius: var(--radius-chip);
    box-shadow: 0 8px 20px rgba(71, 45, 48, .3);
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.9);
}
.ld-chip-glyph { font-size: 11px; color: var(--sage); }
.ld-chip-title { font-size: 11px; font-weight: 600; color: var(--mocha); }
.ld-chip-dur {
    font-size: 8px;
    font-weight: 600;
    color: var(--plum);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 2px 6px;
}
.ld-demo-block {
    position: absolute;
    left: 63.4%;
    top: 80.5%;
    width: 11%;
    height: 11%;
    background: var(--sage-faint);
    border: 1px solid var(--sage);
    border-left: 3px solid var(--sage);
    border-radius: 6px;
    padding: 3px 5px;
    overflow: hidden;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.7);
}
.ld-block-title {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--green-ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ld-block-time {
    font-size: 7px;
    color: var(--green-ink);
    opacity: .75;
    font-family: var(--font-mono);
    margin-top: 1px;
    white-space: nowrap;
}

/* Step 4 — compass demo: mask the screenshot's static ball, redraw it so it drifts */
.ld-demo-mask {
    position: absolute;
    left: 33.6%;
    top: 63.1%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--card);
}
.ld-demo-ball-anchor {
    position: absolute;
    left: 33.6%;
    top: 63.1%;
    width: 0;
    height: 0;
}
.ld-ball-pulse {
    position: absolute;
    width: 34px;
    height: 34px;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(226, 109, 92, .4);
}
.ld-ball {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--coral);
    border: 2px solid var(--coral-dark);
    box-shadow: 0 2px 6px rgba(71, 45, 48, .3);
}

/* ---- founder note ---- */
.ld-founder {
    width: 100%;
    background: var(--card);
    border-top: 1px solid var(--border-light);
    padding: 56px 64px;
    text-align: center;
}
.ld-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 24px;
    line-height: 1.45;
    color: var(--mocha);
    max-width: 560px;
    margin: 0 auto;
    text-wrap: pretty;
}
.ld-attr {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--plum-light);
    margin-top: 14px;
}

/* ---- final CTA ---- */
.ld-final { width: 100%; padding: 68px 64px; text-align: center; }
.ld-h2-big {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 40px;
    color: var(--mocha);
    margin: 0;
}
.ld-final-ctas {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.ld-btn-outline-big {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 19px;
    color: var(--mocha);
    background: var(--card);
    border: 1.5px solid var(--border);
    padding: 16.5px 34px;
    border-radius: var(--radius-card);
    transition: border-color .15s, background .15s;
}
.ld-btn-outline-big:hover { border-color: var(--sage); background: var(--surface); }
.ld-crisis { font-size: 12.5px; color: var(--plum-light); margin: 30px 0 0; }

/* ---- legal pages (privacy.html / terms.html, #133) ---- */
a.ld-brand { text-decoration: none; }
.ld-legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 76px;
}
.ld-legal .ld-eyebrow { margin-bottom: 14px; }
.ld-legal-h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 44px;
    line-height: 1.1;
    color: var(--mocha);
    margin: 0;
}
.ld-legal-updated {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--plum-light);
    margin: 12px 0 28px;
}
.ld-legal h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 26px;
    color: var(--mocha);
    margin: 40px 0 12px;
}
.ld-legal p,
.ld-legal li {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--plum);
    margin: 0 0 14px;
}
.ld-legal ul { margin: 0 0 14px; padding-left: 22px; }
.ld-legal li { margin-bottom: 8px; }
.ld-legal strong { color: var(--mocha); }
.ld-legal a { color: var(--coral-dark); }
.ld-legal a:hover { color: var(--coral); }
/* the "not a doctor / crisis" callout — must not read like fine print */
.ld-legal-note {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 18px 22px;
    margin: 24px 0;
}
.ld-legal-note p { margin: 0; color: var(--mocha); }
.ld-legal-cross {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* ---- blog (blog 2026-07-30) ---- */
/* Index page — /blog. Same measure discipline as the legal pages. */
.ld-blog {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px 76px;
}
.ld-blog .ld-eyebrow { margin-bottom: 14px; }
.ld-blog-h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 44px;
    line-height: 1.1;
    color: var(--mocha);
    margin: 0;
}
.ld-blog-sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--plum);
    margin: 14px 0 0;
    max-width: 540px;
}
.ld-blog-list {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ld-blog-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 22px 24px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.ld-blog-card:hover { border-color: var(--sage); box-shadow: var(--shadow-card); }
.ld-blog-tag {
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--amber-deep);
    background: var(--peach);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}
.ld-blog-card-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.25;
    color: var(--mocha);
    margin: 10px 0 6px;
}
.ld-blog-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--plum);
}
.ld-blog-card-meta {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--plum-light);
    margin-top: 12px;
}
/* Empty-manifest state — must feel intentional, not broken. */
.ld-blog-empty {
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-card);
    padding: 34px 24px;
    text-align: center;
    font-size: 15.5px;
    color: var(--plum);
}

/* Article prose — /blog/<slug>. Comfortable reading measure (~68ch). */
.ld-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 76px;
}
.ld-article .ld-eyebrow { margin-bottom: 16px; }
.ld-article .ld-eyebrow a { color: inherit; text-decoration: none; }
.ld-article .ld-eyebrow a:hover { color: var(--coral); }
.ld-article-h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 42px;
    line-height: 1.15;
    color: var(--mocha);
    margin: 14px 0 0;
    text-wrap: pretty;
}
.ld-article-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--plum-light);
    margin: 12px 0 30px;
}
.ld-article h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 28px;
    color: var(--mocha);
    margin: 42px 0 12px;
}
.ld-article h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 21px;
    color: var(--mocha);
    margin: 30px 0 8px;
}
.ld-article p,
.ld-article li {
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--plum);
    margin: 0 0 16px;
    max-width: 68ch;
}
.ld-article ul,
.ld-article ol { margin: 0 0 16px; padding-left: 24px; }
.ld-article li { margin-bottom: 8px; }
.ld-article strong { color: var(--mocha); }
.ld-article a { color: var(--coral-dark); }
.ld-article a:hover { color: var(--coral); }
.ld-article blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--sage);
}
.ld-article blockquote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    line-height: 1.5;
    color: var(--mocha);
    margin: 0;
}

/* Comparison tables inside articles (Guides). Wide tables scroll inside
   .ld-table-wrap — the page itself never scrolls horizontally. */
.ld-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--card);
}
.ld-article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.55;
}
.ld-article th,
.ld-article td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-light);
    color: var(--plum);
    min-width: 130px;
}
.ld-article th {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--warm-tint);
    white-space: nowrap;
}
.ld-article td:first-child { font-weight: 600; color: var(--mocha); }
.ld-article tr:last-child td { border-bottom: none; }

/* CTA component — small, warm nudge inside articles. */
.ld-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--peach-faint);
    border: 1px solid var(--peach);
    border-radius: var(--radius-card);
    padding: 20px 24px;
    margin: 34px 0;
}
.ld-cta-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mocha);
}
.ld-cta-box .ld-btn-coral { flex-shrink: 0; white-space: nowrap; }
/* Inside articles, `.ld-article a` (0-1-1) outspecifies `.ld-btn-coral`
   (0-1-0) and painted the button text coral-dark on coral — unreadable.
   Articles get the orange button with white text instead. */
.ld-article a.ld-btn-coral { color: #FFFFFF; background: var(--orange); }
.ld-article a.ld-btn-coral:hover { background: var(--orange-dark); }
/* Quieter inline variant — a text link that still reads as an action. */
a.ld-cta-inline {
    color: var(--coral-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--coral-light);
}
a.ld-cta-inline:hover { color: var(--coral); text-decoration-color: var(--coral); }

/* ---- footer ---- */
.ld-footer { width: 100%; border-top: 1px solid var(--border-light); }
.ld-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--plum-light);
}
.ld-footer-care { display: inline-flex; align-items: center; gap: 5px; }
.ld-footer-links { display: inline-flex; align-items: center; gap: 8px; }
.ld-footer-links a { color: var(--plum-light); text-decoration: none; }
.ld-footer-links a:hover { color: var(--coral); }

/* ---- animations (gentle — respect reduced motion) ---- */
@media (prefers-reduced-motion: no-preference) {
    @keyframes ld-float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    .ld-float { animation: ld-float 4.4s ease-in-out infinite; }
    .ld-float-late { animation-delay: -2.2s; }

    @keyframes ld-chip-drag {
        0%   { left: 13%;   top: 64.5%; opacity: 0; transform: translate(-50%, -50%) scale(.9); }
        7%   { opacity: 1;  transform: translate(-50%, -50%) scale(1); }
        38%  { left: 63.4%; top: 80.5%; opacity: 1; transform: translate(-50%, -50%) scale(1); }
        44%  { left: 63.4%; top: 80.5%; opacity: 0; transform: translate(-50%, -50%) scale(.55); }
        100% { left: 13%;   top: 64.5%; opacity: 0; transform: translate(-50%, -50%) scale(.9); }
    }
    @keyframes ld-block-settle {
        0%, 40%   { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
        46%       { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
        52%       { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        86%       { opacity: 1; transform: translate(-50%, -50%) scale(1); }
        94%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.92); }
    }
    @keyframes ld-column-tint {
        0%, 4% { opacity: 0; }
        10%, 36% { opacity: 1; }
        44%, 100% { opacity: 0; }
    }
    .ld-demo-chip  { animation: ld-chip-drag 4.6s ease-in-out infinite; }
    .ld-demo-block { animation: ld-block-settle 4.6s ease-in-out infinite; }
    .ld-demo-tint  { animation: ld-column-tint 4.6s ease-in-out infinite; }

    @keyframes ld-compass-drift {
        0%, 100% { transform: translate(-2px, 7px); }
        25%      { transform: translate(8px, -3px); }
        50%      { transform: translate(-4px, -10px); }
        75%      { transform: translate(5px, 5px); }
    }
    @keyframes ld-compass-pulse {
        0%   { transform: translate(-50%, -50%) scale(1); opacity: .5; }
        100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
    }
    .ld-demo-ball-anchor { animation: ld-compass-drift 7s ease-in-out infinite; }
    .ld-ball-pulse { animation: ld-compass-pulse 2.8s ease-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
    /* static but complete: show the landed states */
    .ld-demo-chip { display: none; }
    .ld-demo-block { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    .ld-ball-pulse { display: none; }
}

/* ---- responsive ---- */
@media (max-width: 960px) {
    .ld-header-inner { padding: 16px 22px; }
    .ld-header-nav { gap: 14px; }
    .ld-hero { padding: 64px 24px 56px; }
    .ld-h1 { font-size: 42px; }
    .ld-sub { font-size: 17px; }
    .ld-check { padding: 52px 24px; }
    .ld-check-grid { grid-template-columns: 1fr; }
    .ld-steps { padding: 56px 24px; gap: 52px; }
    .ld-step, .ld-step-rev { flex-direction: column; align-items: flex-start; gap: 22px; }
    .ld-shot, .ld-demo { width: 100%; }
    .ld-founder, .ld-final { padding: 48px 24px; }
    .ld-h2 { font-size: 30px; }
    .ld-h2-big { font-size: 32px; }
    .ld-legal { padding: 44px 22px 56px; }
    .ld-legal-h1 { font-size: 34px; }
    .ld-blog, .ld-article { padding: 44px 22px 56px; }
    .ld-blog-h1 { font-size: 34px; }
    .ld-article-h1 { font-size: 32px; }
    .ld-cta-box { flex-direction: column; align-items: flex-start; }
    .ld-pop-down .ld-pop-panel { right: -60px; max-width: calc(100vw - 32px); }
    .ld-pop-up .ld-pop-panel { max-width: calc(100vw - 32px); }
    .ld-footer-inner { padding: 16px 22px; }
}
@media (max-width: 480px) {
    .ld-header-inner { padding: 12px 14px; }
    .ld-header-nav { gap: 10px; }
    .ld-header-nav a, .ld-header-nav summary { white-space: nowrap; }
    .ld-wordmark { display: none; }   /* mark alone on small phones */
    .ld-btn-outline { padding: 9px 12px; }
    .ld-btn-coral { padding: 10px 14px; }
    .ld-pop-down .ld-pop-panel { right: -80px; }
    .ld-h1 { font-size: 34px; }
}

/* Language switcher (site_i18n.py) — plain links in the footer, so a crawler
   discovers the other languages and a reader we guessed wrong can leave. */
.ld-langs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.ld-langs a { color: #723D46; text-decoration: none; border-bottom: 1px solid rgba(114, 61, 70, .3); }
.ld-langs a:hover { color: #E26D5C; border-bottom-color: #E26D5C; }
.ld-lang-on { color: #472D30; font-weight: 600; }
