
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); }

/* Layout: a proofreader's desk. Left-aligned editorial column, one marked-up sheet as the hero, then the sample project, the prompt builder and the rules. */
:root {
  --bg: #f5f6f8;
  --paper: #ffffff;
  --ink: #15171c;
  --ink-2: #505665;
  --ink-3: #7a8091;
  --line: #dfe2e8;
  --line-2: #eceef2;
  --mark: #ffd93d;
  --mark-soft: #fff4bf;
  --del: #c4372c;
  --del-soft: #fcebe9;
  --ins: #0f7a55;
  --ins-soft: #e2f3eb;
  --maybe: #9b5c00;
  --maybe-soft: #fcefd9;
  --btn: #15171c;
  --btn-ink: #ffffff;
  --shadow: 0 1px 2px rgba(21, 23, 28, 0.05), 0 12px 32px -12px rgba(21, 23, 28, 0.18);
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ui: "Geist", "Segoe UI", system-ui, sans-serif;
  --doc: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --paper: #171a20; --ink: #eceef3; --ink-2: #a3a9b7; --ink-3: #7c8394;
    --line: #2a2f38; --line-2: #20242b; --mark: #e8c62e; --mark-soft: #3b3311;
    --del: #ff8a7c; --del-soft: #3a1b18; --ins: #5ad3a2; --ins-soft: #10291f;
    --maybe: #f2b55a; --maybe-soft: #33270f; --btn: #eceef3; --btn-ink: #0f1115;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -14px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --paper: #171a20; --ink: #eceef3; --ink-2: #a3a9b7; --ink-3: #7c8394;
  --line: #2a2f38; --line-2: #20242b; --mark: #e8c62e; --mark-soft: #3b3311;
  --del: #ff8a7c; --del-soft: #3a1b18; --ins: #5ad3a2; --ins-soft: #10291f;
  --maybe: #f2b55a; --maybe-soft: #33270f; --btn: #eceef3; --btn-ink: #0f1115;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 36px -14px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.glyph { width: 26px; height: 26px; display: grid; gap: 4px; align-content: center; }
.glyph i { display: block; height: 4px; border-radius: 2px; }
.glyph i:nth-child(1) { background: var(--ink-3); position: relative; width: 100%; }
.glyph i:nth-child(1)::after { content: ""; position: absolute; left: -2px; right: -2px; top: 1px; height: 2px; background: var(--del); }
.glyph i:nth-child(2) { background: var(--mark); width: 78%; }
.glyph i:nth-child(3) { background: var(--ins); width: 92%; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .gh { color: var(--ink); border: 1px solid var(--line); background: var(--paper); padding: 7px 14px; border-radius: 999px; }
@media (max-width: 720px) { .nav a.opt { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--btn); color: var(--btn-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--btn) 86%, var(--mark)); }
.btn.ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-3); }
.btn.sm { padding: 7px 14px; font-size: 14px; }

/* Hero */
.hero { padding-block: 64px 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 78px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.hero h1 .l2 { display: block; color: var(--ink-2); font-weight: 700; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 36ch; margin-top: 24px; line-height: 1.55; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ins); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero { padding-block: 40px 56px; } }

/* The marked-up sheet */
.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.sheet-head { padding: 18px 22px; border-bottom: 1px solid var(--line-2); display: grid; gap: 10px; }
.sheet-head .k { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.chg { display: flex; flex-wrap: wrap; gap: 8px; }
.chg span { font-size: 14px; background: var(--line-2); border-radius: 8px; padding: 5px 10px; }
.chg s { color: var(--del); text-decoration-thickness: 2px; }
.chg b { color: var(--ins); font-weight: 600; }
.sheet-body { padding: 8px 22px 6px; }
.ml { padding: 14px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 6px; }
.ml:last-child { border-bottom: 0; }
.ml .where { font-family: var(--mono); font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; }
.ml .where b { font-weight: 500; color: var(--ink-2); }
.ml .old { font-family: var(--doc); font-size: 17px; line-height: 1.45; position: relative; }
.ml .old .hl { background: linear-gradient(var(--mark-soft), var(--mark-soft)) no-repeat 0 0 / 100% 100%; text-decoration: line-through; text-decoration-color: var(--del); text-decoration-thickness: 2px; }
.ml .new { font-family: var(--doc); font-size: 17px; line-height: 1.45; color: var(--ins); display: flex; gap: 8px; }
.ml .new::before { content: "+"; font-family: var(--mono); font-size: 14px; padding-top: 2px; }
.sheet-foot { padding: 14px 22px; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; background: color-mix(in srgb, var(--paper) 70%, var(--bg)); }
.sheet-foot .n { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.03em; color: var(--del); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .ml .old .hl { animation: sweep .7s cubic-bezier(.2,.7,.2,1) both, strike .01s linear both; animation-delay: var(--d), calc(var(--d) + .75s); }
  .ml .new { animation: rise .5s ease both; animation-delay: calc(var(--d) + 1s); }
  @keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
  @keyframes strike { from { text-decoration-color: transparent; } to { text-decoration-color: var(--del); } }
  @keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}

/* Sections */
section.block { padding-block: 72px; border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 720px; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 800; }
.sec-head p { font-size: 18px; color: var(--ink-2); }

/* Demo */
.picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1080px) { .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pick { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; cursor: pointer; display: grid; gap: 6px; align-content: start; transition: border-color .15s, box-shadow .15s; }
.pick:hover { border-color: var(--ink-3); }
.pick[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick .t { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.pick .d { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 820px) { .picker { grid-template-columns: minmax(0, 1fr); } }

.result { margin-top: 28px; display: grid; gap: 28px; }
.summary { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 920px) { .summary { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel-h h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.tbl-wrap { overflow-x: auto; }
table.facts-t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.facts-t th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 13px; padding: 10px 20px; border-bottom: 1px solid var(--line-2); }
table.facts-t td { padding: 11px 20px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.facts-t tr:last-child td { border-bottom: 0; }
td.was { color: var(--del); text-decoration: line-through; text-decoration-thickness: 1.5px; }
td.now { color: var(--ins); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 18px 20px; display: grid; gap: 2px; }
.stat:nth-child(odd) { border-right: 1px solid var(--line-2); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
.stat .n { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .n.red { color: var(--del); }
.stat .l { font-size: 14px; color: var(--ink-2); }

.split { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); } }
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); padding: 8px; display: grid; gap: 2px; }
@media (max-width: 920px) { .rail { position: static; } }
.doc-btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.doc-btn:hover { background: var(--line-2); }
.doc-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.doc-btn[aria-pressed="true"] .why, .doc-btn[aria-pressed="true"] .file { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.doc-btn .name { font-weight: 600; font-size: 15px; }
.doc-btn .why { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.doc-btn .file { font-family: var(--mono); font-size: 12px; color: var(--ink-3); grid-column: 1 / -1; }
.pill { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; align-self: center; }
.pill.a { background: var(--del-soft); color: var(--del); }
.pill.p { background: var(--maybe-soft); color: var(--maybe); }
.pill.n { background: var(--line-2); color: var(--ink-2); }

.findings { display: grid; gap: 14px; }
.finding { padding: 18px 20px; display: grid; gap: 12px; }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-where { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.quote { font-family: var(--doc); font-size: 18px; line-height: 1.5; background: var(--mark-soft); border-radius: 6px; padding: 8px 12px; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--del) 70%, transparent); text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.quote.keep { text-decoration: none; }
.problem { font-size: 15px; color: var(--ink-2); }
.fix { font-family: var(--doc); font-size: 18px; line-height: 1.5; color: var(--ins); background: var(--ins-soft); border-radius: 6px; padding: 8px 12px; overflow-wrap: anywhere; }
.fix-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.lab { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.empty { padding: 28px 20px; color: var(--ink-2); }

.contras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .contras { grid-template-columns: minmax(0, 1fr); } }
.contra { padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.contra h4 { margin: 0; font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.vs { display: grid; gap: 8px; }
.vs .src { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.vs .q { font-family: var(--doc); font-size: 16px; line-height: 1.45; background: var(--line-2); border-radius: 6px; padding: 7px 10px; }

.msgs .tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.tab { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.msg-body { padding: 20px; display: grid; gap: 14px; }
.msg-body p { font-size: 17px; line-height: 1.6; max-width: 70ch; }
.coverage { font-size: 15px; color: var(--ink-2); display: grid; gap: 6px; padding: 18px 20px; }
.coverage b { color: var(--ink); font-weight: 600; }

/* Builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 920px) { .builder { grid-template-columns: minmax(0, 1fr); } }
.step { padding: 20px; display: grid; gap: 14px; }
.step + .step { border-top: 1px solid var(--line-2); }
.step-h { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.step-h h3 { font-size: 18px; font-weight: 700; display: flex; gap: 10px; align-items: baseline; }
.step-h h3 .num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink-3); }
textarea, input[type="text"] { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.5; resize: vertical; }
textarea:focus, input[type="text"]:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }
#chg { min-height: 170px; }
.doclist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.doclist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); }
.doclist .dn { font-family: var(--mono); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doclist .dw { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.x { border: 0; background: transparent; cursor: pointer; color: var(--ink-3); font-size: 20px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.x:hover { color: var(--del); background: var(--del-soft); }
.drop { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--ink-2); font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--bg); }
.drop u { text-underline-offset: 3px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
details.paste summary { cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-2); }
details.paste[open] summary { margin-bottom: 10px; }
details.paste .grid { display: grid; gap: 8px; }
.tag { font-size: 12px; font-weight: 600; color: var(--maybe); background: var(--maybe-soft); border-radius: 999px; padding: 2px 8px; }
.out { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); }
@media (max-width: 920px) { .out { position: static; } }
.out pre { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 380px; overflow: auto; padding: 16px 20px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.out .acts { padding: 18px 20px; display: grid; gap: 14px; }
.meter { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.meter b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dest { display: flex; flex-wrap: wrap; gap: 8px; }
.note { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; }
.note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ins); margin-top: 7px; }
.warn { font-size: 14px; color: var(--maybe); }

/* Output + rules */
.outline { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.outline li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 56px minmax(0, 220px) minmax(0, 1fr); gap: 6px 20px; align-items: baseline; }
.outline .k { font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.outline h3 { font-size: 20px; font-weight: 700; }
.outline p { font-size: 16px; color: var(--ink-2); }
.outline li.new h3::after { content: "New"; margin-left: 8px; font-family: var(--ui); font-size: 12px; font-weight: 600; color: var(--ins); background: var(--ins-soft); border-radius: 999px; padding: 2px 8px; vertical-align: 3px; }
@media (max-width: 720px) { .outline li { grid-template-columns: 40px minmax(0, 1fr); } .outline p { grid-column: 2; } }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.rules div { display: grid; gap: 8px; align-content: start; }
.rules h3 { font-size: 19px; font-weight: 700; }
.rules p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 920px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rules { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { display: grid; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 68ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 40px 56px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer p { font-size: 14px; color: var(--ink-2); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
footer nav a { color: var(--ink-2); text-decoration: none; }
footer nav a:hover { color: var(--ink); }

[hidden] { display: none !important; }

/* Apply pack */
.apply .tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.apply-body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.apply-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.apply-meta b { color: var(--ink); font-weight: 600; }
pre.code { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
.decide { font-size: 15px; color: var(--ink-2); }
.decide ul { margin: 6px 0 0; padding-left: 18px; }
.decide li { font-family: var(--doc); font-size: 16px; color: var(--maybe); }

/* Mode switch */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); gap: 2px; margin-bottom: 16px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Connect */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { padding: 22px 22px 20px; display: grid; gap: 12px; align-content: start; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.card p, .card li { font-size: 15.5px; color: var(--ink-2); }
.card ol, .card ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.card .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.urls { display: grid; gap: 8px; }
.url { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 8px 8px 12px; background: var(--bg); }
.url code { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; color: var(--ink); }
.url span { display: block; font-size: 13px; color: var(--ink-3); }
.kicker { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }

/* Scorer */
.scorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 920px) { .scorer { grid-template-columns: minmax(0, 1fr); } }
.scorer textarea { min-height: 220px; }
.score-out { padding: 18px 20px; display: grid; gap: 12px; }
.score-out .big { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; }
.score-out .pass { color: var(--ins); } .score-out .fail { color: var(--del); }
.score-out ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); display: grid; gap: 3px; }
.score-out li code { font-family: var(--doc); font-size: 15px; color: var(--ink); }
.select { font: inherit; font-size: 15px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }

/* Works with */
.works { padding-block: 8px 28px; }
.works h2 { font-size: 15px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 14px; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.tool.feature { grid-column: span 2; border-color: var(--ins); box-shadow: 0 0 0 1px var(--ins) inset; }
.tool .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink-2); }
.tool .ic svg { width: 18px; height: 18px; }
.tool b { font-size: 15px; font-weight: 600; min-width: 0; }
.tool > span:last-child { font-size: 13px; color: var(--ink-3); display: grid; justify-items: start; gap: 4px; }
.st { font-style: normal; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 1px 8px; }
.st.live { background: var(--ins-soft); color: var(--ins); }
.st.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
.st.soon { background: var(--bg); color: var(--ink-3); border: 1px solid var(--line-2); }
@media (max-width: 560px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tool { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; } .tool .ic { display: none; } .tool b { font-size: 14px; } .tool.feature { grid-column: span 2; } }

/* Feedback */
.fb { padding: 20px; display: grid; gap: 12px; max-width: 820px; }
.fb textarea { min-height: 120px; }
.fb input[type=text], .fb input[type=email] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); margin-top: 6px; }
.fb-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 620px) { .fb-row { grid-template-columns: minmax(0, 1fr); } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 40; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
