/* SignTurn — marketing site.
 *
 * Deliberately separate from the app's stylesheet: the app is a tool and
 * optimises for density, the site is a pitch and optimises for reading.
 * Mixing them would make every future change to one risk the other.
 *
 * No webfonts. A system stack renders instantly, needs no third-party
 * request, and keeps the strict CSP intact.
 */

:root {
  --ink: #15152e;
  --ink-soft: #3d3d52;
  --muted: #65657a;
  --brand: #1a1a6e;
  --brand-soft: #ececf8;
  --paper: #ffffff;
  --tint: #f7f7fb;
  --line: #e4e4ef;
  --green: #0f7a52;
  --green-soft: #e6f5ee;
  --amber: #8a5a00;
  --amber-soft: #fdf3e0;
  --blue: #1e4ed8;
  --blue-soft: #e8eeff;
  --radius: 10px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -0.018em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.06rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 8px 15px; font-size: .88rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #24248a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); border-color: #cfcfe0; }
.btn-invert { background: #fff; color: var(--brand); }
.btn-invert:hover { background: #f1f1fa; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
}
.brand-word { letter-spacing: -0.02em; font-size: 1.07rem; }
.nav-links { display: none; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink-soft); font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-inner > .btn { margin-left: auto; }
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-inner > .btn { margin-left: 0; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 340px at 18% -8%, var(--brand-soft), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; gap: 44px; }
@media (min-width: 980px) {
  .hero { padding: 84px 0 92px; }
  .hero-inner { grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
}
.eyebrow {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); margin-top: 20px; max-width: 42ch; }
.lede-sm { font-size: 1.03rem; color: var(--ink-soft); margin-top: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.hero-note { font-size: .9rem; color: var(--muted); margin-top: 18px; max-width: 44ch; }

/* The hero demo is the app's own tracking panel, not an exported image, so
   it cannot drift away from what the product actually shows. */
.demo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 16px 44px -28px rgba(21, 21, 46, .4);
}
.demo-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 12px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.demo-file { font-size: .83rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-row { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f1f1f6; }
.demo-row:last-child { border-bottom: 0; }
.demo-row-me { opacity: .66; }
.step {
  flex: 0 0 auto;
  font-size: .66rem; font-weight: 700; color: var(--muted);
  background: var(--tint); border: 1px solid var(--line);
  border-radius: 5px; padding: 2px 6px; height: fit-content;
}
.who { font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.track { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; font-size: .72rem; }
.track b { color: var(--green); font-weight: 600; }
.track i { color: #c3c3d2; font-style: normal; }

.chip {
  font-size: .68rem; font-weight: 650; padding: 2px 8px; border-radius: 999px;
  background: var(--tint); color: var(--muted); white-space: nowrap;
}
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-blue { background: var(--blue-soft); color: var(--blue); }
.chip-grey { background: var(--tint); color: var(--muted); }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 68px 0; }
.section-alt { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin-bottom: 10px; }
@media (min-width: 880px) { .section { padding: 92px 0; } }

.band { padding: 52px 0; background: var(--tint); border-bottom: 1px solid var(--line); }
.band-title { text-align: center; margin-bottom: 34px; font-size: 1.3rem; }
.cols-3 { display: grid; gap: 28px; }
@media (min-width: 820px) { .cols-3 { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.col h3 { margin-bottom: 8px; }
.col p { color: var(--muted); font-size: .97rem; }

.two-col { display: grid; gap: 40px; }
@media (min-width: 980px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }

/* Steps */
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 44px; } }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.num {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--brand); color: #fff;
  font-size: .92rem; font-weight: 700;
}
.steps h3 { grid-column: 2; margin-bottom: 5px; }
.steps p { grid-column: 2; color: var(--muted); font-size: .97rem; }

/* Cards */
.grid { display: grid; gap: 18px; margin-top: 34px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid-tight { gap: 14px; }
@media (min-width: 1020px) { .grid-tight { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: 7px; }
.card p { color: var(--muted); font-size: .95rem; }
.card-flat { background: transparent; border-color: #dcdcea; }

/* Tick list */
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: .97rem;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px; top: .55em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .28;
}
.ticks b { color: var(--ink); font-weight: 650; }

.fineprint { margin-top: 26px; font-size: .86rem; color: var(--muted); max-width: 72ch; }

/* Certificate excerpt */
.cert {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  font-size: .8rem;
  box-shadow: 0 16px 44px -30px rgba(21, 21, 46, .35);
}
.cert-head { font-size: 1.02rem; font-weight: 700; color: var(--brand); letter-spacing: -0.01em; }
.cert-meta { color: var(--muted); margin: 9px 0 16px; line-height: 1.75; font-size: .76rem; }
.cert-sub {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink); padding-top: 13px; border-top: 1px solid var(--line); margin-bottom: 9px;
}
.cert-block { display: grid; gap: 3px; margin-bottom: 14px; }
.cert-block b { font-size: .83rem; }
.cert-block span { color: var(--muted); font-size: .745rem; }
.cert-events span { font-variant-numeric: tabular-nums; }

/* Code */
.code {
  margin: 0;
  background: #14142c;
  color: #d9d9ea;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  font-size: .76rem;
  line-height: 1.75;
}
.code code { color: inherit; }

/* ── Closing CTA ───────────────────────────────────────────────────────── */
.cta { background: var(--brand); color: #fff; padding: 72px 0; }
.cta-inner { text-align: center; max-width: 56ch; }
.cta h2 { color: #fff; }
.cta p { color: #c9c9ee; margin: 14px 0 28px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #b9b9cc; padding: 52px 0 26px; font-size: .9rem; }
.footer-inner { display: grid; gap: 34px; }
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1.2fr 2fr; gap: 48px; } }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .14); }
.footer-brand p { margin-top: 12px; max-width: 34ch; font-size: .88rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.footer-brand > span { display: inline-flex; align-items: center; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (min-width: 560px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 11px; }
.footer-cols a { display: block; color: #b9b9cc; padding: 3px 0; font-size: .89rem; }
.footer-cols a:hover { color: #fff; text-decoration: none; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem; color: #85859a;
}

/* ── Legal pages ───────────────────────────────────────────────────────── */
.legal { max-width: 74ch; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.14rem; margin-top: 36px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .88rem; }
.draft-banner {
  background: var(--amber-soft);
  border: 1px solid #f0d6a0;
  color: #6b4700;
  border-radius: var(--radius);
  padding: 15px 18px;
  font-size: .92rem;
  margin: 22px 0 8px;
}
.draft-banner b { color: #563900; }
