/* Snaqly — one-page site.
   Palette and type deliberately match the app and the legal pages, so the
   three feel like one product. */

:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-alt: #eef1ee;
  --ink: #0f1512;
  --ink-soft: #555f59;
  --ink-faint: #8a938d;
  --border: #e4e8e4;
  --accent: #14a155;
  --accent-light: #23be6b;
  --accent-deep: #0a5c31;
  --accent-soft: #e7f6ed;
  --radius: 20px;
  --max: 1040px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d110f;
    --surface: #151b17;
    --surface-alt: #1c2420;
    --ink: #f2f5f3;
    --ink-soft: #a9b4ad;
    --ink-faint: #75817a;
    --border: #232d27;
    --accent-soft: #12271b;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}

/* ---------------------------------------------------------------- nav --- */
.nav {
  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);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------------------------------------- button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--accent-light); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn--ghost:hover { background: var(--surface-alt); }

.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Before launch the store link would 404, so the buttons say so instead of
   sending people to a dead page. Remove `prelaunch` from <body> to go live. */
.prelaunch .btn--store { pointer-events: none; background: var(--ink-faint); }
.prelaunch .btn--store .label-live { display: none; }
.btn--store .label-soon { display: none; }
.prelaunch .btn--store .label-soon { display: inline; }
.prelaunch .nav .btn--store { display: none; }

/* --------------------------------------------------------------- hero --- */
.hero {
  padding-block: clamp(52px, 9vw, 96px) clamp(40px, 7vw, 72px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 7vw, 62px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 30px;
}

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

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

/* -------------------------------------------------------------- cards --- */
section { padding-block: clamp(44px, 7vw, 76px); }

.section-head { max-width: 640px; margin-bottom: 34px; }

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-head p { color: var(--ink-soft); }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card h3 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}

.card p { color: var(--ink-soft); font-size: 15.5px; }

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------- plans -- */
.plans {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.plan--pro { border-color: var(--accent); }

.plan h3 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
}

.plan ul { list-style: none; }

.plan li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding-block: 7px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.plan li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--accent);
}

/* ----------------------------------------------------------------- faq -- */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

details + details { margin-top: 0; }

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

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

summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

details[open] summary::after { content: '\2212'; }

details p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-top: 10px;
}

/* -------------------------------------------------------------- footer -- */
.cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 54px);
  text-align: center;
}

.cta h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta p { color: var(--ink-soft); margin-bottom: 24px; }

footer {
  border-top: 1px solid var(--border);
  padding-block: 32px 44px;
  margin-top: clamp(44px, 7vw, 76px);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: space-between;
  align-items: center;
}

footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
}

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

footer .copy { color: var(--ink-faint); font-size: 14px; }
