@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --bg: #FAF7F3;
  --surface: #FFFFFF;
  --surface-variant: #F0EDE9;
  --ink: #2D2A26;
  --muted: #9E9A94;
  --accent: #E8845A;
  --accent-dark: #984622;
  --sage: #5A8C6E;
  --outline: #E3DED7;
  --shadow: 0 4px 20px rgba(45, 42, 38, 0.04);
  --shadow-lift: 0 12px 36px rgba(45, 42, 38, 0.08);
  --radius-card: 12px;
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a { text-decoration: none; color: inherit; }

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

/* --- Warm drift (app WarmDriftBackground) --- */
.drift {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.drift span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.drift .blob-a {
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  top: -8%;
  right: -12%;
  background: rgba(232, 132, 90, 0.28);
  animation: driftA 11s linear infinite;
}

.drift .blob-b {
  width: min(80vw, 620px);
  height: min(80vw, 620px);
  bottom: -18%;
  left: -16%;
  background: rgba(90, 140, 110, 0.22);
  animation: driftB 15s linear infinite;
}

.drift .blob-c {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 38%;
  left: 42%;
  background: rgba(152, 70, 34, 0.12);
  animation: driftC 13s linear infinite;
}

@keyframes driftA {
  from { transform: translate(0, 0); }
  33% { transform: translate(-28px, 22px); }
  66% { transform: translate(18px, -16px); }
  to { transform: translate(0, 0); }
}

@keyframes driftB {
  from { transform: translate(0, 0); }
  40% { transform: translate(32px, -24px); }
  70% { transform: translate(-20px, 18px); }
  to { transform: translate(0, 0); }
}

@keyframes driftC {
  from { transform: translate(0, 0); }
  50% { transform: translate(-24px, 28px); }
  to { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .drift span { animation: none; }
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  /* no backdrop-filter: it traps position:fixed menu inside the header strip */
  background: rgba(250, 247, 243, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  height: 36px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  object-position: left center;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(250, 247, 243, 0.95);
  border: 1px solid var(--outline);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 400;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: 0.25s;
  pointer-events: none;
}

/* Mobile drawer: display:none when closed so it cannot steal taps */
.header-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100dvh;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 350;
  padding: max(72px, env(safe-area-inset-top, 0px)) 24px max(40px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.header-nav.open {
  display: flex;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-toggle {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
}

.nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--ink);
}

.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.lang-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

#lang-switcher {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .header-nav {
    display: flex;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: flex-end;
    background: transparent;
    padding: 0;
    gap: 28px;
    overflow: visible;
    z-index: auto;
  }
  body.menu-open { overflow: auto; }
  body.menu-open .menu-toggle { position: relative; top: auto; right: auto; }
  .nav-link {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
  }
  .nav-link:hover { color: var(--ink); }
  .nav-buttons {
    flex-direction: row;
    width: auto;
    max-width: none;
  }
  .lang-switcher-wrap { margin: 0; }
}

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 52px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: #1a1816;
}

.button-accent {
  background: var(--accent);
  color: #fff;
}

.button-accent:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: #699C7C;
  color: #fff;
}

.button-secondary:hover {
  background: #5a8a6a;
}

.button svg { fill: currentColor; flex-shrink: 0; }

/* --- Hero --- */
.hero {
  min-height: calc(100dvh - 64px);
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.hero-brand {
  display: inline-block;
  margin-bottom: 28px;
}

.hero-brand img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 320px;
  margin: 0 auto;
}

#download {
  scroll-margin-top: 88px;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
}

.disclaimer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.drop-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  animation: cardIn 0.8s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.drop-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-variant);
  overflow: hidden;
}

.drop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.drop-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(232, 132, 90, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
}

.drop-card-body {
  padding: 16px 18px 18px;
}

.drop-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.drop-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.drop-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--sage));
  flex-shrink: 0;
}

.drop-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.drop-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.drop-mono {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.drop-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
}

@media (min-width: 600px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    max-width: none;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
  .hero-copy {
    text-align: left;
    margin: 0;
  }
  .hero-lead {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-buttons {
    justify-content: flex-start;
  }
  .hero-visual {
    justify-content: flex-end;
  }
  .drop-card {
    max-width: 400px;
    transform: rotate(1.5deg);
  }
  .drop-card:hover {
    transform: rotate(0deg) translateY(-4px);
    transition: transform 0.35s ease;
  }
}

/* --- Sections --- */
.section {
  padding: 88px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 48px;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.how-step {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  text-align: left;
  transition: box-shadow 0.25s, transform 0.25s;
}

.how-step:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.how-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.how-step h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.how-step p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* FAQ */
.faq-section {
  background: transparent;
  padding: 40px 0 88px;
}

.faq-grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--outline);
}

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

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

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA band */
.cta-band {
  padding: 0 0 88px;
}

.cta-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 48px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(232, 132, 90, 0.12), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(90, 140, 110, 0.1), transparent 45%);
  pointer-events: none;
}

.cta-card > * { position: relative; }

.cta-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--muted);
  margin-bottom: 8px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-note {
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 28px !important;
}

.cta-card .hero-buttons {
  margin-top: 8px;
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: rgba(250, 247, 243, 0.72);
  padding: 56px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand h2 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.5;
}

.footer-links h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.95rem;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }
