/* goematic.com: one stylesheet for every page, in the company identity (see decisions.md, "Company identity"). */

/* Manrope, served from goematic.com itself (SIL Open Font License, fonts/OFL.txt): no call to Google. */
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --orange: #F29A1E;
  --teal: #35B5A6;
  --blue: #1F3FA6;
  --blue-hover: #18328A;
  --ink: #14204A;
  --muted: #4A5170;
  --page: #F4F6FB;
  --card: #FFFFFF;
  --line: #E3E7F1;
  --link: #1F3FA6;
  --on-blue: #FFFFFF;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4A68E0;
    --blue-hover: #5C79EC;
    --ink: #E8ECF8;
    --muted: #A9B1C9;
    --page: #0B1020;
    --card: #131B33;
    --line: #26304F;
    --link: #9DB2FF;
  }
}

* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--page); }
a { color: var(--link); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header and footer */
.site-header { padding: 20px 0; }
.site-header .wrap, .site-header .narrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--ink); }
.site-footer { margin-top: 80px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.site-footer p { margin: 4px 0; }

/* Type */
h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 20px; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 16px; }
h3 { font-size: 18px; margin: 0 0 6px; }
p, li { color: var(--muted); }
strong { color: var(--ink); }
code { font: 15px/1.5 ui-monospace, Consolas, monospace; color: var(--ink); overflow-wrap: anywhere; }
.page h2 { margin-top: 36px; font-size: 22px; }
.install .lead { font-size: clamp(22px, 4vw, 28px); line-height: 1.4; margin: 48px 0 28px; }
.button.copy-prompt { gap: 10px; font-weight: 600; background: var(--card); border-radius: 99px; }
.button.copy-prompt:hover { border-color: var(--teal); }
.copied { min-height: 1.6em; margin: 10px 0 100px; font-size: 14px; overflow-wrap: anywhere; }
.tag { display: inline-block; margin: 0 0 18px; padding: 5px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--card); border: 1px solid var(--line); }
.traits { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.traits li { padding: 4px 12px; border-radius: 99px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--card); border: 1px solid var(--line); }
.traits li::before { content: "✓"; margin-right: 6px; color: var(--teal); }
.tag::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--teal); vertical-align: 1px; }
.lead { font-size: 19px; max-width: 34em; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 48px 0 24px; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero-mark { flex: 0 1 300px; margin: 0 auto; }
.hero-mark img { display: block; width: 100%; max-width: 300px; height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Buttons and forms */
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; font: 700 16px/1 var(--font); color: var(--on-blue); background: var(--blue); border: 1px solid var(--blue); border-radius: 10px; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.button.quiet { color: var(--ink); background: transparent; border-color: var(--line); }
.button.quiet:hover { border-color: var(--muted); }
form.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
input, select { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--page); border: 1px solid var(--line); border-radius: 10px; }
input:focus, select:focus, .button:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
small { font-size: 14px; color: var(--muted); }

/* Sections and cards */
section { padding: 56px 0 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.card p { margin: 0; }
.card .icon { display: inline-flex; width: 40px; height: 40px; margin-bottom: 14px; align-items: center; justify-content: center; border-radius: 10px; background: var(--page); }
.card .icon svg { width: 22px; height: 22px; }
.card .icon.link { color: var(--link); }
.panel { padding: 32px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.steps li::before { content: counter(step); display: flex; width: 32px; height: 32px; margin-bottom: 12px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; color: var(--on-blue); background: var(--blue); }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 7px; height: 12px; border: solid var(--teal); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 8px 32px; }
.faq div { padding: 16px 0; border-top: 1px solid var(--line); }
.faq p { margin: 0; }

@media (max-width: 560px) {
  .site-header nav { gap: 14px; font-size: 14px; }
  .site-header nav a[href="#how"] { display: none; }
  .hero { padding-top: 24px; gap: 24px; }
  .hero-mark { display: none; }
}

/* Short pages (thanks, confirmed, errors, privacy) */
.page { padding-top: 40px; }
.page h1 { font-size: clamp(30px, 5vw, 40px); }
.page h2 { font-size: 21px; margin: 36px 0 8px; }
