/* Doen marketing site — tokens aligned to mobile/src/lib/theme.ts */

:root {
  --bg: #0b0b0f;
  --surface: #151519;
  --surface-alt: #1a1a1f;
  --surface-line: #26262c;
  --ink: #ffffff;
  --ink-soft: #8a8a93;
  --ink-dim: #5a5a63;
  --accent: #39ff8e;
  --accent-dim: #0e3d28;
  --accent-mid: #1a6b42;
  --warn: #e0b84c;
  --danger: #ff6b6b;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1100px;
  --radius: 16px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(57, 255, 142, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 40%, rgba(14, 61, 40, 0.35), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #0d0d12 100%);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.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;
}

/* ——— Layout ——— */

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--surface-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max));
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

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

.logo span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

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

.nav-links .nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.nav-links .nav-cta:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--surface-line);
  }

  .nav-links .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none;
  }
}

/* ——— Hero ——— */

.hero {
  padding: 3rem 0 4rem;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.hero-brand .accent {
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 22ch;
  margin-bottom: 2rem;
  line-height: 1.45;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 0.25rem;
  opacity: 0.45;
  filter: grayscale(0.4);
  cursor: not-allowed;
  position: relative;
  text-decoration: none;
  border-radius: 8px;
}

.store-badge img {
  height: 40px;
  width: auto;
}

.store-badge::after {
  content: "Coming soon";
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--ink-dim);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-row {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: hero-in 0.9s ease-out both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-tagline {
    max-width: none;
    margin-inline: auto;
  }

  .badge-row {
    justify-content: center;
  }
}

/* ——— Phone mock ——— */

.phone {
  width: 260px;
  border-radius: 28px;
  border: 2px solid var(--surface-line);
  background: var(--surface);
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 60px -20px rgba(57, 255, 142, 0.15);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 8px;
  background: #0a0a0c;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(165deg, var(--surface-alt) 0%, var(--bg) 100%);
  position: relative;
}

.phone-screen.placeholder {
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem 1rem;
  gap: 0.75rem;
}

.phone-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  text-align: center;
}

.phone-ui-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 0.5rem;
}

.phone-habit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: 12px;
}

.phone-habit-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  flex-shrink: 0;
}

.phone-habit-dot.done {
  background: var(--accent);
}

.phone-habit-text {
  flex: 1;
  font-size: 0.75rem;
}

.phone-habit-text small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.65rem;
}

.phone-streak {
  margin-top: auto;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.phone.sm {
  width: 200px;
  flex-shrink: 0;
}

.phone.sm::before {
  width: 56px;
  height: 6px;
  top: 10px;
}

/* ——— Sections ——— */

.section {
  padding: 4.5rem 0;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.section-lead.center,
.section-title.center,
.section-label.center {
  text-align: center;
  margin-inline: auto;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.step {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--surface-line);
  background: rgba(21, 21, 25, 0.6);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-line);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.feature-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Screenshots */

.shots-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots-scroll::-webkit-scrollbar {
  height: 6px;
}

.shots-scroll::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 3px;
}

.shots-scroll::-webkit-scrollbar-thumb {
  background: var(--surface-line);
  border-radius: 3px;
}

.shot {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.shot figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.shot .phone-screen.feed .phone-habit {
  flex-direction: column;
  align-items: flex-start;
}

.shot-bar {
  height: 80px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-dim), var(--surface-alt));
  border: 1px solid var(--accent-mid);
}

/* FAQ */

.faq-list {
  max-width: 640px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--surface-line);
}

.faq-item:first-child {
  border-top: 1px solid var(--surface-line);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s;
  opacity: 0.5;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.faq-a {
  display: none;
  padding: 0 0 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faq-item.open .faq-a {
  display: block;
}

/* Legal pages */

.legal-banner {
  background: rgba(224, 184, 76, 0.12);
  border: 1px solid rgba(224, 184, 76, 0.35);
  color: var(--warn);
  padding: 0.9rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-hero .meta {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.legal-body {
  padding-bottom: 4rem;
  max-width: 720px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
  font-size: 0.975rem;
}

.legal-body ul {
  list-style: disc;
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* Support */

.support-card {
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.support-card p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.mailto-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
}

.mailto-btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--surface-line);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0.35rem;
  display: inline-block;
}

.footer-brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

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