/* ========= Base & Layout ========= */

:root {
  --bg: #050816;
  --bg-soft: #0b1121;
  --card-bg: #0f172a;
  --card-elevated: #111827;

  --border-subtle: rgba(148, 163, 184, 0.4);

  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-strong: #0ea5e9;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;

  --danger: #f97373;

  /* Extra helpers */
  --glass: rgba(2, 6, 23, 0.55);
  --shadow-1: 0 18px 40px rgba(15, 23, 42, 0.95);
  --shadow-2: 0 22px 55px rgba(15, 23, 42, 0.75);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%);
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2.5rem;
}

/* ========= Header / Nav ========= */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #020617, rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.85),
    0 0 0 1px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0.75rem;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-image {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: contain;
  background: radial-gradient(circle at 30% 0, #38bdf8, #0f172a 65%);
  padding: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand {
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.tagline-small {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.21em;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.12s ease;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.6);
  transform: translateY(-1px);
}

.nav-link-current {
  color: var(--text-main);
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.4);
}

button.nav-link {
  background: transparent;
  border: none;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
}

/* ========= Typography ========= */

h1, h2, h3 {
  margin: 0;
  font-weight: 650;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.3rem, 3vw + 1rem, 3rem); }
h2 { font-size: clamp(1.6rem, 2.4vw + 0.6rem, 2rem); }
h3 { font-size: 1.1rem; }

.subtitle,
.section-subtitle,
.muted,
.footer-note {
  color: var(--text-muted);
}

.subtitle {
  margin-top: 0.75rem;
  max-width: 38rem;
}

/* ========= Buttons ========= */

.cta-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
}

.cta-button {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #0f172a;
  box-shadow:
    0 14px 30px rgba(56, 189, 248, 0.35),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.cta-button:hover {
  box-shadow:
    0 18px 40px rgba(56, 189, 248, 0.45),
    0 0 0 1px rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.cta-button:disabled {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.ghost-button {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.45);
}

.ghost-button:hover {
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
}

/* ========= Sections & Cards ========= */

.section {
  margin-top: 2.5rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-subtitle {
  margin-top: 0.5rem;
  max-width: 34rem;
  font-size: 0.92rem;
}

.cards-grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 55%);
  border-radius: 1.3rem;
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: var(--shadow-1);
  overflow: hidden; /* prevents badge/glow weirdness */
}

/* ========= Step cards ========= */

.steps-grid {
  display: grid;
  gap: 1.2rem;
}

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

.step-card {
  position: relative;
  padding-top: 2.4rem;
}

.step-number {
  position: absolute;
  top: 0.6rem;
  left: 1.25rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* ========= Lists ========= */

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0.4rem 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  top: 0;
  color: var(--accent);
}

/* ========= Pills / Labels ========= */

.pill-label {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(37, 99, 235, 0.06);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* ✅ PRICE PILL (single source of truth) */
.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: #e5e7eb;
}

/* Free */
.price-free {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.45);
}

/* CA$2 */
.price-basic {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

/* CA$9 */
.price-pro {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.5);
}

/* ========= Pro Highlight (Most Popular) ========= */

.card-pro{
  position: relative;
  overflow: visible;              /* ✅ allows badge to sit outside the card */
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.35),
    0 18px 45px rgba(251, 191, 36, 0.25);
}

.card-pro::before{
  content: "Most Popular";
  position: absolute;
  top: -0.85rem;                  /* ✅ push it further out */
  right: 1.25rem;
  z-index: 5;                      /* ✅ ensure it sits above everything */
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #fde68a);
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.45);
}

/* Slight lift effect */
.card-pro:hover {
  transform: translateY(-2px);
  transition: transform 0.15s ease;
}

/* ========= Inputs (global) ========= */

textarea,
select,
input {
  width: 100%;
  background: #020617;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--text-main);
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
  resize: vertical;
}

textarea:focus,
select:focus,
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Error text */
#error-message {
  font-size: 0.82rem;
  color: var(--danger);
}

/* ========= How it works + FAQ ========= */

.how-it-works {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: radial-gradient(circle at top left, rgba(0, 150, 255, 0.08), transparent 60%);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.how-it-works h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.how-it-works ol {
  padding-left: 1.25rem;
  margin: 0;
}

.how-it-works li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.faq-section {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 12, 30, 0.95);
}

.faq-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.faq-section details {
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  background: rgba(8, 18, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
}

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

.faq-section details[open] {
  background: rgba(8, 18, 50, 0.98);
}

.faq-section p,
.faq-section li {
  font-size: 0.9rem;
}

.faq-contact {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ========= Contact Modal ========= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.76);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal {
  background: radial-gradient(circle at top left, #1f2937 0, #020617 55%);
  border-radius: 1.2rem;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.75rem 1.4rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
}

.modal-email {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.modal-email:hover { text-decoration: underline; }

/* ========= Footer ========= */

.footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(51, 65, 85, 0.9);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a {
  color: #e5e7eb;
  text-decoration: none;
}

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

.footer-email { font-weight: 800; }
.footer-strong { font-weight: 800; }
