/* ─────────────────────────────────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────────────────────────────────── */
:root {
  --teal: #16A085;
  --teal-dark: #128a73;
  --teal-pale: #EAF6F2;

  --ink: #1A1D23;
  --ink-soft: #4A5568;
  --ink-faint: #8A94A6;

  --bg: #FFFFFF;
  --bg-soft: #F8F9FB;
  --border: #E3E7ED;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 1px 2px rgba(20, 30, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 30, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 30, 40, 0.12);

  --max-width: 1120px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-logo: "Arial Rounded MT Bold", "Arial Rounded MT", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  /* Intentionally light-only for now: a privacy tool reads as calm and
     clinical in daylight mode; dark mode is a later iteration. */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

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

/* ─────────────────────────────────────────────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────────────────────────────────────────────── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-inner-narrow {
  max-width: 760px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px;
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  height: 32px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--teal);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────────────────── */
.hero {
  padding: 88px 24px 64px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

.btn-hero {
  margin-top: 32px;
  padding: 15px 36px;
  font-size: 16px;
}

/* ─────────────────────────────────────────────────────────────────────────
   FEATURES
───────────────────────────────────────────────────────────────────────── */
.features {
  padding: 32px 24px 96px;
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature {
  text-align: center;
  padding: 0 12px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  border-radius: 50%;
}

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

.feature h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────────────
   VERSIONS / PRICING
───────────────────────────────────────────────────────────────────────── */
.versions {
  padding: 80px 24px;
  background: var(--bg-soft);
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.version-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.version-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.version-card-head {
  text-align: center;
  margin-bottom: 24px;
}

.version-card-head h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 4px;
}

.version-sub {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0;
}

.version-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.version-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.45;
}

.version-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
}

.version-card-upcoming .version-features li::before {
  background: var(--ink-faint);
}

.muted {
  color: var(--ink-faint);
}

.version-cta {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────────────────── */
.btn {
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--teal-dark);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--border);
}

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

.btn-upcoming {
  background: var(--bg-soft);
  color: var(--ink-faint);
  border: 1px solid var(--border);
  cursor: default;
}

/* ─────────────────────────────────────────────────────────────────────────
   HOW IT WORKS
───────────────────────────────────────────────────────────────────────── */
.how-it-works {
  padding: 80px 24px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
}

.step-placeholder {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-placeholder svg {
  width: 28px;
  height: 28px;
}

.step-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 12px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
}

/* ─────────────────────────────────────────────────────────────────────────
   FAQ ACCORDION
───────────────────────────────────────────────────────────────────────── */
.faq {
  padding: 80px 24px 100px;
  background: var(--bg-soft);
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.chevron {
  width: 18px;
  height: 18px;
  color: var(--ink-faint);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.accordion-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
  color: var(--teal);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.accordion-panel p {
  margin: 0 0 12px;
  padding: 0 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.accordion-panel p:first-child {
  padding-top: 0;
}

.accordion-panel p:last-child {
  margin-bottom: 0;
  padding-bottom: 20px;
}

/* ─────────────────────────────────────────────────────────────────────────
   ABOUT
───────────────────────────────────────────────────────────────────────── */
.about {
  padding: 80px 24px 96px;
}

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: flex;
  gap: 28px;
  align-items: stretch;
}

.about-accent {
  width: 4px;
  flex-shrink: 0;
  background: var(--teal);
  border-radius: 4px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-text p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: left;
}

/* ─────────────────────────────────────────────────────────────────────────
   CONTACT MODAL
───────────────────────────────────────────────────────────────────────── */
.modal-content-wide {
  max-width: 660px;
}

.contact-form {
  display: inline-flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
  width: calc(53ch + 16px);
}

.form-row-two {
  display: grid;
  grid-template-columns: 17ch 36ch;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-pale);
}

.form-group textarea {
  min-height: 110px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.form-status {
  font-size: 13.5px;
  margin: 0;
}

.form-status.success { color: var(--teal); }
.form-status.error   { color: #c0392b; }

@media (max-width: 520px) {
  .form-row-two { grid-template-columns: 1fr; }
  .contact-form { width: 100%; }
  .modal-content { padding: 20px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-faint);
}

.footer-inner p { margin: 0; }

.footer-inner a {
  text-decoration: none;
  color: var(--ink-faint);
}

.footer-inner a:hover {
  color: var(--teal);
}

/* ─────────────────────────────────────────────────────────────────────────
   MODAL
───────────────────────────────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 25, 30, 0.5);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal-content.modal-content-wide {
  max-width: calc(53ch + 16px + 64px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  border-radius: 50%;
}

.modal-close:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.modal-content h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
}

.modal-subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.modal-content input[type="email"] {
  width: 100%;
  padding: 11px 14px;
  font-size: 14.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-family: inherit;
}

.modal-content input[type="email"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-pale);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: 18px;
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--teal);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-row a {
  color: var(--teal);
  text-decoration: underline;
}

.cf-turnstile {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.buttons {
  display: flex;
  gap: 10px;
}

.buttons .btn {
  flex: 1;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .version-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    transform: translateY(-110%);
    transition: transform 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
    z-index: 40;
  }

  .main-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 56px 20px 48px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 36px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}
