/* Enfila — marketing site.
   Light is the base; dark via prefers-color-scheme. No analytics/cookies. */

:root {
  --bg:     #F4F5F6;
  --card:   #FFFFFF;
  --border: #D2D8DC;
  --muted:  #7E929F;
  --stroke: #52606B;
  --text:   #222A30;
  --accent: #3F7F99;
  --accent-hover: #356a80;
  --accent-ink: #FFFFFF;
  --shadow: rgba(40,55,65,0.16);
  --shadow-strong: rgba(40,55,65,0.24);

  --w: 1080px;          /* shared band width — keeps nav/footer/body aligned */
  --pad: 2rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #16191C;
    --card:   #1E2226;
    --border: #3A4149;
    --muted:  #5A7080;
    --stroke: #8FA3B1;
    --text:   #C8D8E2;
    --accent: #6E9FB5;
    --accent-hover: #7fb0c6;
    --accent-ink: #0E1417;
    --shadow: rgba(0,0,0,0.45);
    --shadow-strong: rgba(0,0,0,0.55);
  }
}

/* Narrow pages (privacy, contact): everything aligns to a tighter column. */
body.narrow { --w: 760px; }

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Every top-level band shares the same width + padding, so left edges align. */
.band {
  max-width: var(--w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---- Nav ---- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.nav-wordmark {
  display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.nav-wordmark:hover { text-decoration: none; }
.nav-wordmark svg { display: block; }
.nav-wordmark-text { font-size: 19px; font-weight: 500; letter-spacing: 0.03em; line-height: 1; }
.nav-links { display: flex; gap: 1.5rem; align-items: baseline; }
.nav-links a { font-size: 13px; color: var(--muted); letter-spacing: 0.03em; }
.nav-links a:hover { color: var(--text); }

/* ---- Hairline ---- */
.rule hr { border: none; border-top: 1px solid var(--border); }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}
.app-icon-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 1.4rem; }
.app-icon-mark svg { display: block; }
.app-icon-name { font-size: 17px; font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; }
.app-icon-byline {
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.hero-audience { font-size: 13px; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 1rem; }
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.015em;
  margin-bottom: 1.05rem;
}
.hero-sub {
  font-size: 15.5px; color: var(--stroke); line-height: 1.7;
  margin-bottom: 1.8rem; max-width: 32em;
}

/* ---- Buy / email ---- */
.buy-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.buy-btn {
  display: inline-block; padding: 12px 24px;
  font-size: 14px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.buy-btn:hover { background: var(--accent-hover); text-decoration: none; }
.buy-note { font-size: 12px; color: var(--muted); }
.buy-price { font-weight: 600; color: var(--text); }

.email-form { display: flex; gap: 8px; max-width: 400px; margin-bottom: 16px; }
.email-form input[type="email"] {
  flex: 1; min-width: 0; padding: 11px 14px;
  font: inherit; font-size: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); outline: none;
  transition: border-color 0.15s;
}
.email-form input[type="email"]::placeholder { color: var(--muted); }
.email-form input[type="email"]:focus { border-color: var(--accent); }
.email-form button {
  padding: 11px 20px; font-size: 13px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.email-form button:hover { background: var(--accent-hover); }
.form-note { font-size: 11px; color: var(--muted); margin-top: -6px; margin-bottom: 8px; }

/* Contact form (multi-field) */
.contact-form { max-width: 480px; margin-top: 1.75rem; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.contact-form label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 15px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); outline: none;
  transition: border-color 0.15s;
}
.contact-form textarea { resize: vertical; line-height: 1.6; }
.contact-form input::placeholder { color: var(--muted); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form button {
  padding: 11px 22px; font-size: 14px; font-weight: 600;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 8px; cursor: pointer;
  transition: background 0.15s;
}
.contact-form button:hover { background: var(--accent-hover); }

/* trust chips */
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.trust-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--stroke); white-space: nowrap; }
.trust-chip svg { width: 13px; height: 13px; flex: none; color: var(--accent); }

/* ---- Hero graphic (dual screenshot, no border) ---- */
.hero-graphic { position: relative; padding: 7% 0 3%; }
.hero-graphic img { display: block; width: 100%; height: auto; border-radius: 10px; }
.hero-graphic .shot-front { position: relative; z-index: 2; filter: drop-shadow(0 20px 40px var(--shadow)); }
.hero-graphic .shot-back {
  position: absolute; top: -3%; right: -8%; width: 92%; z-index: 1;
  transform: rotate(6deg); transform-origin: bottom left;
  filter: drop-shadow(0 16px 32px var(--shadow-strong));
}

/* ---- Plain text section ---- */
.section { padding-top: 3rem; padding-bottom: 3rem; }
.section-label {
  font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-body { max-width: 760px; }
.section-body p { font-size: 16px; color: var(--stroke); line-height: 1.75; }
.section-body p + p { margin-top: 1rem; }

.beats { list-style: none; max-width: 540px; margin-top: 0.25rem; }
.beats li { position: relative; padding: 0 0 0.9rem 36px; color: var(--stroke); font-size: 15.5px; line-height: 1.6; }
.beats li:last-child { padding-bottom: 0; }
.beats { counter-reset: beat; }
.beats li::before {
  counter-increment: beat; content: counter(beat);
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--accent); font-size: 12px; font-weight: 600; text-align: center; line-height: 23px;
}

/* ---- Feature: text + screenshot, alternating, no border ---- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-shot { order: 1; }
.feature-text h2 { font-size: 22px; font-weight: 600; margin: 0 0 0.7rem; letter-spacing: -0.01em; }
.feature-text p { font-size: 15.5px; color: var(--stroke); line-height: 1.7; max-width: 34em; }
.feature-text p + p { margin-top: 0.8rem; }
.feature-shot img {
  display: block; width: 100%; height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 16px 38px var(--shadow));
}

/* ---- Close ---- */
.close-caption { font-size: 15px; color: var(--stroke); line-height: 1.75; max-width: 480px; margin-bottom: 1.2rem; }

/* ---- Footer ---- */
footer {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px;
  padding-top: 2rem; padding-bottom: 3rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 12px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---- Text pages (privacy, contact) ---- */
.page { padding-top: 3rem; padding-bottom: 1rem; }
.page h1 { font-size: 30px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.page .updated { color: var(--muted); font-size: 13px; margin-bottom: 2rem; }
.page h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 2.25rem 0 0.6rem; }
.page p, .page li { color: var(--stroke); font-size: 16px; line-height: 1.7; }
.page ul { padding-left: 20px; margin-top: 0.4rem; }
.page li { margin-bottom: 0.3rem; }
.page a { font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .hero, .feature, .feature.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .feature.reverse .feature-text,
  .feature.reverse .feature-shot { order: 0; }
  .hero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .hero-graphic { padding: 0; }
  .hero-graphic .shot-back { position: relative; top: 0; right: 0; width: 100%; transform: none; margin-bottom: 1rem; }
  .email-form { max-width: 100%; }
  footer { flex-direction: column; gap: 1rem; }
}
