/* MarginWatch shared styles */
:root {
  --panel: #0b1020;
  --section: #0f172a;
  --surface: #09111f;
  --border: #1f2937;
  --text: #ffffff;
  --muted: #94a3b8;
  --subtle: #64748b;
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1120px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(245, 158, 11, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at top right,
      rgba(34, 197, 94, 0.08),
      transparent 24%
    ),
    linear-gradient(180deg, #0a0f1f 0%, #0d1326 100%);
  line-height: 1.7;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.site-header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn,
.nav-cta,
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary,
.nav-cta {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  box-shadow: 0 14px 36px rgba(217, 119, 6, 0.24);
}

.btn-primary:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  color: white;
}

.btn-secondary,
.btn-ghost {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

main {
  display: block;
}

.hero-section {
  padding: 36px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #f8c25a;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
  max-width: 640px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.meta-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 14px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.micro {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.18),
    transparent 68%
  );
  pointer-events: none;
}

.browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: var(--surface);
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.browser-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding: 16px;
}

.amazon-mock,
.panel-box {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.amazon-mock {
  padding: 16px;
  min-height: 420px;
}

.product-title {
  width: 78%;
  height: 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  margin-bottom: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

.product-image {
  min-height: 240px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.rows {
  display: grid;
  gap: 10px;
}

.row {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.row.short {
  width: 58%;
}
.row.mid {
  width: 78%;
}
.row.long {
  width: 100%;
}

.panel-box {
  padding: 18px;
}

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

.panel-title {
  font-weight: 700;
}

.kpi {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  margin-bottom: 12px;
}

.kpi-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
}

.kpi-positive {
  color: #86efac;
  font-size: 13px;
  margin-top: 6px;
}

.section {
  padding: 30px 0;
}

.section-title {
  font-size: 34px;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 760px;
  margin: 0 0 24px;
}

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

.feature-card,
.step,
.waitlist-card,
.toc,
.policy-card,
.policy-hero-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.feature-card,
.step {
  padding: 22px;
}

.feature-card h3,
.step h3,
.waitlist-card h3,
.policy-card h2,
.toc h2 {
  margin: 0 0 10px;
}

.feature-card p,
.step p,
.waitlist-card p,
.policy-card p,
.policy-card li,
.toc a {
  color: var(--muted);
}

.feature-card p,
.step p,
.waitlist-card p,
.policy-card p,
.policy-card li {
  line-height: 1.65;
}

.step-no {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.22);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #f8c25a;
  margin-bottom: 16px;
}

.waitlist-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.waitlist-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.waitlist-copy h3 {
  margin: 0 0 10px;
}

.waitlist-copy p {
  margin: 0;
  color: var(--muted);
}

.waitlist-form {
  display: grid;
  gap: 16px;
}

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

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.waitlist-form .btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.form-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--subtle);
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--subtle);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.waitlist-form .btn-primary {
  justify-self: start;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .waitlist-form .btn-primary {
    width: 100%;
    justify-self: stretch;
  }
}

.policy-layout {
  padding: 36px 0 80px;
}

.policy-hero-card {
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
}

.policy-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(245, 158, 11, 0.16),
    transparent 68%
  );
  pointer-events: none;
}

.policy-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  padding: 22px;
}

.toc a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
}

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

.policy-card {
  padding: 28px;
}

.policy-card section + section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.policy-card h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.policy-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.policy-card strong {
  color: var(--text);
}

.callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: #ffd89a;
  font-size: 14px;
}

.site-footer {
  padding: 34px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--muted);
}

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

@media (max-width: 980px) {
  .hero-grid,
  .feature-grid,
  .step-grid,
  .waitlist-card,
  .browser-body,
  .product-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .hero-copy,
  .section-copy {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-section,
  .policy-layout {
    padding-top: 28px;
  }

  .hero-card,
  .policy-hero-card,
  .policy-card,
  .toc {
    padding: 20px;
    border-radius: 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-copy,
  .section-copy {
    font-size: 16px;
  }
}
