/* Sondera website. System fonts only: no external requests, no cookie banner needed. */

:root {
    --bg: #f7f5f0;
    --surface: #ffffff;
    --surface-2: #efebe3;
    --ink: #17222d;
    --text: #2a3540;
    --muted: #5f6b76;
    --border: #ddd7cc;
    --brand: #173f5f;
    --brand-hover: #0f2f48;
    --on-brand: #ffffff;
    --accent: #e8763b;
    --accent-ink: #a3471a;
    --success: #2f7a4f;
    --danger: #b3412f;
    --soil-top: #6b5a45;
    --soil-sand: #ead39b;
    --soil-clay: #b9c7d1;
    --soil-till: #c9c2b2;
    --soil-rock: #8c8a86;
    --soil-ink: #2a2a2a;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(23, 34, 45, .06), 0 8px 24px rgba(23, 34, 45, .06);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f151b;
        --surface: #161f27;
        --surface-2: #1c2731;
        --ink: #eef2f5;
        --text: #d3dae0;
        --muted: #93a0ab;
        --border: #2a3742;
        --brand: #5fa3d4;
        --brand-hover: #7db6df;
        --on-brand: #0b1620;
        --accent: #ef8a52;
        --accent-ink: #f4a274;
        --success: #5cc08a;
        --danger: #ef7a66;
        --soil-top: #5b4c3b;
        --soil-sand: #8f7c4c;
        --soil-clay: #4e5f6b;
        --soil-till: #5f594d;
        --soil-rock: #45443f;
        --soil-ink: #e0e0e0;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
        color-scheme: dark;
    }
}

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

html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
code { font-size: .9em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.small, .fine-print { font-size: .875rem; }
.fine-print { color: var(--muted); margin-top: 1rem; }
.eyebrow { color: var(--accent-ink); font-weight: 650; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand picture { display: block; line-height: 0; }
.logo { display: block; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; flex: 1; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 520; }
.site-nav a:hover, .site-nav a.active { color: var(--brand); }
.site-nav a.button { color: var(--on-brand); }
.nav-spacer { flex: 1; }
.lang-switch { font-size: .9rem; color: var(--muted) !important; }

/* Start page: summary, mailing list and screenshots */
.landing { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .landing-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.landing-copy .check-list { margin: 2rem 0 0; }
.signup { margin-top: 1.5rem; }
.signup h2 { font-size: 1.25rem; margin: 0 0 .25em; }
.signup h2 + p { margin: 0; }
.signup-row { display: flex; gap: 10px; }
.signup-row input { flex: 1; min-width: 0; }
.signup-row .button { flex: none; }
@media (max-width: 480px) { .signup-row { flex-direction: column; } }
.signup .fine-print { font-size: .9rem; margin: 0; }
.app-shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.app-shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.app-shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.app-shot img { display: block; width: 100%; height: auto; }
.app-shot figcaption { padding: 10px 14px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--border); }
.shot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .shot-grid { grid-template-columns: minmax(0, 1fr); } }
.shot-grid figcaption strong { display: block; color: var(--ink); font-size: .95rem; }
.shot-grid img { aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }

/* Buttons */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 620; text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, transform .05s;
}
.button:active { transform: translateY(1px); }
.button-small { min-height: 38px; padding: 0 16px; font-size: .95rem; }
.button-primary { background: var(--brand); color: var(--on-brand); }
.button-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.button-primary:disabled { opacity: .5; cursor: not-allowed; }
.button-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.button-secondary:hover { border-color: var(--brand); color: var(--brand); }
.button-on-dark { background: #fff; color: #173f5f; }
.button-on-dark:hover { background: #eef3f7; color: #173f5f; }
.button-ghost-on-dark { color: #fff; border-color: rgba(255, 255, 255, .45); }
.button-ghost-on-dark:hover { border-color: #fff; color: #fff; }
.is-disabled { opacity: .55; pointer-events: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tight { padding: 32px 0 72px; }
.section-tinted { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.page-head { padding: clamp(48px, 7vw, 88px) 0 8px; }


.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 32px; }
    .split-reverse > :first-child { order: 2; }
}

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.feature-card p { color: var(--muted); margin: 0; }
.feature-icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 16px;
}

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
    background: color-mix(in srgb, var(--success) 16%, transparent);
    box-shadow: inset 0 0 0 1.5px var(--success);
}
.check-list li::after {
    content: ""; position: absolute; left: 6px; top: calc(.35em + 4px); width: 5px; height: 8px;
    border: solid var(--success); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.check-list.compact { gap: 6px; font-size: .95rem; }
.check-list li.soon { color: var(--muted); }
.check-list li.soon::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border); }
.check-list li.soon::after { display: none; }
.badge {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: .75rem; font-weight: 650;
    background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); vertical-align: 1px;
}

.fact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.fact-number { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: .4em; font-variant-numeric: tabular-nums; }

.ai-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.ai-bubble { padding: 12px 16px; border-radius: 14px; max-width: 90%; }
.ai-user { background: var(--brand); color: var(--on-brand); justify-self: end; border-bottom-right-radius: 4px; }
.ai-assistant { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
.ai-tool { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .8rem; color: var(--muted); padding-left: 4px; overflow-wrap: anywhere; }

.section-cta { background: #173f5f; color: #dfe9f1; }
.section-cta h2 { color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner .button-row { margin-top: 0; }

/* Features */
.module-list { display: grid; gap: 28px; }
.module { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.module:last-child { border-bottom: 0; }
@media (max-width: 820px) { .module { grid-template-columns: 1fr; gap: 20px; } }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; gap: 4px; }
.price-card h2 { font-size: 1.25rem; margin-bottom: .2em; }
.price { margin: 0 0 .5em; }
.price .amount { font-size: 2rem; font-weight: 780; color: var(--ink); }
.price .per { color: var(--muted); font-size: .95rem; margin-left: 4px; }
.price-card-free { background: var(--surface-2); box-shadow: none; }
.price-card-free .button { margin-top: auto; }
.selectable { cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s; }
.selectable:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.select-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.select-row input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.order-bar { margin-top: 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.seats { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.seats input { width: 120px; }
.total { display: grid; flex: 1; min-width: 180px; }
.total strong { font-size: 1.7rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 620; color: var(--ink); }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 560; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
input[type=text], input[type=email], input[type=tel], input[type=number], input:not([type]), textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--bg);
    border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 46px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.form label.checkbox { display: flex; align-items: center; gap: 10px; font-weight: 450; }
.form label.checkbox input { width: 20px; height: 20px; accent-color: var(--brand); }
.validation-message { color: var(--danger); font-weight: 450; font-size: .9rem; }
.invalid { border-color: var(--danger) !important; }
.honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: 10px; padding: 14px 16px; }
.notice h2 { font-size: 1.3rem; }
.notice-success { border-left: 4px solid var(--success); }
.notice-error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.notice-draft { display: inline-block; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); padding: 6px 12px; font-size: .9rem; }

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.release-notes { margin-top: 24px; }
.release-notes p { white-space: pre-line; }
.older-heading { margin: 40px 0 12px; font-size: 1.3rem; }
.download-card .button { width: 100%; }

.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer-inner p { margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--brand); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Sign-in and customer portal */
.auth-container { width: min(480px, 100% - 32px); margin-inline: auto; }
.button-google { width: 100%; gap: 10px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin: 4px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.portal { display: grid; gap: 20px; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .portal-grid { grid-template-columns: 1fr; } }
.narrow-card { max-width: 560px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table tr.pending td { color: var(--muted); }
.table td.actions { text-align: right; white-space: nowrap; }
.table form { display: inline; }
.link-button { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; }
.link-button.danger { color: var(--danger); }
.invite-form { margin-top: 20px; }
.invite-form h3 { margin-bottom: 0; }
.invite-row { display: grid; grid-template-columns: 1fr 180px auto; gap: 12px; align-items: end; }
@media (max-width: 680px) { .invite-row { grid-template-columns: 1fr; } }
select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 46px; }
.signout { justify-self: start; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Activation and admin */
.code-input { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 1.5rem; letter-spacing: .15em; text-align: center; text-transform: uppercase; }
.badge-ok { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); margin-left: 0; margin-right: 6px; }
.checks { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks legend { font-weight: 560; color: var(--ink); margin-bottom: 6px; }
.danger-text { color: var(--danger); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.admin-nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding-bottom: 6px; border-bottom: 2px solid transparent; }
.admin-nav a.active { color: var(--ink); border-bottom-color: var(--brand); }
.table tr.awaiting td:first-child { font-weight: 600; }

/* Change subscription */
.change-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; }
.order-bar-plain { margin-top: 8px; box-shadow: none; border: 0; padding: 0; background: none; }
