/* ============================================================
   TypeSeer — product site
   Light, friendly, privacy-first. No external assets.
   ============================================================ */

:root {
  --ink: #17233b;
  --muted: #5b6b84;
  --faint: #8b98ad;
  --accent: #2f7fe0;
  --accent-dark: #2264ba;
  --accent-soft: #eaf3fc;
  --bg: #fbfcfe;
  --card: #ffffff;
  --line: #e4eaf2;
  --ghost: #9aa8bc;
  --warn: #c2701d;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(23, 35, 59, 0.05), 0 2px 8px rgba(23, 35, 59, 0.05);
  --shadow-md: 0 2px 6px rgba(23, 35, 59, 0.06), 0 12px 32px rgba(23, 35, 59, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 254, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(47, 127, 224, 0.32);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--faint); color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 14.5px; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, #eaf3fc 0%, rgba(251, 252, 254, 0) 90%);
  padding: 84px 0 40px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34a853;
}

h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 760px;
  margin: 0 auto 20px;
}

.hero .lede {
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cta-note { font-size: 14px; color: var(--faint); }

/* ---------- Demo window ---------- */

.demo-window {
  max-width: 680px;
  margin: 56px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: left;
}
.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #f6f8fb;
}
.demo-titlebar .light { width: 12px; height: 12px; border-radius: 50%; }
.light.red { background: #ff5f57; }
.light.yellow { background: #febc2e; }
.light.green { background: #28c840; }
.demo-titlebar .demo-app {
  margin: 0 auto;
  font-size: 13px;
  color: var(--faint);
  font-weight: 500;
}
.demo-body {
  padding: 28px 30px 34px;
  font-size: 19px;
  min-height: 130px;
  line-height: 1.7;
}
.demo-typed { color: var(--ink); white-space: pre-wrap; }
.demo-ghost { color: var(--ghost); white-space: pre-wrap; }
.demo-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.demo-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 30px 22px;
  font-size: 13.5px;
  color: var(--faint);
}
kbd {
  display: inline-block;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #f6f8fb;
  padding: 2px 9px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.12s ease;
}
kbd.pressed {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
  transform: translateY(1px);
}

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

section { padding: 72px 0; }

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
  margin-bottom: 44px;
}
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ---------- Apps strip ---------- */

.apps-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.app-chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 16px;
}
.step h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.card h3 { font-size: 18.5px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Privacy band ---------- */

.privacy-band {
  background: linear-gradient(135deg, #17233b 0%, #22375c 100%);
  border-radius: 20px;
  padding: 56px;
  color: #e8eef7;
}
.privacy-band .section-title { color: #fff; }
.privacy-band .section-sub { color: #aebcd2; }
.privacy-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin-top: 8px;
}
.privacy-points li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: #cfdaea;
}
.privacy-points .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(111, 176, 255, 0.18);
  color: #8fc1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
}

/* ---------- Pillar highlights (home) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.pillar .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.pillar .icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.pillar h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 10px; }
.pillar > p { color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.pillar ul { list-style: none; margin: 0 0 22px; }
/* Flex makes every child a flex item — including bare text nodes. An <li> written as
   `<span class="tick">✓</span> text <strong>bold</strong> more text` therefore lays out as
   four columns, not one sentence. Keep the tick and ONE wrapping <span> as the only two
   children whenever the line contains any inline markup. */
.pillar ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--muted);
  padding: 5px 0;
}
.pillar ul .tick { color: var(--accent); font-weight: 700; flex: none; }
.pillar .pillar-demo {
  margin-top: auto;
  background: var(--accent-soft);
  border: 1px solid #dcebfb;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.7;
}
.pillar .pillar-demo .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.pillar .pillar-demo .ghost-text { color: var(--ghost); }

/* ---------- Feature detail rows (features page) ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-of-type { border-bottom: none; }
.feature-row h2 {
  font-size: 27px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.feature-row p { color: var(--muted); font-size: 16.5px; margin-bottom: 12px; }
.feature-row ul { padding-left: 20px; color: var(--muted); font-size: 16px; }
.feature-row ul li { margin-bottom: 6px; }

.mini-demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 26px 28px;
  font-size: 16.5px;
  line-height: 1.8;
}
.mini-demo .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--faint);
  margin-bottom: 12px;
}
.ghost-text { color: var(--ghost); }
.fix-hint { color: var(--warn); font-weight: 500; }
.strike { text-decoration: line-through; color: var(--faint); }

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

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan .flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
  white-space: nowrap;
}
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan .plan-tag { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plan .price {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1.15;
}
.plan .price.tba { font-size: 24px; color: var(--accent); }
.plan .price .per {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--faint);
}
.plan .price-note { color: var(--faint); font-size: 14px; margin-bottom: 24px; }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--muted);
  padding: 6px 0;
}
.plan ul .tick { color: var(--accent); font-weight: 700; flex: none; }
.plan .btn { justify-content: center; }

.trial-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1px solid #cfe3f8;
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 34px;
}
.trial-strip h2 { font-size: 19px; margin-bottom: 5px; }
.trial-strip p { font-size: 15.5px; color: #2c4a71; max-width: 62ch; }
.trial-strip .btn { flex: none; }

.notice {
  background: var(--accent-soft);
  border: 1px solid #cfe3f8;
  border-radius: var(--radius);
  padding: 20px 26px;
  font-size: 15.5px;
  color: #2c4a71;
  margin-top: 36px;
}

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 4px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--faint);
  font-weight: 400;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-top: 12px; font-size: 16px; }

/* ---------- Requirements strip ---------- */

.req-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.req {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.req strong { color: var(--ink); font-weight: 600; }

/* ---------- Prose (about / contact) ---------- */

.prose { max-width: 720px; }
.prose h2 { font-size: 24px; letter-spacing: -0.015em; margin: 40px 0 12px; }
.prose p { color: var(--muted); margin-bottom: 16px; font-size: 17px; }
.prose ul { color: var(--muted); padding-left: 22px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; }

.page-hero {
  background: linear-gradient(180deg, #eaf3fc 0%, rgba(251, 252, 254, 0) 100%);
  padding: 72px 0 28px;
}
.page-hero h1 { text-align: left; margin: 0 0 14px; font-size: clamp(34px, 5vw, 48px); }
.page-hero .lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 640px;
}

/* ---------- Steps list (install) ---------- */

.install-steps { counter-reset: inst; max-width: 720px; }
.install-steps li {
  list-style: none;
  counter-increment: inst;
  position: relative;
  padding: 0 0 26px 56px;
  color: var(--muted);
  font-size: 16.5px;
}
.install-steps li::before {
  content: counter(inst);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-steps li strong { color: var(--ink); }
.install-steps code {
  background: #f0f3f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--ink);
  word-break: break-all;
}

/* ---------- CTA panel ---------- */

.cta-panel {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 64px 32px;
  box-shadow: var(--shadow-sm);
}
.cta-panel h2 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.cta-panel p { color: var(--muted); margin-bottom: 30px; font-size: 17.5px; }

/* ---------- Contact ---------- */

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
}
.contact-card h3 { font-size: 20px; margin-bottom: 8px; }
.contact-card p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  margin-top: 40px;
  font-size: 15px;
  color: var(--faint);
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.footer-brand svg { width: 22px; height: 22px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-note { margin-top: 22px; font-size: 13.5px; max-width: 560px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .steps, .grid, .plans, .pillars { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 26px; padding: 40px 0; }
  .feature-row.flip .mini-demo { order: -1; }
  .privacy-band { padding: 36px 26px; }
  .privacy-points { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 56px 0 32px; }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 22px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
