/* LineWise design system */
:root {
  --brand: #3919ba;
  --brand-dark: #2a1290;
  --ink: #1a1a2e;
  --muted: #5b5b73;
  --line: #e6e3f2;
  --bg-soft: #f6f5fb;
  --footer-bg: #14152a;
  --radius: 16px;
  --maxw: 1120px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--brand);
  font-weight: 400;
}
.brand b { font-weight: 600; }
.brand img { height: 26px; width: auto; display: block; }
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a[aria-current="page"] { color: var(--brand); opacity: 1; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.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); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(57, 25, 186, 0.28);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { transform: translateY(-1px); }
.nav .btn { padding: 10px 20px; }

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 24px;
}
.section-soft { background: var(--bg-soft); }
.eyebrow {
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  font-weight: 600;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 600;
}
.lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
  margin: 0 0 8px;
}
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 480px at 85% -10%, rgba(57, 25, 186, 0.10), transparent 65%),
    radial-gradient(760px 420px at 0% 110%, rgba(57, 25, 186, 0.07), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(72px, 11vw, 140px) 24px;
  text-align: center;
}
.hero .intro {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
  max-width: 680px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Split hero (home) */
.hero-split {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 24px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-split h1 { margin-bottom: 16px; }
.hero-split .intro {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
  margin: 0 0 36px;
}
.hero-split .hero-actions { justify-content: flex-start; }
.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ---------- Logo strip ---------- */
.logos {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.logos-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 24px;
  text-align: center;
}
.logos-group + .logos-group { margin-top: 40px; }
.logos-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  flex-wrap: wrap;
}
/* Logo source files are square canvases with generous transparent padding,
   so the rendered box must be much taller than the visible mark. */
.logos-row img {
  height: 76px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}
.logos-row img:hover { opacity: 1; filter: none; }
/* Client logos: large and full color */
.logos-row.clients { gap: clamp(16px, 3vw, 44px); }
.logos-row.clients img {
  height: 112px;
  max-width: 190px;
  opacity: 1;
  filter: none;
}
@media (max-width: 640px) {
  .logos-row img { height: 60px; max-width: 96px; }
  .logos-row.clients img { height: 84px; max-width: 130px; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.04);
}
.stat .num {
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.1;
  margin: 0 0 4px;
}
.stat .label {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}
.stat p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 56px) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip .feature-media { order: 2; }
.feature-copy h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.feature-copy p { color: var(--muted); font-size: 16.5px; margin: 0; }
.feature-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(26, 26, 46, 0.10);
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.04);
  display: flex;
  flex-direction: column;
}
.quote blockquote {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--ink);
  flex: 1;
}
.quote blockquote::before { content: "\201C"; color: var(--brand); }
.quote blockquote::after { content: "\201D"; color: var(--brand); }
.quote .who { display: flex; align-items: center; justify-content: center; gap: 10px; }
.quote .who .role { font-size: 13.5px; color: var(--muted); line-height: 1.4; text-align: center; }
.quote .who .role strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Cards (generic) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(26, 26, 46, 0.08); }
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card .io { margin: 0 0 10px; font-size: 14.5px; color: var(--ink); opacity: 0.85; }
.card .judge { margin: 0; font-size: 14px; color: var(--brand); font-weight: 500; }
.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(57, 25, 186, 0.10);
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}

/* ---------- Score (Design Lab) ---------- */
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}
.score-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.04);
}
.score-col h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.score-col > p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; }
.rubric {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.rubric li { position: relative; padding-left: 32px; font-size: 15px; }
.rubric li strong { color: var(--ink); }
.rubric li span { color: var(--muted); }
.rubric li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(57, 25, 186, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233919ba' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.score-callout {
  margin-top: 40px;
  text-align: center;
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand);
}

/* ---------- Tiers (Design Lab) ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.tier {
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  background: #fff;
}
.tier .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tier-public .tag { background: rgba(57, 25, 186, 0.10); color: var(--brand); }
.tier-private .tag { background: rgba(26, 26, 46, 0.08); color: var(--ink); }
.tier-hidden .tag { background: var(--footer-bg); color: #fff; }
.tier h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.tier p { margin: 0; color: var(--muted); font-size: 15px; }
.tier-hidden { background: var(--bg-soft); }
.tiers-note { margin-top: 32px; color: var(--muted); font-size: 16px; max-width: 700px; }
.tiers-note strong { color: var(--ink); }

/* ---------- Banner card (dark gradient) ---------- */
.banner-card {
  background: linear-gradient(135deg, #1c1440 0%, var(--brand-dark) 60%, var(--brand) 100%);
  color: #fff;
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  box-shadow: 0 24px 60px rgba(42, 18, 144, 0.35);
}
.banner-card .eyebrow { color: #b9aef4; }
.banner-card h2 { color: #fff; }
.banner-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 34px;
}

/* ---------- Audience cards ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.audience .card { display: flex; flex-direction: column; }
.audience .card p { color: var(--muted); font-size: 15px; margin: 0 0 22px; flex: 1; }
.audience .card .btn { align-self: flex-start; }

/* ---------- Trust ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.trust h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.trust p { margin: 0; color: var(--muted); font-size: 15px; }
.trust-item { padding-top: 18px; border-top: 3px solid var(--brand); }

/* ---------- Gap / pull quote ---------- */
.gap-quote {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 760px;
  margin: 28px 0;
  padding-left: 22px;
  border-left: 4px solid var(--brand);
}
.gap p { color: var(--muted); font-size: 17px; max-width: 780px; margin: 0 0 18px; }
.gap p strong { color: var(--ink); }

/* ---------- Closing CTA band ---------- */
.closing { background: var(--brand); color: #fff; }
.closing .section {
  text-align: center;
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
}
.closing h2 { color: #fff; max-width: 760px; margin: 0 auto 28px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(26, 26, 46, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}
.person:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(26, 26, 46, 0.10); }
.person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.person .info { padding: 20px 22px 22px; }
.person h3 { margin: 0 0 2px; font-size: 18px; font-weight: 600; }
.person .role { color: var(--brand); font-size: 14px; font-weight: 500; margin: 0 0 10px; }
.person p { margin: 0; color: var(--muted); font-size: 14px; }

/* Member profile page */
.member {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.member-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(26, 26, 46, 0.12);
}
.member h1 { font-size: clamp(32px, 4.5vw, 44px); margin-bottom: 4px; }
.member .role { color: var(--brand); font-weight: 600; font-size: 17px; margin: 0 0 24px; }
.member .bio p { color: var(--muted); font-size: 16.5px; margin: 0 0 16px; }
.member .email {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.member-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 780px; }
.prose h1 { margin-bottom: 28px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose ul { padding-left: 22px; }
.prose .updated { font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) 24px;
  text-align: center;
}
.contact-main .intro {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 44px;
}
.perks {
  list-style: none;
  margin: 0 auto 48px;
  padding: 0;
  display: grid;
  gap: 14px;
  text-align: left;
  max-width: 560px;
}
.perks li { position: relative; padding-left: 36px; color: var(--ink); font-size: 17px; }
.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(57, 25, 186, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233919ba' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 20px 50px rgba(26, 26, 46, 0.06);
  max-width: 560px;
  margin: 0 auto;
}
.contact-card h2 { margin: 0 0 8px; font-size: 24px; }
.contact-card p { margin: 0 0 26px; color: var(--muted); font-size: 16px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.email-big {
  display: inline-block;
  margin-top: 26px;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #cfcfe0; }
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-inner img { height: 44px; width: auto; margin-bottom: 20px; }
.footer-inner a { color: #cfcfe0; }
.footer-inner a:hover { color: #fff; }
.footer-col p { margin: 0 0 6px; font-size: 14px; }
.footer-col .email-link { color: #fff; font-weight: 500; }
.footer-col h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8aa6;
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: 14px; }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8a8aa6;
}
.footer-bottom a { color: #8a8aa6; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Scroll reveal (only hides content when JS runs) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .audience, .tiers, .quotes, .stats, .team-grid { grid-template-columns: 1fr 1fr; }
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-split .hero-actions { justify-content: center; }
  .hero-split .hero-media { order: 2; }
  .member { grid-template-columns: 1fr; }
  .member-photo { max-width: 380px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(26, 26, 46, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .score-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 24px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row.flip .feature-media { order: 0; }
}
@media (max-width: 640px) {
  .cards, .audience, .tiers, .quotes, .stats, .team-grid { grid-template-columns: 1fr; }
}
