/* TypeInstead site. Same language as the app: warm paper, ink, one warm accent,
   serif headings with a single italic word. Light and dark values for every colour. */

:root {
  --paper: #F4F1E8;
  --surface: #FFFDF9;
  --ink: #1C1A16;
  --ink-secondary: #69645A;
  --hairline: #E4DFD2;
  --wash: #EBE7DA;
  --accent: #D9432A;
  --accent-text: #BD3820;
  --positive: #2C7A57;
  --caution: #A86400;
  --radius: 13px;
  --measure: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191816;
    --surface: #24221F;
    --ink: #F3EFE6;
    --ink-secondary: #A9A398;
    --hairline: #3A3732;
    --wash: #302E29;
    --accent: #F0664C;
    --accent-text: #F0664C;
    --positive: #5BBF92;
    --caution: #E3A33B;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  font-synthesis-weight: none;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 28px; }

/* Type ------------------------------------------------------------------ */

h1, h2, h3 {
  font-family: ui-serif, Iowan Old Style, Palatino, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); line-height: 1.12; margin: 0 0 18px; }
h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.18; margin: 0 0 14px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
h1 em, h2 em, h3 em { font-style: italic; }

p { margin: 0 0 16px; max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--ink-secondary); }
.muted { color: var(--ink-secondary); }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.label {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-secondary);
  margin: 0 0 12px;
}

code, .chip {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: var(--wash);
  border-radius: 6px;
  padding: 2px 7px;
}

/* Header and footer ----------------------------------------------------- */

header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
header.site .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }
.wordmark {
  font-family: ui-serif, Iowan Old Style, Palatino, Georgia, serif;
  font-size: 1.32rem; color: var(--ink); text-decoration: none; margin-right: auto;
  display: flex; align-items: center; gap: 10px;
}
.wordmark img { width: 26px; height: 26px; border-radius: 6px; }
.wordmark em { font-style: italic; }
header.site nav { display: flex; gap: 20px; font-size: 15px; }
header.site nav a { color: var(--ink-secondary); text-decoration: none; }
header.site nav a:hover { color: var(--ink); }

footer.site {
  border-top: 1px solid var(--hairline);
  margin-top: 90px; padding: 34px 0 60px;
  font-size: 14px; color: var(--ink-secondary);
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
footer.site a { color: var(--ink-secondary); }
footer.site .spacer { margin-left: auto; }

/* Sections -------------------------------------------------------------- */

section { padding: 62px 0; border-top: 1px solid var(--hairline); }
section:first-of-type { border-top: 0; }
.hero { padding: 86px 0 62px; text-align: center; }
.hero h1, .hero p { margin-left: auto; margin-right: auto; }
.hero img.mark { width: 104px; height: 104px; margin: 0 auto 26px; display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 500; text-decoration: none;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
}
.btn:hover { opacity: 0.88; }
.btn.secondary { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink-secondary) 45%, transparent); }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 30px 0 14px; }
.requirement { font-size: 14px; color: var(--ink-secondary); }

/* Cards and rows -------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.examples { max-width: 600px; margin: 0 auto; }
.example {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; border-top: 1px solid var(--hairline);
}
.example:first-child { border-top: 0; }
.example .arrow { color: var(--ink-secondary); }
.example .out {
  margin-left: auto; text-align: right;
  font-family: ui-serif, Iowan Old Style, Palatino, Georgia, serif;
  font-size: 1.02rem;
}
.example .out a { text-decoration: underline; }
.tile {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px;
  display: grid; place-items: center; font-size: 14px;
}
.tile.phone  { color: var(--positive);  background: color-mix(in srgb, var(--positive) 14%, transparent); }
.tile.link   { color: var(--accent);    background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tile.file   { color: var(--caution);   background: color-mix(in srgb, var(--caution) 14%, transparent); }
.tile.email  { color: var(--ink-secondary); background: var(--wash); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid .card { padding: 22px; }
.grid h3 { margin-top: 0; }
.grid p { margin: 0; font-size: 15.5px; color: var(--ink-secondary); max-width: none; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; max-width: var(--measure); }
ol.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 22px 48px; 
}
ol.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--wash); color: var(--accent-text);
  display: grid; place-items: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; font-weight: 500;
}
ol.steps strong { font-weight: 600; }

/* Pricing --------------------------------------------------------------- */

.prices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); max-width: 760px; }
.price { padding: 24px; }
.price .amount { font-family: ui-serif, Georgia, serif; font-size: 2.1rem; line-height: 1; }
.price .per { color: var(--ink-secondary); font-size: 14px; }
.price ul { margin: 14px 0 0; padding-left: 18px; font-size: 15px; color: var(--ink-secondary); }

/* FAQ and legal --------------------------------------------------------- */

details {
  border-top: 1px solid var(--hairline);
  padding: 16px 0;
  max-width: var(--measure);
}
details summary { cursor: pointer; font-weight: 500; }
details summary::marker { color: var(--accent); }
details p { margin: 12px 0 0; color: var(--ink-secondary); }

.legal { padding-top: 48px; }
.legal h2 { margin-top: 44px; font-size: 1.45rem; }
.legal h2:first-of-type { margin-top: 30px; }
.legal ul { max-width: var(--measure); padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .effective { font-size: 15px; color: var(--ink-secondary); }
.fill {
  background: color-mix(in srgb, var(--caution) 20%, transparent);
  border-bottom: 1px solid var(--caution);
  padding: 0 3px; font-weight: 600;
}

.note {
  background: var(--wash); border-radius: var(--radius);
  padding: 18px 20px; max-width: var(--measure);
  font-size: 15.5px;
}
.note p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  header.site nav a:not(.keep) { display: none; }
  .example .out { font-size: 0.92rem; }
}
