/* Callixy website. One light and one dark palette that follow the system
   setting, one accent (cobalt blue), system fonts.
   Shapes: buttons and chips are pills; cards, frames and media use --radius
   (20px) or --radius-sm (12px) for small tiles; phone frames are rounded like
   a phone (--radius-phone). */

:root {
    --bg: #f5f8fd;
    --bg-tint: #eaf1fc;
    --surface: #ffffff;
    --surface-2: #f0f5fc;
    --ink: #0b1526;
    --ink-2: #33415a;
    --muted: #56657c;
    --line: rgba(17, 38, 76, 0.11);
    --line-strong: rgba(17, 38, 76, 0.2);
    --accent: #2459d6;
    --accent-hover: #1d4bb8;
    --accent-ink: #ffffff;
    --accent-soft: rgba(36, 89, 214, 0.09);
    --accent-text: #1f4fc4;
    --navy: #071a33;
    --frame: #0d1a2e;
    --shadow: 0 1px 2px rgba(15, 36, 80, 0.06), 0 14px 34px rgba(15, 36, 80, 0.09);
    --shadow-lg: 0 2px 6px rgba(15, 36, 80, 0.06), 0 30px 70px rgba(15, 36, 80, 0.16);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-phone: 34px;
    --font: "Segoe UI Variable Text", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 64px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #060d1a;
        --bg-tint: #0a1628;
        --surface: #0c1729;
        --surface-2: #10203a;
        --ink: #eaf0f9;
        --ink-2: #c0cbdc;
        --muted: #93a2b8;
        --line: rgba(150, 180, 230, 0.14);
        --line-strong: rgba(150, 180, 230, 0.26);
        --accent: #6fa6ff;
        --accent-hover: #8ab8ff;
        --accent-ink: #051226;
        --accent-soft: rgba(111, 166, 255, 0.13);
        --accent-text: #8ab8ff;
        --frame: #02070f;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 34px 80px rgba(0, 0, 0, 0.5);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }

a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
    color: var(--ink);
    font-family: var(--font-display);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 30;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header: z-index 20 (the only sticky layer; the skip link sits above it). */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
}

@supports not (backdrop-filter: blur(1px)) {
    .site-header { background: var(--bg); }
}

.header-row { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { border-radius: 50%; }

.site-nav { display: none; gap: 4px; margin-left: auto; }
.site-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
.header-row > .button { margin-left: auto; }

@media (min-width: 860px) {
    .site-nav { display: flex; }
    .header-row > .button { margin-left: 8px; }
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: 600 1rem/1 var(--font);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.button:active { transform: scale(0.98); }
.button-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px rgba(36, 89, 214, 0.25); }
.button-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.button-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.button-quiet:hover { color: var(--ink); border-color: var(--accent); }
.button-small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; box-shadow: none; }

@media (prefers-color-scheme: dark) {
    .button-primary { box-shadow: 0 8px 26px rgba(111, 166, 255, 0.18); }
}

/* Device frames around real screenshots. */
.phone-frame {
    position: relative;
    padding: 7px;
    border-radius: var(--radius-phone);
    background: var(--frame);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-frame img { border-radius: calc(var(--radius-phone) - 7px); width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }

.browser-frame {
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}
.browser-address {
    flex: 1;
    max-width: 320px;
    margin: 0 auto;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font: 500 0.74rem/1.4 var(--font-mono);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.browser-frame img { width: 100%; }

/* Hero */
.hero { padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; max-width: 13ch; }
.hero-lead { margin-top: 20px; max-width: 40ch; font-size: clamp(1.06rem, 2.2vw, 1.25rem); color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual { position: relative; padding-bottom: 24px; }
.hero-visual .browser-frame { width: 92%; }
.hero-visual .phone-frame { position: absolute; right: 0; bottom: 0; width: 34%; min-width: 120px; }

@media (min-width: 960px) {
    .hero { padding: 64px 0 88px; }
    .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; }
    .hero-visual { padding-bottom: 40px; }
    .hero-visual .phone-frame { width: 30%; right: -2%; }
}

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
.section-head p { margin-top: 16px; font-size: 1.12rem; max-width: 62ch; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--accent-text); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

@media (min-width: 960px) { .section { padding: 104px 0; } }

/* Devices: three pairs */
.pairs { display: grid; gap: 20px; }
.pair {
    display: grid;
    gap: 22px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.pair h3 { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.pair p { margin-top: 10px; }
.pair-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.pair-visual.is-mixed { grid-template-columns: 0.42fr 1fr; }
.pair-visual .phone-frame { --radius-phone: 26px; padding: 5px; }
.pair-visual .phone-frame img { border-radius: 21px; }
.pair-visual .browser-frame { border-radius: var(--radius-sm); }
.pair-visual .browser-bar { padding: 6px 10px; }
.pair-visual .browser-address { font-size: 0.66rem; padding: 2px 10px; }
.pair-arrow { display: inline-flex; color: var(--accent-text); }
.pairs-note { margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; color: var(--muted); max-width: 80ch; }
.pairs-note .icon { color: var(--accent-text); margin-top: 2px; }

@media (min-width: 900px) {
    .pair { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; padding: 32px; gap: 40px; }
    .pair:nth-child(2) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
    .pair:nth-child(2) .pair-copy { order: 2; }
    .pair-phones .pair-visual { max-width: 420px; justify-self: center; }
}

/* Features: bento */
.bento { display: grid; gap: 16px; }
.cell {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
}
.cell h3 { font-size: 1.28rem; font-weight: 700; }
.cell .icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-text);
}
.cell-shot { margin-top: auto; padding-top: 12px; }
.cell-shot .phone-frame { width: min(250px, 78%); margin: 0 auto -86px; }
.cell-deep { background: linear-gradient(160deg, #0d2246 0%, #071a33 62%, #050f1f 100%); border-color: rgba(255, 255, 255, 0.06); color: #c7d4ea; }
.cell-deep h3 { color: #f3f7fd; }
.cell-deep .icon-badge { background: rgba(111, 166, 255, 0.16); color: #9cc2ff; }
.cell-art { background-color: #071a33; background-image: url("/assets/art.webp"); background-size: cover; background-position: 50% 70%; color: #d5e1f3; border-color: rgba(255, 255, 255, 0.06); }
.cell-art h3 { color: #f5f8fd; }
.cell-art .icon-badge { background: rgba(255, 255, 255, 0.12); color: #e6efff; }
.cell-art p, .cell-deep p { max-width: 42ch; }
.cell-tint { background: var(--accent-soft); border-color: transparent; }

@media (min-width: 720px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cell-wide { grid-column: span 2; }
}

@media (min-width: 1040px) {
    .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); }
    .cell-a { grid-column: 1 / span 3; grid-row: span 2; }
    .cell-b { grid-column: 4 / span 3; grid-row: span 2; }
    .cell-c { grid-column: 1 / span 2; }
    .cell-d { grid-column: 3 / span 2; }
    .cell-e { grid-column: 5 / span 2; }
    .cell-f { grid-column: 1 / span 6; flex-direction: row; align-items: center; gap: 24px; }
    .cell-f > div { flex: 1; }
}

.details { display: grid; gap: 28px 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.details h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.details ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.details li { display: flex; gap: 10px; align-items: flex-start; }
.details li .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--accent-text); }

@media (min-width: 720px) { .details { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .details { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Weak networks */
.networks-grid { display: grid; gap: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: step; }
.steps li { position: relative; padding: 18px 0 18px 64px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font: 700 0.95rem/1 var(--font-mono);
}
.steps h3 { font-size: 1.15rem; font-weight: 700; }
.steps p { margin-top: 6px; }
.steps-foot { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 500; }

.ladder-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ladder-card h3 { font-size: 1.25rem; font-weight: 700; }
.ladder-card > p { margin-top: 8px; color: var(--muted); }
.ladder { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ladder li { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.ladder strong { display: block; color: var(--ink); font: 700 1.25rem/1.1 var(--font-mono); letter-spacing: -0.02em; }
.ladder strong small { font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.ladder span { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--muted); }
.ladder b { color: var(--ink-2); font-weight: 600; }
.ladder .is-default { border-color: var(--accent); background: var(--accent-soft); }
.ladder .is-default span { color: var(--ink-2); }

@media (min-width: 560px) { .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
    .networks-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; gap: 64px; }
    .ladder-card { position: sticky; top: calc(var(--header-h) + 24px); }
    .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Screens: a scroll-snap row of real screenshots */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.gallery-buttons { display: none; gap: 8px; }
.gallery-buttons button {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.gallery-buttons button:hover { border-color: var(--accent); }
.gallery-buttons button:active { transform: scale(0.96); }
.gallery-buttons .back .icon { transform: rotate(90deg); }
.gallery-buttons .next .icon { transform: rotate(-90deg); }
.js .gallery-buttons { display: flex; }
.gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(230px, 62vw);
    gap: 20px;
    overflow-x: auto;
    padding: 8px 16px 28px;
    margin: 0 -16px;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--ink-2); }
.gallery figcaption strong { display: block; color: var(--ink); font-size: 1rem; }

@media (min-width: 768px) {
    .gallery { margin: 0 -32px; padding: 8px 32px 28px; scroll-padding: 0 32px; grid-auto-columns: 250px; }
}

/* Privacy summary */
.keep-grid { display: grid; gap: 20px; }
.keep-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.keep-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.keep-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.keep-card li { display: flex; gap: 12px; align-items: flex-start; }
.keep-card li .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
.keep-card.is-never { background: var(--navy); border-color: transparent; color: #c9d6eb; }
.keep-card.is-never h3 { color: #f5f8fd; }
.keep-card.is-never li .icon { color: #8ab8ff; }
.legal-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s var(--ease);
}
.chip-link:hover { border-color: var(--accent); color: var(--ink); }
.chip-link .icon { width: 18px; height: 18px; color: var(--accent-text); }

@media (min-width: 860px) { .keep-grid { grid-template-columns: 1fr 1fr; } }

/* Closing band */
.cta-band { padding: 0 0 96px; }
.cta-inner {
    display: grid;
    gap: 28px;
    align-items: center;
    padding: 40px 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #0b2a5c 0%, #071a33 55%, #050f1f 100%);
    color: #c7d4ea;
    overflow: hidden;
    position: relative;
}
.cta-inner h2 { color: #f5f8fd; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.03em; }
.cta-inner p { margin-top: 12px; max-width: 46ch; font-size: 1.08rem; }
.cta-inner .hero-actions { margin-top: 0; }
.cta-inner .button-quiet { background: transparent; color: #f5f8fd; border-color: rgba(255, 255, 255, 0.35); }
.cta-inner .button-quiet:hover { border-color: #ffffff; }
.cta-inner .button-primary { background: #ffffff; color: #0b2a5c; box-shadow: none; }
.cta-inner .button-primary:hover { background: #e7efff; color: #0b2a5c; }
.cta-logo { width: 96px; height: 96px; border-radius: 50%; }

@media (min-width: 900px) {
    .cta-inner { grid-template-columns: auto 1fr auto; padding: 48px 52px; gap: 36px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 56px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 34ch; color: var(--muted); }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links h2 { font-family: var(--font); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); margin-bottom: 4px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.footer-base a { color: var(--muted); }

@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* Documents: guide, support, legal */
.doc-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--line); background: var(--bg-tint); }
.doc-hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.035em; max-width: 20ch; }
.doc-hero p { margin-top: 14px; max-width: 64ch; font-size: 1.1rem; }
.doc-hero .doc-meta { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 88px; }
.doc-toc { align-self: start; }
.doc-toc details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.doc-toc summary { padding: 12px 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.doc-toc ol { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 2px; }
.doc-toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 0.94rem; line-height: 1.35; }
.doc-toc a:hover { background: var(--accent-soft); color: var(--ink); }
.doc-toc a.is-current { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }

@media (min-width: 1000px) {
    .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 48px; }
    .doc-toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
    .doc-toc details { border: 0; background: none; }
    .doc-toc summary { padding: 0 10px 10px; pointer-events: none; list-style: none; }
    .doc-toc summary::-webkit-details-marker { display: none; }
    .doc-toc ol { padding: 0; }
}

.prose { max-width: 760px; color: var(--ink-2); }
.prose > section { padding-top: 8px; margin-bottom: 48px; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 8px; letter-spacing: -0.01em; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent-text); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 700; background: var(--surface-2); }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin: 16px 0; }
.table-scroll table { margin: 0; }
.table-scroll table:has(th:nth-child(3)) { min-width: 560px; }
.note { margin: 18px 0; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); }
.note p + p { margin-top: 8px; }
.note-strong { background: var(--navy); color: #d5e1f3; }
.note-strong strong, .note-strong a { color: #ffffff; }
.kbd { font: 600 0.88em/1 var(--font-mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); white-space: nowrap; }

/* A guide step: text and its screenshot. */
.how { display: grid; gap: 24px; align-items: start; margin-top: 18px; }
.how .phone-frame { width: min(260px, 72vw); margin: 0 auto; }
.how .browser-frame { width: 100%; }
.how-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.how-pair .phone-frame { width: 100%; }

@media (min-width: 720px) {
    .how { grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; }
    .how .phone-frame { width: 100%; }
    .how.is-wide { grid-template-columns: 1fr; }
}

.platforms { display: grid; gap: 14px; margin: 18px 0; }
.platform { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.platform h3 { margin: 0 0 6px; font-size: 1.05rem; }
.platform p { font-size: 0.97rem; }

@media (min-width: 720px) { .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color 0.2s var(--ease); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform 0.25s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 18px 18px; }
.faq .answer p + p { margin-top: 10px; }

.contact-card { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card h3 { margin: 0; }

/* The contact form: posted to the Callixy server, answered with a redirect
   to /support/sent/ or /support/not-sent/. */
.contact-form { position: relative; display: grid; gap: 20px; margin: 22px 0 28px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field small { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    line-height: 1.45;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; gap: 20px; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.contact-form .button { justify-self: start; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 640px) {
    .contact-form { padding: 28px; }
    .field-row { grid-template-columns: 1fr 1fr; }
}

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-top: 64px; padding-bottom: 64px; }
.lost h1 { font-size: clamp(2rem, 6vw, 3rem); }
.lost p { margin: 14px auto 26px; max-width: 46ch; }
.lost .hero-actions { justify-content: center; }
.lost-icon { width: 56px; height: 56px; margin: 0 auto 18px; padding: 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }

/* Reveal on scroll, only with JavaScript and when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--delay, 0ms); }
    .js [data-reveal].is-visible { opacity: 1; transform: none; }
    [data-delay="60"] { --delay: 60ms; }
    [data-delay="80"] { --delay: 80ms; }
    [data-delay="120"] { --delay: 120ms; }
    .hero-copy > * { animation: rise 0.8s var(--ease) both; }
    .hero-copy > :nth-child(2) { animation-delay: 80ms; }
    .hero-copy > :nth-child(3) { animation-delay: 160ms; }
    .hero-visual { animation: rise 1s var(--ease) 120ms both; }
    .pair, .cell, .chip-link { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s var(--ease); }
    .cell:hover { transform: translateY(-3px); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .doc-toc, .skip-link { display: none; }
    body { background: #ffffff; color: #000000; }
}
