/* ============================================================
   nanoSEO — clean, light utility design
   Simple. Functional. One accent color. No noise.
   ============================================================ */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-blur: blur(18px) saturate(160%);
  --text: #0f172a;
  --muted: #5b6472;
  --faint: #8a94a6;
  --border: #e4e7ec;
  --border-strong: #cbd2dc;
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --grad: #2563eb;
  --good: #16a34a;
  --warn: #b45309;
  --bad: #dc2626;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 30px -14px rgba(16, 24, 40, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(37, 99, 235, 0.16);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #cbd2dc transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #cbd2dc;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- shared primitives ---------- */

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted-inline {
  color: var(--muted);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  width: min(var(--maxw), calc(100% - 28px));
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 999px;
  animation: nav-in 0.5s ease both;
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: white;
  background: var(--grad);
  box-shadow: 0 4px 14px -4px rgba(37, 99, 235, 0.5);
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  padding: 7px 13px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

.nav .btn-small {
  flex-shrink: 0;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 18px -8px rgba(37, 99, 235, 0.55);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.7);
  filter: brightness(1.04);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.89rem;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  font-weight: 700;
  transition: transform 0.15s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #f1f3f7;
  box-shadow: none;
  filter: none;
}

.is-loading .btn-spinner {
  display: inline-block;
}

.btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.85s linear infinite;
}

/* ---------- layout ---------- */

main {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  margin: 96px auto 0;
  max-width: 860px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

.section-sub {
  margin: 0 auto 36px;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.03rem;
}

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 24px;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 16px;
  max-width: 760px;
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.lead {
  margin: 0 auto 30px;
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
}

.hero-form {
  display: flex;
  gap: 8px;
  padding: 8px;
  max-width: 620px;
  margin: 0 auto;
  border-radius: 999px;
}

.field {
  flex: 1;
  min-width: 0;
}

.hero-form .field input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 12px 16px;
  font-weight: 550;
}

.hero-form .field input:focus {
  box-shadow: none;
}

.hint {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--faint);
}

.hint strong {
  color: var(--muted);
}

/* ---------- inputs ---------- */

input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1.5 6 5 6-5' fill='none' stroke='%235b6472' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: calc(100% - 16px) 50%;
  background-repeat: no-repeat;
  background-size: 14px 8px;
  cursor: pointer;
}

textarea {
  resize: vertical;
}

input::placeholder {
  color: var(--faint);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
}

.optional {
  color: var(--faint);
  font-weight: 500;
}

/* ---------- checks list (landing) ---------- */

.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: left;
  margin-top: 36px;
}

.check-cat {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.check-cat h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
}

.check-cat ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.check-cat li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.93rem;
}

.check-cat li::before {
  content: "✓";
  color: var(--good);
  font-weight: 800;
  font-size: 0.82rem;
  margin-top: 3px;
}

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
  text-align: left;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.plan-card.featured {
  border-color: rgba(79, 70, 229, 0.48);
  box-shadow: 0 18px 46px -30px rgba(79, 70, 229, 0.5);
}

.plan-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--grad);
}

.plan-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 5px 14px -7px rgba(37, 99, 235, 0.75);
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 118px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.plan-copy {
  min-width: 0;
}

.plan-card.featured .plan-top {
  padding-top: 27px;
}

.plan-top h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.plan-top p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.plan-price {
  flex-shrink: 0;
  min-width: 74px;
  text-align: right;
}

.plan-price strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.plan-price span {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 0.72rem;
  white-space: nowrap;
}

.plan-card .pkg-features {
  flex: 1;
  margin: 20px 0 24px;
}

.plan-card .btn {
  margin-top: auto;
}

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.pricing-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  pointer-events: none;
}

.pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.pricing-head h3 {
  margin: 0 0 5px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.pricing-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  text-align: right;
  flex-shrink: 0;
}

.price-amount {
  display: block;
  font-size: 2.2rem;
  font-weight: 780;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-note {
  font-size: 0.8rem;
  color: var(--faint);
}

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

.pkg-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.pkg-features li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  background: var(--good);
}

/* ---------- audit console ---------- */

.console {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  text-align: left;
}

.audit-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}

.audit-form .btn {
  justify-self: start;
}

/* ---------- saved report history ---------- */

.history-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px;
  text-align: left;
}

.history-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-toolbar input {
  flex: 1;
}

.history-clear {
  flex-shrink: 0;
  white-space: nowrap;
}

.history-clear[hidden],
.history-empty[hidden] {
  display: none;
}

.history-empty {
  padding: 26px 14px 10px;
  color: var(--muted);
  font-size: 0.93rem;
  text-align: center;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.history-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.history-score {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 1.02rem;
  font-weight: 800;
}

.history-score.good { color: var(--good); background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.3); }
.history-score.warn { color: var(--warn); background: rgba(180, 83, 9, 0.1); border: 1px solid rgba(180, 83, 9, 0.3); }
.history-score.bad { color: var(--bad); background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.3); }

.history-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.history-main strong,
.history-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-main strong {
  font-size: 0.93rem;
}

.history-url {
  color: var(--muted);
  font-size: 0.8rem;
}

.history-meta {
  margin-top: 2px;
  color: var(--faint);
  font-size: 0.74rem;
}

.history-arrow {
  color: var(--faint);
  font-weight: 700;
}

/* ---------- order / payment ---------- */

.order-panel {
  margin-top: 8px;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.order-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.order-id {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--faint);
}

.order-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.order-amount {
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.steps-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 20px 0;
}

.step-pill {
  position: relative;
  padding: 9px 6px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: #f1f3f7;
  border: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.step-pill.active {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.08);
}

.step-pill.done {
  color: var(--good);
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.08);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--muted);
}

.status-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

.status-line.done {
  color: var(--good);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scan-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.06);
  margin: 16px 0 4px;
}

.radar {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(37, 99, 235, 0.4);
}

.radar::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(37, 99, 235, 0.55);
  animation: spin 3s linear infinite;
}

.scan-visual span {
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 600;
}

/* payment modal */

.pay-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pay-modal-backdrop.open {
  opacity: 1;
}

.pay-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.pay-modal-backdrop.open .pay-modal {
  transform: translateY(0);
  opacity: 1;
}

.pay-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pay-modal-close:hover {
  background: #f1f3f7;
  color: var(--text);
}

.pay-modal-head {
  text-align: center;
  margin-bottom: 20px;
}

.pay-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.pay-modal-head h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.pay-modal-head p {
  margin: 0 auto;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.92rem;
}

.pay-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pay-checkout {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.pay-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pay-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 4px 0;
}

.pay-divider::before,
.pay-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pay-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.wallet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.wallet-address {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fafbfc;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--warn);
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.3);
}

/* ---------- report ---------- */

.report-panel {
  margin-top: 8px;
  text-align: left;
}

.report-section {
  max-width: 860px;
}

.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 8px 0 18px;
}

.report-head h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.report-url {
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--faint);
  word-break: break-all;
}

.score-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-ring {
  position: relative;
  width: 104px;
  height: 104px;
  flex-shrink: 0;
}

.score-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.score-ring .ring-bg {
  stroke: #e8ebf1;
}

.score-ring .ring-fg {
  stroke: var(--accent);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.score-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.score-label strong {
  font-size: 1.7rem;
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1;
}

.score-label span {
  font-size: 0.62rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.score-verdict {
  max-width: 210px;
}

.score-verdict strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.02rem;
  font-weight: 700;
}

.score-verdict span {
  color: var(--muted);
  font-size: 0.86rem;
}

.score-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.score-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.score-chip.good { color: var(--good); background: rgba(22, 163, 74, 0.1); border: 1px solid rgba(22, 163, 74, 0.35); }
.score-chip.good::before { background: var(--good); }
.score-chip.warn { color: var(--warn); background: rgba(180, 83, 9, 0.1); border: 1px solid rgba(180, 83, 9, 0.35); }
.score-chip.warn::before { background: var(--warn); }
.score-chip.bad { color: var(--bad); background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.35); }
.score-chip.bad::before { background: var(--bad); }

.summary-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.summary-chip {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.summary-chip span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  font-weight: 700;
}

.summary-chip strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.report-grid {
  display: grid;
  gap: 16px;
}

.report-sec {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.report-sec h4 {
  margin: 0 0 12px;
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f7f8fa;
  border: 1px solid var(--border);
}

.compare-head div {
  display: flex;
  flex-direction: column;
  min-width: 76px;
}

.compare-head div span {
  color: var(--faint);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.compare-head div strong {
  font-size: 1rem;
}

.compare-delta {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.compare-delta.good { color: var(--good); background: rgba(22, 163, 74, 0.1); }
.compare-delta.bad { color: var(--bad); background: rgba(220, 38, 38, 0.1); }
.compare-delta.neutral { color: var(--muted); background: rgba(91, 100, 114, 0.1); }

.compare-note {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.78rem;
}

.compare-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.compare-lists h5 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.compare-lists ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.compare-empty {
  margin: 0;
  color: var(--faint);
  font-size: 0.8rem;
}

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

.finding {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fafbfc;
}

.finding-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.finding-sev {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.finding-sev.high { color: var(--bad); background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.35); }
.finding-sev.medium { color: var(--warn); background: rgba(180, 83, 9, 0.1); border: 1px solid rgba(180, 83, 9, 0.35); }
.finding-sev.low { color: var(--accent); background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.3); }

.finding-group {
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
  background: #eef0f4;
  padding: 2px 8px;
  border-radius: 999px;
}

.finding-evidence {
  font-size: 0.9rem;
  font-weight: 600;
}

.finding-reco {
  color: var(--muted);
  font-size: 0.85rem;
}

.finding-reco strong {
  color: var(--text);
  font-weight: 650;
}

.no-findings {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--good);
  font-weight: 650;
  padding: 8px 0;
}

/* checklist table */

.check-group {
  margin-bottom: 14px;
}

.check-group h5 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.check-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.check-table tr {
  border-top: 1px solid var(--border);
}

.check-table td {
  padding: 7px 8px;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.check-status {
  width: 30px;
  font-weight: 800;
}

.check-pass .check-status { color: var(--good); }
.check-warn .check-status { color: var(--warn); }
.check-fail .check-status { color: var(--bad); }

.check-name {
  width: 42%;
  font-weight: 600;
}

.check-detail {
  color: var(--muted);
}

.check-fail .check-detail { color: var(--bad); }
.check-warn .check-detail { color: var(--warn); }

/* page details */

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.meta-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fafbfc;
  border: 1px solid var(--border);
}

.meta-item span {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-bottom: 2px;
  font-weight: 700;
}

.meta-item strong {
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-word;
}

/* multi-page report */

.pages-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-overflow-scrolling: touch;
}

.pages-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.pages-table th {
  padding: 9px 11px;
  color: var(--faint);
  background: #f7f8fa;
  border-bottom: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.pages-table td {
  max-width: 410px;
  padding: 11px;
  color: var(--muted);
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.pages-table tr:last-child td {
  border-bottom: 0;
}

.pages-table td:first-child a {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pages-table td:first-child span {
  display: block;
  overflow: hidden;
  max-width: 410px;
  margin-top: 2px;
  color: var(--faint);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
}

.page-score.good { color: var(--good); background: rgba(22, 163, 74, 0.1); }
.page-score.warn { color: var(--warn); background: rgba(180, 83, 9, 0.1); }
.page-score.bad { color: var(--bad); background: rgba(220, 38, 38, 0.1); }

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

.clear {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.clear:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: left;
}

.faq-item {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
}

.faq-item summary {
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  color: var(--faint);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- toasts ---------- */

#toast-root {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: min(360px, calc(100vw - 40px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 15px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.89rem;
  font-weight: 550;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  animation: toast-in 0.3s ease both;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.error { border-left: 3px solid var(--bad); }
.toast.success { border-left: 3px solid var(--good); }
.toast.info { border-left: 3px solid var(--accent); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- footer ---------- */

.footer {
  margin: 110px auto 36px;
  width: min(var(--maxw), calc(100% - 40px));
}

.footer-inner {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.footer-meta {
  color: var(--faint) !important;
  font-size: 0.8rem !important;
}

.footer-meta a {
  color: var(--muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--text);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 1;
  transform: none;
}

/* ---------- noscript ---------- */

.ns-warning {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  z-index: 90;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-url {
    grid-column: 1 / -1;
  }

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

  .plan-card:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-form {
    flex-direction: column;
    border-radius: var(--radius-lg);
  }

  .hero-form .btn {
    width: 100%;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .plan-card:last-child {
    grid-column: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-url {
    grid-column: auto;
  }

  .plan-top {
    min-height: 0;
  }

  .pages-table th,
  .pages-table td {
    white-space: nowrap;
  }

  .pages-table td:first-child {
    max-width: 220px;
  }

  .pricing-head {
    flex-direction: column;
  }

  .history-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .history-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .history-arrow {
    display: none;
  }

  .compare-lists {
    grid-template-columns: 1fr;
  }

  .price {
    text-align: left;
  }

  .steps-track {
    grid-template-columns: 1fr 1fr;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .score-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-chips {
    grid-template-columns: 1fr;
  }

  .check-table td {
    padding: 6px;
  }

  .check-name {
    width: 50%;
  }

  #toast-root {
    left: 20px;
    right: 20px;
  }

  .console {
    padding: 20px 16px;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: #fff;
  }

  .nav,
  .footer,
  .report-actions,
  #toast-root,
  .pay-modal-backdrop {
    display: none !important;
  }

  main {
    width: 100%;
    margin: 0;
  }

  .section {
    max-width: none;
    margin: 0;
    text-align: left;
  }

  body.printing-report main > section:not(.report-section),
  body.printing-report .audit-form,
  body.printing-report #order-panel,
  body.printing-report .report-section > .eyebrow,
  body.printing-report .report-section > .section-title,
  body.printing-report .report-section > .section-sub {
    display: none !important;
  }

  body.printing-report .report-section,
  body.printing-report #console {
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .report-panel {
    margin: 0;
  }

  .report-sec,
  .summary-chip,
  .finding,
  .check-group,
  .plan-card,
  .pages-table tr {
    break-inside: avoid;
  }

  .score-ring .ring-fg {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Checkout and report refinements — calm surfaces, clear steps
   ============================================================ */

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

.finding-pages {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.finding-pages summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  color: var(--accent);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.finding-pages summary::-webkit-details-marker { display: none; }

.finding-pages summary::after {
  content: "↓";
  font-size: 0.72rem;
  transition: transform 0.18s ease;
}

.finding-pages[open] summary::after { transform: rotate(180deg); }

.finding-pages ul {
  display: grid;
  gap: 5px;
  margin: 6px 0 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  list-style: none;
}

.finding-pages li {
  min-width: 0;
  overflow-wrap: anywhere;
}

.finding-pages a {
  color: var(--muted);
  text-decoration: none;
}

.finding-pages a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.checkout-entry-section {
  max-width: none;
  text-align: left;
}

.checkout-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.checkout-entry h2 {
  margin: 0 0 7px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

.checkout-entry p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
}

.checkout-entry .btn { flex-shrink: 0; }

.plan-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checkout-page {
  background: #f6f7f5;
}

.checkout-page .nav {
  width: min(1180px, calc(100% - 40px));
  background: #fff;
}

.checkout-nav-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.secure-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 620;
}

.secure-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(19, 138, 91, 0.1);
}

.back-link {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 620;
  text-decoration: none;
}

.back-link:hover { color: var(--text); }

.checkout-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0 0;
}

.checkout-heading {
  max-width: 720px;
  margin-bottom: 34px;
  animation: checkout-rise 0.42s ease both;
}

.checkout-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.checkout-heading > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.checkout-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checkout-progress li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--faint);
  background: #fff;
  font-size: 0.73rem;
  font-weight: 650;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.checkout-progress li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--muted);
  background: #f1f3f0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.checkout-progress li.active {
  color: var(--accent);
  border-color: rgba(21, 94, 239, 0.24);
  background: #f6f9ff;
}

.checkout-progress li.active span,
.checkout-progress li.done span {
  color: #fff;
  background: var(--accent);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.checkout-flow {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.checkout-card {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: checkout-rise 0.45s ease both;
}

.checkout-card:nth-child(2) { animation-delay: 0.05s; }
.checkout-card:nth-child(3) { animation-delay: 0.1s; }
.checkout-card:nth-child(4) { animation-delay: 0.15s; }

.checkout-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.checkout-card-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.checkout-card h2 {
  margin: 0;
  font-size: 1.14rem;
  letter-spacing: -0.025em;
}

.step-number {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border: 1px solid #dce2db;
  border-radius: 9px;
  color: var(--accent);
  background: #f8faf7;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
}

.checkout-note {
  flex-shrink: 0;
  padding-top: 5px;
  color: var(--faint);
  font-size: 0.72rem;
}

.checkout-plans {
  display: grid;
  gap: 10px;
}

.checkout-plan {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.checkout-plan:hover {
  transform: translateY(-1px);
  border-color: #bdc9d5;
  box-shadow: 0 12px 24px -22px rgba(15, 23, 42, 0.42);
}

.checkout-plan:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.2);
}

.checkout-plan.selected {
  border-color: var(--accent);
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.checkout-plan.featured:not(.selected) {
  border-color: #cfdcd4;
  background: #fcfdfb;
}

.checkout-plan-radio {
  position: relative;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  border: 1px solid #b7c1cc;
  border-radius: 50%;
  background: #fff;
}

.checkout-plan.selected .checkout-plan-radio {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px #fff;
}

.checkout-plan-top,
.checkout-plan-description,
.checkout-plan-best-for,
.checkout-plan-features {
  grid-column: 2;
}

.checkout-plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.checkout-plan-top > span:first-child {
  display: grid;
  gap: 1px;
}

.checkout-plan-top strong {
  font-size: 0.95rem;
  letter-spacing: -0.015em;
}

.checkout-plan-top small {
  color: var(--faint);
  font-size: 0.71rem;
}

.checkout-plan-price {
  flex-shrink: 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 780;
  letter-spacing: -0.04em;
}

.checkout-plan-description {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.checkout-plan-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 10px;
}

.checkout-plan-features > span {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  color: #4f5b6c;
  font-size: 0.72rem;
}

.checkout-plan-features i {
  color: var(--good);
  font-style: normal;
  font-weight: 800;
}

.checkout-skeleton,
.checkout-error-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
  background: #fafbf9;
}

.checkout-error-card p { margin: 5px 0 0; }

.checkout-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.75fr);
  gap: 15px;
}

.checkout-field-wide { grid-column: 1 / -1; }

.checkout-fields .field small {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 0.72rem;
}

.checkout-fields input,
.checkout-fields select {
  height: 46px;
  border-color: #d8dfd8;
  border-radius: 10px;
  background: #fff;
}

.scope-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.scope-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.scope-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scope-option-body {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.scope-option.selected .scope-option-body {
  border-color: var(--accent);
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.scope-option:has(input:focus-visible) .scope-option-body {
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.18);
}

.scope-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  color: var(--accent);
  background: #edf3ff;
  font-weight: 800;
}

.scope-option-body > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.scope-option-body strong {
  color: var(--text);
  font-size: 0.83rem;
}

.scope-option-body small {
  color: var(--faint);
  font-size: 0.69rem;
  line-height: 1.35;
}

.scope-check {
  color: transparent;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.scope-option.selected .scope-check { color: var(--accent); }

.scope-panel {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbf9;
  animation: checkout-panel-in 0.24s ease both;
}

.scope-panel[hidden] { display: none; }

.scope-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.scope-panel-head strong {
  display: block;
  font-size: 0.82rem;
}

.scope-panel-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.scope-panel-head .btn { flex-shrink: 0; }

.add-page-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 13px;
}

.add-page-row input { min-width: 0; }

.page-preview {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.page-preview[hidden] { display: none; }

.preview-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.preview-result-head strong { color: var(--text); }

.page-url-list,
.page-choice-list {
  display: grid;
  gap: 5px;
  max-height: 310px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.page-url-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid #e8ece7;
  border-radius: 8px;
  background: #fff;
}

.page-index {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.8;
}

.page-url-list li > span:last-child,
.page-choice-list li > label > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.page-url-list strong,
.page-choice-list strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-url-list small,
.page-choice-list small {
  overflow: hidden;
  color: var(--faint);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-choice-list li { margin: 0; }

.page-choice {
  display: grid;
  grid-template-columns: 16px 19px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 9px;
  border: 1px solid #e8ece7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.page-choice:hover { border-color: #cbd7ce; }
.page-choice:has(input:checked) { border-color: #b7d1c2; background: #f7fcf8; }
.page-choice.disabled { cursor: not-allowed; opacity: 0.48; }
.page-choice input { width: 14px; height: 14px; accent-color: var(--accent); }

.page-check {
  display: none;
  color: var(--good);
  font-size: 0.69rem;
  font-weight: 800;
}

.page-choice:has(input:checked) .page-check { display: block; }

.page-preview-empty {
  margin: 0;
  padding: 12px 2px 2px;
  color: var(--faint);
  font-size: 0.75rem;
}

.checkout-fields-compact { align-items: center; }

.payment-assurance {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8e1;
  border-radius: 10px;
  background: #fafcf9;
}

.payment-assurance > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--accent);
  background: #edf3ff;
  font-size: 0.72rem;
}

.payment-assurance p { display: grid; gap: 1px; margin: 0; }
.payment-assurance strong { font-size: 0.76rem; }
.payment-assurance small { color: var(--faint); font-size: 0.67rem; }

.form-error {
  margin: 12px 0 0;
  padding: 9px 11px;
  border: 1px solid #f2c8c5;
  border-radius: 8px;
  color: #b42318;
  background: #fff8f7;
  font-size: 0.76rem;
}

.checkout-summary {
  position: sticky;
  top: 84px;
  min-width: 0;
  animation: checkout-rise 0.46s 0.12s ease both;
}

.summary-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.summary-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-plan {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
}

.summary-plan > div { display: grid; gap: 2px; min-width: 0; }
.summary-plan strong { font-size: 1rem; letter-spacing: -0.02em; }
.summary-plan small { color: var(--faint); font-size: 0.71rem; }
.summary-plan > span { flex-shrink: 0; font-size: 1.28rem; font-weight: 780; letter-spacing: -0.04em; }

.summary-lines {
  display: grid;
  gap: 9px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.summary-lines div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.73rem; }
.summary-lines strong { color: var(--text); font-weight: 620; text-align: right; }

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 0;
}

.summary-total span { color: var(--muted); font-size: 0.8rem; }
.summary-total strong { font-size: 1.65rem; letter-spacing: -0.05em; }
.checkout-submit { min-height: 47px; }

.summary-footnote {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: center;
}

.summary-help {
  margin-top: 12px;
  padding: 15px 17px;
  border: 1px solid #e0e6df;
  border-radius: 14px;
  background: #fbfcfa;
}

.summary-help strong { font-size: 0.76rem; }
.summary-help p { margin: 4px 0 0; color: var(--muted); font-size: 0.7rem; line-height: 1.5; }

.payment-stage {
  animation: checkout-rise 0.4s ease both;
}

.payment-stage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

.payment-stage-head h2 {
  margin: 0 0 4px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.payment-stage-head p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); font-size: 0.82rem; }
.payment-order-meta { display: grid; gap: 2px; flex-shrink: 0; text-align: right; }
.payment-order-meta span { color: var(--faint); font-size: 0.66rem; }
.payment-order-meta strong { font-size: 1.2rem; letter-spacing: -0.04em; }

.payment-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.payment-widget-card,
.payment-status-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.payment-widget-card { min-width: 0; overflow: hidden; }

.payment-widget-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  background: #fafbf9;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 620;
}

.payment-widget-bar > span { display: inline-flex; align-items: center; gap: 7px; }
.payment-widget-bar i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.payment-widget-bar .clear { padding: 4px 8px; font-size: 0.69rem; }

#nanswap-widget {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 760px;
  border: 0;
  background: #fff;
}

#nanswap-widget[hidden] { display: none; }

.widget-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 260px;
  color: var(--muted);
  font-size: 0.8rem;
}

.widget-loading[hidden] { display: none; }
.widget-loading .btn-spinner { display: inline-block; border-color: rgba(21, 94, 239, 0.2); border-top-color: var(--accent); }

.demo-payment-panel {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-height: 300px;
  padding: 32px;
  align-content: center;
}

.demo-payment-panel[hidden] { display: none; }
.demo-payment-panel h3, .demo-payment-panel p { margin: 0; }
.demo-payment-panel h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.demo-payment-panel p { max-width: 480px; color: var(--muted); font-size: 0.82rem; }
.demo-payment-panel .btn { margin-top: 8px; }

.payment-status-card {
  position: sticky;
  top: 84px;
  padding: 22px;
}

.payment-pulse {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 17px;
  border-radius: 50%;
  background: #eef3ff;
}

.payment-pulse span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: payment-pulse 2s ease-in-out infinite;
}

.payment-status-card.is-confirmed .payment-pulse { background: #e6f7ee; }
.payment-status-card.is-confirmed .payment-pulse span { background: var(--good); animation: none; }
.payment-status-card.is-error .payment-pulse { background: #fff0ee; }
.payment-status-card.is-error .payment-pulse span { background: var(--bad); animation: none; }
.payment-status-card h3 { margin: 0 0 5px; font-size: 1rem; letter-spacing: -0.02em; }
.payment-status-card > p { margin: 0 0 18px; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }

.payment-status-list { display: grid; gap: 8px; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.payment-status-list div { display: flex; justify-content: space-between; gap: 10px; color: var(--faint); font-size: 0.71rem; }
.payment-status-list strong { color: var(--text); font-weight: 620; text-align: right; }

.payment-manual-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 620;
  text-decoration: none;
}

.payment-manual-link[hidden] { display: none; }

.checkout-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 80px auto 24px;
  border-radius: 16px;
}

@keyframes checkout-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes checkout-panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes payment-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21, 94, 239, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(21, 94, 239, 0); }
}

@media (max-width: 980px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .payment-stage-grid { grid-template-columns: 1fr; }
  .payment-status-card { position: static; }
}

@media (max-width: 760px) {
  .checkout-entry { align-items: flex-start; flex-direction: column; gap: 18px; }
  .checkout-entry .btn { width: 100%; }
  .checkout-page .nav { width: calc(100% - 20px); }
  .checkout-nav-meta .secure-note { display: none; }
  .checkout-main { width: min(100% - 28px, 1180px); padding-top: 42px; }
  .checkout-heading { margin-bottom: 25px; }
  .checkout-heading h1 { font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .checkout-card { padding: 19px; border-radius: 15px; }
  .checkout-card-head { flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .checkout-note { padding: 0 0 0 40px; }
  .checkout-plan { padding: 15px; }
  .checkout-fields { grid-template-columns: 1fr; }
  .checkout-field-wide { grid-column: auto; }
  .scope-picker { grid-template-columns: 1fr; }
  .scope-panel-head { align-items: flex-start; flex-direction: column; }
  .scope-panel-head .btn { width: 100%; }
  .add-page-row { grid-template-columns: 1fr; }
  .add-page-row .btn { width: 100%; }
  .checkout-fields-compact { grid-template-columns: 1fr; }
  .summary-card { padding: 19px; }
  .payment-stage-head { align-items: flex-start; flex-direction: column; padding: 19px; }
  .payment-order-meta { text-align: left; }
  #nanswap-widget { height: 700px; }
  .payment-widget-bar { padding-inline: 12px; }
  .checkout-footer { width: calc(100% - 28px); }
}

@media (max-width: 430px) {
  .checkout-progress { gap: 5px; }
  .checkout-progress li { padding-right: 7px; font-size: 0.66rem; }
  .checkout-progress li span { width: 19px; height: 19px; font-size: 0.59rem; }
  .checkout-plan-top { gap: 8px; }
  .checkout-plan-price { font-size: 1rem; }
  .checkout-plan-features { display: grid; gap: 5px; }
  .preview-result-head { flex-direction: column; gap: 2px; }
  .payment-widget-bar span { max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #nanswap-widget { height: 660px; }
  .demo-payment-panel { min-height: 240px; padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .checkout-heading,
  .checkout-card,
  .checkout-summary,
  .payment-stage,
  .scope-panel,
  .payment-pulse span {
    animation: none !important;
  }
}

/* ============================================================
   Storefront refresh — sitemap-first product, quieter palette
   ============================================================ */

:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --glass-bg: #ffffff;
  --glass-blur: none;
  --text: #101828;
  --muted: #667085;
  --faint: #8b95a5;
  --border: #e5e9e4;
  --border-strong: #d3dad3;
  --accent: #155eef;
  --accent-2: #0ea5e9;
  --grad: #155eef;
  --ink: #0f172a;
  --mint: #75e0a3;
  --mint-soft: #e9f9f0;
  --good: #138a5b;
  --warn: #b45309;
  --bad: #d92d20;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 2px 4px rgba(16, 24, 40, 0.03), 0 20px 50px -30px rgba(16, 24, 40, 0.24);
  --shadow-lg: 0 26px 80px -38px rgba(15, 23, 42, 0.38);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --maxw: 1120px;
}

body {
  overflow-x: clip;
  background: #f7f8f6;
}

.page-glow {
  display: none;
}

main {
  width: min(var(--maxw), calc(100% - 48px));
}

.glass {
  background: var(--glass-bg);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.grad-text {
  color: var(--accent);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.nav {
  top: 14px;
  padding: 8px 10px 8px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.36);
  animation-duration: 0.38s;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--mint);
  background: var(--ink);
  box-shadow: 0 5px 14px -7px rgba(15, 23, 42, 0.7);
}

.brand-name {
  letter-spacing: -0.035em;
}

.nav-links a {
  font-size: 0.86rem;
  font-weight: 580;
}

.nav-links a:hover {
  color: var(--text);
  background: #f2f5f1;
}

.btn {
  background: var(--accent);
  box-shadow: 0 8px 20px -10px rgba(21, 94, 239, 0.62);
}

.btn:hover {
  background: #0f4ed1;
  filter: none;
  box-shadow: 0 12px 27px -12px rgba(21, 94, 239, 0.72);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.2);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: #f5f7f4;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 82px 0 34px;
  text-align: left;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 10px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #465164;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 640;
  text-decoration: none;
  animation: rise-in 0.55s 0.05s ease both;
}

.hero-badge:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(19, 138, 91, 0.11);
}

.hero h1 {
  max-width: 670px;
  margin: 0 0 22px;
  font-size: clamp(3rem, 5.4vw, 5rem);
  font-weight: 780;
  line-height: 0.99;
  letter-spacing: -0.062em;
  animation: rise-in 0.65s 0.1s ease both;
}

.hero h1 span {
  color: var(--accent);
}

.lead {
  max-width: 600px;
  margin: 0 0 28px;
  color: #596579;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.68;
  animation: rise-in 0.65s 0.16s ease both;
}

.hero-form {
  position: relative;
  max-width: 610px;
  margin: 0;
  padding: 7px;
  border-radius: 17px;
  background: #fff;
  border-color: #dfe5df;
  box-shadow: 0 16px 42px -28px rgba(15, 23, 42, 0.38);
  animation: rise-in 0.65s 0.22s ease both;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-form:focus-within {
  border-color: rgba(21, 94, 239, 0.52);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.09), 0 18px 44px -30px rgba(15, 23, 42, 0.4);
}

.hero-field {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #9aa3b1;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-form .field input {
  height: 48px;
  padding: 8px 14px 8px 43px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.98rem;
}

.hero-form .btn {
  min-width: 144px;
  border-radius: 12px;
  padding-inline: 20px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 17px;
  color: var(--faint);
  font-size: 0.82rem;
  animation: rise-in 0.65s 0.28s ease both;
}

.hero-facts span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-facts span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 14px;
  border-radius: 50%;
  background: #c5ccc5;
}

.hero-facts strong {
  color: var(--text);
  font-weight: 760;
}

.hero-preview {
  position: relative;
  min-width: 0;
  animation: preview-in 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.preview-window {
  position: relative;
  padding: 9px;
  border-radius: 24px;
  background: #111827;
  box-shadow: 0 40px 90px -38px rgba(15, 23, 42, 0.55), 0 12px 28px -20px rgba(15, 23, 42, 0.4);
  transform: rotate(-1.25deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-preview:hover .preview-window {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 48px 100px -38px rgba(15, 23, 42, 0.6), 0 18px 35px -24px rgba(15, 23, 42, 0.45);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 7px 7px;
  color: #aab3c2;
  font-size: 0.64rem;
}

.preview-dots {
  display: inline-flex;
  gap: 4px;
}

.preview-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #344052;
}

.preview-address {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
}

.preview-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #9fe7bd;
}

.preview-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(117, 224, 163, 0.12);
  animation: live-pulse 2.2s ease-in-out infinite;
}

.preview-content {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 17px;
  background: #fbfcfa;
}

.preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7ebe6;
}

.preview-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-head strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.preview-head small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 0.68rem;
}

.preview-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--accent);
}

.preview-score span {
  font-size: 2.5rem;
  font-weight: 780;
  letter-spacing: -0.07em;
  line-height: 1;
}

.preview-score small {
  color: var(--faint);
  font-size: 0.7rem;
}

.preview-metrics {
  display: grid;
  gap: 15px;
  padding: 19px 0;
}

.preview-metrics > div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 0.73rem;
}

.preview-metrics strong {
  color: var(--text);
  font-size: 0.73rem;
}

.preview-metrics i {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8ece7;
}

.preview-metrics i::after {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  animation: bar-grow 1.1s 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.preview-issues {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e4e9e3;
  border-radius: 12px;
  background: #e4e9e3;
}

.preview-issues > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  background: #fff;
  color: #4b5565;
  font-size: 0.7rem;
}

.preview-issues b {
  color: var(--faint);
  font-size: 0.58rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.issue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.issue-dot.high { background: #ef4444; }
.issue-dot.medium { background: #f59e0b; }
.issue-dot.low { background: #22c55e; }

.preview-scanline {
  display: none;
}

.preview-caption {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 0.7rem;
  text-align: center;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.signal-strip > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  padding: 4px 26px;
  border-right: 1px solid var(--border);
}

.signal-strip > div:last-child { border-right: 0; }
.signal-strip > div:first-child { padding-left: 0; }

.signal-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--accent);
  background: #eef2ff;
  font-weight: 760;
}

.signal-strip strong {
  font-size: 0.84rem;
  letter-spacing: -0.015em;
}

.signal-strip small {
  margin-top: 1px;
  color: var(--faint);
  font-size: 0.72rem;
}

.section {
  margin-top: 108px;
}

.coverage-section,
.flow-section,
.pricing-section,
.history-section,
.faq-section {
  max-width: none;
  text-align: left;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 34px;
}

.section-heading > div {
  min-width: 0;
}

.section-heading .section-title {
  max-width: 660px;
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  letter-spacing: -0.045em;
}

.section-aside {
  max-width: 360px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.69rem;
  letter-spacing: 0.155em;
}

.check-list {
  gap: 14px;
  margin-top: 0;
}

.check-cat {
  position: relative;
  overflow: hidden;
  padding: 26px 26px 24px;
  border-color: var(--border);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.check-cat::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(21, 94, 239, 0.04);
  transition: transform 0.3s ease;
}

.check-cat:hover {
  z-index: 1;
  transform: translateY(-4px);
  border-color: #d9e1d8;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.check-cat:hover::after { transform: scale(1.25); }

.check-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.check-cat h3 {
  margin-bottom: 13px;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.check-cat li {
  font-size: 0.88rem;
}

.check-cat li::before {
  color: var(--good);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.flow-step {
  position: relative;
  min-height: 190px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flow-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.flow-step > span {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-bottom: 32px;
  border: 1px solid #dce3dc;
  border-radius: 50%;
  color: var(--accent);
  background: #fbfcfa;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.flow-step h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.pricing-grid {
  gap: 15px;
  margin-top: 0;
}

.plan-card {
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
  border-color: #d8dfd7;
  box-shadow: var(--shadow-md);
}

.plan-card.featured {
  color: #f8faf9;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 26px 64px -32px rgba(15, 23, 42, 0.6);
}

.plan-card.featured::before {
  display: none;
}

.plan-card.featured:hover {
  border-color: var(--ink);
  box-shadow: 0 32px 72px -32px rgba(15, 23, 42, 0.68);
}

.plan-badge {
  top: 18px;
  right: 18px;
  color: #0c3b27;
  background: var(--mint);
  box-shadow: none;
}

.plan-top {
  min-height: 132px;
  border-color: var(--border);
}

.plan-card.featured .plan-top {
  border-color: rgba(255, 255, 255, 0.13);
}

.plan-top h3 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.plan-card.featured .plan-top h3 { color: #fff; }
.plan-card.featured .plan-top p { color: #9da9ba; }

.plan-price {
  min-width: 76px;
  text-align: right;
}

.plan-price strong {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 2rem;
  letter-spacing: -0.055em;
}

.plan-card.featured .plan-price strong { color: #fff; }
.plan-card.featured .plan-price span { color: #8f9caf; }

.pkg-features {
  gap: 11px;
}

.pkg-features li {
  font-size: 0.88rem;
}

.plan-card.featured .pkg-features li {
  color: #b8c2d0;
}

.pkg-features li::before {
  width: 18px;
  height: 18px;
  color: #fff;
  font-size: 0.61rem;
  background: var(--good);
}

.plan-card.featured .pkg-features li::before {
  color: #0c3b27;
  background: var(--mint);
}

.plan-card .btn {
  border-radius: 12px;
}

.plan-card.featured .btn {
  color: #0c271b;
  background: var(--mint);
  box-shadow: none;
}

.plan-card.featured .btn:hover {
  background: #8cebb3;
}

.plan-card.selected:not(.featured) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.08), var(--shadow-md);
}

.audit-section {
  max-width: 800px;
}

.console {
  max-width: 760px;
  padding: 0;
  overflow: hidden;
  border-radius: 23px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  background: #fafbf9;
  font-size: 0.69rem;
  font-weight: 640;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.console-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3f4b5d;
}

.console-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(19, 138, 91, 0.09);
}

.audit-form {
  gap: 22px;
  padding: 25px;
}

.form-grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.audit-form label {
  color: #515d70;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.audit-form input,
.audit-form select {
  height: 45px;
  border-color: #dce2db;
  border-radius: 10px;
  background-color: #fff;
  font-size: 0.9rem;
}

.audit-submit-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.audit-submit-row > span {
  color: var(--faint);
  font-size: 0.76rem;
}

.audit-submit-row .btn {
  flex-shrink: 0;
}

.order-panel {
  padding: 0 25px 25px;
}

.history-card {
  max-width: none;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
}

.history-toolbar input {
  height: 45px;
  border-color: #dce2db;
  border-radius: 10px;
}

.history-item {
  border-color: #e7ebe6;
  border-radius: 12px;
  background: #fff;
}

.history-item:hover {
  border-color: #d4ddd4;
  background: #fcfdfc;
}

.faq-list {
  max-width: 890px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 20px 2px;
  font-size: 0.96rem;
}

.faq-item p {
  max-width: 730px;
  padding: 0 2px 22px;
  color: var(--muted);
}

.footer {
  margin-top: 108px;
}

/* Payment success state */
.pay-modal.is-confirmed {
  border-color: rgba(19, 138, 91, 0.4);
  box-shadow: 0 0 0 4px rgba(19, 138, 91, 0.07), var(--shadow-lg);
}

.pay-modal.is-confirmed .status-line {
  color: var(--good);
  border-color: rgba(19, 138, 91, 0.24);
  background: rgba(19, 138, 91, 0.06);
}

.pay-modal.is-confirmed .status-spinner {
  border-color: rgba(19, 138, 91, 0.22);
  border-top-color: var(--good);
}

/* Report loading and discovery */
.report-loading {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  max-width: 760px;
  margin: 26px auto;
  padding: 38px;
  text-align: left;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.loading-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
}

.loading-ring {
  position: absolute;
  inset: 0;
  border: 1px solid #e1e7e0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 2.2s linear infinite;
}

.loading-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid #edf0ec;
  border-bottom-color: var(--mint);
  border-radius: 50%;
  animation: spin 3.4s linear infinite reverse;
}

.loading-core {
  display: grid;
  place-items: center;
  width: 67px;
  height: 67px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.loading-copy {
  min-width: 0;
}

.loading-kicker {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.loading-copy h3 {
  margin: 7px 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.loading-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.loading-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.loading-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #e6eae5;
  border-radius: 999px;
  color: #98a1ae;
  background: #fafbf9;
  font-size: 0.66rem;
  font-weight: 620;
}

.loading-step i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d1d8d0;
}

.loading-step.done {
  color: var(--good);
  border-color: rgba(19, 138, 91, 0.18);
  background: rgba(19, 138, 91, 0.05);
}

.loading-step.done i { background: var(--good); }

.loading-step.active {
  color: var(--accent);
  border-color: rgba(21, 94, 239, 0.2);
  background: rgba(21, 94, 239, 0.05);
}

.loading-step.active i {
  background: var(--accent);
  animation: live-pulse 1.6s ease-in-out infinite;
}

.loading-track {
  height: 4px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0ec;
}

.loading-track span {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: loading-slide 1.7s ease-in-out infinite;
}

.report-error {
  max-width: 620px;
  margin: 26px auto;
  padding: 38px;
  text-align: center;
  background: #fff;
}

.report-error-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--bad);
  background: rgba(217, 45, 32, 0.07);
  font-weight: 800;
}

.report-error h3 {
  margin: 0 0 7px;
  font-size: 1.35rem;
}

.report-error p {
  margin: 0 auto 22px;
  color: var(--muted);
}

.discovery-summary {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 3px 0 16px;
  padding: 13px 14px;
  border: 1px solid #dfe9e2;
  border-radius: 11px;
  background: #f6fbf7;
}

.discovery-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--good);
  background: #e7f7ee;
  font-weight: 760;
}

.discovery-summary strong {
  display: block;
  font-size: 0.78rem;
}

.discovery-summary p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.js .reveal {
  opacity: 0;
  transform: translateY(17px);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.js .check-list .reveal:nth-child(2),
.js .flow-grid .reveal:nth-child(2),
.js .pricing-grid .plan-card:nth-child(2) { transition-delay: 0.07s; }

.js .check-list .reveal:nth-child(3),
.js .flow-grid .reveal:nth-child(3),
.js .pricing-grid .plan-card:nth-child(3) { transition-delay: 0.14s; }

.js .check-list .reveal:nth-child(4) { transition-delay: 0.21s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes preview-in {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes scan-sweep {
  0%, 12% { left: -30%; opacity: 0; }
  28% { opacity: 1; }
  58%, 100% { left: 112%; opacity: 0; }
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.78); }
}

@keyframes loading-slide {
  0% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(300%); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 70px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-preview {
    width: min(610px, 100%);
    margin: 0 auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .section-aside {
    max-width: 610px;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: 0;
  }

  .flow-step > span {
    margin-bottom: 19px;
  }
}

@media (max-width: 760px) {
  main {
    width: min(var(--maxw), calc(100% - 28px));
  }

  .nav {
    top: 8px;
    width: calc(100% - 20px);
    padding: 7px 8px 7px 10px;
  }

  .nav .btn-small {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    gap: 38px;
    padding-top: 55px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.7rem, 13.2vw, 4rem);
    letter-spacing: -0.065em;
  }

  .hero-badge {
    margin-bottom: 20px;
  }

  .lead {
    margin-bottom: 23px;
    font-size: 0.98rem;
  }

  .hero-form {
    flex-direction: column;
    padding: 7px;
    border-radius: 16px;
  }

  .hero-form .field input {
    height: 46px;
  }

  .hero-form .btn {
    width: 100%;
    min-height: 46px;
  }

  .hero-facts {
    gap: 6px 11px;
    font-size: 0.74rem;
  }

  .hero-facts span + span::before {
    margin-right: 8px;
  }

  .preview-window {
    transform: none;
  }

  .preview-content {
    padding: 18px;
  }

  .preview-head strong {
    font-size: 1.08rem;
  }

  .preview-score span {
    font-size: 2rem;
  }

  .signal-strip {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 36px;
    padding: 0;
  }

  .signal-strip > div,
  .signal-strip > div:first-child {
    padding: 15px 2px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .signal-strip > div:last-child {
    border-bottom: 0;
  }

  .section {
    margin-top: 78px;
  }

  .section-heading {
    margin-bottom: 27px;
  }

  .section-heading .section-title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .check-list,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .plan-card:last-child {
    grid-column: auto;
  }

  .plan-top {
    min-height: 0;
  }

  .audit-section {
    max-width: none;
  }

  .audit-form {
    padding: 20px 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-url {
    grid-column: auto;
  }

  .audit-submit-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .audit-submit-row .btn {
    width: 100%;
  }

  .audit-submit-row > span {
    text-align: center;
  }

  .order-panel {
    padding: 0 16px 18px;
  }

  .console-head {
    padding-inline: 16px;
  }

  .history-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .history-item {
    grid-template-columns: 43px minmax(0, 1fr);
  }

  .history-arrow {
    display: none;
  }

  .report-loading {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 22px;
    text-align: center;
  }

  .loading-visual {
    margin: 0 auto;
  }

  .loading-steps {
    justify-content: center;
  }

  .loading-copy h3 {
    font-size: 1.3rem;
  }

  .footer {
    margin-top: 78px;
  }
}

@media (max-width: 430px) {
  .nav .btn-small {
    padding-inline: 10px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-facts span + span::before {
    display: none;
  }

  .hero-facts {
    gap: 6px 14px;
  }

  .preview-address {
    display: none;
  }

  .preview-issues > div {
    font-size: 0.65rem;
  }

  .preview-issues b {
    display: none;
  }

  .section-heading .section-title {
    letter-spacing: -0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero h1,
  .lead,
  .hero-form,
  .hero-facts,
  .hero-preview,
  .preview-metrics i::after {
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .preview-scanline,
  .preview-live i,
  .loading-track span,
  .loading-ring,
  .loading-ring::after,
  .loading-step.active i {
    animation: none !important;
  }
}

/* ============================================================
   Final visual pass — editorial, flat, and deliberately plain.
   Replaces the glassy SaaS treatment with a calmer document-like UI.
   ============================================================ */

:root {
  --bg: #f3f1eb;
  --surface: #fffdf8;
  --glass-bg: #fffdf8;
  --glass-blur: none;
  --text: #20241f;
  --muted: #62685f;
  --faint: #858b81;
  --border: #d9d6cd;
  --border-strong: #b8beb3;
  --accent: #1f5c4a;
  --accent-2: #1f5c4a;
  --accent-hover: #16483a;
  --grad: #1f5c4a;
  --ink: #222820;
  --mint: #d9e8dc;
  --mint-soft: #eef4ed;
  --good: #28734f;
  --warn: #8a5b16;
  --bad: #aa3f2f;
  --shadow-sm: 0 1px 0 rgba(32, 36, 31, 0.04);
  --shadow-md: 0 1px 0 rgba(32, 36, 31, 0.04);
  --shadow-lg: 0 1px 0 rgba(32, 36, 31, 0.04);
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

html { scroll-padding-top: 86px; }

body {
  background: var(--bg);
  color: var(--text);
}

main {
  width: min(var(--maxw), calc(100% - 48px));
}

.glass,
.nav {
  background: var(--surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.grad-text {
  color: var(--accent);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.nav {
  top: 0;
  width: 100%;
  max-width: none;
  padding: 12px max(24px, calc((100vw - var(--maxw)) / 2));
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: rgba(243, 241, 235, 0.97);
  animation: none;
}

.checkout-page .nav {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
}

.brand-mark {
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

.nav-links a {
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 560;
}

.nav-links a:hover {
  background: rgba(31, 92, 74, 0.07);
}

.btn {
  border-radius: 6px;
  background: var(--accent);
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
  filter: none;
  transform: none;
  box-shadow: none;
}

.btn:active { transform: none; }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.btn-ghost:hover { background: #f7f4ed; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

h1,
h2,
.hero h1,
.checkout-heading h1,
.section-title,
.auth-brand-panel h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.hero {
  align-items: start;
  gap: clamp(34px, 5vw, 64px);
  padding: 68px 0 30px;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(2.85rem, 5.1vw, 4.6rem);
  line-height: 1.01;
  letter-spacing: -0.045em;
}

.hero h1 span { color: var(--accent); }

.hero-badge {
  margin-bottom: 22px;
  padding: 5px 8px;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.hero-badge-dot {
  box-shadow: none;
}

.lead {
  max-width: 570px;
  color: var(--muted);
  animation: none;
}

.hero-form {
  padding: 6px;
  border-radius: 7px;
  border-color: var(--border-strong);
  box-shadow: none;
  animation: none;
  transition: border-color 0.15s ease;
}

.hero-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.hero-form .field input {
  height: 46px;
  border-radius: 4px;
  background: var(--bg);
}

.hero-form .btn {
  min-width: 148px;
  border-radius: 4px;
}

.hero-facts { animation: none; }

.hero-preview {
  align-self: start;
  padding-top: 5px;
  animation: none;
}

.preview-window {
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
  transform: none;
  transition: none;
}

.hero-preview:hover .preview-window {
  transform: none;
  box-shadow: none;
}

.preview-bar {
  height: 37px;
  padding: 0 12px;
  border-radius: 7px 7px 0 0;
  color: #c9d1c8;
  background: var(--ink);
}

.preview-content {
  padding: 22px;
  border-radius: 0 0 7px 7px;
  background: var(--surface);
}

.preview-head { border-bottom-color: var(--border); }
.preview-metrics i { background: #e6e2d9; }
.preview-issues { border-color: var(--border); background: var(--border); border-radius: 5px; }
.preview-issues > div { background: var(--surface); }
.preview-live i { animation: none; box-shadow: none; }

.signal-strip { margin-top: 34px; }

.section { margin-top: 88px; }

.section-heading { align-items: start; }
.section-heading .section-title { font-size: clamp(1.8rem, 3.2vw, 2.65rem); }

.check-list { gap: 12px; }

.check-cat,
.flow-step {
  border-radius: 7px;
  background: var(--surface);
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.check-cat { padding: 22px; }
.check-cat::after { display: none; }

.check-cat:hover,
.flow-step:hover,
.plan-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-strong);
  background: var(--surface);
}

.plan-card {
  position: relative;
  padding: 23px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
  transition: border-color 0.15s ease;
}

.plan-card.featured {
  color: var(--text);
  border: 2px solid var(--accent);
  background: var(--surface);
  box-shadow: none;
}

.plan-card.featured:hover {
  border-color: var(--accent);
  box-shadow: none;
}

.plan-badge {
  top: 15px;
  right: 15px;
  padding: 3px 5px;
  border-radius: 3px;
  color: #fff;
  background: var(--accent);
  box-shadow: none;
  font-size: 0.57rem;
  letter-spacing: 0.07em;
}

.plan-top {
  min-height: 0;
  padding-bottom: 14px;
}

.plan-copy h3,
.plan-card.featured .plan-top h3 { color: var(--text); }
.plan-card.featured .plan-top p { color: var(--muted); }
.plan-kicker { color: var(--accent); }

.plan-price strong,
.plan-card.featured .plan-price strong { color: var(--text); }
.plan-card.featured .plan-price span { color: var(--faint); }

.plan-best-for {
  margin: 0 0 17px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.plan-best-for span {
  color: var(--faint);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pkg-features { gap: 9px; }
.pkg-features li,
.plan-card.featured .pkg-features li { color: var(--text); }
.pkg-features li::before { background: var(--accent); }
.plan-card.featured .pkg-features li::before { color: #fff; background: var(--accent); }
.plan-card .btn,
.plan-card.featured .btn {
  border-radius: 5px;
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}
.plan-card.featured .btn:hover,
.plan-card .btn:hover { background: var(--accent-hover); }

.pricing-grid { gap: 12px; }

.checkout-heading h1 { font-size: clamp(2.25rem, 4.5vw, 3.8rem); }

.checkout-card,
.summary-card,
.payment-stage-head,
.payment-widget-card,
.payment-status-card,
.checkout-skeleton,
.checkout-error-card {
  border-radius: 7px;
  box-shadow: none;
}

.checkout-card { padding: 22px; background: var(--surface); }
.checkout-plan { border-radius: 6px; box-shadow: none; }
.checkout-plan:hover { transform: none; border-color: var(--border-strong); box-shadow: none; }
.checkout-plan.selected { background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.checkout-plan.featured:not(.selected) { background: var(--surface); border-color: var(--border); }

.checkout-plan-best-for {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.checkout-plan-best-for strong { color: var(--faint); font-size: 0.62rem; letter-spacing: 0.07em; text-transform: uppercase; }

.checkout-fields input,
.checkout-fields select,
.hero-form .field input,
.field input,
.field select,
textarea {
  border-radius: 5px;
}

.scope-option-body { border-radius: 6px; box-shadow: none; }
.scope-option.selected .scope-option-body { background: var(--mint-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.page-preview,
.add-page-row input,
.payment-widget-bar,
.demo-payment-panel { border-radius: 6px; }

.payment-stage-head { padding: 18px 20px; }
.payment-widget-card,
.payment-status-card { background: var(--surface); }
.payment-widget-bar { background: #f8f5ee; }
#nanswap-widget { height: 720px; }
.payment-pulse { background: var(--mint-soft); }
.payment-pulse span { animation: none; }

.report-sec {
  border-radius: 7px;
  box-shadow: none;
  background: var(--surface);
}

.report-panel { box-shadow: none; }
.finding { border-radius: 5px; background: #fbf9f3; }
.finding-sev,
.finding-group,
.compare-delta,
.page-score,
.score-chip { border-radius: 3px; }

.finding-pages ul {
  border-radius: 5px;
  background: var(--surface);
}

.deep-report-sec { border-left: 3px solid var(--accent); }
.deep-intro,
.deep-note {
  margin: -3px 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

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

.roadmap-list > li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fbf9f3;
}

.roadmap-rank {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
}

.roadmap-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.roadmap-title strong {
  font-size: 0.87rem;
  letter-spacing: -0.01em;
}

.roadmap-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.link-map-list {
  display: grid;
  gap: 7px;
  margin: 6px 0 2px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  list-style: none;
}

.link-map-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.link-map-list a {
  overflow-wrap: anywhere;
  color: var(--muted);
  text-decoration: none;
}

.link-map-list a:hover { color: var(--accent); text-decoration: underline; }
.link-map-list span { flex-shrink: 0; color: var(--faint); font-family: var(--font-mono); font-size: 0.66rem; white-space: nowrap; }

.footer { margin-top: 88px; border-radius: 0; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card:last-child { grid-column: auto; }
}

@media (max-width: 760px) {
  main { width: calc(100% - 28px); }

  .nav,
  .checkout-page .nav {
    width: 100%;
    padding-inline: 14px;
  }

  .hero { padding-top: 46px; gap: 34px; }
  .hero h1 { font-size: clamp(2.55rem, 12.5vw, 3.7rem); }
  .hero-form { padding: 6px; }
  .preview-content { padding: 18px; }
  .section { margin-top: 72px; }
  .checkout-main { width: calc(100% - 28px); }
  .checkout-card { padding: 18px; }
  .checkout-progress { gap: 5px; }
  .checkout-progress li { padding-right: 7px; font-size: 0.67rem; }
  .checkout-progress li span { width: 20px; height: 20px; font-size: 0.6rem; }
  #nanswap-widget { height: 690px; }
  .link-map-list li { grid-template-columns: 1fr; gap: 1px; }
  .footer { margin-top: 72px; }
}

@media (max-width: 430px) {
  .nav-links { display: none; }
  .plan-best-for { font-size: 0.74rem; }
  .roadmap-list > li { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 10px; }
  .roadmap-rank { width: 23px; height: 23px; font-size: 0.58rem; }
  .checkout-card-head { gap: 4px; }
}

/* ---------- legal pages ---------- */

.legal-page {
  background: var(--bg);
}

.legal-page .legal-nav {
  margin-top: 0;
}

.legal-nav-links {
  margin-left: auto;
}

.legal-main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 0;
}

.legal-hero {
  max-width: 850px;
  padding: 0 0 38px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  max-width: 780px;
  margin: 8px 0 16px;
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.legal-hero .lead {
  max-width: 730px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.7;
}

.legal-meta {
  margin: 20px 0 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
}

.legal-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: start;
  gap: clamp(38px, 7vw, 88px);
  padding: 38px 0 0;
}

.legal-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 2px 0;
}

.legal-toc strong {
  margin-bottom: 9px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-toc a {
  padding: 5px 8px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  border-left-color: var(--accent);
  color: var(--text);
  background: var(--mint-soft);
}

.legal-content {
  min-width: 0;
  max-width: 790px;
}

.legal-section {
  padding: 0 0 34px;
  scroll-margin-top: 95px;
}

.legal-section + .legal-section {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 15px;
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(1.35rem, 2.7vw, 1.82rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 23px 0 8px;
  color: var(--text);
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.legal-section p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-list {
  display: grid;
  gap: 8px;
  margin: 2px 0 15px;
  padding-left: 21px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.legal-list li {
  padding-left: 3px;
  overflow-wrap: anywhere;
}

.legal-list strong {
  color: var(--text);
}

.legal-table-wrap {
  width: 100%;
  margin: 6px 0 17px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  min-width: 670px;
  border-collapse: collapse;
  font-size: 0.8rem;
  line-height: 1.55;
}

.legal-table th,
.legal-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.legal-table th {
  color: var(--text);
  background: var(--mint-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-table td {
  color: var(--muted);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-table td:first-child {
  color: var(--text);
  font-weight: 650;
}

.legal-callout {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: 0 7px 7px 0;
  color: var(--muted);
  background: var(--mint-soft);
  font-size: 0.86rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.legal-callout strong {
  color: var(--text);
}

.legal-footer {
  margin-top: 58px;
}

/* ---------- checkout consent ---------- */

.checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 15px 0 2px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
  text-align: left;
}

.checkout-consent input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.checkout-consent span {
  min-width: 0;
}

.checkout-consent a {
  color: var(--accent);
  font-weight: 650;
  text-underline-offset: 2px;
}

.consent-error {
  margin: 8px 0 0;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 28px;
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
  }

  .legal-toc strong {
    width: 100%;
    margin: 0 0 2px;
  }

  .legal-toc a {
    padding: 4px 7px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.7rem;
  }

  .legal-toc a:hover,
  .legal-toc a:focus-visible {
    border-color: var(--border-strong);
  }

  .legal-content {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .legal-main {
    width: calc(100% - 28px);
    padding-top: 38px;
  }

  .legal-hero {
    padding-bottom: 28px;
  }

  .legal-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.65rem);
  }

  .legal-section {
    padding-bottom: 28px;
  }

  .legal-section + .legal-section {
    padding-top: 27px;
  }

  .legal-section p,
  .legal-list {
    font-size: 0.88rem;
    line-height: 1.72;
  }

  .legal-footer {
    margin-top: 42px;
  }

  .legal-nav .btn-small {
    display: none;
  }

  .legal-nav-links {
    display: flex;
    gap: 2px;
  }
}

@media (max-width: 430px) {
  .legal-nav-links {
    display: flex;
  }

  .legal-nav-links a {
    padding-inline: 7px;
    font-size: 0.76rem;
  }

  .legal-toc {
    gap: 5px;
  }

  .legal-toc a {
    font-size: 0.66rem;
  }
}
