:root {
  color-scheme: light;
  --bg: #f3ead9;
  --paper: #fffaf1;
  --soft: #fbf5e8;
  --soft-strong: #ead8b9;
  --ink: #203126;
  --muted: #667464;
  --line: #d7c4a2;
  --green: #2e704d;
  --green-dark: #1f5138;
  --leaf: #6f9859;
  --coral: #c64d3c;
  --berry: #a83d5d;
  --gold: #d1a23a;
  --blue: #4b7b83;
  --danger: #ad342f;
  --shadow: 0 20px 55px rgba(50, 40, 24, 0.14);
  --shadow-hover: 0 24px 70px rgba(46, 71, 50, 0.2);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96) 0%, rgba(243, 234, 217, 0.96) 360px, rgba(247, 239, 223, 0.98) 100%),
    linear-gradient(90deg, rgba(46, 112, 77, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(46, 112, 77, 0.04) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
  overflow-x: clip;
}

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

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

button {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 81, 56, 0.2);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  min-height: 46px;
  padding: 0.78rem 1rem;
  transition:
    background 160ms ease,
    box-shadow 180ms ease,
    transform 160ms ease;
}

button:hover {
  background: linear-gradient(135deg, var(--green-dark), #153827);
  box-shadow: 0 16px 34px rgba(31, 81, 56, 0.28);
  transform: translateY(-2px);
}

button:active {
  box-shadow: 0 8px 18px rgba(31, 81, 56, 0.2);
  transform: translateY(0);
}

button.secondary {
  background: rgba(255, 250, 241, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(50, 40, 24, 0.08);
  color: var(--ink);
}

button.secondary:hover {
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(50, 40, 24, 0.13);
}

button.danger {
  background: linear-gradient(135deg, var(--danger), #7f241f);
}

button.danger:hover {
  background: linear-gradient(135deg, #932a25, #651b18);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 3px;
}

code {
  background: var(--soft-strong);
  border-radius: 6px;
  padding: 0.1rem 0.3rem;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 241, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(50, 40, 24, 0.08);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  height: 42px;
  filter: drop-shadow(0 8px 14px rgba(50, 40, 24, 0.16));
  transform-origin: center;
  transition:
    filter 180ms ease,
    transform 180ms ease;
  width: 42px;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  filter: drop-shadow(0 12px 22px rgba(46, 71, 50, 0.22));
  transform: translateY(-2px) rotate(-2deg);
}

.brand strong,
.brand small {
  display: block;
}

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

.topnav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.topnav a {
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  padding: 0.55rem 0.75rem;
  text-decoration: none;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.topnav a:hover {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(50, 40, 24, 0.12);
  transform: translateY(-1px);
}

.topnav a[aria-current="page"] {
  background: var(--ink);
  color: #ffffff;
}

.notice-band {
  background: linear-gradient(90deg, #ead8b9, #f5e8cf);
  border-bottom: 1px solid var(--line);
  padding: 1rem clamp(1rem, 5vw, 5rem);
}

.notice-band div {
  margin: 0 auto;
  max-width: 1180px;
}

.hero-shell {
  align-items: center;
  display: grid;
  min-height: 640px;
  overflow: hidden;
  padding: 4rem clamp(1rem, 5vw, 5rem);
  position: relative;
}

.hero-shell::before {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.98) 0%, rgba(255, 250, 241, 0.92) 42%, rgba(255, 250, 241, 0.38) 100%),
    radial-gradient(circle at 82% 28%, rgba(198, 77, 60, 0.12) 0 10px, transparent 11px),
    radial-gradient(circle at 76% 68%, rgba(209, 162, 58, 0.16) 0 8px, transparent 9px),
    linear-gradient(135deg, transparent 0 48%, rgba(46, 112, 77, 0.18) 48% 49%, transparent 49% 100%),
    linear-gradient(180deg, #f7edda 0%, #fffaf1 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-shell::after {
  border: 2px dashed rgba(46, 112, 77, 0.28);
  border-bottom: 0;
  border-left: 0;
  border-radius: 0 8px 0 0;
  content: "";
  height: 210px;
  pointer-events: none;
  position: absolute;
  right: 17%;
  top: 18%;
  transform: rotate(-8deg);
  width: 260px;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.hero-content p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 640px;
}

.hero-media {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero-media img {
  height: min(76vh, 620px);
  margin-left: auto;
  margin-right: 3rem;
  margin-top: 5rem;
  opacity: 0.96;
  filter: drop-shadow(0 28px 48px rgba(46, 71, 50, 0.18));
  width: min(52vw, 720px);
}

.button-link {
  align-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 81, 56, 0.2);
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  min-height: 46px;
  padding: 0.78rem 1rem;
  text-decoration: none;
  transition:
    background 160ms ease,
    box-shadow 180ms ease,
    transform 160ms ease;
}

.button-link:hover {
  background: linear-gradient(135deg, var(--green-dark), #153827);
  box-shadow: 0 16px 34px rgba(31, 81, 56, 0.28);
  transform: translateY(-2px);
}

.secondary-link {
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(50, 40, 24, 0.08);
  color: var(--ink);
}

.secondary-link:hover {
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(50, 40, 24, 0.13);
}

.text-link {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.trust-band {
  background: linear-gradient(90deg, var(--ink), var(--green-dark));
  color: #ffffff;
  padding: 1rem clamp(1rem, 5vw, 5rem);
}

.trust-band div {
  margin: 0 auto;
  max-width: 1180px;
}

.content-band {
  margin: 0 auto;
  max-width: 1480px;
  padding: 4rem clamp(1rem, 4vw, 2rem);
  width: 100%;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journey-grid {
  position: relative;
}

.feature-panel {
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(50, 40, 24, 0.08);
  min-width: 0;
  padding: 1rem;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
  position: relative;
}

.feature-panel:hover,
.feature-panel:focus-within,
.feature-panel:focus-visible {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.feature-panel::after {
  background: var(--green);
  border: 3px solid #fffaf1;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(50, 40, 24, 0.18);
  content: "";
  height: 14px;
  position: absolute;
  right: 1rem;
  top: -10px;
  width: 14px;
}

.feature-panel:nth-child(2)::after {
  background: var(--coral);
}

.feature-panel:nth-child(3)::after {
  background: var(--gold);
}

.feature-panel:nth-child(4)::after {
  background: var(--blue);
}

.feature-panel:nth-child(2) {
  border-color: var(--coral);
}

.feature-panel:nth-child(3) {
  border-color: var(--gold);
}

.feature-panel:nth-child(4) {
  border-color: var(--blue);
}

.feature-panel span {
  color: var(--muted);
  font-weight: 950;
}

.feature-panel p {
  color: var(--muted);
}

.living-card {
  overflow: hidden;
  padding-top: 4.2rem;
}

.living-card::before {
  background: linear-gradient(90deg, transparent, rgba(46, 112, 77, 0.08), transparent);
  content: "";
  height: 100%;
  left: -80%;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: skewX(-14deg);
  transition: left 420ms ease;
  width: 60%;
}

.living-card:hover::before,
.living-card:focus-visible::before {
  left: 130%;
}

.micro-icon {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(50, 40, 24, 0.08);
  display: block;
  height: 42px;
  left: 1rem;
  position: absolute;
  top: 1rem;
  width: 42px;
}

.micro-icon::before,
.micro-icon::after {
  content: "";
  position: absolute;
}

.micro-pin::before {
  background: var(--coral);
  border-radius: 999px 999px 999px 0;
  height: 16px;
  left: 13px;
  top: 8px;
  transform: rotate(-45deg);
  width: 16px;
}

.micro-pin::after {
  border-bottom: 2px dashed var(--green);
  border-radius: 50%;
  bottom: 9px;
  height: 10px;
  left: 9px;
  width: 24px;
}

.micro-family::before,
.micro-family::after {
  background: var(--green);
  border-radius: 999px;
  height: 13px;
  top: 10px;
  width: 13px;
}

.micro-family::before {
  left: 9px;
}

.micro-family::after {
  background: var(--gold);
  right: 9px;
}

.micro-gear::before {
  border: 4px solid var(--blue);
  border-radius: 999px;
  height: 18px;
  left: 12px;
  top: 12px;
  width: 18px;
}

.micro-gear::after {
  background: var(--blue);
  height: 4px;
  left: 7px;
  top: 19px;
  width: 28px;
}

.micro-mail::before {
  border: 2px solid var(--green);
  border-radius: 5px;
  height: 18px;
  left: 9px;
  top: 12px;
  width: 24px;
}

.micro-mail::after {
  border-bottom: 2px solid var(--coral);
  border-right: 2px solid var(--coral);
  height: 10px;
  left: 14px;
  top: 12px;
  transform: rotate(45deg);
  width: 10px;
}

.living-card:hover .micro-icon,
.living-card:focus-visible .micro-icon {
  animation: icon-wake 520ms ease both;
}

.living-card:hover .micro-gear::before,
.living-card:focus-visible .micro-gear::before {
  animation: gear-spin 700ms ease both;
}

.living-asset {
  transition:
    filter 220ms ease,
    transform 220ms ease;
}

.living-asset:hover,
.split-story:hover .folio-visual {
  filter: drop-shadow(0 24px 48px rgba(46, 71, 50, 0.22));
  transform: translateY(-4px);
}

.split-story {
  align-items: center;
  background: rgba(255, 250, 241, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  margin: 0 auto;
  max-width: 1480px;
  padding: 3rem clamp(1rem, 4vw, 2rem);
  width: 100%;
}

.split-story p:not(.eyebrow) {
  color: var(--muted);
  max-width: 720px;
}

.split-story img {
  justify-self: center;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(50, 40, 24, 0.14));
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.98), rgba(255, 250, 241, 0.78)),
    linear-gradient(135deg, transparent 0 47%, rgba(46, 112, 77, 0.12) 47% 48%, transparent 48% 100%),
    linear-gradient(180deg, #ead8b9, #fffaf1);
  border-bottom: 1px solid var(--line);
  min-height: 270px;
  padding: 3.5rem clamp(1rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  border: 2px dashed rgba(46, 112, 77, 0.24);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  content: "";
  height: 160px;
  pointer-events: none;
  position: absolute;
  right: 8%;
  top: 42px;
  transform: rotate(7deg);
  width: 260px;
}

.page-hero h1,
.page-hero p {
  max-width: 860px;
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.step-nav {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1.25rem auto 0;
  max-width: 980px;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.step-nav a {
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(50, 40, 24, 0.07);
  color: var(--ink);
  font-weight: 900;
  padding: 0.78rem 1rem;
  text-align: center;
  text-decoration: none;
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.step-nav a:hover {
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(50, 40, 24, 0.13);
  transform: translateY(-2px);
}

.step-nav a[aria-current="step"] {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-color: var(--green);
  box-shadow: 0 14px 32px rgba(31, 81, 56, 0.24);
  color: #ffffff;
}

.form-page {
  margin: 0 auto;
  max-width: 1480px;
  padding: 1.25rem clamp(1rem, 4vw, 2rem) 4rem;
  width: 100%;
}

.wide-panel {
  margin: 0 auto;
  max-width: 980px;
}

.workbench,
.section-band,
.delivery-band,
.backend-band {
  margin: 0 auto;
  max-width: 1480px;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
  width: 100%;
}

.workbench {
  align-items: start;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1fr);
}

.intro-copy {
  min-width: 0;
  padding-top: 0.8rem;
}

.intro-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.3rem;
  max-width: 680px;
}

.intro-art {
  max-height: 315px;
  object-fit: contain;
  object-position: left center;
  width: min(100%, 540px);
}

.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: 4rem;
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 1rem;
  max-width: 850px;
  overflow-wrap: break-word;
}

h2 {
  font-size: 2.15rem;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

h3 {
  font-size: 1.22rem;
  margin-bottom: 0.45rem;
}

h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.section-heading {
  margin-bottom: 1.35rem;
  max-width: 860px;
}

.section-heading p:not(.eyebrow),
.panel-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.customer-panel {
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  position: relative;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.customer-panel::before {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--coral));
  border-radius: 8px 8px 0 0;
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.customer-panel:hover {
  box-shadow: var(--shadow-hover);
}

.panel-heading {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
}

.prompt-grid {
  display: grid;
  gap: 1rem;
}

.wizard-panel {
  overflow: hidden;
}

.wizard-progress {
  background: rgba(234, 216, 185, 0.75);
  border-radius: 999px;
  height: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.wizard-progress span {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--coral));
  display: block;
  height: 100%;
  transition: width 220ms ease;
  width: 0;
}

.wizard-steps {
  min-height: 290px;
  position: relative;
}

.wizard-step {
  animation: step-in 180ms ease;
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.wizard-step h3 {
  font-size: 1.65rem;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.question-count,
.helper-copy {
  color: var(--muted);
  font-weight: 850;
}

.wizard-review {
  display: grid;
  gap: 0.65rem;
}

.review-row {
  align-items: center;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 0.42fr 1fr;
  padding: 0.78rem;
}

.review-row strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.review-row span {
  font-weight: 850;
}

.profile-editor {
  margin-top: 1rem;
}

.folio-request-band {
  padding-top: 0;
}

.billing-status-card {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 1rem;
}

.billing-status-card.is-ready::before {
  background: linear-gradient(90deg, var(--green), var(--leaf));
}

.pricing-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pricing-card {
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(50, 40, 24, 0.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.pricing-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.pricing-card h3 {
  min-height: 2.8em;
}

.pricing-card p {
  color: var(--muted);
}

.pricing-card .button-row {
  margin-top: auto;
}

.price-line {
  color: var(--ink) !important;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
  margin: 0.4rem 0 0.7rem;
}

.price-line span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  margin-left: 0.25rem;
}

.credit-line {
  background: rgba(234, 216, 185, 0.54);
  border-radius: 8px;
  font-weight: 850;
  padding: 0.45rem 0.55rem;
}

.free-card {
  border-color: var(--green);
}

.membership-card {
  border-color: var(--gold);
}

.checkout-card {
  margin: 0 auto;
  max-width: 760px;
}

.summary-block {
  cursor: default;
}

.summary-block .summary-action {
  margin-top: 0.85rem;
}

.module-status {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  margin: 0.4rem 0 0;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label,
fieldset {
  min-width: 0;
}

label {
  align-content: start;
  color: var(--ink);
  display: grid;
  font-weight: 850;
  gap: 0.42rem;
}

input,
select,
textarea {
  align-self: start;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 0.68rem 0.75rem;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
  width: 100%;
}

input:hover,
select:hover,
textarea:hover {
  background: #ffffff;
  border-color: #b99d6d;
}

input:focus,
select:focus,
textarea:focus {
  background: #ffffff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(46, 112, 77, 0.14);
}

textarea {
  min-height: 102px;
  resize: vertical;
}

input[type="range"] {
  accent-color: var(--green);
  min-height: auto;
  padding: 0;
}

.range-output {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.92rem;
  gap: 0.5rem;
}

.money-input {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
}

.money-input span {
  background: #efe0c4;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
  padding: 0.72rem 0.85rem;
}

.money-input input {
  border: 0;
  border-radius: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.button-row.compact {
  margin-top: 0;
}

.split-layout {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
}

.summary-panel {
  background: rgba(251, 245, 232, 0.94);
}

.member-list,
.backend-list {
  display: grid;
  gap: 0.8rem;
}

.member-card,
.backend-item {
  align-items: center;
  background: #fffaf1;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(50, 40, 24, 0.08);
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.9rem;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.member-card:hover,
.backend-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.member-card p,
.backend-item p {
  color: var(--muted);
  margin: 0;
}

.choice-set {
  background: rgba(255, 253, 247, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 1rem 0 0;
  padding: 1rem;
}

.choice-set legend {
  color: var(--muted);
  font-weight: 900;
  padding: 0 0.4rem;
}

.choice-set label,
.switch-row {
  align-items: center;
  display: flex;
  font-weight: 780;
  gap: 0.55rem;
}

.choice-set input,
.switch-row input {
  flex: 0 0 auto;
  min-height: auto;
  width: auto;
}

.wide-label {
  margin-top: 1rem;
}

.profile-summary {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.summary-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-block {
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(50, 40, 24, 0.08);
  min-width: 0;
  padding: 1rem;
  position: relative;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.summary-block::before {
  background: var(--green);
  border: 3px solid #fffaf1;
  border-radius: 999px;
  content: "";
  height: 13px;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 13px;
}

.summary-block:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.summary-block ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
}

.summary-block li {
  margin: 0.25rem 0;
}

.summary-block p {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.delivery-band {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 0.6fr);
}

.delivery-copy p:not(.eyebrow) {
  color: var(--muted);
  max-width: 700px;
}

.delivery-status {
  background: linear-gradient(90deg, #fff8e8, #f4e8cf);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(50, 40, 24, 0.08);
  color: var(--ink);
  font-weight: 760;
  margin: 1rem 0 0;
  padding: 0.8rem;
}

.backend-band {
  border-top: 1px solid var(--line);
}

.backend-preview {
  background: linear-gradient(180deg, #17221d, #101914);
  border: 1px solid #30473a;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(31, 42, 36, 0.2);
  color: #ecf6ef;
  font-size: 0.85rem;
  line-height: 1.48;
  margin: 1rem 0;
  max-height: 560px;
  max-width: 100%;
  min-width: 0;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-login-wrap {
  margin: 0 auto;
  max-width: 680px;
  padding: 2rem clamp(1rem, 4vw, 2rem) 4rem;
}

.auth-shell {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  padding: 2rem clamp(1rem, 4vw, 2rem) 4rem;
  width: 100%;
}

.auth-shell[hidden] {
  display: none;
}

.auth-card {
  min-height: 100%;
}

.form-message {
  color: var(--danger);
  font-weight: 850;
  margin: 0.85rem 0 0;
  min-height: 1.4em;
}

.form-message[data-tone="success"] {
  color: var(--green-dark);
}

.password-rules {
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
}

.password-rules p {
  color: var(--ink);
  font-weight: 900;
  margin-bottom: 0.45rem;
}

.password-rules ul {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.password-rules li {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  gap: 0.45rem;
}

.password-rules li::before {
  align-items: center;
  background: #ead8b9;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  content: "";
  display: inline-flex;
  flex: 0 0 auto;
  height: 0.78rem;
  justify-content: center;
  width: 0.78rem;
}

.password-rules li.is-met {
  color: var(--green-dark);
}

.password-rules li.is-met::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 112, 77, 0.12);
}

.admin-login-card {
  margin: 0 auto;
}

.admin-shell {
  margin: 0 auto;
  max-width: 1480px;
  padding: 2rem clamp(1rem, 4vw, 2rem) 4rem;
  width: 100%;
}

.admin-toolbar {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
}

.admin-toolbar p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0;
}

.admin-grid {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
}

.admin-queue-panel {
  background: rgba(251, 245, 232, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  padding: 1rem;
}

.queue-tabs {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.queue-tabs button.is-active {
  background: linear-gradient(135deg, var(--ink), var(--green-dark));
  box-shadow: 0 12px 28px rgba(31, 42, 36, 0.22);
  color: #ffffff;
}

.admin-queue-list {
  display: grid;
  gap: 0.65rem;
}

.admin-queue-item {
  margin: 0;
}

.admin-queue-item button {
  background: #fffaf1;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(50, 40, 24, 0.08);
  color: var(--ink);
  display: grid;
  gap: 0.18rem;
  min-height: 0;
  padding: 0.9rem;
  text-align: left;
  width: 100%;
}

.admin-queue-item button:hover,
.admin-queue-item button.is-selected {
  background: linear-gradient(135deg, var(--ink), var(--green-dark));
  border-color: var(--ink);
  box-shadow: 0 18px 38px rgba(31, 42, 36, 0.24);
  color: #ffffff;
  transform: translateY(-2px);
}

.admin-queue-item span,
.admin-queue-item small {
  color: var(--muted);
  display: block;
}

.admin-queue-item button:hover span,
.admin-queue-item button:hover small,
.admin-queue-item button.is-selected span,
.admin-queue-item button.is-selected small {
  color: #dce8df;
}

.admin-detail-panel {
  min-width: 0;
}

.admin-task-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.admin-md-preview {
  min-height: 520px;
}

.empty-state {
  background: rgba(255, 250, 241, 0.86);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 1rem;
}

.floating-status {
  background: linear-gradient(135deg, var(--ink), var(--green-dark));
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 42, 36, 0.24);
  bottom: 1rem;
  color: #ffffff;
  font-weight: 800;
  left: 50%;
  margin: 0;
  max-width: min(92vw, 720px);
  opacity: 0;
  padding: 0.78rem 1rem;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 18px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  z-index: 30;
}

.floating-status.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  background: rgba(255, 250, 241, 0.92);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@keyframes icon-wake {
  0% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-4px) rotate(-3deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes gear-spin {
  to { transform: rotate(180deg); }
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1120px) {
  .hero-shell {
    min-height: 560px;
  }

  .hero-media img {
    margin-right: -5rem;
    margin-top: 11rem;
    opacity: 0.16;
    width: min(78vw, 580px);
  }

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

  .workbench,
  .split-layout,
  .delivery-band,
  .split-story,
  .auth-shell,
  .admin-toolbar,
  .admin-grid {
    grid-template-columns: 1fr;
  }

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

  .billing-status-card {
    grid-template-columns: 1fr;
  }

  .intro-art {
    max-height: 240px;
  }

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

@media (max-width: 760px) {
  .topbar {
    align-items: center;
    flex-direction: row;
    gap: 0.55rem;
    min-height: 58px;
    padding: 0.48rem 0.7rem;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-mark {
    height: 34px;
    width: 34px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .topnav {
    align-self: auto;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0.25rem;
    justify-content: flex-end;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    background: var(--soft);
    flex: 0 0 auto;
    font-size: 0.9rem;
    min-width: 0;
    padding: 0.42rem 0.58rem;
    text-align: center;
    white-space: nowrap;
  }

  .topnav a[aria-current="page"] {
    background: var(--ink);
    color: #ffffff;
  }

  .hero-shell {
    min-height: 580px;
    padding: 3rem 1rem;
  }

  .hero-media img {
    height: auto;
    margin-right: -5rem;
    margin-top: 16rem;
    opacity: 0.12;
    width: 540px;
  }

  .feature-grid,
  .step-nav,
  .queue-tabs {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: auto;
    padding: 1.25rem 1rem;
  }

  .page-hero::after {
    display: none;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .step-nav {
    background: rgba(243, 234, 217, 0.96);
    display: flex;
    margin-top: 0;
    max-width: none;
    overflow-x: auto;
    padding: 0.65rem 1rem;
    position: sticky;
    scrollbar-width: none;
    top: 58px;
    z-index: 15;
  }

  .step-nav::-webkit-scrollbar {
    display: none;
  }

  .step-nav a {
    flex: 0 0 auto;
    padding: 0.58rem 0.82rem;
    white-space: nowrap;
  }

  .form-page {
    padding: 0.75rem 0.7rem 2rem;
  }

  .customer-panel,
  .auth-card,
  .admin-login-card {
    padding: 0.9rem;
  }

  .panel-heading {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .wizard-steps {
    min-height: 210px;
  }

  .wizard-step h3 {
    font-size: 1.28rem;
  }

  .wizard-progress {
    height: 8px;
    margin-bottom: 0.75rem;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 48px;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.05;
  }

  h2 {
    font-size: 1.55rem;
  }

  .two-col,
  .choice-set,
  .summary-grid,
  .pricing-grid,
  .member-card,
  .backend-item {
    grid-template-columns: 1fr;
  }

  .button-row button {
    flex: 1 1 100%;
  }

  .review-row {
    grid-template-columns: 1fr;
  }

  body.is-mobile-typing .topbar,
  body.is-mobile-typing .page-hero,
  body.is-mobile-typing .step-nav,
  body.is-mobile-typing .trust-band {
    display: none;
  }

  body.is-mobile-typing .form-page,
  body.is-mobile-typing .auth-shell,
  body.is-mobile-typing .admin-login-wrap {
    padding-top: 0.45rem;
  }

  body.is-mobile-typing .customer-panel,
  body.is-mobile-typing .auth-card,
  body.is-mobile-typing .admin-login-card {
    border-radius: 0;
    box-shadow: none;
  }

  body.is-mobile-typing .panel-heading {
    display: none;
  }

  body.is-mobile-typing .wizard-steps {
    min-height: auto;
  }

  body.is-mobile-typing .wizard-step.is-active {
    padding-top: 0.15rem;
  }

  body.is-mobile-typing .wizard-step h3 {
    font-size: 1.16rem;
    margin-bottom: 0.65rem;
  }

  body.is-mobile-typing .question-count {
    margin-bottom: 0.25rem;
  }

  body.is-mobile-typing .button-row {
    gap: 0.45rem;
    margin-top: 0.65rem;
  }

  body.is-mobile-typing button,
  body.is-mobile-typing .button-link {
    min-height: 42px;
    padding: 0.58rem 0.72rem;
  }
}

@media (max-width: 900px) {
  .hero-shell {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-media {
    display: none;
  }
}
