/* Minimal fallback rules for every class in the shared contract.
 *
 * Always prepended to the model-generated stylesheet, which overrides it via the normal
 * later-wins cascade. This exists because the stylesheet and the pages are generated by
 * separate model calls, so the stylesheet can omit a contract class -- which used to fail
 * the whole build (a real business, find-dog, died on a missing `btn-primary`). With this
 * in place a missed rule degrades to plain-but-styled instead of destroying the build.
 *
 * Keep these deliberately neutral and low-specificity: they are a safety net, not a design.
 */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

.site-header { padding: 1rem 0; }
.header-inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; }
.logo-text { font-weight: 700; }
.main-nav { display: block; }
.nav-list { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.nav-link { text-decoration: none; }
.nav-link:hover, .nav-link:focus { text-decoration: underline; }
.is-current { font-weight: 700; }

.hero, .page-hero { padding: 3rem 0; }
.hero-inner { display: flex; flex-direction: column; gap: 1rem; }
.hero-title { margin: 0; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; }
.hero-subtitle { margin: 0; font-size: 1.125rem; }

.section { padding: 3rem 0; }
.section-alt { padding: 3rem 0; }
.section-title { margin: 0 0 1rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.section-intro { margin: 0 0 1.5rem; max-width: 60ch; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { padding: 1.25rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: .5rem; }
.card-title { margin: 0 0 .5rem; font-size: 1.125rem; }
.card-text { margin: 0; }

.steps { display: grid; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-number { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid currentColor; font-weight: 700; }
.step-title { margin: 0 0 .25rem; font-size: 1.05rem; }
.step-text { margin: 0; }

/* FAQ items are <details>/<summary>: they expand on click with no JavaScript. */
html { scroll-behavior: smooth; }
.faq-list { display: grid; gap: 1rem; margin: 0; padding: 0; }
.faq-item { padding: 1rem; border: 1px solid rgba(0, 0, 0, .12); border-radius: .5rem; }
.faq-question { margin: 0; font-size: 1.05rem; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-weight: 700; flex: 0 0 auto; }
details[open] > .faq-question::after { content: "\2212"; }
.faq-answer { margin: .75rem 0 0; }

.cta-band { padding: 3rem 0; text-align: center; }
.cta-title { margin: 0 0 .5rem; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.cta-text { margin: 0 0 1.25rem; }

.btn { display: inline-block; padding: .7rem 1.4rem; border-radius: .4rem; text-decoration: none;
  border: 1px solid currentColor; cursor: pointer; }
.btn:hover, .btn:focus { opacity: .85; }
.btn-primary { font-weight: 600; }
.btn-secondary { font-weight: 500; background: transparent; }

.contact-list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.contact-item { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-label { font-weight: 600; }
.contact-value { }

.site-footer { padding: 2rem 0; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.footer-col { }
.footer-title { margin: 0 0 .5rem; font-size: 1rem; }
.footer-note { margin: 0; font-size: .9rem; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .step { flex-direction: column; }
}

/* ---- generated ---- */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #f9f9f9;
  --color-primary: #0066ff;
  --color-primary-dark: #0052cc;
  --color-text: #222222;
  --color-muted: #666666;
  --color-border: #e0e0e0;
  --color-shadow: rgba(0,0,0,0.1);
  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  /* Shadows */
  --shadow-sm: 0 1px 3px var(--color-shadow);
  --shadow-md: 0 4px 6px var(--color-shadow);
  /* Spacing */
  --space-2x: 0.5rem;
  --space-3x: 1rem;
  --space-4x: 1.5rem;
  --space-5x: 2rem;
  --space-6x: 3rem;
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;
}

/* Global reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Layout container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3x);
}

/* Header */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4x) 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2x);
}
.logo-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}
.main-nav .nav-list {
  display: flex;
  gap: var(--space-4x);
  list-style: none;
}
.nav-link {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2x) var(--space-3x);
  border-radius: var(--radius-sm);
  transition: background-color .2s;
}
.nav-link:hover,
.nav-link:focus {
  background-color: var(--color-bg-alt);
  outline: 2px solid var(--color-primary);
}
.is-current {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

/* Hero */
.hero,
.page-hero {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: var(--space-6x) 0;
}
.hero-inner,
.page-hero .hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-5x);
}
.hero-title,
.page-hero .hero-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-2x);
}
.hero-subtitle,
.page-hero .hero-subtitle {
  font-size: var(--font-size-lg);
  opacity: 0.9;
}

/* Sections */
.section {
  padding: var(--space-6x) 0;
}
.section-alt {
  background-color: var(--color-bg-alt);
}
.section-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-3x);
  text-align: center;
  color: var(--color-primary);
}
.section-intro {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto var(--space-5x);
  text-align: center;
}

/* Cards */
.card-grid {
  display: grid;
  gap: var(--space-4x);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-4x);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2x);
  color: var(--color-primary);
}
.card-text {
  font-size: var(--font-size-base);
  color: var(--color-text);
}

/* Process steps */
.steps {
  display: grid;
  gap: var(--space-5x);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.step {
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2x);
}
.step-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2x);
  color: var(--color-primary);
}
.step-text {
  font-size: var(--font-size-base);
  color: var(--color-muted);
}

/* FAQ */
.faq-list {
  max-width: 600px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--color-border);
}
.faq-item:first-child { border-top: none; }
.faq-question {
  padding: var(--space-4x) 0;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-question::after {
  content: "▸";
  transition: transform .2s;
}
.faq-item[open] .faq-question::after {
  transform: rotate(90deg);
}
.faq-answer {
  padding: 0 var(--space-4x) var(--space-4x);
  color: var(--color-muted);
  line-height: 1.6;
}

/* CTA band */
.cta-band {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: var(--space-5x) 0;
}
.cta-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2x);
}
.cta-text {
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto var(--space-3x);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-2x) var(--space-4x);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s;
  border: none;
}
.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary-dark);
}
.btn-secondary {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-border);
  color: var(--color-primary);
}

/* Contact details */
.contact-list {
  display: grid;
  gap: var(--space-3x);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.contact-item {
  display: flex;
  align-items: flex-start;
}
.contact-label {
  font-weight: var(--font-weight-medium);
  color: var(--color-muted);
  min-width: 80px;
}
.contact-value {
  color: var(--color-text);
}

/* Footer */
.site-footer {
  background-color: var(--color-bg-alt);
  padding: var(--space-5x) 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4x);
  justify-content: space-between;
}
.footer-col {
  flex: 1 1 200px;
}
.footer-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2x);
  color: var(--color-primary);
}
.footer-note {
  font-size: var(--font-size-base);
  color: var(--color-muted);
  line-height: 1.5;
}

/* Focus outlines for accessibility */
a:focus,
button:focus,
.btn:focus,
.nav-link:focus,
.card:focus-within {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    gap: var(--space-3x);
    text-align: center;
  }
  .main-nav .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .hero-title,
  .page-hero .hero-title {
    font-size: var(--font-size-2xl);
  }
  .hero-subtitle,
  .page-hero .hero-subtitle {
    font-size: var(--font-size-base);
  }
  .section-title {
    font-size: var(--font-size-xl);
  }
  .cta-title {
    font-size: var(--font-size-xl);
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}