/* BrowseWell design system — focus-first, human, no AI slop */

:root {
  /* Background */
  --bg: #080c12;
  --bg-elevated: #0f141c;
  --bg-elevated-2: #151b25;
  --bg-elevated-3: #1c2330;

  /* Text */
  --text: #f0f4f8;
  --text-secondary: #9ba3af;
  --text-tertiary: #6b7280;

  /* Accent */
  --accent: #2dd4a8;
  --accent-hover: #34d399;
  --accent-soft: rgba(45, 212, 168, 0.12);
  --accent-soft-2: rgba(45, 212, 168, 0.06);

  /* Founder accent */
  --founder: #f59e0b;
  --founder-soft: rgba(245, 158, 11, 0.12);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.32), 0 2px 4px -2px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.28);
  --shadow-glow: 0 0 40px rgba(45, 212, 168, 0.08);

  /* Spacing */
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1040px;
  --max-width-prose: 720px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.25s;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout utilities */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-prose {
  max-width: var(--max-width-prose);
}

.section {
  padding: 96px 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 16px;
  text-align: center;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  line-height: 1.65;
}

.text-center {
  text-align: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-out),
              background-color var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--accent);
  color: #042f2e;
  box-shadow: 0 0 0 0 rgba(45, 212, 168, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #042f2e;
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-elevated-2);
  border-color: var(--border-strong);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 18, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo:hover {
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-weight: 800;
  font-size: 1.1rem;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(45, 212, 168, 0.12) 0%, rgba(45, 212, 168, 0) 60%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero .lead {
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.hero-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Problem */

.problem {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  gap: 24px;
}

.problem-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.problem-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Features */

.features-grid {
  display: grid;
  gap: 24px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--duration) var(--ease-out),
              border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

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

.feature-card.featured {
  border-color: rgba(45, 212, 168, 0.35);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--accent-soft-2) 100%);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How it works */

.how-it-works {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-number {
  position: absolute;
  top: -14px;
  left: 28px;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #042f2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.step h3 {
  font-size: 1.15rem;
  margin: 12px 0 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Pricing */

.pricing-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}

.price-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.price-card.recommended {
  border-color: rgba(45, 212, 168, 0.4);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow-glow);
}

.price-card.founder {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--founder-soft) 100%);
}

.recommended-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #042f2e;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
}

.price-card .label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.price-card.founder .label {
  color: var(--founder);
}

.price-card .amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.price-card .amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.price-card .period {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.price-card ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232dd4a8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
}

.price-card.founder li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

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

.guarantee {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Trust */

.trust {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.trust-item {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.trust-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--text);
}

.trust-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* FAQ */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-list summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background-color var(--duration) var(--ease-out);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239ba3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  transition: transform var(--duration) var(--ease-out);
}

.faq-list details[open] summary::after {
  transform: rotate(180deg);
}

.faq-list details[open] summary {
  background: var(--bg-elevated-2);
}

.faq-list p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Final CTA */

.final-cta {
  text-align: center;
  position: relative;
}

.final-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(45, 212, 168, 0.1) 0%, rgba(45, 212, 168, 0) 65%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.final-cta .lead {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.site-footer p {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* Prose pages (privacy, refund, support, success) */

.page-header {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.prose {
  padding-bottom: 80px;
}

.prose h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 14px;
  color: var(--text);
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.prose p,
.prose li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-elevated-2);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prose th,
.prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.prose th {
  background: var(--bg-elevated-2);
  color: var(--text);
  font-weight: 600;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Success page */

.success-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent);
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
}

.success-card h1 {
  margin-bottom: 12px;
}

.success-card p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.success-steps {
  text-align: left;
  max-width: 480px;
  margin: 0 auto 28px;
  padding-left: 20px;
}

.success-steps li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.55;
}

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */

@media (min-width: 560px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .nav-cta {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 80px 0 72px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .nav-links {
    gap: 16px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .price-card {
    padding: 24px;
  }
}
