/* Saiph House: shared styles.
   System font stack on purpose: no third-party font requests, so the site
   makes no calls to outside services. */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #111111;
  --body: #33332f;
  --muted: #55554f;
  --line: #e4e4df;
  --pill: #ecece7;
  --accent: #3b5bdb;
  --accent-soft: #e8ecfb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header and footer */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 48px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* Layout */
main {
  flex: 1;
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding: 112px 48px 96px;
}
main.narrow { max-width: 856px; padding-top: 96px; }
main.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.stack { display: flex; flex-direction: column; }

/* Type */
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
.display { font-size: clamp(44px, 8vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.display-xl { font-size: clamp(56px, 10vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.lead { margin: 0; font-size: 22px; line-height: 1.5; color: var(--muted); }
.page-title { font-size: clamp(36px, 6vw, 48px); line-height: 1.1; font-weight: 700; }
.meta { font-size: 15px; color: var(--muted); }

/* Hero blocks */
.hero { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin-bottom: 72px; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 220px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.card-text { margin: 12px 0 0; font-size: 17px; color: var(--muted); }
.card-link { font-size: 15px; font-weight: 600; color: var(--accent); }

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.pill-accent { background: var(--accent-soft); color: var(--accent); padding: 8px 16px; font-size: 14px; }

/* Gambit */
.gambit-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 720px; margin-bottom: 88px; }
.tagline { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; color: var(--accent); }
.intro { margin: 0; font-size: 20px; line-height: 1.6; color: var(--body); }
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 16px 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.button[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.button-dark { background: var(--ink); color: #ffffff; padding: 14px 24px; }
.button-dark:hover { color: #ffffff; background: var(--accent); }

.section-title { font-size: 32px; font-weight: 700; margin-bottom: 32px; }
.features { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 88px; padding: 0; list-style: none; }
.feature {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 17px;
  line-height: 1.55;
}
.feature-num { font-size: 14px; font-weight: 700; color: var(--accent); }
.closing { padding-top: 56px; border-top: 1px solid var(--line); }
.closing-line { margin: 0 0 24px; max-width: 760px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; }
.link-row { display: flex; flex-wrap: wrap; gap: 28px; font-size: 16px; font-weight: 600; }
.link-row a { text-decoration: none; }

/* Text pages (privacy, support) */
.prose section { margin-top: 40px; }
.prose h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.prose p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.page-head p { margin: 0; font-size: 20px; line-height: 1.6; color: var(--body); }
.faq { margin-top: 56px; }
.faq h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 28px; }
.faq-item { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.faq-item p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.back { display: inline-block; margin-top: 40px; font-size: 16px; font-weight: 600; text-decoration: none; }

@media (max-width: 640px) {
  .site-header { padding: 20px 24px; }
  .site-footer { padding: 24px; }
  main, main.narrow { padding: 64px 24px; }
  .card { min-height: 180px; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
