/* MyNextSpot — Minimalist, Calm, Accessible Public Site Stylesheet (Mobile-first 360px+) */

:root {
  --font-heading: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Single refined accent (Indigo 700 — WCAG AAA on white & #f8fafc) */
  --accent: #4338ca;
  --accent-hover: #3730a3;
  --accent-ink: #3730a3;
  --accent-soft: #eef2ff;
  --accent-border: #c7d2fe;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px -12px rgba(15, 23, 42, 0.12);
  --container-max: 1120px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120;
    --surface: #111827;
    --surface-subtle: #162033;
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --border: #1e293b;
    --border-strong: #334155;

    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-ink: #c7d2fe;
    --accent-soft: rgba(99, 102, 241, 0.16);
    --accent-border: rgba(165, 180, 252, 0.35);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 14px 32px -12px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-subtle: #162033;
  --ink: #f8fafc;
  --muted: #cbd5e1;
  --border: #1e293b;
  --border-strong: #334155;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-ink: #c7d2fe;
  --accent-soft: rgba(99, 102, 241, 0.16);
  --accent-border: rgba(165, 180, 252, 0.35);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 32px -12px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@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: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  overflow-x: clip;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

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

@media (min-width: 640px) {
  .container { padding-inline: 24px; }
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.header-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.select-wrap {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.country-select {
  min-height: 44px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 639px) {
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }
  .select-wrap {
    flex: 1 1 140px;
  }
  .country-select {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .header-inner { flex-wrap: nowrap; }
  .header-controls { flex-wrap: nowrap; }
  .country-select { max-width: 185px; }
}

.ca-lang-toggle {
  display: none;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.ca-lang-toggle.is-visible {
  display: inline-flex;
}

.ca-lang-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.ca-lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #ffffff;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.desktop-nav a:hover {
  color: var(--ink);
  background: var(--surface-subtle);
}

.header-cta {
  display: none;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 16px 20px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer a.nav-item-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.mobile-drawer a.nav-item-link:hover {
  background: var(--surface-subtle);
}

.mobile-drawer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 959px) {
  .btn.header-cta {
    display: none;
  }
}

@media (min-width: 960px) {
  .menu-toggle,
  .mobile-drawer {
    display: none !important;
  }
  .desktop-nav {
    display: block;
  }
  .btn.header-cta {
    display: inline-flex;
  }
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-subtle);
}

.btn-block {
  width: 100%;
}

/* ── Sections & Typography ──────────────────────────────── */

.section {
  padding-block: 56px;
}

.section-subtle {
  background: var(--surface-subtle);
  border-block: 1px solid var(--border);
}

@media (min-width: 768px) {
  .section { padding-block: 80px; }
}

.section[hidden] {
  display: none !important;
}

.section-header {
  max-width: 700px;
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
}

.lead {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero-section {
  padding-block: 44px 56px;
}

@media (min-width: 900px) {
  .hero-section { padding-block: 72px 84px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 48px;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Device Frames & Labeled Placeholders ───────────────── */

.device-frame {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.device-frame--laptop .device-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.device-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.device-frame--phone {
  max-width: 320px;
  margin-inline: auto;
  border-width: 2px;
  border-radius: 28px;
  padding: 12px;
}

.device-phone-notch {
  width: 72px;
  height: 5px;
  border-radius: 999px;
  background: var(--border-strong);
  margin: 2px auto 12px;
}

.device-screen {
  position: relative;
  background: var(--surface-subtle);
  border-radius: 10px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.device-frame--phone .device-screen {
  min-height: 360px;
  border-radius: 18px;
}

.device-screen img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.screenshot-placeholder {
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.placeholder-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent-border);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.placeholder-text {
  margin: 0;
  font-size: 0.875rem;
  max-width: 30ch;
}

/* ── Grids & Cards ──────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-subtle);
  color: var(--muted);
  border: 1px solid var(--border);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-color: var(--accent-border);
}

/* ── Promos ─────────────────────────────────────────────── */

.empty-box {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.promo-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.promo-dates {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Plans ──────────────────────────────────────────────── */

.plans-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.plans-store-meta {
  font-size: 0.9375rem;
  color: var(--muted);
}

.plans-store-meta strong {
  color: var(--ink);
}

.plan-price-block {
  margin-block: 4px;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.plan-currency {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}

.plan-term {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}

.plan-courtesy {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.plan-card-footer {
  margin-top: auto;
  padding-top: 12px;
}

.extras-wrap {
  margin-top: 36px;
}

.extras-header {
  margin-bottom: 18px;
}

.variation-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.variation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  font-size: 0.875rem;
}

.variation-price {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ── Steps & Legal Callout ──────────────────────────────── */

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
}

.legal-note-box {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Clients Split ──────────────────────────────────────── */

.clients-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (min-width: 840px) {
  .clients-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
  }
}

.check-list {
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--accent-ink);
  font-weight: 800;
}

/* ── FAQ (Native accessible details/summary) ────────────── */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-ink);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.inline-legal-link {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-legal-link:hover {
  color: var(--ink);
}

/* ── Contact ────────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  word-break: break-word;
}

a.contact-value {
  color: var(--accent-ink);
  text-decoration: underline;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
}

.footer-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

.footer-legal-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  padding: 10px 14px;
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.footer-legal-note:empty {
  display: none;
}
