/*
 * The presentation site. Same language as the program (DESIGN.md): the tokens below are those of resources/css/tokens.css, written as
 * plain CSS variables because this site is static and has no build. Change a token there first, then here.
 */
@font-face {
    font-family: 'Inter Variable';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
    --background: #f4f9fd;
    --sidebar: #e4eefa;
    --surface: #fafcff;
    --border: #deeaf6;
    --key: #ebf5fc;
    --key-hover: #dfeefb;
    --primary-50: #eef5fd;
    --primary-100: #dcedfd;
    --primary-200: #b9daf8;
    --primary-500: #3178c6;
    --primary-600: #1f66b3;
    --primary-700: #17549a;
    --text-strong: #0a2d69;
    --text: #2a4670;
    --text-muted: #566b8d;
    --clock-in: #1a7a50;
    --clock-in-bg: #e3f5ec;
    --clock-out: #a64b06;
    --clock-out-bg: #fdf1e3;
    --error: #b42318;
    --error-bg: #fdecec;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    /* the presentation site is allowed more shape than the program: rounder cards and sections, same colours */
    --radius-xl: 28px;
    --radius-section: 56px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --shadow: 0 1px 2px rgb(10 45 105 / 0.04), 0 4px 16px rgb(10 45 105 / 0.06);
    --font: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 24px;
    color: var(--text);
    background: var(--background);
}

img, svg { max-width: 100%; }

h1, h2, h3 { color: var(--text-strong); margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 28px; }
p { margin: 0; }
a { color: var(--primary-600); }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-variant-numeric: tabular-nums; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary-600); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--primary-500); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); }
.section { padding-block: 72px; }
.band { background: var(--surface); border-block: 1px solid var(--border); padding-block: 72px; }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.section-head p { font-size: 18px; line-height: 28px; }
.overline { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-600); }
.fineprint { margin-top: 32px; font-size: 14px; line-height: 20px; color: var(--text-muted); max-width: 720px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgb(244 249 253 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; color: var(--text-strong); text-decoration: none; }
.brand.small { font-size: 18px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.menu a:not(.btn):hover { background: var(--primary-50); }
.menu .btn { margin-left: 4px; }
.menu-toggle { display: none; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); color: var(--text-strong); cursor: pointer; }

@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }
    .menu { position: absolute; inset: 68px 0 auto 0; display: none; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .menu[data-open] { display: flex; }
    .menu .btn { margin: 4px 0 0; }
}

/* the other way to see the site: the clock (only where there is room for it) */
.view-switch { display: none !important; }
@media (min-width: 720px) and (min-height: 520px) { .view-switch { display: inline-flex !important; } li.view-switch { display: list-item !important; } }
.menu a.view-switch { align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; color: var(--primary-600); text-decoration: none; }
.menu a.view-switch:hover { background: var(--primary-50); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius-md); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: var(--primary-600); color: #fff; }
.btn-primary:hover { background: var(--primary-700); }
.btn-secondary { background: var(--surface); color: var(--primary-600); border-color: var(--border); }
.btn-secondary:hover { background: var(--primary-50); }
.btn-quiet { background: transparent; color: var(--text-muted); }
.btn-quiet:hover { background: var(--primary-50); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; padding-block: 72px 64px; }
.hero h1 span { color: var(--primary-600); }
.lead { margin-top: 20px; font-size: 20px; line-height: 30px; max-width: 620px; }
.ticks { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--clock-in-bg); color: var(--clock-in); font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 280px; }
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-block: 40px; }
}

/* cards */
.cards { display: grid; gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 10px; align-content: start; }
.band .card { background: var(--background); }
.icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--primary-100); font-size: 22px; }

/* steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 8px; position: relative; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--primary-600); color: #fff; display: grid; place-items: center; font-weight: 600; margin-bottom: 4px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 24px; color: var(--primary-600); transition: transform 150ms ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; }

/* form */
.form { display: grid; gap: 16px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.form input:not([type='checkbox']), .form select { min-height: 52px; width: 100%; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font: inherit; font-size: 16px; color: var(--text-strong); }
.form input:focus, .form select:focus { border-color: var(--primary-500); outline: 3px solid var(--primary-100); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form .hint { font-size: 14px; color: var(--text-muted); margin-top: -8px; }
.form .check-line { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 20px; }
.form .check-line input { width: 22px; height: 22px; margin-top: 0; accent-color: var(--primary-600); flex-shrink: 0; }
.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 24px; font-weight: 500; }
.form-status.ok { color: var(--clock-in); }
.form-status.bad { color: var(--error); }
.field-bad { border-color: var(--error) !important; }

/* footer */
.foot { padding-block: 48px; border-top: 1px solid var(--border); background: var(--surface); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.foot-title { font-weight: 600; color: var(--text-strong); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* the demonstration */
.demo { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } }

.tablet { background: var(--text-strong); border-radius: 28px; padding: 14px; box-shadow: 0 12px 40px rgb(10 45 105 / 0.25); }
.screen { background: var(--background); border-radius: 16px; min-height: 520px; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.screen[hidden] { display: none; }
.screen-clock { font-size: 32px; line-height: 40px; font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.screen-title { font-size: 28px; line-height: 36px; font-weight: 600; color: var(--text-strong); }
.screen-sub { font-size: 18px; color: var(--text-muted); }
.screen-sub.small { font-size: 14px; }
.screen-error { min-height: 24px; color: var(--error); font-weight: 500; }
.dots { display: flex; gap: 14px; min-height: 24px; align-items: center; margin: 4px 0 8px; }
.dots span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--primary-500); transition: background-color 120ms ease-out, transform 180ms cubic-bezier(0.3, 1.6, 0.5, 1); }
.dots span.on { background: var(--primary-600); border-color: var(--primary-600); transform: scale(1.15); }
.dots.shake { animation: shake 360ms ease-in-out; }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }

/* the keypad: round keys that give way when pressed, in the tablet, the phone and the offline tablet alike */
.pad { --key-size: 76px; display: grid; grid-template-columns: repeat(3, var(--key-size)); gap: 14px; justify-content: center; }
.pad button {
    width: var(--key-size); height: var(--key-size); border-radius: 50%;
    border: 1px solid var(--border); background: var(--key); color: var(--text-strong);
    font: inherit; font-size: 30px; font-weight: 500; line-height: 1;
    display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 1px 0 rgb(10 45 105 / 0.06), 0 3px 8px rgb(10 45 105 / 0.07);
    transition: background-color 100ms ease-out, transform 100ms ease-out, box-shadow 100ms ease-out;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none;
}
.pad button:hover { background: var(--key-hover); }
.pad button:active, .pad button.pressed { transform: scale(0.91); background: #cfe4f8; box-shadow: none; }
.pad button.quiet { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-muted); font-size: 26px; }
.pad button.quiet:hover { background: var(--primary-50); }
.pad button.ok { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.pad button.ok:hover { background: var(--primary-700); }
@media (max-height: 760px) { .pad { --key-size: 68px; gap: 12px; } }
.big { min-height: 160px; width: min(320px, 100%); border-radius: var(--radius-lg); border: 0; color: #fff; font: inherit; font-size: 40px; font-weight: 600; cursor: pointer; margin-top: 12px; }
.big.in { background: var(--clock-in); }
.big.out { background: var(--clock-out); }
.big:hover { opacity: 0.92; }
.link { background: none; border: 0; color: var(--text-muted); font: inherit; text-decoration: underline; cursor: pointer; margin-top: 8px; min-height: 44px; }
.check { width: 96px; height: 96px; border-radius: 50%; background: var(--clock-in-bg); color: var(--clock-in); font-size: 52px; display: grid; place-items: center; margin-top: 60px; }

.ledger { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 16px; }
.ledger-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ledger-state { border-radius: var(--radius-sm); padding: 4px 12px; font-size: 14px; font-weight: 600; background: var(--clock-in-bg); color: var(--clock-in); }
.ledger-state.broken { background: var(--error-bg); color: var(--error); }
.ledger-empty, .ledger-help, .ledger-note { font-size: 15px; color: var(--text-muted); }
.ledger-note { min-height: 22px; color: var(--text); }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger th { text-align: left; font-weight: 500; color: var(--text-muted); padding: 8px 6px; border-bottom: 1px solid var(--border); }
.ledger td { padding: 10px 6px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.ledger td.seal { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.ledger tr.broken td { background: var(--error-bg); color: var(--error); }
.ledger tr.changed td.time { font-weight: 700; }
.pill { display: inline-block; border-radius: var(--radius-sm); padding: 2px 10px; font-size: 13px; font-weight: 600; }
.pill.in { background: var(--clock-in-bg); color: var(--clock-in); }
.pill.out { background: var(--clock-out-bg); color: var(--clock-out); }

/* "Ya soy cliente" / "Quiero ser cliente" */
.doors-section { padding-block: 48px 8px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }
.door { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 16px; align-content: start; }
.door-new { background: var(--primary-50); border-color: var(--primary-200); }
.door p { font-size: 17px; line-height: 26px; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.links a { font-weight: 500; }

/* tabs (the roles and the simulations) */
.tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tablist button { min-height: 44px; padding: 0 18px; border-radius: 9999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 150ms ease-out; }
.tablist button:hover { background: var(--primary-50); }
.tablist button[aria-selected='true'] { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.tabpanel[hidden] { display: none; }
.panel-intro { max-width: 760px; margin-bottom: 24px; font-size: 18px; line-height: 28px; }
.who { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.who-title { font-weight: 600; color: var(--text-strong); margin-bottom: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--clock-in-bg); color: var(--clock-in); font-size: 13px; font-weight: 700; display: grid; place-items: center; }

/* simulations */
.sim.two { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .sim.two { grid-template-columns: 1fr; } }
.sim-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; display: grid; gap: 16px; justify-items: start; }
.sim-label { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.sim-help { font-size: 15px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.actions.stack { flex-direction: column; align-items: stretch; width: 100%; }
.ledger-state.open { background: var(--clock-out-bg); color: var(--clock-out); }
.status { display: inline-block; border-radius: var(--radius-sm); padding: 2px 10px; font-size: 13px; font-weight: 600; }
.status.sent { background: var(--clock-in-bg); color: var(--clock-in); }
.status.pending { background: var(--clock-out-bg); color: var(--clock-out); }

/* the rotating code */
.qr-card { justify-items: center; text-align: center; }
.qr-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; width: min(260px, 100%); }
.qr { display: block; width: 100%; height: auto; }
.countdown { width: min(260px, 100%); height: 8px; border-radius: 9999px; background: var(--primary-100); overflow: hidden; }
.countdown span { display: block; height: 100%; width: 100%; background: var(--primary-600); transform-origin: left; transform: scaleX(calc(1 - var(--left, 0))); }

.phone { background: var(--text-strong); border-radius: 36px; padding: 12px; width: min(340px, 100%); justify-self: center; box-shadow: 0 12px 40px rgb(10 45 105 / 0.25); }
.phone-screen { background: var(--background); border-radius: 26px; min-height: 520px; padding: 28px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.phone-screen[hidden] { display: none; }
.phone .screen-title { font-size: 24px; line-height: 32px; }
.phone .screen-sub { font-size: 16px; }
.phone .pad { --key-size: 62px; gap: 12px; }
.phone .pad button { font-size: 25px; }
.phone .dots { margin: 0; }
.phone .check { margin-top: 0; width: 84px; height: 84px; font-size: 44px; }
.check.bad { background: var(--error-bg); color: var(--error); }
.viewfinder { width: 200px; height: 200px; border-radius: var(--radius-lg); border: 3px solid var(--primary-500); position: relative; overflow: hidden; background: var(--primary-50); }
.viewfinder span { position: absolute; left: 0; right: 0; height: 3px; background: var(--primary-600); animation: scan 1.1s ease-in-out infinite; }
@keyframes scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }

/* internet and its absence */
.net { display: inline-flex; align-items: center; gap: 10px; border-radius: 9999px; padding: 8px 16px; background: var(--clock-in-bg); color: var(--clock-in); font-size: 16px; }
.net-dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.net.off { background: var(--clock-out-bg); color: var(--clock-out); }

/* the night and its closing */
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--primary-200); display: grid; gap: 14px; }
.timeline li { position: relative; padding-left: 12px; }
.timeline li::before { content: ''; position: absolute; left: -29px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary-600); border: 2px solid var(--surface); }
.timeline .time, .ledger td.time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-strong); }
.ask { background: var(--clock-out-bg); border: 1px solid #f1d4ae; border-radius: var(--radius-md); padding: 16px; display: grid; gap: 12px; }
.ask[hidden] { display: none; }
.ask-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.ask-row label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.ask-row input { min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-md); font: inherit; background: var(--surface); color: var(--text-strong); }

/* the report */
.doc { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 12px; }
.doc .doc-sub { color: var(--text-muted); font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th { text-align: left; font-weight: 500; color: var(--text-muted); padding: 8px 6px; border-bottom: 2px solid var(--border); }
.doc td { padding: 10px 6px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.doc tr.total td { font-weight: 700; color: var(--text-strong); border-bottom: 0; }
.doc-hash { font-size: 14px; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: 12px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9999px; padding: 3px; background: var(--background); justify-self: start; }
.seg button { min-height: 36px; padding: 0 18px; border: 0; border-radius: 9999px; background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--primary-600); color: #fff; }
.linkcard { display: grid; gap: 14px; width: 100%; background: var(--primary-50); border: 1px solid var(--primary-200); border-radius: var(--radius-md); padding: 18px; }
.linkcard[hidden] { display: none; }
.link-url { font-size: 16px; color: var(--text-strong); word-break: break-all; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border-radius: 9999px; padding: 4px 12px; background: var(--surface); border: 1px solid var(--primary-200); font-size: 13px; font-weight: 600; color: var(--primary-700); }

/* a small clock to pick an hour (js/timepicker.js) */
.timepick { display: grid; gap: 10px; justify-items: start; }
.timepick-body { display: grid; gap: 12px; justify-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); width: min(260px, 100%); }
.timepick-body[hidden] { display: none; }
.timepick-readout { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.timepick-part { min-width: 56px; min-height: 48px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--key); color: var(--text-strong); font: inherit; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.timepick-part[aria-pressed='true'] { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.timepick-colon { font-size: 28px; font-weight: 600; color: var(--text-strong); }
.timepick .seg { margin-left: 6px; }
.timepick-dial { width: 100%; max-width: 220px; height: auto; touch-action: none; cursor: pointer; border-radius: 50%; }
.timepick-dial:focus-visible { outline: 3px solid var(--primary-500); outline-offset: 3px; }
.tp-face { fill: var(--background); stroke: var(--border); stroke-width: 1.5; }
.tp-tick { stroke: var(--primary-200); stroke-width: 1; stroke-linecap: round; }
.tp-tick.strong { stroke: var(--text-muted); stroke-width: 1.6; }
.tp-hand { stroke: var(--text-strong); stroke-width: 3.2; stroke-linecap: round; transition: none; }
.tp-bead { fill: var(--primary-600); }
.tp-hub { fill: var(--text-strong); }
.tp-number { font-size: 11px; font-weight: 600; fill: var(--text-strong); text-anchor: middle; dominant-baseline: central; pointer-events: none; font-variant-numeric: tabular-nums; }
.tp-number.on { fill: #fff; }
.timepick-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text-strong); font: inherit; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.timepick-toggle::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--primary-600); background: linear-gradient(var(--primary-600), var(--primary-600)) 50% 20% / 2px 7px no-repeat, linear-gradient(var(--primary-600), var(--primary-600)) 58% 52% / 5px 2px no-repeat; }
.timepick-toggle:hover { background: var(--primary-50); }
.timepick-done { justify-self: stretch; }
/* answering a question: the readout beside the face, so it does not grow tall */
.ask .timepick-body { width: auto; grid-template-columns: auto minmax(150px, 190px); align-items: center; gap: 16px; }
.ask .timepick-readout { display: grid; justify-items: center; gap: 10px; }
.ask .timepick-readout > .timepick-part { justify-self: stretch; }
.ask .timepick-colon { display: none; }
.ask .timepick-readout .seg { margin: 0; }
.ask-time { display: grid; gap: 6px; flex: 1 1 100%; }
.ask-label { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.ask-row { align-items: flex-start; }
@media (max-width: 520px) { .ask .timepick-body { grid-template-columns: 1fr; } .ask .timepick-readout { display: flex; } .ask .timepick-colon { display: inline; } }
.cutoff { display: grid; gap: 6px; width: 100%; }
.cutoff .sim-help { margin: 0; }

/* the small tablet of the simulation without internet */
.tablet.small { width: min(380px, 100%); justify-self: center; }
.tablet.small .screen { min-height: 440px; padding: 18px 14px; }
.tablet.small .big { min-height: 120px; font-size: 34px; }
.tablet.small .screen-title { font-size: 24px; line-height: 32px; }

/* the PDF that the program saves, as small pages: real contents, shrunk */
.pdfs { grid-column: 1 / -1; display: grid; gap: 16px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 24px; }
.pdfs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pdfs-head h3 { font-size: 18px; line-height: 26px; }
.pdfs-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pdf { display: grid; gap: 8px; justify-items: start; width: 176px; padding: 0; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.pdf-page { position: relative; width: 176px; height: 250px; border-radius: 6px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease-out; }
.pdf:hover .pdf-page { transform: translateY(-3px); }
.pdf[aria-pressed='true'] .pdf-page { border-color: var(--primary-500); box-shadow: 0 0 0 3px var(--primary-200), var(--shadow); }
.pdf:focus-visible { outline: 3px solid var(--primary-500); outline-offset: 4px; border-radius: 8px; }
.pdf.new .pdf-page { animation: pdf-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pdf-in { from { opacity: 0; transform: translateY(14px) scale(0.94); } }
.pdf-tag { position: absolute; right: 8px; top: 8px; z-index: 1; border-radius: 4px; padding: 1px 6px; background: var(--error); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.pdf-caption { display: grid; gap: 2px; font-size: 13px; line-height: 18px; }
.pdf-caption strong { color: var(--text-strong); font-size: 14px; }
.pdf-caption .old { color: var(--text-muted); }
.paper { width: 420px; height: 596px; padding: 28px 30px; transform: scale(0.419); transform-origin: 0 0; background: #fff; color: #1c2b44; font-size: 13px; line-height: 18px; display: grid; align-content: start; gap: 12px; }
.paper-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-600); }
.paper-head img { width: 34px; height: 34px; }
.paper-head strong { display: block; font-size: 19px; line-height: 24px; color: var(--text-strong); }
.paper-head span { color: var(--text-muted); font-size: 12px; }
.paper-co { font-size: 12px; color: var(--text-muted); }
.paper table { width: 100%; border-collapse: collapse; font-size: 12px; }
.paper th { text-align: left; padding: 5px 4px; border-bottom: 1.5px solid #c9d8ec; color: var(--text-muted); font-weight: 600; }
.paper td { padding: 6px 4px; border-bottom: 1px solid #e3ecf7; font-variant-numeric: tabular-nums; }
.paper tr.total td { font-weight: 700; border-bottom: 0; color: var(--text-strong); }
.paper-note { padding: 8px 10px; border-radius: 6px; background: var(--clock-in-bg); color: var(--clock-in); font-size: 11px; line-height: 15px; }
.paper-foot { position: absolute; left: 30px; right: 30px; bottom: 24px; padding-top: 8px; border-top: 1px dashed #c9d8ec; color: var(--text-muted); font-size: 10.5px; line-height: 15px; }
.paper-foot .mono { font-size: 10.5px; }

/* parts that show only when their data is filled in (js/config.js) */
.proof { margin-top: 20px; color: var(--text-muted); font-size: 15px; }
.proof strong { color: var(--text-strong); font-size: 20px; }
.direct { display: grid; gap: 12px; margin-top: 24px; justify-items: start; }
.direct p { font-weight: 600; color: var(--text-strong); }
.plan-card { display: grid; gap: 14px; justify-items: start; max-width: 520px; background: var(--surface); border: 1px solid var(--primary-200); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px; }
.plan-price strong { font-size: 40px; line-height: 48px; color: var(--text-strong); }
.plan-price span, .plan-note { color: var(--text-muted); }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    .viewfinder span { animation: none; top: 50%; }
    .dots.shake, .pdf.new .pdf-page { animation: none; }
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* spacing used by the legal pages (the site's policy does not allow style attributes) */
.gap-sm { margin-top: 16px; }
.gap-md { margin-top: 24px; }
h2.gap-lg { margin-top: 32px; }

/* the demonstration: beside the tablet, a name (optional), the record and who is inside, so both sides weigh about the same */
.demo-side { display: grid; gap: 20px; align-content: start; min-width: 0; }
.name-field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.name-field input { min-height: 52px; width: 100%; padding: 0 20px; border: 1px solid var(--border); border-radius: 9999px; background: var(--surface); font: inherit; font-size: 16px; color: var(--text-strong); }
.name-field input:focus { border-color: var(--primary-500); outline: 3px solid var(--primary-100); }
.here { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); padding: 24px; }
.here-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.here-count { min-width: 36px; height: 36px; padding: 0 10px; display: grid; place-items: center; border-radius: 9999px; background: var(--key); color: var(--text-muted); font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color 300ms var(--ease), color 300ms var(--ease), transform 300ms var(--ease); }
.here-count.on { background: var(--clock-in-bg); color: var(--clock-in); transform: scale(1.12); }
.here-empty { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--primary-200); border-radius: var(--radius-lg); color: var(--text-muted); font-size: 15px; }
.here-empty[hidden] { display: none; }
.here-door { flex: none; width: 34px; height: 44px; border: 3px solid var(--primary-200); border-radius: 14px 14px 4px 4px; position: relative; }
.here-door::after { content: ''; position: absolute; right: 6px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--primary-200); }
.here-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.here-person { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 9999px; background: var(--clock-in-bg); animation: here-in 420ms var(--ease); }
.here-person strong { color: var(--text-strong); }
.here-person .muted { font-size: 14px; }
.here-avatar { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--clock-in); color: #fff; font-weight: 700; font-size: 18px; }
@keyframes here-in { from { opacity: 0; transform: translateX(-14px) scale(0.96); } }
.here-note { min-height: 20px; font-size: 14px; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .here-person { animation: none; } .here-count { transition: none; } }

/* ---- soft shapes: the same language as the clock (circles, arcs, pills), on the whole page ---- */
body { background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--surface) 0%, var(--background) 60%) fixed, var(--background); }
.section { padding-block: 88px; }
.band { background: linear-gradient(180deg, var(--surface) 0%, var(--primary-50) 100%); border: 0; border-radius: var(--radius-section); margin-inline: clamp(8px, 2vw, 28px); padding-block: 88px; }
.foot { border-radius: var(--radius-section) var(--radius-section) 0 0; margin-top: 40px; }
.card, .door, .ledger, .sim-card, .doc, .pdfs, .form, .who, .plan-card, .linkcard, .ask { border-radius: var(--radius-xl); }
.faq details { border-radius: 24px; }
.who { background: var(--surface); }
.btn { border-radius: 9999px; }
.btn-primary { box-shadow: 0 6px 18px rgb(31 102 179 / 0.26); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn { transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 200ms var(--ease), box-shadow 200ms var(--ease); }
.tablet { border-radius: 40px; padding: 16px; }
.screen { border-radius: 26px; }
.icon { border-radius: 50%; }
.ticks li::before, .checks li::before { box-shadow: 0 0 0 3px var(--clock-in-bg); background: var(--clock-in-bg); }
.steps li { border-radius: var(--radius-xl); }
.steps li::before { box-shadow: 0 0 0 7px var(--primary-100); margin-bottom: 8px; }

/* a small hand that turns beside every overline, as on the clock */
.overline { display: inline-flex; align-items: center; gap: 10px; }
.overline::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--primary-200); border-top-color: var(--primary-600); animation: hand-turn 6s linear infinite; }
@keyframes hand-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .overline::before { animation: none; } }

/* the clock of the hero, where the symbol was */
.hero { position: relative; isolation: isolate; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 280px; }
.hero-art.has-dial .hero-symbol { display: none; }
.hero-clock { --size: min(100%, 540px); width: var(--size); }
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .hero-clock { --size: min(86vw, 400px); }
}
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); }
.hero .overline { margin-bottom: 14px; }
.hero::after { opacity: 0.55; }
/* the second line of the headline is a quiet remark under the big one, not a second headline */
.hero h1 span { display: block; margin-top: 16px; font-size: clamp(18px, 1.8vw, 23px); font-weight: 500; line-height: 1.4; letter-spacing: 0; color: var(--primary-600); }
