/* TrebleQ site styles. Brand: charcoal, teal, light gray (no copper). Font: Roboto. */
:root {
  --charcoal: #2B2D2F;
  --teal: #1C6E71;
  --teal-dark: #155558;
  --light-teal: #4FA3A6;
  --pale-teal: #A9C8C8;
  --light-gray: #E1DED8;
  --peach: #FFA86B;
  --warm-gray: #8A8377;
  --paper: #F6F5F2;
  --white: #FFFFFF;
  --text: #2B2D2F;
  --muted: #5E5A53;
  --radius: 10px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; color: var(--charcoal); }
h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 16px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--paper { background: var(--paper); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.rule { width: 56px; height: 4px; background: var(--peach); border-radius: 2px; margin: 0 0 24px; }
.lead { font-size: 20px; color: var(--muted); }
.section-head { margin-bottom: 48px; }
.section-head h2::after { content: ''; display: block; width: 56px; height: 4px; background: var(--peach); border-radius: 2px; margin-top: 18px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--ghost { color: var(--charcoal); border: 2px solid var(--light-gray); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--light { background: var(--white); color: var(--charcoal); }
.btn--light:hover { background: var(--light-gray); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--light-gray);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--teal); }
.nav .btn { padding: 10px 18px; font-size: 14px; color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--charcoal); cursor: pointer; }

/* Hero */
.hero { padding: 96px 0 88px; background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%); }
.hero .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sample dashboard in hero */
.dash {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(43,45,47,.10);
  padding: 22px;
}
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dash-title { font-weight: 700; font-size: 15px; }
.dash-badge { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--charcoal); background: var(--peach); padding: 4px 10px; border-radius: 999px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin-bottom: 14px; }
.seg { display: inline-flex; background: var(--paper); border: 1px solid var(--light-gray); border-radius: 8px; padding: 3px; }
.seg button { font: inherit; font-size: 12px; font-weight: 500; color: var(--muted); background: none; border: 0; padding: 6px 10px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--charcoal); }
.seg button.on { background: var(--white); color: var(--teal); font-weight: 700; box-shadow: 0 1px 3px rgba(43,45,47,.12); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.kpi { background: var(--paper); border-radius: 8px; padding: 10px; }
.kpi-label { font-size: 12px; color: var(--muted); }
.kpi-value { font-size: 20px; font-weight: 700; color: var(--charcoal); }
.kpi-delta { font-size: 12px; color: var(--teal); font-weight: 500; }
.dash-chart { background: var(--paper); border-radius: 8px; padding: 12px 12px 6px; }
.dash-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dash-legend span::before { content: ''; display: inline-block; width: 10px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--teal); }
.dash-legend span.fc::before { background: repeating-linear-gradient(90deg, var(--light-teal) 0 4px, transparent 4px 6px); }
.dash-legend span.cmp::before { background: var(--peach); }
.dash-legend span.cmp.py::before { background: var(--warm-gray); }
.dash-note { font-size: 12px; color: var(--warm-gray); margin-top: 10px; }

/* Four-column card strips (problem + answer share colors and order) */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-head { padding: 26px 22px; min-height: 168px; display: flex; flex-direction: column; justify-content: flex-start; }
.card-head h3 { font-size: 18px; margin: 0; color: inherit; }
.card-num { font-size: 13px; font-weight: 700; letter-spacing: .12em; opacity: .75; margin-bottom: 10px; }
.card-body { padding: 18px 22px 22px; background: var(--white); border: 1px solid var(--light-gray); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); flex: 1; color: var(--muted); font-size: 16px; }
.card-body p { margin: 0; }
.c1 .card-head { background: var(--teal); color: var(--white); }
.c2 .card-head { background: var(--pale-teal); color: var(--charcoal); }
.c3 .card-head { background: var(--peach); color: var(--charcoal); }
.c4 .card-head { background: var(--charcoal); color: var(--white); }

.answer .card-head { min-height: 116px; padding: 22px; }
.answer .card-head h3 { font-size: 20px; }
.answer ul { margin: 0; padding-left: 18px; }
.answer li { margin-bottom: 8px; }
.solves { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--light-gray); font-size: 14px; color: var(--warm-gray); }
.solves strong { color: var(--charcoal); font-weight: 500; }

/* Affordable band */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.pillar { border-top: 4px solid var(--teal); padding-top: 18px; }
.pillar:nth-child(2) { border-color: var(--light-teal); }
.pillar:nth-child(3) { border-color: var(--peach); }
.pillar p { color: var(--muted); margin: 0; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid #D3CEC6; border-radius: var(--radius); background: var(--white); }
table.compare { width: 100%; table-layout: fixed; border-collapse: collapse; min-width: 760px; font-size: 16px; }
.compare th, .compare td { padding: 18px 20px; text-align: center; vertical-align: middle; border-bottom: 1px solid #D3CEC6; }
.compare thead th { background: var(--paper); font-size: 15px; font-weight: 700; color: var(--charcoal); }
.compare tbody th { font-weight: 700; color: var(--charcoal); }
.compare thead th:first-child { width: 16%; }
.compare thead th.tq { width: 24%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .tq { background: rgba(28,110,113,.07); color: var(--charcoal); font-weight: 500; }
.compare thead th { border-bottom: 2px solid #C9C4BB; }
.compare thead .tq { background: rgba(28,110,113,.07); border-top: 4px solid var(--teal); }
.tq-logo { height: 30px; width: auto; margin: 0 auto; }
.table-note { margin-top: 18px; font-size: 18px; font-weight: 500; text-align: center; }

/* Investors block */
.investors { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.investors-box { background: var(--white); border-left: 5px solid var(--peach); border-radius: var(--radius); padding: 30px 32px; box-shadow: 0 8px 24px rgba(43,45,47,.06); }
.investors-box p:last-child { margin: 0; }

/* Closing CTA */
.cta { background: var(--charcoal); color: var(--white); text-align: center; padding: 88px 0; }
.cta h2 { color: var(--white); margin: 0 auto 16px; }
.cta p { color: var(--light-gray); margin: 0 auto 32px; font-size: 19px; }

/* Footer */
.site-footer { background: var(--light-gray); padding: 48px 0 32px; font-size: 15px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .logo img { height: 34px; margin-bottom: 12px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--charcoal); text-decoration: none; }
.footer-nav a:hover { color: var(--teal); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(43,45,47,.12); font-size: 13px; }

/* Responsive */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .investors { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; gap: 16px; border-bottom: 1px solid var(--light-gray); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .strip, .pillars { grid-template-columns: 1fr; }
  .card-head { min-height: 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi-value { font-size: 18px; }
}

/* ---------- Inner pages ---------- */
.nav a[aria-current="page"] { color: var(--teal); font-weight: 700; }
.nav { gap: 24px; }
.page-hero { padding: 80px 0 64px; background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%); }
.page-hero h1::after, .story-hero h1::after { content: ''; display: block; width: 56px; height: 4px; background: var(--peach); border-radius: 2px; margin-top: 20px; }

/* What You Get feature rows */
.feature { display: grid; grid-template-columns: 72px 1.1fr 1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--light-gray); align-items: start; }
.feature:first-child { padding-top: 0; }
.feature:last-child { border-bottom: 0; }
.feature-tag { width: 64px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.feature.c1 .feature-tag { background: var(--teal); color: var(--white); }
.feature.c2 .feature-tag { background: var(--pale-teal); color: var(--charcoal); }
.feature.c3 .feature-tag { background: var(--peach); color: var(--charcoal); }
.feature.c4 .feature-tag { background: var(--charcoal); color: var(--white); }
.feature h2 { font-size: 28px; }
.feature h2::after { display: none; }
.feature .lead { font-size: 18px; margin: 0; }
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--light-gray); position: relative; color: var(--muted); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }

/* Five layers */
.layers { display: flex; flex-direction: column; gap: 12px; padding-left: 40px; position: relative; }
.layers::before { content: ''; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: var(--warm-gray); opacity: .5; }
.layer { display: flex; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--light-gray); border-radius: var(--radius); padding: 18px 24px; }
.layer h3 { margin: 0 0 2px; }
.layer p { margin: 0; color: var(--muted); }
.layer-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 1px solid var(--light-gray); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--charcoal); }
.layer--ai { border: 2px solid var(--teal); background: rgba(28,110,113,.06); }
.layer--ai .layer-n { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* Phases */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.phase { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.phase-head { padding: 24px; }
.phase.c1 .phase-head { background: var(--teal); color: var(--white); }
.phase.c2 .phase-head { background: var(--pale-teal); color: var(--charcoal); }
.phase.c4 .phase-head { background: var(--charcoal); color: var(--white); }
.phase-head h3 { color: inherit; font-size: 24px; margin: 6px 0 4px; }
.phase-n { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.phase-time { font-size: 15px; opacity: .85; }
.phase-body { padding: 22px 24px; border: 1px solid var(--light-gray); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); flex: 1; color: var(--muted); }
.phase-body ul { padding-left: 18px; margin: 0 0 12px; }
.phase-body li { margin-bottom: 6px; }
.phase-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--light-gray); color: var(--teal); font-weight: 700; }

.weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--white); border: 1px solid var(--light-gray); border-radius: var(--radius); overflow: hidden; }
.week { padding: 24px; border-right: 1px solid var(--light-gray); }
.week:last-child { border-right: 0; }
.week-n { font-weight: 700; color: var(--teal); margin-bottom: 10px; padding-bottom: 10px; border-bottom: 3px solid var(--peach); }
.week ul { margin: 0; padding-left: 18px; color: var(--muted); }
.week li { margin-bottom: 6px; }

/* Story */
.story-hero { position: relative; padding: 140px 0 96px; color: var(--white);
  background: linear-gradient(90deg, rgba(43,45,47,.92) 0%, rgba(43,45,47,.7) 55%, rgba(43,45,47,.45) 100%), url('../img/story-hero.jpg') center/cover no-repeat; }
.story-hero h1 { color: var(--white); }
.eyebrow--light { color: var(--pale-teal); }
.story-text { font-size: 19px; color: var(--muted); }
.story-text p { margin-bottom: 22px; }
.story-lead { font-size: 23px; color: var(--charcoal); line-height: 1.5; }
.sig { font-weight: 700; color: var(--charcoal); }
.qs-band { background: var(--charcoal); color: var(--white); text-align: center; padding: 20px; border-radius: var(--radius) var(--radius) 0 0; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; }
.qs-title { text-align: center; font-size: 26px; font-weight: 700; padding: 22px 0 18px; background: var(--white); border-left: 1px solid var(--light-gray); border-right: 1px solid var(--light-gray); }
.qs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; background: var(--white); padding: 0 20px 20px; border: 1px solid var(--light-gray); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.q { text-align: center; padding: 28px 24px 32px; border-radius: 8px; }
.q.c1 { background: var(--teal); color: var(--white); }
.q.c2 { background: var(--pale-teal); color: var(--charcoal); }
.q.c3 { background: var(--peach); color: var(--charcoal); }
.q-big { font-size: 120px; font-weight: 700; line-height: 1; }
.q-rule { width: 48px; height: 2px; background: currentColor; opacity: .6; margin: 18px auto; }
.q h3 { color: inherit; font-size: 26px; margin-bottom: 10px; }
.q p { margin: 0; }
.bio { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.bio-photo { width: 100%; border-radius: 14px; }
.bio h2::after { display: none; }
.bio-role { color: var(--warm-gray); font-weight: 500; }
blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--peach); font-size: 22px; color: var(--charcoal); font-style: italic; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 20px; }
.stat { background: var(--paper); border-radius: 8px; padding: 16px; }
.stat-v { font-size: 24px; font-weight: 700; color: var(--teal); }
.stat-l { font-size: 14px; color: var(--muted); }
.bio-more { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-card { background: var(--paper); border-radius: 14px; padding: 36px; }
.contact-card h2::after { display: none; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--light-gray); }
.checks li::before { content: '\2713'; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-box { border: 1px solid var(--light-gray); border-radius: var(--radius); padding: 24px; }
.contact-box h3 { margin-bottom: 6px; }
.contact-box p:last-child { margin: 0; }
.contact-box .btn { margin-top: 4px; }

@media (max-width: 1100px) { .nav { gap: 16px; } .nav a { font-size: 14px; } }
@media (max-width: 980px) {
  .feature { grid-template-columns: 64px 1fr; }
  .feature-list { grid-column: 1 / -1; }
  .phases, .qs { grid-template-columns: 1fr; }
  .weeks { grid-template-columns: repeat(2, 1fr); }
  .week:nth-child(2) { border-right: 0; }
  .week:nth-child(-n+2) { border-bottom: 1px solid var(--light-gray); }
  .bio, .contact { grid-template-columns: 1fr; }
  .bio-photo { max-width: 280px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 16px; }
  .weeks { grid-template-columns: 1fr; }
  .week { border-right: 0; border-bottom: 1px solid var(--light-gray); }
  .layers { padding-left: 0; }
  .layers::before { display: none; }
  .story-hero { padding: 96px 0 64px; }
}
