/* ============================================================
   Linear Reality Advisory — styles
   Palette: bg #F8FAFC · text #0F172A · muted #475569
            accent #2563EB · accent-dark #1E3A8A · border #CBD5E1
   ============================================================ */

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --accent: #2563EB;
  --accent-dark: #1E3A8A;
  --border: #CBD5E1;
  --border-soft: #E2E8F0;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 14px 36px rgba(37, 99, 235, 0.10);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }

h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 8px 22px rgba(30, 58, 138, 0.28); }

.btn-secondary {
  background: var(--surface);
  color: var(--accent-dark);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); background: #fff; }

.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  /* logo is dark line-art on white; multiply drops the white into the light header */
  mix-blend-mode: multiply;
}
.brand-name { font-weight: 700; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-sub { color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-menu a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 9vw, 104px);
  border-bottom: 1px solid var(--border-soft);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; max-width: 800px; }

.hero-lead {
  font-size: clamp(1.12rem, 1.9vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 0;
  max-width: 60ch;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  margin: 18px 0 30px;
  max-width: 62ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-line {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--muted);
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  max-width: 62ch;
}
.trust-line strong { color: var(--text); }
.trust-books {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 62ch;
}
.trust-books em { font-style: italic; color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border-soft); }
.section-intro {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 64ch;
  margin: 16px 0 40px;
}
.section h2 + .grid { margin-top: 40px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  display: flex;
  flex-direction: column;
}
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #c7d7f5; }

.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }

.tags {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-dark);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.14);
  padding: 4px 10px;
  border-radius: 999px;
}

.card-cta {
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  align-self: flex-start;
}

.service-card { position: relative; }
.card-num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 12px;
}

.format-card .tags { margin-bottom: 22px; }
.format-card .btn { margin-top: auto; }

/* ---------- Band CTA ---------- */
.band {
  margin-top: 44px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.band p { margin: 0; font-size: 1.18rem; font-weight: 600; }
.band .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 8px 22px rgba(15,23,42,0.2); }
.band .btn-primary:hover { background: #eef2ff; color: var(--accent-dark); }

.pricing-note {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 70ch;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.section-alt .pricing-note { background: var(--bg); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-copy p { color: var(--muted); margin: 18px 0 0; }
.about-copy p strong { color: var(--text); }

.founder-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.founder-photo {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
}
.founder-row p { margin: 0; }
.founder-name { font-size: 1.15rem; font-weight: 700; color: var(--text) !important; }
.founder-title { font-weight: 600; color: var(--accent) !important; margin-top: 2px !important; }
.founder-meta { font-size: 0.88rem; color: var(--muted) !important; margin-top: 4px !important; }

@media (max-width: 420px) {
  .founder-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

.about-aside {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px;
}
.cred-list { margin: 0; padding-left: 20px; }
.cred-list li { color: var(--text); margin-bottom: 12px; }
.disclaimer-sm {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.email-line { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.field textarea { resize: vertical; min-height: 96px; }

.form-note {
  margin: 14px 0 0;
  font-size: 0.83rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 52px 0 36px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(203, 213, 225, 0.18);
}
.footer-brand .brand-name { color: #fff; font-size: 1.1rem; }
.footer-brand .brand-sub { color: #94a3b8; }
.footer-brand p { margin: 8px 0 0; color: #94a3b8; font-size: 0.92rem; max-width: 40ch; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: flex-start; }
.footer-nav a { color: #cbd5e1; font-size: 0.92rem; font-weight: 500; }
.footer-nav a:hover { color: #fff; }

.footer-legal { padding-top: 24px; }
.footer-legal p { margin: 0 0 8px; font-size: 0.82rem; color: #94a3b8; max-width: 90ch; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-actions { order: 2; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu li { width: 100%; }
  .nav-menu a:not(.btn) { display: block; padding: 12px 8px; border-bottom: 1px solid var(--border-soft); }
  .nav-menu .btn { width: 100%; margin-top: 10px; }

  .grid-2 { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .band .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .card { padding: 22px; }
  .brand-sub { display: none; }
}
