:root {
  --ink: #0B3D4A;
  --teal: #2A9D8F;
  --mist: #E8F3F1;
  --paper: #F7F9F8;
  --slate: #4A5C63;
  --line: #D5E0DD;
  --white: #FFFFFF;
  --radius: 10px;
  --max: 1120px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--slate);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a { color: var(--ink); font-size: 0.95rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal); }
.nav-links a.btn-primary { color: var(--white); font-weight: 600; }
.nav-links a.btn-primary:hover { color: var(--white); background: #09323c; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  font-family: inherit;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #09323c; }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--mist); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { filter: brightness(0.95); }

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(42,157,143,0.12), transparent),
    var(--paper);
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.hero-lead { font-size: 1.125rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(11,61,74,0.06);
}
.hero-card ul { margin: 0; padding-left: 1.1rem; }
.hero-card li { margin-bottom: 0.5rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.section-mist { background: var(--mist); }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.muted { color: var(--slate); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem;
}
.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.price-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(42,157,143,0.25);
  position: relative;
}
.badge {
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  background: var(--teal);
  color: white;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.price { font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--slate); }
.price-card ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.1rem;
  flex: 1;
}
.price-card li { margin-bottom: 0.4rem; }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq p:last-child { margin-bottom: 0; }

/* Forms */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 36rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(42,157,143,0.35);
  border-color: var(--teal);
}
.form-note { font-size: 0.875rem; color: var(--slate); margin-top: 0.75rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}
.site-footer a { color: #9fd9d1; }
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h3 { color: var(--white); font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
}

.page-hero { padding: 2.75rem 0 1.5rem; }
.two-col {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.card-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}
.card-list h3 { margin-top: 0; }
.card-list ul { margin: 0; padding-left: 1.1rem; }
.card-list li { margin-bottom: 0.4rem; }

/* Checkout */
.checkout-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 800px) {
  .checkout-layout { grid-template-columns: 1.4fr 0.9fr; }
}
.checkout-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 8px 30px rgba(11,61,74,0.06);
}
.checkout-card .price { margin: 0.25rem 0 0.75rem; }
.checkout-card ul {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.1rem;
}
.checkout-card li { margin-bottom: 0.4rem; }
.stripe-pay-area {
  background: var(--mist);
  border: 1px dashed var(--teal);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.btn-pay {
  min-width: 12rem;
}
.btn-pay:disabled,
.btn-pay[disabled] {
  opacity: 0.85;
  cursor: not-allowed;
}
.stripe-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate);
  max-width: 36rem;
}
.checkout-aside .checkout-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.checkout-aside .checkout-steps li { margin-bottom: 0.5rem; }
.price-card .btn { margin-top: auto; align-self: flex-start; }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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);
}

@media (max-width: 799px) {
  .nav { flex-wrap: wrap; position: relative; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav > nav {
    width: 100%;
    order: 3;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: 100%;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
  }
  body.nav-open .nav-links,
  nav[data-open="true"] .nav-links {
    display: flex;
  }
  .nav-links a {
    display: block;
    padding: 0.65rem 0.25rem;
  }
  .nav-links .btn {
    width: 100%;
    margin-top: 0.35rem;
  }
}

@media (min-width: 800px) {
  .nav-toggle { display: none !important; }
}

/* Trust strip */
.trust-strip {
  width: 100%;
  background: var(--mist);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  width: 100%;
  font-size: 0.925rem;
  font-weight: 550;
  color: var(--ink);
}
@media (min-width: 700px) {
  .trust-strip ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
  }
}

/* Doors (homepage pricing teaser) */
.doors-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .doors-grid { grid-template-columns: repeat(2, 1fr); }
}
.door-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.door-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(42,157,143,0.25);
}
.door-card .btn { margin-top: auto; align-self: flex-start; }

/* Was-price / new-customer note */
.price-was {
  margin: 0;
  font-size: 0.875rem;
  color: var(--slate);
}
.price-was s,
.price-was .was {
  text-decoration: line-through;
  color: var(--slate);
}
.price-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--slate);
}

/* Card actions + ask link */
.card-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  align-items: flex-start;
}
.card-actions .btn { margin-top: 0; align-self: flex-start; }
.ask-link {
  font-size: 0.875rem;
  color: var(--teal);
  font-weight: 500;
}
.ask-link:hover { text-decoration: underline; }


/* Stripe sandbox / test mode */
.test-mode-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a4a00;
  background: #fff3cd;
  border: 1px solid #f0d78c;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.btn-pay-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
a.btn .test-mode-chip,
.btn .test-mode-chip {
  margin-left: 0.35rem;
}
