/* Quaver Desk website. Colours match the app (navy ink, teal accent, warm paper). */
:root {
    --ink: #14213d;
    --ink-2: #2b3a5c;
    --paper: #f7f5f0;
    --card: #ffffff;
    --line: #e3dfd5;
    --muted: #5d6578;
    --accent: #0f766e;
    --accent-ink: #ffffff;
    --accent-soft: #e6f4f1;
    --mint: #5eead4;
    --navy: #14213d;
    --navy-2: #1d2c4f;
    --warn-soft: #fef3e2;
    --warn: #92400e;
    --radius: 14px;
    --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1120px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e8ecf5;
        --ink-2: #c3cbe0;
        --paper: #0f1420;
        --card: #171e2e;
        --line: #283149;
        --muted: #98a2b8;
        --accent: #2dd4bf;
        --accent-ink: #062a26;
        --accent-soft: #10302d;
        --navy: #0b1222;
        --navy-2: #131c33;
        --warn-soft: #2e2213;
        --warn: #fbbf24;
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: .75em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: .5em; justify-content: center;
    padding: .8em 1.3em; border-radius: 999px; font-weight: 650; text-decoration: none;
    background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 118, 110, .25); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { box-shadow: none; background: rgba(127, 127, 127, .08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo svg { width: 32px; height: 32px; }
.logo span { color: var(--accent); }
.nav { display: none; gap: 24px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.nav .btn { color: var(--accent-ink); padding: .55em 1.1em; }
@media (min-width: 860px) { .nav { display: flex; } }
.top .mobile-buy { padding: .5em 1em; font-size: .9rem; }
@media (min-width: 860px) { .top .mobile-buy { display: none; } }

/* Hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(700px 400px at 85% 10%, rgba(94, 234, 212, .18), transparent 70%),
                radial-gradient(500px 300px at 5% 100%, rgba(94, 234, 212, .08), transparent 70%);
}
.hero .wrap { position: relative; display: grid; gap: 48px; padding-top: 72px; padding-bottom: 80px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; padding-top: 96px; padding-bottom: 104px; } }
.hero .eyebrow { color: var(--mint); }
.hero h1 span { color: var(--mint); }
.hero .lead { font-size: 1.2rem; color: #c9d3e8; max-width: 36em; }
.hero .btn { background: var(--mint); border-color: var(--mint); color: #062a26; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .note { margin-top: 20px; font-size: .9rem; color: #9fb0d0; }

/* Phone mock-up in the hero */
.phone {
    background: #fff; color: #14213d; border-radius: 22px; padding: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .06);
    max-width: 360px; width: 100%; justify-self: center;
}
.phone .bar { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: #5d6578; margin-bottom: 14px; }
.phone .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #15803d; margin-right: 6px; }
.phone .ringing { background: #e6f4f1; border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.phone .ringing small { color: #0f766e; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.phone .ringing strong { display: block; font-size: 1.25rem; margin: 2px 0; }
.phone .ringing .via { font-size: .85rem; color: #5d6578; }
.phone .pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(15, 118, 110, 0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, .35); } }
@media (prefers-reduced-motion: reduce) { .phone .pulse { animation: none; } .btn { transition: none; } }
.phone .keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.phone .keys span { text-align: center; padding: 11px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.phone .answer { background: #0f766e; color: #fff; }
.phone .decline { background: #f1efe9; color: #14213d; }
.phone .row { display: flex; justify-content: space-between; font-size: .85rem; padding: 9px 2px; border-top: 1px solid #ece9e1; }
.phone .row b { font-weight: 600; }
.phone .row em { font-style: normal; color: #5d6578; }

/* Sections */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .lead { font-size: 1.1rem; color: var(--muted); }
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Strip of reasons */
.reasons { display: grid; gap: 20px; }
@media (min-width: 720px) { .reasons { grid-template-columns: repeat(3, 1fr); } }
.reason { padding: 4px 0; }
.reason .num { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }

/* Feature cards */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.alt .card { background: var(--paper); }
.card .icon {
    width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center; margin-bottom: 14px;
}
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); margin: 0; }
.card ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--muted); }
.card li { margin: 4px 0; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 24px 24px 24px 24px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.alt .step { background: var(--paper); }
.step::before { counter-increment: step; content: "Step " counter(step); display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }
.step code { font-size: .85em; }

/* Plans */
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); position: relative; }
.plan.featured .tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.plan .price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 2px; color: var(--ink); }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; color: var(--ink-2); }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { width: 100%; }

.hosted { display: grid; gap: 24px; margin-top: 32px; border: 2px solid var(--line); }
@media (min-width: 820px) { .hosted { grid-template-columns: 1.6fr 1fr; align-items: center; } }
.hosted h3 { margin-bottom: 12px; }
.hosted ul { list-style: none; padding: 0; margin: 0; color: var(--ink-2); }
.hosted li { padding: 6px 0 6px 28px; position: relative; }
.hosted li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.hosted-prices p { margin: 0 0 6px; }
.hosted-prices .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.hosted-prices small { color: var(--muted); }
.hosted-prices .btn { width: 100%; margin: 10px 0 12px; }
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 480px; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
td .yr { display: block; font-size: .8rem; color: var(--muted); }

/* Notice */
.notice { display: flex; gap: 14px; background: var(--warn-soft); color: var(--ink); border-radius: var(--radius); padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--warn); margin-top: 2px; }
.notice p { margin: 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 32px; }

/* Call to action */
.cta { background: var(--navy); color: #fff; border-radius: 20px; padding: 48px 28px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(94, 234, 212, .18), transparent 70%); }
.cta > * { position: relative; }
.cta p { color: #c9d3e8; max-width: 34em; margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }
.cta .btn { background: var(--mint); border-color: var(--mint); color: #062a26; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Footer */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
footer .cols { display: grid; gap: 28px; }
@media (min-width: 760px) { footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 10px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }

/* Plain pages (privacy, 404) */
.page { max-width: 760px; padding: 64px 16px 88px; margin: 0 auto; }
.page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.3rem; margin-top: 1.8em; }
