:root {
  --ink: #102131;
  --muted: #667482;
  --line: #dbe1e6;
  --paper: #f4f6f7;
  --card: #fff;
  --gold: #d6a73f;
  --gold-bright: #e7b650;
  --probe: #a66808;
  --navy: #0c1b2a;
  --navy-soft: #102c40;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button, input, select { font: inherit; }
.hidden { display: none !important; }

/* Top bar */
.topbar {
  background: var(--navy);
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--gold);
}
.topbar-inner {
  max-width: 1500px;
  margin: auto;
  padding: 13px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}
.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.brand-mark {
  height: 42px;
  width: auto;
  display: block;
}
.nav-money {
  background: rgba(231, 182, 80, 0.16);
  border-color: rgba(231, 182, 80, 0.55);
  color: #fff;
  font-weight: 800;
}
.nav-money:hover { background: rgba(231, 182, 80, 0.28); }
.nav-quiet {
  color: #b7c4cc;
  font-weight: 500;
}
a.brand { color: inherit; text-decoration: none; }
.brand b { color: var(--gold-bright); }
.nav {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.nav-btn {
  background: transparent;
  color: #e8eef2;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-btn:hover { background: rgba(255,255,255,0.08); }
.nav-btn.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.services-btn.active {
  background: var(--gold);
  color: var(--navy);
}
.account-spacer { justify-self: end; }

/* Main */
main {
  max-width: 1500px;
  margin: auto;
  padding: 24px;
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.intro h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  margin: 0 0 8px;
  letter-spacing: -0.05em;
}
.intro p {
  margin: 0;
  color: var(--muted);
  max-width: 660px;
}
.count {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Controls */
.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(140px, 190px));
  gap: 10px;
  margin-bottom: 18px;
  position: sticky;
  top: 67px;
  z-index: 15;
  background: rgba(244, 246, 247, 0.96);
  padding: 10px 0;
  backdrop-filter: blur(8px);
}
.controls input,
.controls select {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd3da;
  background: white;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
}

/* Deal grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #c5ced6;
  box-shadow: 0 8px 24px rgba(16, 33, 49, 0.08);
}
.card-header {
  padding: 16px 18px 12px;
  border-top: 4px solid var(--gold);
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.verdict {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--probe);
}
.badge {
  font-size: 0.72rem;
  background: #eef2f5;
  color: #4a5c6a;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
}
.category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #e8f0f4;
  color: #2a4a5c;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 8px;
}
.card h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.location {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-chip {
  background: linear-gradient(120deg, #1b3a4d, #3d6a7a);
  color: #f3efe4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 18px 16px 16px;
  min-height: 56px;
}
.btn-soft {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid #9cb6c3;
  color: var(--navy, #102c40);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  background: #fff;
}
.after-trust { margin: 24px 0 8px; }
.after-trust summary { cursor: pointer; font-weight: 700; }
.after-trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
@media (max-width: 700px) { .after-trust-grid { grid-template-columns: 1fr; } }
.price-row {
  padding: 10px 18px 8px;
  border-top: 1px solid var(--line);
}
.price-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.price-value {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-top: 2px;
  color: #3d5160;
}
.profit-row {
  padding: 8px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7fbf7;
}
.profit-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #2d5a3d;
  text-transform: uppercase;
}
.profit-value {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 2px;
  color: #14331f;
}
.profit-yield {
  font-size: 0.88rem;
  font-weight: 700;
  color: #2d5a3d;
  margin-top: 2px;
}

/* Four financial boxes — locked order */
.fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  margin: 0;
}
.fin-cell {
  background: #f7f9fa;
  padding: 12px 14px;
}
.fin-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6b7c8a;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.fin-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}
.fin-value.members {
  color: #8a9aaa;
  font-style: italic;
  font-weight: 600;
}

.card-body {
  padding: 14px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.note {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}
.why {
  font-size: 0.9rem;
  margin: 0;
}
.why strong { font-weight: 700; }
.demand {
  background: #eef5f8;
  border-left: 3px solid #7aa0b5;
  padding: 10px 12px;
  font-size: 0.86rem;
  color: #2c4452;
  border-radius: 0 6px 6px 0;
}
.critical {
  font-size: 0.86rem;
  color: #8a5a12;
  margin: 0;
}
.card-actions {
  padding: 0 18px 18px;
}
.btn-deep {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-deep:hover { background: #16304a; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 22px 20px;
  border-top: 4px solid var(--gold);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 33, 49, 0.08);
}
.service-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}
.fee {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}
.service-card p { margin: 0 0 10px; font-size: 0.92rem; }
.detail-callout {
  background: #f0f5f8;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.86rem;
  color: #3a5260;
  margin-bottom: 12px;
}
.service-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 !important;
}

/* Dialog */
dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
dialog::backdrop { background: rgba(12, 27, 42, 0.45); }
.dialog-inner {
  padding: 28px 28px 24px;
  position: relative;
}
.close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
#serviceBody h2 { margin: 0 0 8px; }
#serviceBody .fee { margin-bottom: 12px; }
#serviceBody .service-note { margin-top: 16px; }

/* Responsive */
@media (max-width: 1100px) {
  .controls {
    grid-template-columns: 1fr 1fr;
  }
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: center;
  }
  .nav { justify-content: center; }
  .brand { justify-self: center; }
}
@media (max-width: 640px) {
  .controls {
    grid-template-columns: 1fr;
  }
  .intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}

.pay-link {
  display: inline-block;
  margin-top: 4px;
  padding: 8px 14px;
  background: #0c1b2a;
  color: #fff !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}
.pay-link:hover { background: #102c40; }

.site-footer {
  max-width: 1100px;
  margin: 40px auto 24px;
  padding: 0 20px 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer a { color: var(--navy); }

.account { justify-self: end; display: flex; align-items: center; gap: 8px; }
.member-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
.member-badge {
  background: var(--gold);
  color: #102131;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}
#memberForm { display: flex; gap: 8px; margin-top: 12px; }
#memberForm input { flex: 1; padding: 8px 10px; }
#memberForm button {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.card.is-member .fin-value.members { color: var(--ink); }

.shop-cta { margin: 18px 0 0; }
.shop-cta .pay-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0c1b2a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 22px;
  border-radius: 10px;
}
.shop-cta .pay-mark {
  height: 28px;
  width: auto;
}
.sample-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 700;
  color: #586b77;
}

.shop-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.15fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 16px;
}
.shop-pitch h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.shop-pitch p { margin: 0 0 10px; color: #3a4d59; }
.shop-pitch .price-line {
  font-size: 1.12rem;
  color: var(--ink);
  margin: 14px 0 6px;
}
.shop-pitch .price-line b { font-size: 1.35rem; }
.shop-examples .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-card .card-header { padding: 12px 14px 8px; }
.demo-card h2 { font-size: 1.02rem; }
.demo-card .card-chip { min-height: 0; padding: 10px 14px; }
.demo-card .profit-row, .demo-card .price-row { padding: 10px 14px; }
.demo-card .card-actions { padding: 12px 14px 14px; }
@media (max-width: 980px) {
  .shop-split { grid-template-columns: 1fr; }
  .shop-examples .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .shop-examples .grid { grid-template-columns: 1fr; }
}
