/* ============================================================
   Webstar Digital — Shared Design System
   Used by: index.html, playbook.html, services.html, about.html, checklist.html
   ============================================================ */

:root {
  /* Brand tokens */
  --navy:        #0A2540;
  --navy-deep:   #051528;
  --navy-soft:   #E5EAF1;
  --orange:      #E85D2F;
  --orange-soft: #FDF1EC;
  --orange-deep: #C44A1F;
  --light:       #F4F7FB;
  --soft:        #EAEEF3;
  --grey:        #595959;
  --grey-light:  #8A8A8A;
  --dark:        #1A1A1A;
  --white:       #FFFFFF;
  --border:      #E1E6EC;

  /* Type scale */
  --fs-h1:       clamp(40px, 5.5vw, 64px);
  --fs-h2:       clamp(30px, 3.8vw, 44px);
  --fs-h3:       22px;
  --fs-lede:     20px;
  --fs-body:     16px;
  --fs-small:    14px;
  --fs-eyebrow:  13px;

  /* Layout */
  --container:   1180px;
  --container-narrow: 880px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 2px rgba(10, 37, 64, 0.04), 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md:   0 4px 12px rgba(10, 37, 64, 0.08), 0 12px 32px rgba(10, 37, 64, 0.06);
  --shadow-lg:   0 12px 40px rgba(10, 37, 64, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--orange); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--orange-deep); }

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

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }
section.tight { padding: 64px 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); margin-bottom: 24px; }
h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
h3 { font-size: var(--fs-h3); margin-bottom: 12px; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }

p { margin-bottom: 16px; color: var(--grey); }
p.lede { font-size: var(--fs-lede); color: var(--dark); margin-bottom: 32px; max-width: 720px; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 16px;
}

.accent { color: var(--orange); }

.section-sub {
  font-size: var(--fs-lede);
  color: var(--grey);
  margin-bottom: 48px;
  max-width: 680px;
}

/* ---------- Navigation ---------- */
nav.topnav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
nav.topnav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.logo .accent { color: var(--orange); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--grey);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-links a.nav-cta:hover {
  background: var(--orange);
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 93, 47, 0.3);
}
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--light);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  background: var(--navy-deep);
  color: var(--white);
}

.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 { max-width: 920px; }
.hero p.lede { margin-bottom: 0; }

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
  font-size: var(--fs-small);
  color: var(--grey);
}
.hero-meta span::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
  margin-right: 8px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.15s ease;
}
.card:hover {
  border-color: var(--navy-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-num {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 700;
  text-align: center;
  line-height: 36px;
  margin-bottom: 16px;
}
.card-tag {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 16px;
  align-items: start;
}

/* ---------- Stats / metrics ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.stat-num {
  font-size: 56px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: var(--fs-small);
  color: var(--grey);
  font-weight: 500;
}

/* ---------- Pricing tier card ---------- */
.tier-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.tier-card.featured {
  border-color: var(--orange);
  border-width: 2px;
  background: linear-gradient(180deg, var(--orange-soft) 0%, var(--white) 25%);
  box-shadow: var(--shadow-md);
}
.tier-card .tier-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 6px;
}
.tier-price {
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}
.tier-price .per {
  font-size: 18px;
  color: var(--grey);
  font-weight: 500;
}
.tier-founder {
  font-size: 14px;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.tier-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}
.tier-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--dark);
  font-size: 15px;
}
.tier-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--orange-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%23E85D2F' d='M6.5 11.5L3 8l1-1 2.5 2.5L12 4l1 1z'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Sections ---------- */
.section-light { background: var(--light); }
.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255, 255, 255, 0.85); }
.section-navy .section-sub { color: rgba(255, 255, 255, 0.7); }
.section-navy .accent { color: var(--orange); }

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 32px 0;
  background: var(--navy);
  color: var(--white);
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 24px;
}
@media (max-width: 900px) {
  .trust-strip .container {
    grid-template-columns: 1fr;
  }
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 15px;
}
.trust-item .dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 7px;
}

/* ---------- Founder block ---------- */
.founder {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px;
  background: var(--light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.founder-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 4px;
}
.founder-title {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 16px;
}
.founder-quote { font-style: italic; color: var(--dark); font-size: 16px; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 700;
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 8px;
}
.faq-a {
  color: var(--grey);
  font-size: 16px;
  line-height: 1.7;
}

/* ---------- Comparison table ---------- */
.comparison {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.comparison th, .comparison td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.comparison th {
  background: var(--light);
  font-weight: 700;
  color: var(--navy);
}
.comparison td:not(:first-child) { text-align: center; }
.comparison tr:last-child td { border-bottom: none; }
.check { color: var(--orange); font-weight: 700; }
.dash { color: var(--grey-light); }

/* ---------- Form ---------- */
.form-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-row input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  color: var(--dark);
  transition: border-color 0.15s ease;
}
.form-row input:focus {
  outline: none;
  border-color: var(--orange);
}

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--navy);
  color: var(--white);
  padding: 96px 0;
  text-align: center;
}
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255, 255, 255, 0.8); max-width: 640px; margin: 0 auto 32px; font-size: 18px; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
footer h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
footer ul { list-style: none; }
footer ul li { padding: 4px 0; }
footer ul li a { color: rgba(255, 255, 255, 0.7); font-size: 15px; }
footer ul li a:hover { color: var(--orange); }
footer .logo { color: var(--white); }
footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Restoration playbook page specific ---------- */
.playbook-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.playbook-section:last-of-type { border-bottom: none; }
.playbook-content {
  max-width: 760px;
  margin: 0 auto;
}
.playbook-content p { font-size: 17px; line-height: 1.75; color: var(--dark); margin-bottom: 20px; }
.playbook-content ul, .playbook-content ol {
  margin: 16px 0 24px 24px;
  color: var(--dark);
}
.playbook-content li { margin-bottom: 10px; font-size: 17px; line-height: 1.7; }
.playbook-content strong { color: var(--navy); font-weight: 700; }
.callout {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  padding: 24px 28px;
  border-radius: 6px;
  margin: 32px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout p { color: var(--dark); font-weight: 500; }

/* ---------- Services week-by-week ---------- */
.week-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.week-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.week-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 8px;
}
.week-card h4 { font-size: 16px; margin-bottom: 8px; }
.week-card p { font-size: 14px; line-height: 1.5; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 24px; }
  .week-grid { grid-template-columns: 1fr 1fr; }
  footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { width: 80px; height: 80px; font-size: 28px; }
}
@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .week-grid { grid-template-columns: 1fr; }
  footer .footer-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 40px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { text-align: center; }
}
