/* Pathkosh — site styles. Loaded after tokens.css.
   No literal colours below this line: everything resolves through a token, so
   the palette lives in exactly one file. */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    background: var(--surface);
    color: var(--text);
    font: 400 1rem/1.7 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
    color: var(--heading);
    line-height: 1.18;
    letter-spacing: -.015em;
    text-wrap: balance;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.15rem); font-weight: 600; }
h3 { font-size: 1.22rem; font-weight: 600; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

/* One visible focus style everywhere. Never remove it: keyboard users have no
   other way to tell where they are. */
:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 3px;
}

img, svg { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.narrow    { width: min(100% - 40px, 760px); margin-inline: auto; }
.measure   { max-width: var(--measure); }
.muted     { color: var(--muted); }
.small     { font-size: .9rem; }
.center    { text-align: center; }
.mono      { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; font-size: .87em; }

/* Skip link — first thing in the DOM, visible only when focused. */
.skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--brand); color: var(--on-brand);
    padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-head {
    position: sticky; top: 0; z-index: 50;
    /* Plain colour FIRST. A browser that does not understand color-mix drops
       that declaration and keeps this one; without it the header would go
       transparent and scrolled text would run underneath the nav. */
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}
@supports not (backdrop-filter: blur(10px)) {
    .site-head { background: var(--surface); }
}
.site-head .inner {
    display: flex; align-items: center; gap: 24px;
    min-height: 66px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 1.24rem;
    color: var(--heading); text-decoration: none; letter-spacing: -.01em;
    margin-inline-end: auto;
}
.brand:hover { color: var(--heading); }
.brand svg { flex: 0 0 auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
    padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--surface-alt); color: var(--heading); }
.nav a.on { color: var(--brand); background: var(--surface-tint); }

/* Below 760px the nav wraps under the wordmark rather than collapsing behind a
   hamburger. Five links do not justify a menu, and a wrapped row stays
   keyboard-reachable with no JavaScript at all. */
@media (max-width: 760px) {
    .site-head .inner { flex-wrap: wrap; padding-block: 10px; gap: 8px 0; }
    .brand { margin-inline-end: 0; width: 100%; }
    .nav { width: 100%; overflow-x: auto; padding-bottom: 2px; }
    .nav a { padding: 7px 10px; white-space: nowrap; }
    .nav .btn { margin-inline-start: auto; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 700; font-size: .96rem;
    padding: 11px 22px; border-radius: var(--radius-pill);
    background: var(--brand); color: var(--on-brand);
    border: 1px solid transparent; text-decoration: none; cursor: pointer;
    transition: transform .12s var(--ease), filter .12s var(--ease), box-shadow .2s var(--ease);
    box-shadow: var(--shadow-sm);
}
.btn:hover { color: var(--on-brand); filter: brightness(1.08); box-shadow: var(--shadow-md); }
.btn:active { transform: scale(.985); }
.btn.ghost {
    background: transparent; color: var(--brand);
    border-color: var(--line); box-shadow: none;
}
.btn.ghost:hover { background: var(--surface-tint); color: var(--brand-strong); }
.btn.lg { padding: 14px 30px; font-size: 1.03rem; }
.btn.block { width: 100%; }

/* ---------- Sections ---------- */
section { padding-block: clamp(48px, 6vw, 88px); }
section.tint { background: var(--surface-tint); }
section.alt  { background: var(--surface-alt); }
.eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent-ink); margin: 0 0 12px; font-weight: 600;
}
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.22rem); color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { margin-bottom: .35em; }
.hero .lede { max-width: 60ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; } }

.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
    width: 38px; height: 38px; margin-bottom: 14px;
    color: var(--brand);
}

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .plans { grid-template-columns: 1fr; } }

.plan {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 22px; height: 100%;
    display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.plan .tag {
    display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--on-brand); background: var(--brand);
    padding: 3px 9px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.plan h3 { margin-bottom: .15em; }
.plan .seats {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    color: var(--muted); font-size: .9rem; margin-bottom: 18px;
}
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.plan li { position: relative; padding-inline-start: 24px; font-size: .94rem; }
.plan li::before {
    content: ''; position: absolute; inset-inline-start: 4px; top: .55em;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand); opacity: .55;
}
.plan .btn { margin-top: auto; }

/* ---------- Feature list ---------- */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.facts .tick { color: var(--brand); margin-top: 3px; }
.facts strong { color: var(--heading); }

/* ---------- Comparison table ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--line-soft); }
table.cmp thead th { background: var(--surface-alt); color: var(--heading); font-weight: 700; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { color: var(--heading); font-weight: 600; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .93rem; color: var(--heading); margin-bottom: 6px; }
.field .hint { font-size: .84rem; color: var(--muted); margin: 6px 0 0; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field select, .field textarea {
    width: 100%; font: inherit; color: var(--text);
    background: var(--surface);
    padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--brand); outline: 2px solid var(--focus); outline-offset: 1px;
}
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.check input { margin-top: 4px; }
.check label { font-weight: 400; font-size: .93rem; color: var(--text); }

/* The honeypot. Off-screen rather than display:none — some bots skip anything
   hidden — and aria-hidden + tabindex keep it away from real users entirely. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 22px; border: 1px solid; }
.alert.ok    { background: var(--green-100); border-color: var(--green-600); color: var(--ink-800); }
.alert.error { background: var(--red-100);   border-color: var(--red-600);   color: var(--ink-800); }
.alert.warn  { background: var(--amber-100); border-color: var(--amber-600); color: var(--ink-800); }
@media (prefers-color-scheme: dark) {
    .alert { color: var(--heading); background: var(--surface-alt); }
}

/* ---------- Footer ---------- */
.site-foot {
    border-top: 1px solid var(--line); padding-block: 44px 34px;
    background: var(--surface-alt); color: var(--muted); font-size: .92rem;
}
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
.site-foot h4 { font-family: inherit; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--heading); margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--brand); text-decoration: underline; }
.site-foot .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- Admin ---------- */
.lead-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.lead-row .top { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.lead-row .who { font-weight: 700; color: var(--heading); }
.lead-row .when { color: var(--faint); font-size: .85rem; margin-inline-start: auto; }
.lead-row .msg { margin-top: 10px; white-space: pre-wrap; }
.badge {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-pill);
    background: var(--surface-tint); color: var(--brand);
}
.badge.warn { background: var(--amber-100); color: var(--amber-600); }

/* A plain vertical list with breathing room. Used for the "what it does not do"
   panel — it is NOT a .plan, which is a flex column with a border and a pinned
   button and was being borrowed here for its gap alone. */
ul.gaps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
ul.gaps li { font-size: .94rem; padding-inline-start: 16px; position: relative; }
ul.gaps li::before {
    content: '—'; position: absolute; inset-inline-start: 0; color: var(--faint);
}
