:root {
  --color-ivory: #fbf7f0;
  --color-warm-white: #fffdf8;
  --color-turquoise: #00b5b8;
  --color-navy: #10233f;
  --color-salmon: #efaaa0;
  --color-eucalyptus: #6f9b8c;
  --color-wood: #c7a176;
  --color-ink: #1d2b33;
  --color-muted: #66727a;
  --color-line: #e8ded2;
  --shadow-soft: 0 18px 50px rgba(16, 35, 63, 0.12);
  --radius-card: 8px;
  --space-page: clamp(18px, 5vw, 64px);
  --header-height: 76px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--color-ivory);
  color: var(--color-ink);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(251, 247, 240, 0.98)),
    var(--color-ivory);
}

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

a {
  color: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--color-navy);
  color: white;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid rgba(232, 222, 210, 0.85);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(1180px, calc(100% - var(--space-page) * 2));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  text-decoration: none;
}

.brand__logo {
  width: clamp(150px, 42vw, 220px);
  height: auto;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-warm-white);
  color: var(--color-navy);
}

.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.site-nav {
  position: absolute;
  top: calc(var(--header-height) - 1px);
  left: var(--space-page);
  right: var(--space-page);
  display: none;
  padding: 12px;
  background: var(--color-warm-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.site-nav[data-open] {
  display: grid;
  gap: 4px;
}

.site-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--color-navy);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:focus-visible,
.site-nav a:hover {
  background: rgba(0, 181, 184, 0.1);
  outline: none;
}

.site-main {
  overflow: hidden;
}

.hero {
  min-height: auto;
  width: min(1180px, calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  padding: clamp(34px, 6vh, 54px) 0 28px;
  display: grid;
  align-items: center;
  gap: 28px;
}

.hero__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--color-turquoise);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.55rem, 7vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 7vw, 3.8rem);
}

h3 {
  margin: 0;
  color: var(--color-navy);
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero__intro {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 4vw, 1.22rem);
  line-height: 1.65;
}

.hero__actions,
.placeholder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:focus-visible,
.button:hover {
  transform: translateY(-1px);
  outline: none;
}

.button--primary {
  background: var(--color-turquoise);
  color: white;
  box-shadow: 0 12px 24px rgba(0, 181, 184, 0.22);
}

.button--secondary {
  background: transparent;
  border-color: var(--color-line);
  color: var(--color-navy);
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.proof-list li {
  padding: 8px 11px;
  border: 1px solid rgba(111, 155, 140, 0.34);
  border-radius: 999px;
  background: rgba(111, 155, 140, 0.09);
  color: var(--color-navy);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero__brand-panel {
  min-height: 160px;
  display: grid;
  align-content: end;
  justify-items: start;
  padding: 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(239, 170, 160, 0.22), rgba(111, 155, 140, 0.18)),
    var(--color-warm-white);
  box-shadow: var(--shadow-soft);
}

.hero__brand-panel img {
  width: min(360px, 82vw);
}

.hero__brand-panel span {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(16, 35, 63, 0.08);
  color: var(--color-navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-band {
  padding: clamp(52px, 8vw, 86px) 0;
  background: var(--color-warm-white);
}

.section-band--soft {
  background: #f2f8f5;
}

.section-inner {
  width: min(1180px, calc(100% - var(--space-page) * 2));
  margin: 0 auto;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 26px;
}

.pillar-grid {
  display: grid;
  gap: 14px;
}

.pillar {
  padding: 22px;
  border: 1px solid rgba(232, 222, 210, 0.9);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.82);
}

.pillar p,
.readiness p,
.placeholder p,
.site-footer p {
  color: var(--color-muted);
  line-height: 1.65;
}

.readiness {
  display: grid;
  gap: 24px;
}

.readiness-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.readiness-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--color-salmon);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: var(--color-ivory);
  color: var(--color-navy);
  font-weight: 700;
}

.placeholder {
  min-height: calc(100svh - var(--header-height));
  width: min(840px, calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  padding: clamp(70px, 14vh, 130px) 0;
}

.page-hero,
.detail-hero {
  width: min(1180px, calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 88px) 0 34px;
}

.page-hero.compact {
  padding-bottom: 22px;
}

.page-hero p,
.detail-hero p {
  max-width: 720px;
  color: var(--color-muted);
  line-height: 1.65;
}

.page-hero .hero__actions {
  margin-top: 24px;
}

.card-grid,
.product-grid,
.detail-grid,
.admin-grid,
.action-board {
  display: grid;
  gap: 16px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.content-card,
.product-card,
.mini-card,
.focus-panel,
.form-card,
.action-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  background: var(--color-warm-white);
  box-shadow: 0 10px 30px rgba(16, 35, 63, 0.07);
}

.content-card,
.mini-card,
.focus-panel,
.form-card,
.action-card {
  padding: 22px;
}

.product-card {
  overflow: hidden;
}

.product-card__body {
  padding: 20px;
}

.content-card p,
.product-card p,
.mini-card p,
.focus-panel p,
.action-card p,
.form-card p {
  color: var(--color-muted);
  line-height: 1.6;
}

.badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 181, 184, 0.1);
  color: var(--color-navy);
  font-size: 0.76rem;
  font-weight: 800;
}

.temporary-note {
  padding: 10px 12px;
  border-left: 4px solid var(--color-salmon);
  background: rgba(239, 170, 160, 0.12);
  color: var(--color-navy) !important;
  font-size: 0.9rem;
}

.visual-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 181, 184, 0.13), rgba(239, 170, 160, 0.2)),
    var(--color-ivory);
}

.visual-placeholder.large {
  min-height: 300px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
}

.visual-placeholder span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--color-navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--color-ivory);
}

.product-visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-visual figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--color-navy);
  font-size: 0.72rem;
  font-weight: 900;
}

.product-visual--large {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.product-visual--compact {
  margin: -22px -22px 18px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.product-visual--compact img {
  aspect-ratio: 16 / 10;
}

.mini-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
}

.meta-line {
  color: var(--color-navy) !important;
  font-size: 0.88rem;
  font-weight: 800;
}

.price-row,
.advisor-strip,
.event-log {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.price-row strong,
.cart-total {
  color: var(--color-navy);
  font-size: 1.35rem;
}

.price-row span,
.advisor-strip span,
.event-log span {
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--color-ivory);
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-hero {
  display: grid;
  gap: 26px;
  align-items: center;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
  color: var(--color-muted);
  line-height: 1.7;
}

.routine-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.routine-steps div {
  padding: 12px;
  border-radius: 8px;
  background: var(--color-ivory);
}

.routine-steps dt {
  color: var(--color-navy);
  font-weight: 800;
}

.routine-steps dd {
  margin: 4px 0 0;
  color: var(--color-muted);
}

.diagnostic-shell,
.cart-layout,
.split-layout,
.result-layout {
  display: grid;
  gap: 18px;
}

.diagnostic-progress {
  display: grid;
  gap: 8px;
  color: var(--color-navy);
  font-weight: 800;
}

progress {
  width: 100%;
  accent-color: var(--color-turquoise);
}

.diagnostic-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.diagnostic-form legend {
  margin-bottom: 18px;
  color: var(--color-navy);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 7vw, 3rem);
  line-height: 1.08;
}

.option-grid {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-warm-white);
  color: var(--color-navy);
  font-weight: 800;
}

.choice-card input {
  accent-color: var(--color-turquoise);
}

.needs-answer legend {
  color: #9e3d35;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.form-card {
  display: grid;
  gap: 14px;
}

.form-card label {
  display: grid;
  gap: 6px;
  color: var(--color-navy);
  font-weight: 800;
}

.form-card input,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: var(--color-warm-white);
}

.form-card textarea {
  min-height: 110px;
}

.check-line {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.cart-line,
.support-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
}

.cart-line span,
.support-table span {
  color: var(--color-muted);
}

.action-card span:first-child {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-turquoise);
  color: white;
  font-weight: 900;
}

.action-card button,
.action-card a {
  color: var(--color-navy);
  font-weight: 900;
}

.admin-hero h1 {
  color: #8a2f28;
}

.status-card--blocked {
  border-color: rgba(239, 170, 160, 0.8);
}

.placeholder h1 {
  font-size: clamp(2.5rem, 11vw, 5rem);
}

.site-footer {
  padding: 34px 0;
  background: var(--color-navy);
  color: white;
}

.site-footer__inner {
  width: min(1180px, calc(100% - var(--space-page) * 2));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.site-footer__logo {
  width: 176px;
  padding: 8px 10px;
  border-radius: 6px;
  background: white;
}

.site-footer p {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: white;
  font-weight: 800;
}

.site-footer__meta {
  align-self: end;
}

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

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  }

  .pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .readiness {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    align-items: start;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  }

  .card-grid,
  .detail-grid,
  .action-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-hero,
  .split-layout,
  .result-layout,
  .cart-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .admin-grid article:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .button {
    width: 100%;
  }

  .brand__logo {
    width: 142px;
  }
}

@media (max-width: 759px) {
  .hero {
    min-height: auto;
    padding: 30px 0 20px;
    gap: 16px;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 2.65rem);
    line-height: 1.02;
  }

  .hero__intro {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.48;
  }

  .hero__actions {
    margin-top: 20px;
  }

  .button {
    min-height: 44px;
    padding: 11px 15px;
  }

  .proof-list {
    gap: 8px;
    margin-top: 18px;
  }

  .proof-list li {
    padding: 7px 9px;
    font-size: 0.78rem;
  }

  .hero__brand-panel {
    min-height: 108px;
    padding: 14px;
  }

  .hero__brand-panel img {
    width: min(250px, 70vw);
  }

  .hero__brand-panel span {
    margin-top: 10px;
    font-size: 0.76rem;
  }
}
