/*
 * Momento website styles.
 * Dark theme matching the app: near-black background, white text,
 * one coral accent. No external fonts or scripts (no tracking).
 */

:root {
  --bg: #08080a;
  --bg-raised: #131418;
  --bg-card: #17181d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-faint: #71717a;
  --accent: #ff4d45;
  --accent-soft: rgba(255, 77, 69, 0.14);
  --radius: 20px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 15px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: #000;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.button svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.badge-soon {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}

.badge-soon small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(closest-side, rgba(255, 77, 69, 0.22), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ff8a84;
  font-size: 14px;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero .lead {
  margin: 0 0 32px;
  max-width: 34em;
  color: var(--text-muted);
  font-size: clamp(18px, 2vw, 21px);
}

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

.hero-note {
  margin: 18px 0 0;
  color: var(--text-faint);
  font-size: 14px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: min(100%, 300px);
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(145deg, #2a2b30, #151619);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 20px 60px -20px rgba(255, 77, 69, 0.18);
}

.phone img {
  width: 100%;
  border-radius: 42px;
}

.phone-small {
  width: min(100%, 260px);
  border-radius: 46px;
  padding: 10px;
}

.phone-small img {
  border-radius: 37px;
}

/* ---------- Sections ---------- */

section {
  scroll-margin-top: 72px;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 44em;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 19px;
}

/* ---------- Highlights strip ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.highlight {
  padding: 26px 24px;
  background: var(--bg);
}

.highlight strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.highlight span {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Feature cards ---------- */

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

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

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

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

.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- Showcase rows ---------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 40px 0;
}

.showcase + .showcase {
  border-top: 1px solid var(--border);
}

.showcase-reverse .showcase-media {
  order: 2;
}

.showcase-media {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.showcase-text h3 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.showcase-text p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 18px;
}

.checklist {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin: 10px 0;
  padding-left: 30px;
  color: var(--text);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff4d45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--text);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

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

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--text);
  color: #000;
  font-weight: 700;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- Privacy ---------- */

.privacy-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 77, 69, 0.14), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
}

.privacy-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.privacy-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
}

.privacy-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-weight: 600;
}

.privacy-list svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 26px;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  margin: 0 0 22px;
  color: var(--text-muted);
}

/* ---------- Final CTA ---------- */

.cta {
  text-align: center;
}

.cta img {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: 0 20px 50px -20px rgba(255, 77, 69, 0.45);
}

.cta h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.03em;
}

.cta p {
  margin: 0 auto 28px;
  max-width: 34em;
  color: var(--text-muted);
  font-size: 19px;
}

.cta .hero-actions {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

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

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

/* ---------- Content pages (legal, support) ---------- */

.page-header {
  padding: 64px 0 24px;
}

.page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 19px;
}

.prose {
  max-width: 760px;
  padding-bottom: 80px;
  color: #d4d4d8;
  font-size: 16.5px;
}

.prose h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.prose h1 + p {
  margin-top: 0;
  color: var(--text-faint);
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: 20px;
  color: var(--text);
}

.prose h4 {
  margin: 24px 0 8px;
  font-size: 17px;
  color: var(--text);
}

.prose a {
  color: #ff8a84;
}

.prose ul {
  padding-left: 22px;
}

.prose li p {
  margin: 6px 0;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin: 8px 0 40px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.contact-card a {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.contact-card span {
  color: var(--text-muted);
}

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
  padding: 80px 0;
}

.not-found h1 {
  margin: 0 0 12px;
  font-size: 56px;
  letter-spacing: -0.03em;
}

.not-found p {
  margin: 0 0 28px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero .container,
  .showcase,
  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
    text-align: center;
  }

  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .showcase {
    gap: 36px;
    text-align: center;
  }

  .showcase-reverse .showcase-media {
    order: 0;
  }

  .checklist {
    display: inline-block;
    text-align: left;
  }

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

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

  .privacy-panel {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header .container {
    flex-direction: column;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .section {
    padding: 64px 0;
  }

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

  .showcase-media .phone-small + .phone-small {
    display: none;
  }

  .privacy-panel {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .faq summary::after {
    transition: none;
  }
}
