:root {
  --navy: #0f2547;
  --navy-light: #1c3a68;
  --red: #e01a3c;
  --blue: #2f7fe0;
  --gray-bg: #f6f7f9;
  --gray-border: #e3e5e9;
  --gray-text: #6b7280;
  --dark-text: #111827;
  --amber-bg: #fdf6e3;
  --amber-border: #f0d68a;
  --amber-text: #8a5b00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--dark-text);
  line-height: 1.5;
}

a { color: inherit; }
.muted { color: var(--gray-text); }

/* header */
.site-header {
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 50;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo img { height: 30px; display: block; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; }
.site-nav a { text-decoration: none; color: var(--navy); }
.site-nav a:hover { color: var(--red); }
.site-nav-toggle { display: none; background: none; border: none; font-size: 20px; margin-left: auto; cursor: pointer; }

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-border);
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 14px;
  }
  .site-nav.open { display: flex; }
  .site-nav-toggle { display: block; }
}

/* hero */
.hero {
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  padding: 72px 24px 60px;
  text-align: center;
}
.hero-eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--navy);
  margin: 14px 0 16px;
  line-height: 1.15;
}
.hero p.lead {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--gray-text);
  font-size: 17px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* generic sections */
.section { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-size: clamp(26px, 3.5vw, 34px);
  margin: 0 0 12px;
}
.section-header p { color: var(--gray-text); }

/* buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c81635; }
.btn-secondary { background: var(--gray-bg); color: var(--navy); border: 1px solid var(--gray-border); }
.btn-secondary:hover { background: #ececef; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.feature-card {
  padding: 26px;
  border: 1px solid var(--gray-border);
  border-radius: 14px;
}
.feature-card .icon { font-size: 26px; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 17px; }
.feature-card p { margin: 0; color: var(--gray-text); font-size: 14px; }

/* 5-item grid: row 1 = items 1-3 (full width), row 2 = items 4-5, centered */
.feature-grid.steps-grid { grid-template-columns: repeat(6, 1fr); }
.steps-grid .feature-card { grid-column: span 2; }
.steps-grid .feature-card:nth-child(4) { grid-column: 2 / 4; }
.steps-grid .feature-card:nth-child(5) { grid-column: 4 / 6; }
@media (max-width: 720px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid .feature-card,
  .steps-grid .feature-card:nth-child(4),
  .steps-grid .feature-card:nth-child(5) { grid-column: auto; }
}

/* plan cards */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.plan-card {
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;
}
.plan-card.featured { border-color: var(--red); box-shadow: 0 8px 24px rgba(224,26,60,.08); }
.plan-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.plan-card h3 { margin: 6px 0 2px; color: var(--navy); font-size: 20px; }
.plan-card .plan-data { color: var(--gray-text); font-size: 13px; margin-bottom: 18px; }
.plan-price { font-size: 34px; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.plan-price span { font-size: 14px; font-weight: 600; color: var(--gray-text); }
.plan-validity { color: var(--gray-text); font-size: 13px; margin-bottom: 18px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.plan-features li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-size: 13.5px;
  color: var(--dark-text);
  border-bottom: 1px solid #f2f3f5;
}
.plan-features li:before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* forms (checkout / contact) */
.form-card {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--gray-border);
  border-radius: 14px;
  padding: 32px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.field-grid label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
/* Label text and its trailing hint (e.g. "(optional)") must stay on the same
   line as the label — display:block above lets them flow inline naturally;
   only the field itself drops to its own line. */
.field-grid label > input,
.field-grid label > select,
.field-grid label > textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.span-2 { grid-column: 1 / -1; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url],
textarea, select {
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--dark-text);
  background: #fff;
  width: 100%;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy-light); outline-offset: 1px; }

.segmented {
  display: inline-flex;
  background: var(--gray-bg);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 18px;
}
.seg-btn {
  border: none;
  background: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-text);
  border-radius: 6px;
  cursor: pointer;
}
.seg-btn.active { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg-btn:disabled { opacity: .5; cursor: not-allowed; }

.address-item {
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.address-item h4 { margin: 0 0 12px; font-size: 13px; color: var(--navy); }

.order-summary {
  background: var(--gray-bg);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}
.order-summary-row { display: flex; justify-content: space-between; padding: 4px 0; }
.order-summary-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--gray-border); margin-top: 8px; padding-top: 10px; }

.result-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
}
.result-box.success { background: #eafaf0; border: 1px solid #b7ecc9; color: #14532d; }
.result-box.error { background: #fdecec; border: 1px solid #f5b8b8; color: #7f1d1d; }
.result-box.info { background: var(--gray-bg); border: 1px solid var(--gray-border); color: var(--dark-text); }

/* long-form content sections (home page deep content) */
.content-section { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.content-section.alt { max-width: 1100px; background: var(--gray-bg); border-radius: 20px; }
.content-section.alt > .content-inner { max-width: 760px; margin: 0 auto; }
.content-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 16px;
}
.content-section h3 { color: var(--navy); font-size: 17px; margin: 24px 0 10px; }
.content-section p { color: #374151; font-size: 15px; margin: 0 0 14px; }
.content-section p:last-child { margin-bottom: 0; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 24px;
}
.check-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  font-size: 14.5px;
  color: #374151;
}
.check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

.step-list {
  list-style: none;
  counter-reset: step-list;
  padding: 0;
  margin: 18px 0;
}
.step-list li {
  counter-increment: step-list;
  position: relative;
  padding: 4px 0 4px 36px;
  font-size: 14.5px;
  color: #374151;
  margin-bottom: 4px;
}
.step-list li:before {
  content: counter(step-list);
  position: absolute;
  left: 0; top: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ accordion */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-border);
  padding: 6px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 15.5px;
  padding: 14px 28px 14px 0;
  position: relative;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after {
  content: "+";
  position: absolute;
  right: 0; top: 12px;
  font-size: 20px;
  color: var(--red);
  font-weight: 400;
}
.faq-item[open] summary:after { content: "\2212"; }
.faq-item p { color: #374151; font-size: 14.5px; margin: 0 0 16px; }

/* legal pages */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.prose h1 { font-family: Georgia, serif; color: var(--navy); }
.prose h2 { color: var(--navy); font-size: 19px; margin-top: 32px; }
.prose p, .prose li { color: #374151; font-size: 15px; }
.prose .updated { color: var(--gray-text); font-size: 13px; margin-bottom: 32px; }

/* footer */
.site-footer { background: var(--navy); color: #cbd5e1; margin-top: 40px; }
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer-logo { height: 26px; margin-bottom: 12px; filter: brightness(0) invert(1); }
.site-footer .muted { color: #9fb0c9; font-size: 13px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
/* Footer links carry no underline at rest so the columns stay scannable, but
   they must still read as links: underline on hover, and a visible focus ring
   for keyboard users against the navy background. */
.site-footer-col a { display: block; color: #cbd5e1; text-decoration: none; font-size: 13.5px; margin-bottom: 10px; }
.site-footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .muted a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .muted a:hover { color: #fff; }
.site-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 2px;
  color: #fff;
}

/* Long-form legal pages cross-reference each other, so in-body links need to be
   unmistakable rather than inheriting the body colour. */
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--navy); }
.prose a:focus-visible { outline: 2px solid var(--navy-light); outline-offset: 2px; border-radius: 2px; }
.site-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 18px 24px;
  font-size: 12.5px;
  color: #8496b3;
}
@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}
