:root {
  --ink: #17201f;
  --muted: #60706d;
  --paper: #f6f5ef;
  --white: #ffffff;
  --teal: #087c72;
  --teal-dark: #075850;
  --amber: #c8841a;
  --green: #2b8f54;
  --red: #b9483e;
  --line: #d9ddd4;
  --charcoal: #202726;
  --shadow: 0 22px 60px rgba(20, 29, 27, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: var(--white);
  background: rgba(19, 27, 26, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: var(--teal);
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

nav a,
.header-action {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.header-action {
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 17, 0.94) 0%, rgba(10, 18, 17, 0.74) 42%, rgba(10, 18, 17, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 18, 17, 0.9) 0%, rgba(10, 18, 17, 0.08) 38%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  padding: 132px 0 clamp(54px, 10vh, 92px);
  margin-left: clamp(18px, 6vw, 84px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: #79d7cc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(2.35rem, 5.4vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.26rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.select-plan,
.mini-button {
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.button:hover,
.select-plan:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(8, 124, 114, 0.28);
}

.primary:hover {
  background: var(--teal-dark);
}

.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 40px 0 0;
}

.hero-metrics div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-metrics dt {
  font-size: 1.42rem;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  line-height: 1.35;
}

.trust-band {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  padding: 16px clamp(18px, 5vw, 64px);
  background: #e7e6dc;
  border-bottom: 1px solid var(--line);
}

.trust-band span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  color: #31403d;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.85rem;
  font-weight: 750;
}

.section,
.booking-section,
.checkout-section,
.portal-section {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 810px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.inverse {
  color: var(--white);
}

.inverse p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

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

.package-card,
.portal-dashboard,
.booking-form,
.schedule-panel,
.token-builder,
.purchase-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(21, 32, 30, 0.08);
}

.package-card {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 22px;
}

.package-card.selected {
  border-color: rgba(8, 124, 114, 0.58);
  box-shadow: 0 18px 46px rgba(8, 124, 114, 0.16);
}

.package-top,
.dashboard-header,
.diagram-header,
.builder-header,
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag,
.token-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.tag {
  color: var(--teal-dark);
  background: #d7efeb;
}

.tag.amber {
  color: #724704;
  background: #f7e3bc;
}

.tag.green {
  color: #1f633b;
  background: #dceee4;
}

.token-pill {
  color: var(--ink);
  background: #eeeeea;
}

.package-card h3 {
  margin: 26px 0 12px;
  font-size: 1.42rem;
}

.package-card p,
.package-card li {
  color: var(--muted);
  line-height: 1.55;
}

.package-card ul {
  padding-left: 18px;
  margin: 8px 0 24px;
}

.select-plan {
  min-height: 44px;
  margin-top: auto;
  color: var(--white);
  background: var(--charcoal);
}

.selected .select-plan {
  background: var(--teal);
}

.portal-section {
  background: var(--charcoal);
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.portal-dashboard {
  padding: 18px;
  background: #f9faf6;
}

.dashboard-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.dashboard-header div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(43, 143, 84, 0.16);
}

.balance-panel,
.diagram-panel,
.finding-list {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.balance-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
}

.muted,
.balance-panel small,
.diagram-header span {
  color: var(--muted);
}

.balance-bar {
  height: 12px;
  margin: 14px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e8e0;
}

.balance-bar span {
  display: block;
  width: 67%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.rings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ring {
  display: grid;
  min-height: 112px;
  place-items: center;
  align-content: center;
  border-radius: 8px;
  background: #f2f3ee;
  border-top: 5px solid var(--teal);
}

.ring span {
  font-size: 2rem;
  font-weight: 900;
}

.ring small {
  color: var(--muted);
  font-weight: 750;
}

.ring.critical {
  border-color: var(--red);
}

.ring.high {
  border-color: var(--amber);
}

.ring.ready {
  border-color: var(--teal);
}

.ring.fixed {
  border-color: var(--green);
}

.finding-list {
  display: grid;
  gap: 10px;
}

.finding-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
}

.severity {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 850;
}

.high-sev {
  background: var(--red);
}

.med-sev {
  background: var(--amber);
}

.low-sev {
  background: var(--teal);
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--teal-dark);
  background: #d7efeb;
  white-space: nowrap;
}

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

.workflow-list article {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.workflow-list span {
  color: #79d7cc;
  font-weight: 900;
}

.workflow-list h3 {
  margin: 8px 0;
}

.workflow-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.booking-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: 18px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

label {
  display: grid;
  gap: 7px;
  color: #384642;
  font-weight: 800;
}

label.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd6cf;
  border-radius: 7px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcf8;
}

textarea {
  resize: vertical;
}

.booking-form .button {
  justify-self: start;
}

.schedule-panel,
.purchase-summary,
.token-builder {
  padding: 22px;
}

.schedule-panel h3,
.purchase-summary h3,
.token-builder h3 {
  margin: 0 0 18px;
}

.schedule-panel ol {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.schedule-panel li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  padding-left: 38px;
  position: relative;
}

.schedule-panel li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
}

.schedule-panel span,
.wallet-preview span,
.summary-line span {
  color: var(--muted);
}

.token-builder input[type="range"] {
  padding: 0;
  accent-color: var(--teal);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
}

.wallet-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wallet-preview div {
  min-height: 98px;
  padding: 14px;
  border-radius: 8px;
  background: #f0f2ec;
}

.wallet-preview strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.purchase-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-line {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.full {
  width: 100%;
}

.purchase-message {
  min-height: 24px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.82);
  background: #111716;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1000px) {
  nav {
    display: none;
  }

  .package-grid,
  .portal-layout,
  .booking-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .package-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 96vh;
  }

  .hero img {
    object-position: 72% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 18, 17, 0.98) 0%, rgba(10, 18, 17, 0.82) 68%, rgba(10, 18, 17, 0.44) 100%),
      linear-gradient(0deg, rgba(10, 18, 17, 0.94) 0%, rgba(10, 18, 17, 0.12) 58%);
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
    padding-top: 112px;
  }

  .hero-metrics,
  .rings,
  .booking-form,
  .wallet-preview {
    grid-template-columns: 1fr;
  }

  .finding-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .finding-row .mini-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  label.wide {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
