:root {
  color-scheme: light;
  --mama-navy: hsl(220, 45%, 12%);
  --mama-navy-2: hsl(220, 42%, 18%);
  --mama-brass: hsl(38, 60%, 55%);
  --mama-brass-dark: hsl(38, 62%, 34%);
  --mama-paper: #f7f4ec;
  --mama-ink: #18212b;
  --mama-muted: #55606e;
  --mama-line: #e5dfd1;
  --mama-soft: #fbfaf6;
  --mama-error: #a4262c;
  --mama-success: #1f6b45;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 8px;
  --sticky-height: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  padding-bottom: var(--sticky-height);
  background: var(--mama-soft);
  color: var(--mama-ink);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--mama-brass);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--mama-navy);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mama-navy);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  color: #fff;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 14px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--mama-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--mama-navy);
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--mama-muted);
  font-size: 0.82rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--mama-navy);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  background: var(--mama-brass);
  color: var(--mama-navy);
}

.button-primary:hover {
  background: hsl(38, 64%, 62%);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-dark {
  background: var(--mama-navy);
  color: #fff;
}

.button[disabled] {
  cursor: progress;
  opacity: 0.75;
}

/* Hero */
.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(214, 170, 92, 0.18), transparent 55%),
    linear-gradient(160deg, var(--mama-navy) 0%, var(--mama-navy-2) 100%);
  color: rgba(255, 255, 255, 0.9);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 56px;
  align-items: center;
}

.hero-lede {
  font-size: 1.12rem;
  max-width: 40em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 20px;
}

.availability {
  font-weight: 600;
  color: #fff;
}

.risk-line {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 40em;
}

.trust-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.trust-chip img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  border: 2px solid var(--mama-brass);
}

.trust-chip p {
  margin: 0;
  line-height: 1.4;
}

.trust-chip strong {
  display: block;
  color: #fff;
}

.trust-chip span {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.guide-card {
  justify-self: center;
  width: 100%;
  max-width: 400px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--mama-paper);
  color: var(--mama-ink);
  border: 1px solid rgba(214, 170, 92, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.guide-visual {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 52% 45%;
  background: #e9e5dc;
}

.guide-body {
  padding: 18px 22px 20px;
}

.guide-title {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.guide-list {
  margin: 0;
  padding-left: 1.3em;
  font-size: 0.94rem;
}

.guide-list li {
  margin-bottom: 8px;
}

.guide-list li:last-child {
  margin-bottom: 0;
}

.guide-list a {
  font-weight: 600;
  color: var(--mama-navy);
  text-decoration-color: var(--mama-brass);
  text-underline-offset: 3px;
}

/* Native 9:16 player styles, kept for a future verified explainer video. */
.video-card {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 340px;
}

.video-frame {
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(214, 170, 92, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1220;
}

.video-card figcaption,
.video-fallback {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.video-fallback {
  color: #fff;
  font-weight: 600;
}

.video-card.is-unavailable .video-frame {
  aspect-ratio: auto;
  min-height: 120px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-tint {
  background: var(--mama-paper);
}

.section-intro {
  max-width: 44em;
  color: var(--mama-muted);
}

.prose {
  max-width: 38em;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: center;
}

.two-col-reverse .prose {
  order: 2;
}

.two-col-reverse .illustration {
  order: 1;
}

.steps {
  margin: 18px 0 0;
  padding-left: 1.3em;
}

.steps li {
  margin-bottom: 12px;
}

.layers {
  margin: 0;
  display: grid;
  gap: 4px;
  max-width: 340px;
  justify-self: center;
  width: 100%;
}

.layer {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 600;
}

.layer-equity {
  min-height: 84px;
  background: #fff;
  border: 1px dashed var(--mama-brass-dark);
  color: var(--mama-brass-dark);
}

.layer-second {
  min-height: 64px;
  background: var(--mama-brass);
  color: var(--mama-navy);
}

.layer-first {
  min-height: 132px;
  background: var(--mama-navy);
  color: #fff;
}

.layers figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--mama-muted);
}

/* Comparison */
.table-wrap {
  margin-top: 24px;
  border: 1px solid var(--mama-line);
  border-radius: var(--radius);
  background: #fff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--mama-line);
}

.compare-table thead th {
  font-family: var(--font-serif);
  color: var(--mama-navy);
  background: var(--mama-soft);
}

.compare-table tbody th {
  width: 20%;
  color: var(--mama-navy);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--mama-muted);
}

.caution {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--mama-brass-dark);
  border-radius: var(--radius);
  background: #fff;
}

.caution ul {
  margin: 0;
  padding-left: 1.2em;
}

.caution li {
  margin-bottom: 8px;
}

/* Home project */
.checks {
  padding-left: 1.2em;
}

.checks li {
  margin-bottom: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--mama-navy);
  text-decoration-color: var(--mama-brass);
  text-underline-offset: 4px;
}

.illustration {
  margin: 0;
  aspect-ratio: 1600 / 1050;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mama-paper) url("/images/mama/suburban_family_home.webp") center / cover no-repeat;
}

.illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.portrait {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
}

.credentials {
  margin: 0 0 16px;
  padding-left: 1.2em;
  color: var(--mama-muted);
}

.contact-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.contact-lines a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--mama-navy);
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.privacy-note {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--mama-paper);
  font-size: 0.92rem;
}

.callback-form {
  padding: 28px;
  border: 1px solid var(--mama-line);
  border-radius: 12px;
  background: #fff;
}

.field {
  margin: 0 0 18px;
}

fieldset.field {
  padding: 0;
  border: 0;
  min-width: 0;
}

.field > label,
legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--mama-navy);
}

.req-hint {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--mama-muted);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #b9b2a2;
  border-radius: 6px;
  background: #fff;
  color: var(--mama-ink);
}

.field textarea {
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--mama-error);
  box-shadow: 0 0 0 1px var(--mama-error);
}

.method-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}

.choice input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--mama-navy);
}

.choice.consent {
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--mama-ink);
}

.choice.consent input {
  margin-top: 2px;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--mama-muted);
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mama-error);
}

.button-submit {
  width: 100%;
}

.form-status {
  margin-top: 14px;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  color: var(--mama-error);
}

.form-status.is-success {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #eaf5ee;
  color: var(--mama-success);
}

/* Success dialog */
.success-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  border: 0;
  border-top: 4px solid var(--mama-success);
  border-radius: 12px;
  background: #fff;
  color: var(--mama-ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.success-dialog::backdrop {
  background: rgba(11, 18, 32, 0.6);
}

.success-dialog h2 {
  font-size: 1.5rem;
}

.dialog-note {
  font-size: 0.92rem;
  color: var(--mama-muted);
}

.dialog-note a {
  font-weight: 600;
  color: var(--mama-navy);
}

.success-dialog .button {
  width: 100%;
  margin-top: 6px;
}

/* FAQ */
.faq-shell {
  max-width: 820px;
}

.faq-shell details {
  border-bottom: 1px solid var(--mama-line);
}

.faq-shell summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 0;
  font-weight: 600;
  color: var(--mama-navy);
  cursor: pointer;
}

.faq-shell details p {
  padding-bottom: 8px;
}

/* Footer */
.site-footer {
  padding: 48px 0;
  background: var(--mama-navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.site-footer strong {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
}

.site-footer a {
  color: #fff;
}

/* Mobile sticky contact */
.mobile-sticky {
  display: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .trust-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .two-col-reverse .prose,
  .two-col-reverse .illustration {
    order: initial;
  }

  .trust-grid .portrait {
    max-width: 240px;
  }
}

@media (max-width: 720px) {
  :root {
    --sticky-height: 68px;
  }

  .shell {
    width: min(1120px, calc(100% - 32px));
  }

  .header-link {
    display: none;
  }

  .header-actions .button {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  .section {
    padding: 52px 0;
  }

  .callback-form {
    padding: 20px;
  }

  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .compare-table tbody tr {
    border-bottom: 1px solid var(--mama-line);
  }

  .compare-table tbody th {
    width: 100%;
    background: var(--mama-soft);
    border-bottom: 0;
  }

  .compare-table td {
    padding: 8px 16px;
    border-bottom: 0;
  }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mama-brass-dark);
  }

  .compare-table tbody tr td:last-child {
    padding-bottom: 14px;
  }

  .mobile-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 250, 246, 0.97);
    border-top: 1px solid var(--mama-line);
    transition: transform 0.2s ease;
  }

  .mobile-sticky a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    background: var(--mama-brass);
    color: var(--mama-navy);
  }

  .mobile-sticky a:first-child {
    background: var(--mama-navy);
    color: #fff;
  }

  .mobile-sticky.is-hidden {
    transform: translateY(110%);
  }

  .mobile-sticky.is-hidden a {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
