/* Typesmith — one stylesheet for the whole site. No framework, no build
   step: the pages are read far more often than they are changed. Colours
   are the app icon's: navy, key blue, spark amber. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --text: #16213a;
  --muted: #5b6784;
  --line: #dfe5ef;
  --navy: #0a1b3d;
  --blue: #0e59bf;
  --blue-bright: #3d8dff;
  --amber: #ff9f0a;
  --amber-soft: #ffd766;
  --card: #ffffff;
  --radius: 14px;
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1428;
    --bg-soft: #101c36;
    --text: #e8edf7;
    --muted: #a3b0cb;
    --line: #22304f;
    --card: #14213e;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { a { color: var(--blue-bright); } }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.2em; }
h3 { font-size: 1.1rem; margin-top: 1.6em; }
p, ul, ol, table { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin: .3em 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--bg-soft); padding: .1em .35em; border-radius: 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95em; }
th, td { text-align: left; padding: .55em .7em; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 44rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 1.2rem; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--text); text-decoration: none; }
@media (max-width: 520px) { .nav { gap: .8rem; font-size: .9rem; } .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--amber); margin-bottom: .8em; }

.buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.button { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.2rem; border-radius: 10px; font-weight: 600; border: 1px solid transparent; }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: #0b4ca6; text-decoration: none; }
.button.ghost { border-color: var(--line); color: var(--text); }
.button.ghost:hover { background: var(--bg-soft); text-decoration: none; }
.small { font-size: .88rem; color: var(--muted); }

/* A keyboard drawn in CSS: what the app looks like, without a screenshot
   that would go stale with every change to the app. */
.keyboard { background: var(--navy); border-radius: 18px; padding: 14px 10px 12px; box-shadow: 0 20px 50px rgba(10, 27, 61, .25); max-width: 380px; margin: 0 auto; }
.strip { display: flex; gap: 6px; padding: 0 4px 10px; }
.strip span { flex: 1; text-align: center; color: #d6e2ff; font-size: .85rem; padding: .35em 0; border-radius: 8px; background: rgba(255,255,255,.06); }
.strip span.bold { font-weight: 700; color: #fff; }
.row { display: flex; gap: 6px; margin-bottom: 7px; justify-content: center; }
.row.indent { padding: 0 5%; }
.key { flex: 1; aspect-ratio: 1 / 1.1; display: grid; place-items: center; background: #1c3b78; color: #fff; border-radius: 7px; font-weight: 600; font-size: .95rem; box-shadow: 0 2px 0 #0a1b3d; }
.key.wide { flex: 1.5; background: #16305f; font-size: .8rem; }
.key.space { flex: 4; }
.key.ai { flex: 1.6; background: linear-gradient(#ffd766, #ff9f0a); color: #3b2300; white-space: nowrap; }
.key.enter { background: var(--blue-bright); }

/* Sections */
.section { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.section.alt { background: var(--bg-soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--muted); }
.plans .card.featured { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 141, 255, .18); }
.plans .price { font-size: 1.6rem; font-weight: 700; margin: .4em 0 .2em; }
.plans ul { padding-left: 1.2em; color: var(--muted); }
.plans .card p:last-child { margin-top: .8em; }

/* Legal pages */
.legal h1 { margin-bottom: .2em; }
.legal .meta { color: var(--muted); margin-bottom: 2rem; }
.legal h2 { margin-top: 1.8em; font-size: 1.35rem; }
.legal .toc { background: var(--bg-soft); border-radius: var(--radius); padding: 1rem 1.2rem 1rem 2.2rem; margin: 1.5rem 0 2rem; }
.legal .toc li { margin: .15em 0; }
.note { border-left: 4px solid var(--amber); background: var(--bg-soft); padding: .8rem 1rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: .6rem 0; }
summary { cursor: pointer; font-weight: 600; padding: .3rem 0; }
details p { color: var(--muted); margin: .5rem 0 .3rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { color: var(--muted); }
