/* FlopVision marketing site — shared styles.
   Brand: felt-green (matches the app seed #1F6E43). Light + dark aware.
   Responsive breakpoints 375 / 768 / 1024 per common UX guidance. */

:root {
  --bg: #0e1626;
  --surface: #131e33;
  --surface-2: #182647;
  --text: #e6eefb;
  --muted: #9fb4d4;
  --accent: #37b579;
  --accent-strong: #2a8f60;
  --border: #22304f;
  --shadow: rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --text: #14202e;
  --muted: #4d637b;
  --accent: #1f6e43;
  --accent-strong: #17553380;
  --border: #dde6f1;
  --shadow: rgba(20, 40, 70, 0.10);
  color-scheme: light;
}

/* Dark is the default regardless of the OS setting; light applies only when
   the visitor explicitly picks it (data-theme="light" via the toggle). */

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

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

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap {
  display: flex; align-items: center; gap: 16px;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.spacer { flex: 1; }
.controls { display: flex; align-items: center; gap: 6px; }
.langbtn, .themebtn {
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px; font-size: .85rem; cursor: pointer; line-height: 1;
}
.langbtn[aria-pressed="true"] { color: #fff; background: var(--accent-strong); border-color: var(--accent-strong); }
.langbtn:hover, .themebtn:hover { border-color: var(--accent); }

/* Hero */
.hero { text-align: center; padding: 64px 0 40px; }
.hero img.icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px var(--shadow); }
.hero h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 20px 0 8px; letter-spacing: -0.02em; }
.hero .tag { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 0 auto; }

/* Store badges */
.badges { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.badge { display: inline-flex; height: 52px; }
.badge svg { height: 100%; width: auto; display: block; }
.badge.disabled { opacity: .5; pointer-events: none; position: relative; }
.badge-note { margin-top: 12px; color: var(--muted); font-size: .85rem; }

/* Sections */
section { padding: 40px 0; }
h2.section-title { font-size: 1.5rem; margin-bottom: 8px; text-align: center; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); text-align: center; max-width: 560px; margin: 0 auto 28px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; box-shadow: 0 2px 10px var(--shadow);
}
.feature .fi { font-size: 1.4rem; margin-bottom: 8px; display: block; color: var(--accent); }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* How-to steps */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--accent); }
.step p { color: var(--muted); font-size: .95rem; }

/* Two-column "is / is not" */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.card ul { list-style: none; }
.card li { padding: 6px 0 6px 24px; position: relative; color: var(--muted); }
.card.yes li::before { content: "♠"; position: absolute; left: 2px; color: var(--accent); }
.card.no li::before { content: "×"; position: absolute; left: 4px; color: #d9776b; font-weight: 700; }

/* Screenshots */
/* align-items:flex-start is load-bearing: the default `stretch` would give
   each .phone a definite (equal) height and override the screen's
   aspect-ratio, so object-fit:cover would crop the middle. flex-start lets
   each phone size to its screen's true 1080:2424 intrinsic height. */
.shots { display: flex; align-items: flex-start; gap: 24px; overflow-x: auto; padding: 8px 4px 16px; scroll-snap-type: x mandatory; }
/* Realistic phone mock: dark device body + thin bezel + a dynamic-island
   pill, so a screenshot reads as "on a phone" (not a desktop crop). The
   body is deliberately dark in both site themes — phones are dark objects. */
.phone {
  flex: 0 0 auto; width: 210px; scroll-snap-align: center;
  background: linear-gradient(160deg, #222b3a 0%, #0c0f15 45%);
  border-radius: 42px; padding: 11px;
  box-shadow: 0 18px 42px var(--shadow),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  position: relative;
}
/* side buttons — subtle nubs on the device edge for a bit of realism */
.phone::after {
  content: ""; position: absolute; right: -2px; top: 96px;
  width: 3px; height: 46px; border-radius: 2px;
  background: #2a3342;
}
.phone .screen {
  aspect-ratio: 1080 / 2424; border-radius: 32px; overflow: hidden;
  background: #000; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7);
}
.phone .screen span {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 16px;
  color: var(--muted); font-size: .9rem;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Two captures per slot: dark app screens for the dark site (default),
   light ones when the visitor switches the site to light. */
.phone .screen .shot-light { display: none; }
:root[data-theme="light"] .phone .screen .shot-dark { display: none; }
:root[data-theme="light"] .phone .screen .shot-light { display: block; }
.phone .cap { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* CTA */
.cta { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 36px 24px; }
.cta h2 { font-size: 1.5rem; margin-bottom: 8px; }
.cta p { color: var(--muted); margin-bottom: 20px; }
.btn {
  display: inline-block; background: var(--accent-strong); color: #fff;
  padding: 12px 22px; border-radius: 10px; font-weight: 600;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 32px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center; text-align: center; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* Legal / doc pages */
.doc { padding: 40px 0 20px; }
.doc h1 { font-size: 1.9rem; margin-bottom: 4px; }
.doc .date { color: var(--muted); margin-bottom: 28px; }
.doc h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc .muted { color: var(--muted); }
.backlink { display: inline-block; margin: 8px 0 0; }

@media (max-width: 768px) {
  .features, .cols, .steps { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 28px; }
}
[hidden] { display: none !important; }
