:root {
  --bg: #101625;
  --bg2: #1a2335;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.04);
  --border: rgba(148, 163, 184, 0.16);
  --text: #e7eaff;
  --text-dim: rgba(231, 234, 255, 0.72);
  --text-soft: rgba(231, 234, 255, 0.6);

  --accent: #ff8a2a;
  --accent2: rgba(255, 138, 42, 0.18);
  --accent-ink: #ffd2b2;

  --cyan: #22d3ee;
  --cyan2: rgba(34, 211, 238, 0.14);

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
}

button,
input {
  font-family: inherit;
}

.page {
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 18, 0.7);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mobile-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.nav {
  margin-right: auto;
}
.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.menu-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
}
.menu-ico {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}
.brand-title {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 15px;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(90deg, #fff, var(--accent-ink), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 10px 24px rgba(255, 138, 42, 0.35);
}
body[data-theme="light"] .brand-title {
  color: transparent;
  background: linear-gradient(90deg, #0b1220, #f97316, #0b1220);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 8px 18px rgba(249, 115, 22, 0.25);
}
.brand-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  transition: transform 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
}
.nav-label {
  font-weight: 700;
  line-height: 1.1;
}
.nav-sub {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}
.nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.22);
}
.nav-btn[data-active="true"] {
  color: #fff;
  border-color: rgba(255, 138, 42, 0.38);
  background: rgba(255, 138, 42, 0.12);
}

.theme-btn {
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  padding: 9px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.credits-label {
  color: var(--text-dim);
  font-size: 12px;
}
.credits-value {
  font-weight: 800;
}
.text-danger {
  color: #fb7185;
}

.hero {
  padding: 48px 18px 12px;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.hero-copy {
  text-align: center;
}
.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hero-kicker-sub {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}
.hero-title {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1.05;
  margin: 12px 0 12px;
}
.hero-title + .section-title {
  margin-top: 20px;
}
.hero-subline {
  margin-top: 10px;
  font-size: 16px;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.hero-statements {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.statement {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.035);
}
.statement-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}
.statement-sub {
  margin-top: 4px;
  color: var(--text-dim);
}
.text-block {
  color: var(--text-dim);
  line-height: 1.6;
  margin-top: 6px;
  margin-bottom: 14px;
}
.clean-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 8px;
}
.clean-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--text-dim);
}
.clean-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}
.product-block {
  margin-top: 10px;
}
.product-title {
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}
.product-text {
  color: var(--text-dim);
  line-height: 1.6;
}
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 10px;
}
.split-col .section-title.minor-title {
  margin-top: 0;
}
.accent {
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(255, 138, 42, 0.95),
    rgba(255, 138, 42, 0.55)
  );
  -webkit-background-clip: text;
  background-clip: text;
}
.accent-line {
  display: block;
  margin-top: 6px;
}
.accent-strong {
  position: relative;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
  text-shadow: 0 10px 30px rgba(255, 138, 42, 0.28);
}
.accent-strong::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 2px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 138, 42, 0.3);
  z-index: -1;
  filter: blur(2px);
}
.hero-line {
  display: block;
}
.hero-desc {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 54ch;
  margin: 0 auto 18px;
}

.hero-formwrap {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}
.warning-banner {
  border-radius: 14px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.warning-title {
  font-weight: 800;
  margin-bottom: 4px;
}
.warning-text {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.4;
}

.input-row {
  display: flex;
  gap: 10px;
}
.input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.55);
  color: #fff;
  padding: 16px 16px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.input:focus {
  border-color: rgba(255, 138, 42, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 138, 42, 0.18);
}

.btn {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 138, 42, 1),
    rgba(255, 120, 24, 1)
  );
  border-color: rgba(255, 138, 42, 0.55);
  box-shadow: 0 10px 26px rgba(255, 138, 42, 0.25);
}
.btn.primary:hover {
  filter: brightness(1.02);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

.hero-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
}
.muted {
  color: var(--text-dim);
}

/* Mode switch */
.mode-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin: 12px 0 14px;
}
.mode-option {
  cursor: pointer;
  position: relative;
}
.mode-option input {
  display: none;
}
.mode-option span {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 11px;
  color: #cbd5f5;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease;
}
.mode-option input:checked + span {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}
.mode-option.premium input:checked + span {
  background: rgba(34, 211, 238, 0.14);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
  color: #67e8f9;
}
.mode-option::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.18s ease;
}
.mode-option:hover::after {
  border-color: rgba(255, 255, 255, 0.18);
}
body[data-theme="light"] .mode-switch {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(15, 23, 42, 0.12);
}
body[data-theme="light"] .mode-option span {
  color: rgba(15, 23, 42, 0.7);
}
body[data-theme="light"] .mode-option input:checked + span {
  background: rgba(249, 115, 22, 0.14);
  color: #0b1220;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.hero-badges {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.035);
  justify-content: center;
  width: 210px;
}
.badge-ico {
  font-size: 18px;
}
.badge-title {
  font-weight: 700;
  font-size: 13px;
}
.badge-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  margin: 18px 0 6px;
}
.story-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.story-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}
.story-title {
  font-weight: 800;
  margin-bottom: 8px;
}
.story-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.story-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--text-dim);
}
.story-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}
.story-text {
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.service-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.035);
}
.service-ico {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 138, 42, 0.16);
  border: 1px solid rgba(255, 138, 42, 0.25);
  font-size: 16px;
}
.service-title {
  font-weight: 800;
  margin-bottom: 6px;
}
.service-text {
  color: var(--text-dim);
  line-height: 1.45;
}
.hero-split {
  grid-template-columns: 1.1fr 0.9fr;
}
.hero-left {
  text-align: left;
}
.prompt-card {
  padding: 16px;
}
.input-area {
  min-height: 140px;
  resize: vertical;
}
.prompt-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}
.prompt-actions .btn.primary {
  width: auto;
}
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(148, 163, 184, 0.3);
}
.quick-card .glass-line {
  font-size: 13px;
}
.glass-card {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}
.glass-title {
  font-weight: 800;
  margin-bottom: 10px;
}
.glass-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  margin: 6px 0;
  font-size: 13px;
}
.glass-foot {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-soft);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  display: inline-block;
}
.dot.green {
  background: rgba(34, 197, 94, 0.9);
}
.dot.amber {
  background: rgba(250, 204, 21, 0.9);
}
.dot.cyan {
  background: rgba(34, 211, 238, 0.9);
}

.content {
  padding: 26px 18px 40px;
}
.content-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
  align-items: start;
}
.content-inner.is-centered {
  grid-template-columns: 1fr;
  justify-items: center;
}
.center-stack {
  display: grid;
  justify-items: center;
  width: 100%;
}
.section-title {
  width: 100%;
  max-width: 720px;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 10px;
}
.section-title.minor-title {
  max-width: none;
  font-size: 16px;
  margin-top: 12px;
}

.card {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.pdf-actions {
  width: 100%;
  max-width: 720px;
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.pdf-btn {
  width: auto;
  padding: 10px 16px;
}

.pdf-report {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 820px;
  background: #ffffff;
  color: #0b1220;
  padding: 32px;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
}
.pdf-report.exporting {
  left: 0;
  top: 0;
  transform: none;
  z-index: 999;
  visibility: visible;
  opacity: 1;
}
.pdf-report h1 {
  font-size: 28px;
  margin: 0 0 6px;
}
.pdf-report h2 {
  font-size: 18px;
  margin: 18px 0 8px;
}
.pdf-report .pdf-muted {
  color: rgba(15, 23, 42, 0.65);
  font-size: 12px;
}
.pdf-report .pdf-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pdf-report .pdf-pill {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-block;
  font-size: 12px;
}
.result-card img {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.result-body {
  margin-top: 12px;
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.result-summary {
  font-size: 16px;
  line-height: 1.5;
}
.uncertain-note {
  display: none;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(248, 113, 113, 0.4);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.08);
  font-size: 13px;
  line-height: 1.4;
}
.result-body.uncertain .uncertain-note {
  display: block;
}
.result-body.uncertain .price-pill,
.result-body.uncertain .result-grid,
.result-body.uncertain .result-subgrid,
.result-body.uncertain .result-meta {
  display: none;
}
.price-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.35);
  font-weight: 700;
  font-size: 12px;
  text-transform: capitalize;
}
.price-pill.rimligt {
  border-color: rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
}
.price-pill.hogt {
  border-color: rgba(250, 204, 21, 0.6);
  color: #fde68a;
}
.price-pill.forhogt {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecaca;
}
.price-pill.bra {
  border-color: rgba(34, 197, 94, 0.6);
  color: #86efac;
}
.result-grid,
.result-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.result-h {
  font-weight: 800;
  margin-bottom: 8px;
}
.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.result-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 8px;
  align-items: start;
  color: var(--text-dim);
}
.result-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}
.result-note {
  color: var(--text-dim);
  line-height: 1.45;
}
.result-meta .meta-pill {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.35);
  font-size: 12px;
}
.upsell-card {
  margin-top: 14px;
  background: linear-gradient(
    120deg,
    rgba(255, 138, 42, 0.12),
    rgba(34, 211, 238, 0.08)
  );
}
.upsell-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  flex-wrap: wrap;
}
.upsell-title {
  font-weight: 800;
  margin-bottom: 6px;
}
.upsell-cta {
  text-decoration: none;
  width: auto;
  padding: 9px 14px;
  font-size: 13px;
}
.contact-card {
  max-width: 720px;
}
.contact-intro {
  max-width: 720px;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.5;
}
.contact-head {
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.5;
}
.contact-form {
  display: grid;
  gap: 12px;
}
.contact-row {
  display: grid;
  gap: 8px;
}
.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}
.contact-btn {
  width: auto;
  align-self: flex-start;
}
.result-main-line {
  font-size: 16px;
  margin-top: 6px;
}
.result-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 13px;
}
.result-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.35);
}

.metric {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1.2;
  padding: 7px 32px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.35);
}
.metric > span {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.info-icon {
  position: relative;
  cursor: help;
  opacity: 0.9;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.35);
  border-radius: 999px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex: 0 0 auto;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}
.info-icon::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
  white-space: normal;
  z-index: 5;
}
.info-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(2, 6, 23, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease;
  pointer-events: none;
  z-index: 5;
}
.info-icon:hover::after,
.info-icon:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}
body[data-theme="light"] .info-icon::after {
  background: rgba(255, 255, 255, 0.95);
  color: #0b1220;
  border-color: rgba(15, 23, 42, 0.16);
}
body[data-theme="light"] .info-icon::before {
  border-top-color: rgba(255, 255, 255, 0.95);
}

.ai-score-full {
  margin-top: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.35);
  border-radius: 16px;
  padding: 12px;
}
.ai-score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ai-score-title {
  font-weight: 800;
}
.ai-score-number {
  font-weight: 900;
  font-size: 18px;
}
.why-btn {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.ai-score-sub {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 13px;
}

.ai-bar {
  margin-top: 10px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.ai-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.why-box {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 12px;
}
.why-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.bar-chart {
  margin-top: 10px;
}

.advice-card p {
  margin: 10px 0;
}
.advice-card strong {
  color: #fff;
}

.skeleton {
  padding: 6px 0;
}
.sk-line {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  margin: 10px 0;
}
.w60 {
  width: 60%;
}
.w75 {
  width: 75%;
}
.w90 {
  width: 90%;
}

.account-panel .card {
  max-width: 600px;
}
.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.account-title {
  font-weight: 900;
  font-size: 16px;
}
.account-section {
  margin-top: 14px;
}
.account-subtitle {
  font-weight: 800;
  margin-bottom: 8px;
}
.history ul {
  padding-left: 16px;
  margin: 8px 0 0;
}
.history li {
  margin: 8px 0;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

.how {
  padding: 22px 18px 52px;
}
.how-inner {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 22px;
}
.how-title {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 12px;
  text-align: center;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2px;
  row-gap: 32px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
  grid-auto-rows: 1fr;
}
.how-card {
  display: flex;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.035);
  min-height: 110px;
  max-width: 460px;
  justify-self: center;
  width: 100%;
  height: 100%;
}
.how-card.example-card {
  flex-direction: column;
  gap: 8px;
}
.how-step {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(255, 138, 42, 0.16);
  border: 1px solid rgba(255, 138, 42, 0.25);
}
.how-h {
  font-weight: 800;
  margin-bottom: 10px;
  min-height: 18px;
  font-size: 15px;
}
.how-text .muted {
  line-height: 1.45;
  font-size: 14px;
}
.how-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.how-list li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 8px;
  align-items: start;
}
.how-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}
body[data-theme="light"] .how-list li::before {
  background: rgba(15, 23, 42, 0.3);
}
.how-note {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 12px;
}

.footer {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 12px;
}

/* Light theme (optional) */
body[data-theme="light"] {
  --bg: #e8ecf3;
  --bg2: #f1f3f7;
  --text: #0b1220;
  --text-dim: rgba(11, 18, 32, 0.72);
  --text-soft: rgba(11, 18, 32, 0.56);
  --card: rgba(11, 18, 32, 0.06);
  --card2: rgba(11, 18, 32, 0.04);
  --border: rgba(15, 23, 42, 0.12);
  --accent: #f97316;
  --accent2: rgba(249, 115, 22, 0.18);
  --accent-ink: #c2410c;
  --cyan: #0ea5e9;
  --cyan2: rgba(14, 165, 233, 0.14);
  background-color: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(
      900px 700px at 15% 10%,
      rgba(255, 138, 42, 0.16) 0%,
      rgba(255, 138, 42, 0.1) 40%,
      rgba(255, 138, 42, 0.05) 65%,
      transparent 85%
    ),
    radial-gradient(
      1050px 760px at 85% 0%,
      rgba(34, 211, 238, 0.12) 0%,
      rgba(34, 211, 238, 0.08) 40%,
      rgba(34, 211, 238, 0.04) 65%,
      transparent 85%
    ),
    radial-gradient(
      620px 620px at 90% 80%,
      rgba(148, 163, 184, 0.08) 0%,
      rgba(148, 163, 184, 0.05) 45%,
      rgba(148, 163, 184, 0.02) 70%,
      transparent 88%
    );
}
body[data-theme="light"]::before {
  background-image: radial-gradient(
      900px 700px at 15% 10%,
      rgba(249, 115, 22, 0.12) 0%,
      rgba(249, 115, 22, 0.08) 40%,
      rgba(249, 115, 22, 0.04) 65%,
      transparent 85%
    ),
    radial-gradient(
      1050px 760px at 85% 0%,
      rgba(14, 165, 233, 0.1) 0%,
      rgba(14, 165, 233, 0.07) 40%,
      rgba(14, 165, 233, 0.04) 65%,
      transparent 85%
    ),
    radial-gradient(
      620px 620px at 90% 80%,
      rgba(148, 163, 184, 0.1) 0%,
      rgba(148, 163, 184, 0.06) 45%,
      rgba(148, 163, 184, 0.03) 70%,
      transparent 88%
    );
}

body::before {
  content: none;
}
body[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.7);
}
body[data-theme="light"] .topbar,
body[data-theme="light"] .nav-btn,
body[data-theme="light"] .theme-btn,
body[data-theme="light"] .credits-pill,
body[data-theme="light"] .hero-formwrap,
body[data-theme="light"] .badge,
body[data-theme="light"] .glass-card,
body[data-theme="light"] .card,
body[data-theme="light"] .how-card {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
body[data-theme="light"] .story-card,
body[data-theme="light"] .contact-card {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
body[data-theme="light"] .clean-list li::before {
  background: rgba(15, 23, 42, 0.3);
}
body[data-theme="light"] .statement {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
body[data-theme="light"] .service-card {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
body[data-theme="light"] .story-list li::before {
  background: rgba(15, 23, 42, 0.3);
}
body[data-theme="light"] .input {
  background: rgba(255, 255, 255, 0.9);
  color: #0b1220;
  border-color: rgba(15, 23, 42, 0.16);
}
body[data-theme="light"] .result-meta span,
body[data-theme="light"] .ai-score-full,
body[data-theme="light"] .why-box {
  background: rgba(255, 255, 255, 0.75);
}
body[data-theme="light"] .metric {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
}
body[data-theme="light"] .info-icon {
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: #0b1220;
}
body[data-theme="light"] .nav-btn[data-active="true"] {
  color: #0b1220;
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.12);
}
body[data-theme="light"] .btn.primary {
  background: linear-gradient(180deg, #f97316, #ea580c);
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.22);
}
body[data-theme="light"] .accent-strong {
  text-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}
body[data-theme="light"] .accent-strong::after {
  background: rgba(249, 115, 22, 0.2);
}
body[data-theme="light"] .chip {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.7);
}
body[data-theme="light"] .warning-banner {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
}
body[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.12);
}
body[data-theme="light"] .theme-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.12);
  color: #0b1220;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
body[data-theme="light"] .credits-pill {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.12);
}
body[data-theme="light"] .advice-card strong {
  color: #0b1220;
}
body[data-theme="light"] .price-pill {
  background: rgba(255, 255, 255, 0.9);
  color: #0b1220;
}
body[data-theme="light"] .result-list li::before {
  background: rgba(15, 23, 42, 0.3);
}
body[data-theme="light"] .upsell-card {
  background: linear-gradient(
    120deg,
    rgba(249, 115, 22, 0.12),
    rgba(14, 165, 233, 0.08)
  );
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    justify-content: flex-start;
  }
  .hero-badges {
    grid-template-columns: 1fr;
  }
  .content-inner {
    grid-template-columns: 1fr;
  }
  .account-panel .card {
    max-width: 720px;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .hero-split {
    grid-template-columns: 1fr;
  }
  .result-grid,
  .result-subgrid {
    grid-template-columns: 1fr;
  }
  .topbar-left {
    flex-wrap: wrap;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .nav {
    flex-wrap: wrap;
  }
  .nav-btn {
    min-width: 150px;
  }
}
@media (max-width: 520px) {
  .topbar-inner {
    position: relative;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-copy {
    text-align: left;
  }
  .hero-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
  }
  .hero-desc {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .hero-formwrap {
    padding: 12px;
  }
  .hero-note {
    line-height: 1.4;
  }
  .mode-switch {
    align-self: center;
  }
  .hero-badges {
    flex-direction: column;
    align-items: stretch;
  }
  .badge {
    width: 100%;
    max-width: none;
  }
  .badge-text {
    flex: 1;
  }
  .input-row {
    flex-direction: column;
  }
  .btn.ghost {
    width: 100%;
  }
  .prompt-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .prompt-actions .btn.primary {
    width: 100%;
  }
  .topbar-inner {
    gap: 10px;
  }
  .topbar-left {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    width: 100%;
  }
  .nav-btn {
    width: 86%;
    align-self: center;
    align-items: center;
    text-align: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }
  .topbar-actions {
    width: 100%;
  }
  .menu-toggle {
    display: inline-flex;
    position: absolute;
    right: 14px;
    top: 12px;
    width: auto;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }
  .credits-pill,
  .theme-btn {
    width: 100%;
  }
  .credits-pill {
    width: 86%;
    align-self: center;
    justify-content: center;
    padding: 12px 14px;
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.45);
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.2);
  }
  .theme-btn {
    width: 86%;
    align-self: center;
    text-align: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.12);
    color: var(--text-dim);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }
  .nav-sub {
    font-size: 11px;
  }
  .mobile-menu {
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(env(safe-area-inset-top, 0px) + 52px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(7, 10, 18, 0.92);
    backdrop-filter: blur(14px);
    max-height: 0;
    opacity: 0;
    transform: translateY(6px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.2s ease,
      transform 0.2s ease;
  }
  body[data-menu="open"] .mobile-menu {
    max-height: 520px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-menu .nav,
  .mobile-menu .topbar-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  body[data-menu="open"] .menu-toggle {
    transform: translateY(1px) scale(1.03);
  }
  body[data-menu="open"] .menu-ico {
    transform: rotate(90deg);
  }
}
