/* Public site of Apollo Business Suite: landing, legal pages and the
   customer entry screens. No framework: tokens, a small grid and the
   components the pages use. */

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/geist-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Geist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/geist-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens */

:root {
    --ink: #151a2d;
    --ink-2: #4b5166;
    --ink-3: #666c84;
    --paper: #fbfbfd;
    --paper-2: #f2f4f8;
    --paper-3: #e9ecf3;
    --line: #e3e6ee;
    --line-2: #d2d6e1;
    --accent: #1172ba;
    --accent-ink: #0d5a94;
    --accent-soft: #e8f1f9;
    --on-ink: #f4f5f9;
    --on-ink-2: #a9aec1;
    --radius: 10px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 2px rgba(21, 26, 45, .05), 0 1px 3px rgba(21, 26, 45, .04);
    --shadow-md: 0 10px 30px -10px rgba(21, 26, 45, .14);
    --shadow-lg: 0 30px 60px -24px rgba(21, 26, 45, .22);
    --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --nav-h: 68px;
    --gutter: 24px;
    --max: 1200px;
}

/* ---------------------------------------------------------------- base */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-ink);
}

/* Links inside running text are underlined, so colour is not the only cue. */
.cookie p a, .check a, .legal-body a, .legal-meta a, .contact-aside dd a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(17, 114, 186, .4);
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 3px solid rgba(17, 114, 186, .4);
    outline-offset: 2px;
}

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

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: 96px 0;
}

.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    max-width: 22ch;
}

.section-lead {
    margin-top: 16px;
    max-width: 62ch;
    color: var(--ink-2);
    font-size: 1.1rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
}

.muted {
    color: var(--ink-2);
}

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .25s var(--ease), transform .12s var(--ease), color .18s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn .ph {
    font-size: 1.2em;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px -8px rgba(17, 114, 186, .6);
}

.btn-primary:hover {
    background: var(--accent-ink);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 22px -8px rgba(17, 114, 186, .65);
}

.btn-secondary {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--line-2);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    color: var(--ink);
    border-color: var(--ink-3);
    background: #fff;
}

.btn-ghost {
    height: 42px;
    padding: 0 12px;
    color: var(--ink-2);
}

.btn-ghost:hover {
    color: var(--ink);
    background: var(--paper-2);
}

.btn-lg {
    height: 54px;
    padding: 0 26px;
    font-size: 1.05rem;
}

.btn-on-ink {
    background: #fff;
    color: var(--ink);
}

.btn-on-ink:hover {
    background: var(--on-ink);
    color: var(--ink);
}

.btn[disabled] {
    opacity: .6;
    cursor: default;
}

/* Un formulario de acceso se envía por POST y la página navega: mientras el
   servidor responde no pasaba nada visible y el botón seguía vivo, así que
   invitaba a un segundo clic que volvía a enviarlo. */
.btn.is-busy {
    pointer-events: none;
    opacity: .75;
}

.btn.is-busy::before {
    content: "";
    flex: none;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin .6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .btn.is-busy::before {
        animation-duration: 2.4s;
    }
}

.btn-block {
    width: 100%;
}

/* ---------------------------------------------------------------- nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--nav-h);
    background: rgba(251, 251, 253, .85);
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.nav.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px -20px rgba(21, 26, 45, .35);
}

.nav .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-logo img {
    height: 30px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--ink-2);
    font-weight: 500;
    font-size: .95rem;
    transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--paper-2);
}

.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-actions .btn {
    height: 42px;
    padding: 0 18px;
    font-size: .95rem;
}

.nav-burger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-burger span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), background-color .2s;
}

.nav-burger span::before, .nav-burger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease), top .3s var(--ease);
}

.nav-burger span::before {
    top: -6px;
}

.nav-burger span::after {
    top: 6px;
}

.nav-burger[aria-expanded="true"] span {
    background: transparent;
}

.nav-burger[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-burger[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-sheet {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 29;
    padding: 20px var(--gutter) 32px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
}

.nav-sheet.is-open {
    display: block;
}

.nav-sheet a:not(.btn) {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
}

.nav-sheet.is-open a:not(.btn) {
    animation: sheet-in .5s var(--ease) forwards;
}

.nav-sheet a:nth-child(2) { animation-delay: .05s; }
.nav-sheet a:nth-child(3) { animation-delay: .1s; }
.nav-sheet a:nth-child(4) { animation-delay: .15s; }
.nav-sheet a:nth-child(5) { animation-delay: .2s; }

.nav-sheet .sheet-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

@keyframes sheet-in {
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    padding: 72px 0 40px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 85% 10%, rgba(17, 114, 186, .10), transparent 70%),
        radial-gradient(40% 40% at 10% 90%, rgba(17, 114, 186, .06), transparent 70%);
    pointer-events: none;
}

.hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.04;
}

.hero-lead {
    margin-top: 22px;
    max-width: 52ch;
    font-size: 1.2rem;
    color: var(--ink-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* A screenshot in a machined frame: an outer tray, an inner glass plate. */
.shot {
    padding: 8px;
    border-radius: var(--radius-lg);
    background: rgba(21, 26, 45, .04);
    box-shadow: inset 0 0 0 1px rgba(21, 26, 45, .06);
}

.shot-inner {
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 8px);
    background: #fff;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 1px rgba(21, 26, 45, .08);
}

.shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}

.shot-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line-2);
}

.shot-bar b {
    margin-left: 10px;
    flex: 1;
    height: 18px;
    border-radius: 5px;
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: .7rem;
    font-weight: 400;
    line-height: 16px;
    padding: 0 8px;
    color: var(--ink-3);
    overflow: hidden;
    white-space: nowrap;
}

.shot img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
    background: var(--paper-2);
}

.hero-shot {
    transform: translateX(4%);
}

/* ---------------------------------------------------------------- facts */

.facts {
    padding: 40px 0 0;
}

.facts ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.facts li {
    padding: 26px 24px 26px 0;
    border-right: 1px solid var(--line);
}

.facts li + li {
    padding-left: 24px;
}

.facts li:last-child {
    border-right: 0;
}

.facts strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.facts span {
    display: block;
    margin-top: 4px;
    color: var(--ink-2);
    font-size: .95rem;
}

/* ---------------------------------------------------------------- modules */

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

.bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(150px, auto);
    gap: 16px;
    margin-top: 48px;
}

.cell {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s var(--ease);
}

.cell:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    box-shadow: var(--shadow-md);
}

.cell-l {
    grid-column: span 7;
    grid-row: span 2;
}

.cell-m {
    grid-column: span 5;
}

.cell-s {
    grid-column: span 4;
}

.cell-q {
    grid-column: span 3;
}

/* A full-width row: text on the left, the screenshot bleeding out on the right. */
.cell-wide {
    grid-column: span 12;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: center;
    padding-right: 0;
}

.cell-wide .cell-shot {
    margin: 0;
    padding: 28px 0 0 0;
    align-self: end;
}

.cell-wide .cell-shot img {
    aspect-ratio: 16 / 8;
}

.cell-tint {
    background: var(--accent-soft);
    border-color: transparent;
}

.cell-dark {
    background: var(--ink);
    color: var(--on-ink);
    border-color: transparent;
}

.cell-dark .cell-text, .cell-dark .cell-list li {
    color: var(--on-ink-2);
}

.cell-dark .cell-icon {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.cell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.35rem;
}

.cell-tint .cell-icon {
    background: #fff;
}

.cell h3 {
    font-size: 1.25rem;
}

.cell-text {
    margin-top: 8px;
    color: var(--ink-2);
    font-size: .98rem;
}

.cell-list {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cell-list li {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(21, 26, 45, .05);
    color: var(--ink-2);
    font-size: .82rem;
    font-weight: 500;
}

.cell-dark .cell-list li {
    background: rgba(255, 255, 255, .08);
}

.cell-shot {
    margin: 24px -28px -28px;
    padding: 0 0 0 28px;
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.cell-shot .shot {
    width: 100%;
    padding: 6px 0 0 6px;
    border-radius: 14px 0 0 0;
}

.cell-shot .shot-inner {
    border-radius: 10px 0 0 0;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(21, 26, 45, .08);
}

.cell-shot img {
    aspect-ratio: 16 / 9;
}

/* ---------------------------------------------------------------- steps */

.steps {
    background: var(--paper-2);
}

.steps-list {
    margin-top: 48px;
    display: grid;
    gap: 0;
}

.step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid var(--line-2);
}

.step:last-child {
    border-bottom: 1px solid var(--line-2);
}

.step-n {
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.step h3 {
    font-size: 1.45rem;
}

.step p {
    margin-top: 10px;
    color: var(--ink-2);
    max-width: 48ch;
}

.step-aside {
    padding: 22px 26px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.step-aside strong {
    display: block;
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
}

.step-aside ul {
    display: grid;
    gap: 8px;
}

.step-aside li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--ink-2);
    font-size: .98rem;
}

.step-aside li .ph {
    color: var(--accent);
    font-size: 1.2rem;
    flex: none;
    margin-top: 2px;
}

/* ---------------------------------------------------------------- pricing */

.plans {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.plan:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.plan.is-popular {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.plan h3 {
    font-size: 1.2rem;
}

.plan-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 500;
}

.plan-desc {
    margin-top: 6px;
    color: var(--ink-2);
    font-size: .95rem;
    min-height: 1.5em;
}

.plan-price {
    margin-top: 22px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.plan-price strong {
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.plan-price span {
    color: var(--ink-2);
}

.plan-trial {
    margin-top: 8px;
    font-size: .9rem;
    color: var(--accent);
    font-weight: 500;
}

.plan-limits {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
}

.plan-limits li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .98rem;
    color: var(--ink-2);
}

.plan-limits li .ph {
    color: var(--accent);
    font-size: 1.15rem;
    flex: none;
}

.plan-limits li b {
    color: var(--ink);
    font-weight: 500;
}

.plan-modules {
    margin-top: 16px;
    font-size: .95rem;
    color: var(--ink-2);
}

.plan-modules button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(17, 114, 186, .35);
}

.plan-modules button:hover {
    color: var(--accent-ink);
}

.plan .btn {
    margin-top: 26px;
}

.plans-empty {
    margin-top: 48px;
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--line-2);
    text-align: center;
    color: var(--ink-2);
}

.plans-note {
    margin-top: 20px;
    font-size: .9rem;
    color: var(--ink-3);
}

/* plan detail dialog */

dialog.sheet {
    width: min(560px, calc(100% - 32px));
    max-height: min(84vh, 900px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

dialog.sheet::backdrop {
    background: rgba(21, 26, 45, .45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

dialog.sheet[open] {
    animation: sheet-pop .45s var(--ease);
}

@keyframes sheet-pop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid var(--line);
}

.sheet-head h3 {
    font-size: 1.2rem;
}

.sheet-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.sheet-close:hover {
    background: var(--paper-2);
}

.sheet-body {
    padding: 22px 26px 26px;
    overflow-y: auto;
}

.sheet-body h4 {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 22px 0 10px;
}

.sheet-body h4:first-child {
    margin-top: 0;
}

.kv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
}

.kv li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
    color: var(--ink-2);
}

.kv li b {
    color: var(--ink);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.mods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.mods li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .95rem;
}

.mods li .ph {
    color: var(--accent);
    font-size: 1.15rem;
    flex: none;
}

.sheet-foot {
    padding: 18px 26px 26px;
    border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- contact */

.contact .wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
}

.contact-aside dl {
    margin: 28px 0 0;
    display: grid;
    gap: 22px;
}

.contact-aside dt {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.contact-aside dd {
    margin: 4px 0 0;
    color: var(--ink-2);
}

.contact-aside dd a {
    font-weight: 500;
}

.form {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: grid;
    gap: 6px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-size: .92rem;
    font-weight: 500;
}

.field input, .field select, .field textarea {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--paper);
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}

.field textarea {
    height: auto;
    min-height: 140px;
    padding: 12px 14px;
    resize: vertical;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234b5166' stroke-width='1.5'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
}

.field input::placeholder, .field textarea::placeholder {
    color: var(--ink-3);
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17, 114, 186, .18);
}

.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, .check.is-invalid input {
    border-color: #c62d3f;
}

.field-error {
    display: none;
    font-size: .86rem;
    color: #b0212f;
}

.field.is-invalid .field-error, .check.is-invalid .field-error {
    display: block;
}

.check {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
}

.check label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .92rem;
    color: var(--ink-2);
}

.check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--accent);
}

.form-foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.form-hint {
    font-size: .86rem;
    color: var(--ink-3);
}

.form-status {
    display: none;
    grid-column: 1 / -1;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: .95rem;
}

.form-status.is-ok {
    display: flex;
    gap: 10px;
    background: #e7f5ec;
    color: #1d6b3a;
}

.form-status.is-error {
    display: flex;
    gap: 10px;
    background: #fbe9eb;
    color: #9f1e2c;
}

.honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------------------------------------------------------- closing + footer */

.closing {
    background: var(--ink);
    color: var(--on-ink);
    padding: 96px 0 0;
}

.closing-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: center;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.closing h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    color: #fff;
}

.closing p {
    margin-top: 14px;
    color: var(--on-ink-2);
    max-width: 52ch;
}

.closing-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer {
    padding: 56px 0 32px;
    background: var(--ink);
    color: var(--on-ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.footer-brand img {
    height: 34px;
    width: auto;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--on-ink-2);
    font-size: .92rem;
    max-width: 36ch;
}

.footer h3 {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--on-ink-2);
    margin-bottom: 16px;
}

.footer ul {
    display: grid;
    gap: 10px;
}

.footer ul a {
    color: var(--on-ink);
    font-size: .95rem;
}

.footer ul a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--on-ink-2);
    font-size: .86rem;
}

/* ---------------------------------------------------------------- toast */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    font-size: .95rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.is-ok {
    border-left-color: #1d6b3a;
}

.toast.is-error {
    border-left-color: #9f1e2c;
}

.toast-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
}

.toast.is-ok .toast-icon {
    background: #1d6b3a;
}

.toast.is-error .toast-icon {
    background: #9f1e2c;
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        transition: none;
    }
}

/* ---------------------------------------------------------------- cookie notice */

.cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    display: none;
    margin: 0 auto;
    max-width: 640px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    align-items: center;
    gap: 18px;
}

.cookie.is-visible {
    display: flex;
    animation: sheet-pop .5s var(--ease);
}

.cookie p {
    flex: 1;
    font-size: .92rem;
    color: var(--ink-2);
}

/* ---------------------------------------------------------------- legal pages */

.legal {
    padding: 56px 0 96px;
}

.legal .wrap {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    display: grid;
    gap: 4px;
    font-size: .92rem;
}

.legal-toc a {
    display: block;
    padding: 6px 10px;
    border-left: 2px solid var(--line);
    color: var(--ink-2);
}

.legal-toc a:hover, .legal-toc a.is-active {
    color: var(--ink);
    border-left-color: var(--accent);
}

.legal-body {
    max-width: 72ch;
}

.legal-body h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-meta {
    margin: 14px 0 36px;
    color: var(--ink-3);
    font-size: .92rem;
}

.legal-body h2 {
    font-size: 1.45rem;
    margin: 44px 0 12px;
    scroll-margin-top: calc(var(--nav-h) + 24px);
}

.legal-body h3 {
    font-size: 1.1rem;
    margin: 26px 0 8px;
}

.legal-body p, .legal-body li {
    color: var(--ink-2);
    margin-bottom: 12px;
}

.legal-body ul, .legal-body ol {
    padding-left: 22px;
    margin-bottom: 14px;
}

.legal-body ul {
    list-style: disc;
}

.legal-body ol {
    list-style: decimal;
}

.legal-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    margin: 12px 0 20px;
}

.legal-body th, .legal-body td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.legal-body th {
    font-weight: 500;
    color: var(--ink);
    background: var(--paper-2);
}

.legal-body strong {
    color: var(--ink);
    font-weight: 500;
}

/* ---------------------------------------------------------------- entry screens (register, login, portal) */

.entry {
    padding: 56px 0 96px;
    background: var(--paper-2);
    min-height: calc(100dvh - var(--nav-h));
}

.entry-card {
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.entry-sm {
    max-width: 460px;
}

.entry-md {
    max-width: 560px;
}

.entry-lg {
    max-width: 960px;
}

.entry-head {
    margin-bottom: 28px;
}

.entry-head h1 {
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.entry-head p {
    margin-top: 8px;
    color: var(--ink-2);
}

.entry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.5rem;
}

.entry-form {
    display: grid;
    gap: 18px;
}

.entry-form .form-grid {
    gap: 18px;
}

.entry-section {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: 8px;
}

.entry-foot {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--ink-2);
    font-size: .95rem;
}

.entry-link {
    justify-self: center;
    font-size: .95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(17, 114, 186, .4);
}

.entry-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: var(--ink-2);
    font-size: .95rem;
}

.entry-back:hover {
    color: var(--ink);
}

.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: .95rem;
}

.alert ul {
    padding-left: 18px;
    list-style: disc;
}

.alert-error {
    background: #fbe9eb;
    color: #9f1e2c;
}

.alert-ok {
    background: #e7f5ec;
    color: #1d6b3a;
}

/* input with a fixed suffix (".apollo.do") */
.field-addon {
    display: flex;
}

.field-addon input {
    border-radius: var(--radius) 0 0 var(--radius);
    min-width: 0;
}

.field-addon span {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-left: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--paper-2);
    color: var(--ink-2);
    font-size: .92rem;
    white-space: nowrap;
}

.field-help {
    font-size: .86rem;
    color: var(--ink-3);
}

.field-error.is-server {
    display: block;
}

/* plan picker: real radios, styled labels */
.plan-pick {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.plan-pick label {
    position: relative;
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--paper);
    cursor: pointer;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
}

.plan-pick label:hover {
    border-color: var(--ink-3);
}

.plan-pick input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.plan-pick input:checked + span {
    color: var(--ink);
}

.plan-pick label:has(input:checked) {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 1px var(--accent);
}

.plan-pick label:has(input:focus-visible) {
    outline: 3px solid rgba(17, 114, 186, .4);
    outline-offset: 2px;
}

.plan-pick strong {
    display: block;
    font-weight: 600;
}

.plan-pick .plan-pick-price {
    display: block;
    margin-top: 2px;
    color: var(--ink-2);
    font-size: .92rem;
    font-variant-numeric: tabular-nums;
}

.plan-pick .plan-pick-trial {
    display: block;
    margin-top: 4px;
    color: var(--accent);
    font-size: .84rem;
    font-weight: 500;
}

@media (max-width: 720px) {
    .entry {
        padding: 24px 0 64px;
    }

    .entry-card {
        padding: 24px 20px;
    }

    .entry-foot {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .entry-foot .btn {
        width: 100%;
    }
}

/* ---------------------------------------------------------------- reveal */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .8s var(--ease), transform .8s var(--ease);
        transition-delay: var(--d, 0s);
    }

    .reveal.is-in {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
    .nav-links {
        display: none;
    }

    .nav-actions .btn-ghost {
        display: none;
    }
}

@media (max-width: 900px) {
    .section {
        padding: 72px 0;
    }

    .hero .wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-shot {
        transform: none;
    }

    .facts ul {
        grid-template-columns: 1fr 1fr;
    }

    .facts li:nth-child(2) {
        border-right: 0;
    }

    .facts li:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .facts li:nth-child(3) {
        padding-left: 0;
    }

    .cell-l, .cell-m, .cell-s, .cell-q, .cell-wide {
        grid-column: span 12;
    }

    .cell-wide {
        grid-template-columns: 1fr;
        padding-right: 28px;
    }

    .cell-l {
        grid-row: auto;
    }

    .step {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .step-aside {
        grid-column: 2;
    }

    .contact .wrap {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .closing-inner {
        grid-template-columns: 1fr;
    }

    .closing-actions {
        justify-content: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .legal .wrap {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* On narrow screens the index becomes a scrollable strip of chips. */
    .legal-toc {
        position: static;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        margin: 0 calc(var(--gutter) * -1);
        padding-left: var(--gutter);
        padding-right: var(--gutter);
        scrollbar-width: none;
    }

    .legal-toc::-webkit-scrollbar {
        display: none;
    }

    .legal-toc a {
        flex: none;
        padding: 8px 14px;
        border: 1px solid var(--line);
        border-left-width: 1px;
        border-radius: 999px;
        background: #fff;
        white-space: nowrap;
    }

    .legal-toc a.is-active {
        border-color: var(--accent);
        color: var(--accent);
    }
}

@media (max-width: 720px) {
    :root {
        --gutter: 16px;
        --nav-h: 60px;
    }

    .nav .wrap {
        gap: 12px;
    }

    .nav-actions {
        display: none;
    }

    .nav-burger {
        display: inline-flex;
    }

    .hero {
        padding: 40px 0 24px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .facts ul {
        grid-template-columns: 1fr;
    }

    .facts li {
        border-right: 0;
        padding-left: 0 !important;
        border-top: 1px solid var(--line);
    }

    .facts li:first-child {
        border-top: 0;
    }

    .cell {
        padding: 22px;
    }

    .cell-shot {
        margin: 20px -22px -22px;
        padding-left: 22px;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 30px 0;
    }

    .step-aside {
        grid-column: 1;
    }

    .form {
        padding: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .kv, .mods {
        grid-template-columns: 1fr;
    }

    .cookie {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie .btn {
        width: 100%;
    }
}
