/* Twinhull — site styles. System fonts only: fast, and no third-party requests. */
:root {
  color-scheme: light dark;
  --bg: #fbfcfd;
  --bg-alt: #f1f5f8;
  --surface: #ffffff;
  --text: #0f1f2b;
  --muted: #4f6272;
  --line: #d9e2e9;
  --brand: #0b2a3f;
  --accent: #0e8577;
  --accent-strong: #0a6b60;
  --accent-soft: #e2f4f1;
  --on-accent: #ffffff;
  --code-bg: #0f1f2b;
  --code-text: #e3edf3;
  --warn: #9a5b00;
  --radius: 12px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  accent-color: var(--accent);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b141b;
    --bg-alt: #101d27;
    --surface: #13222d;
    --text: #e6eef3;
    --muted: #9db0bd;
    --line: #243946;
    --brand: #e6eef3;
    --accent: #5fd4c4;
    --accent-strong: #86e3d6;
    --accent-soft: #123a37;
    --on-accent: #06201d;
    --code-bg: #070e13;
    --code-text: #d7e4ec;
    --warn: #f0b35a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--font);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--brand); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 620px) { .nav { margin-left: 0; gap: 16px; padding-bottom: 10px; } }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 44em; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; display: block; }
.muted { color: var(--muted); }
small, .small { font-size: 14px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.hero { padding: 84px 0 64px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-meta { font: 14px/1.5 var(--mono); color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-block { width: 100%; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .g2, .g3 { 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; }
.tag { display: inline-block; font: 600 12px/1 var(--mono); padding: 5px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 12px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--bg-alt); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); white-space: nowrap; }
.good { color: var(--accent-strong); font-weight: 600; }

/* ---------- code ---------- */
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
:not(pre) > code { background: var(--bg-alt); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); color: var(--code-text); padding: 18px 20px; border-radius: var(--radius); overflow-x: auto; line-height: 1.55; font-size: 14px; margin: 0 0 1.4em; }
pre .c { color: #7f97a6; }
pre .ok { color: #5fd4c4; }
pre .w { color: #f0b35a; }
pre .e { color: #ff8c8c; }
.terminal { position: relative; padding-top: 38px; }
.terminal::before { content: ""; position: absolute; top: 14px; left: 18px; width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; box-shadow: 16px 0 #febc2e, 32px 0 #28c840; }

/* ---------- pricing ---------- */
.pricing { align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--accent); }
.price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 8px 0 4px; }
.price s { font-size: 1.2rem; color: var(--muted); font-weight: 500; margin-left: 8px; }
.price-card ul { padding-left: 1.1em; margin: 16px 0 24px; flex: 1; }
.price-card li { margin-bottom: 6px; }

/* ---------- misc ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 10px; }
.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 1.4em; }
.note.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--bg)); }

/* ---------- article ---------- */
.article { padding: 56px 0 72px; }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 2em; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.cta-box { border: 1px solid var(--line); background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin-top: 2.5em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
