/* Capstone Pro Software Corp — shared design system
   Palette matches the shipped apps (Estimator / File Finder): navy + gold on cream. */

:root {
  --navy: #0B1F3A;
  --navy-2: #132D52;
  --ink: #0A1628;
  --gold: #C9A84C;
  --gold-2: #E0C675;
  --gold-3: #F4DB91;
  --gold-ink: #F4DB91;

  /* dark by default — matches Estimate, Finances, Roof AI and the rest */
  --bg: #0A1628;
  --surface: #0B1F3A;
  --surface-2: #132D52;
  --border: #1E3A63;
  --text: #F1F5F9;
  --text-mut: #94A3B8;

  --success: #34D399;
  --danger: #FB7185;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 60px -20px rgba(0,0,0,.7);
  --gutter: 16px;
  --maxw: 1140px;

  --font-display: Sora, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.muted { color: var(--text-mut); }
.center { text-align: center; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--gutter);
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold-3);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 9px;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #FFFFFF;
  text-decoration: none;
}

.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--gold-3); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: #2A1F05;
  box-shadow: var(--shadow);
}

.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { background: var(--surface-2); }

.btn-lg { padding: 16px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }

.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

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

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(44px, 7vw, 80px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 40% 40% -30%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 16%, transparent), transparent);
  pointer-events: none;
}

.hero > .wrap { position: relative; }

.hero p.lede {
  font-size: clamp(1.06rem, 2.1vw, 1.28rem);
  color: var(--text-mut);
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}

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

.section { padding: clamp(44px, 7vw, 82px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--text-mut); margin-bottom: 0; }

/* ---------- Grid + cards ---------- */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: .35em; }
.card p { color: var(--text-mut); margin-bottom: 0; font-size: .97rem; }

/* Product card */

.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.product-card .pc-top {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.pc-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  color: var(--gold-3);
  font-size: 1.15rem;
}

.pc-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: #FFFFFF;
}

.pc-foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: .9rem;
}

.pc-price { font-weight: 800; font-family: var(--font-display); }
.pc-go { color: var(--gold-ink); font-weight: 700; }

/* ---------- Badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-mut);
  background: var(--surface-2);
}

.badge-live { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 10%, transparent); }
.badge-soon { color: var(--gold-ink); border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }

/* ---------- Feature list ---------- */

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }

.feature-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  column-gap: 12px;
  align-items: start;
  font-size: .99rem;
}

.feature-list li::before { grid-row: 1 / span 2; }
.feature-list strong, .feature-list span { grid-column: 2; }

.feature-list li::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: .55em;
  border-radius: 50%;
  background: var(--gold);
}

.feature-list strong { display: block; }
.feature-list span { color: var(--text-mut); font-size: .94rem; }

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

.price-box {
  background: linear-gradient(160deg, var(--navy), var(--ink));
  color: #F1F5F9;
  border: 1px solid var(--navy-2);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.price-box .amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--gold-3);
}

.price-box .per { font-size: 1rem; font-weight: 600; color: #94A3B8; }
.price-box p { color: #B6C2D4; }
.price-box .feature-list li { color: #E2E8F0; }
.price-box .feature-list span { color: #94A3B8; }

.split {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 880px) {
  .split { grid-template-columns: 1.15fr .85fr; gap: 46px; }
}

/* ---------- Feature banner (Command) ---------- */

.banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy), var(--ink) 65%);
  border: 1px solid var(--navy-2);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
  color: #F1F5F9;
  box-shadow: var(--shadow-lg);
}

.banner::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 26%, transparent), transparent);
  pointer-events: none;
}

.banner > * { position: relative; }
.banner h2 { color: #fff; }
.banner p { color: #B6C2D4; max-width: 60ch; }
.banner .eyebrow { color: var(--gold-3); }

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

.faq { display: grid; gap: 12px; max-width: 80ch; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -.01em;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold-ink); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--text-mut); font-size: .96rem; }

/* ---------- Form ---------- */

.form { display: grid; gap: 12px; max-width: 460px; }

.form label { font-size: .88rem; font-weight: 700; }

.form input, .form textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form input:focus, .form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.form .hp { position: absolute; left: -9999px; }

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

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 46px 0 34px;
  font-size: .93rem;
}

.footer-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 30px;
}

.footer h4 {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mut);
  margin-bottom: 12px;
}

.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-mut); text-decoration: none; }
.footer a:hover { color: var(--text); }

.footer-base {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--text-mut);
  font-size: .86rem;
}

/* ---------- Utilities ---------- */

.stat-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 8px;
}

.stat .n {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--gold-ink);
  line-height: 1.1;
}

.stat .l { font-size: .89rem; color: var(--text-mut); }

.note {
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 15px;
  color: var(--text-mut);
  font-size: .95rem;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .product-card:hover { transform: none; }
}

/* ---------- Product icons (real app icons) ---------- */

.pc-icon { overflow: hidden; }
.pc-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-icon.has-img { background: none; border: 1px solid var(--border); }

.hero-icon {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Product card: body link + external site link ---------- */

.pc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.pc-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.pc-go { text-decoration: none; white-space: nowrap; }
.pc-go:hover { text-decoration: underline; }

.pc-ext {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-mut);
  text-decoration: none;
  white-space: nowrap;
}

.pc-ext:hover { color: var(--gold-ink); text-decoration: underline; }

/* Visible official-site link on each product page */
.site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-mut);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.site-link:hover { color: var(--gold-ink); border-color: var(--gold); }

/* ---------- One-line wordmark ---------- */

.brand-name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* Nav carries 7 links beside the wordmark — tighten to keep one row on laptops */
@media (min-width: 900px) {
  .nav-links a { padding: 7px 10px; font-size: 1.04rem; }
}

@media (min-width: 900px) and (max-width: 1130px) {
  .nav-links a { padding: 7px 8px; font-size: .97rem; }
}

@media (max-width: 420px) {
  .brand { font-size: .92rem; }
}

/* ---------- Real brand mark ---------- */

img.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  object-fit: cover;
  background: none;
  border: none;
  display: block;
}

.footer img.brand-mark { width: 30px; height: 30px; flex-basis: 30px; }

.hero-logo {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
  .hero-logo { width: 88px; height: 88px; border-radius: 19px; }
}

/* ---------- Product screenshot ---------- */

.shot-wrap { padding: 0 0 clamp(30px, 5vw, 56px); }

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.shot-cap {
  margin: 12px 0 0;
  font-size: .86rem;
  color: var(--text-mut);
}
