/* Remry landing page. Monochrome, like the app and its splash. */

:root {
  --bg: #fafafa;
  --bg-alt: #f1f2f4;
  --surface: #ffffff;
  --text: #111317;
  --muted: #555b65;
  --border: #dfe2e6;
  --accent: #111111;
  --accent-text: #ffffff;
  --focus: #2b6cff;

  /* The hero and privacy bands stay dark in both themes, to match the splash art. */
  --night: #121519;
  --night-2: #1b1f25;
  --night-text: #f2f3f5;
  --night-muted: #a9b0ba;
  --night-border: #2c323a;

  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 8px 24px rgb(0 0 0 / 8%);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --bg-alt: #15181d;
    --surface: #1a1e24;
    --text: #eef0f3;
    --muted: #a3aab4;
    --border: #2a3038;
    --accent: #f2f3f5;
    --accent-text: #0e1013;
    --focus: #7aa2ff;
    --night: #0a0c0f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, video, picture { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 780px; }

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

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-text);
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 44px; padding: 10px 20px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: transform 0.1s ease, background-color 0.15s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; }
.btn-large { min-width: 200px; padding: 12px 24px; }
.btn-label { font-size: 1.05rem; }
.btn-sub { font-size: 0.8rem; font-weight: 500; opacity: 0.75; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--night-text);
  border-bottom: 1px solid var(--night-border);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.topbar nav { margin-left: auto; }
.topbar nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.topbar nav a { color: var(--night-muted); text-decoration: none; font-size: 0.95rem; }
.topbar nav a:hover { color: var(--night-text); }
.topbar .btn-primary { background: var(--night-text); color: var(--night); }
@media (max-width: 640px) {
  .topbar nav { display: none; }
  .topbar .btn { margin-left: auto; }
}

/* Hero (always dark) */
.hero {
  background: var(--night);
  color: var(--night-text);
  padding: 56px 0 72px;
}
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 48px; } }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.25rem); letter-spacing: -0.035em; margin-bottom: 0.4em; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); color: var(--night-muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero .btn-primary { background: var(--night-text); color: var(--night); }
.hero .btn-ghost { color: var(--night-text); border-color: var(--night-border); }
.hero .btn-ghost:hover { background: var(--night-2); }
.cta-alt { font-size: 0.95rem; color: var(--night-muted); }
.cta-alt a { color: var(--night-text); }
.hero-art { justify-self: center; max-width: 440px; }
.hero-art img { width: 100%; }
@media (max-width: 899px) { .hero-art { display: none; } }
@media (max-width: 480px) { .cta-row .btn { width: 100%; } }

.demo { margin: 56px 0 0; }
.window {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--night-border);
  background: var(--night-2);
  box-shadow: 0 30px 80px rgb(0 0 0 / 45%);
  max-width: 960px; margin: 0 auto;
}
.window-bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--night-border); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a414b; }
.window video, .window img { width: 100%; aspect-ratio: 960 / 600; background: var(--night-2); }
.demo-toggle {
  position: absolute; right: 12px; bottom: 12px;
  font: 600 0.8rem/1 var(--font); color: #fff;
  background: rgb(0 0 0 / 60%); border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.demo figcaption { color: var(--night-muted); font-size: 0.9rem; text-align: center; max-width: 720px; margin: 16px auto 0; }

/* Sections */
.section { padding: 80px 0; }
@media (max-width: 640px) { .section { padding: 56px 0; } }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--night); color: var(--night-text); }
.section-lede { color: var(--muted); font-size: 1.15rem; max-width: 40em; margin-bottom: 40px; }
.section.dark .section-lede { color: var(--night-muted); }

.problem .big { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); line-height: 1.5; }
.muted { color: var(--muted); }

/* How it works */
.beats {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: beat;
}
.beats li {
  counter-increment: beat;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.beats li::before {
  content: counter(beat);
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  font-weight: 700; font-size: 0.9rem; margin-bottom: 14px;
}
.beats p { color: var(--muted); margin: 0; }

/* Use cases */
.cases { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 960px) { .cases { grid-template-columns: 1fr 1fr; } }
.case {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.case blockquote {
  margin: 0 0 14px; padding: 14px 16px;
  background: var(--bg-alt); border-radius: 10px;
  font-size: 1.02rem;
}
.you { font-weight: 700; margin-right: 4px; }
.case p { color: var(--muted); }
.case picture { margin-top: auto; }
.case img { border-radius: 8px; border: 1px solid var(--border); width: 100%; }

/* Comparison */
.compare { margin: 32px 0 0; }
.compare > div { padding: 22px 0; border-top: 1px solid var(--border); }
.compare > div:last-child { border-bottom: 1px solid var(--border); }
.compare dt { font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.compare dd { margin: 0; color: var(--muted); }

/* Privacy */
.trust {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.trust li { border: 1px solid var(--night-border); border-radius: var(--radius); padding: 22px; background: var(--night-2); }
.trust h3 { font-size: 1.05rem; }
.trust p { color: var(--night-muted); margin: 0; font-size: 0.97rem; }

/* Pricing */
.plans { display: grid; gap: 24px; align-items: start; }
@media (min-width: 860px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 4px;
}
.plan-pro { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; }
.tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-text); padding: 4px 8px; border-radius: 999px;
}
.price { margin: 4px 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.per { color: var(--muted); }
.price-cad { color: var(--muted); flex-basis: 100%; font-size: 0.95rem; }
.price-note { font-size: 0.95rem; }
.checks { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em;
  width: 14px; height: 8px;
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}
.plan .btn { align-self: flex-start; }
.fine { font-size: 0.88rem; color: var(--muted); margin: 16px 0 0; }

/* Get started */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.steps h3::before { content: counter(step) ". "; color: var(--muted); }
.steps p { color: var(--muted); }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* FAQ */
.faq { margin-top: 24px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-weight: 650; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Footer */
.footer { background: var(--night); color: var(--night-text); padding: 64px 0 40px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } }
.newsletter h2 { font-size: 1.6rem; }
.newsletter p { color: var(--night-muted); }
.subscribe { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.subscribe input {
  flex: 1 1 220px; min-height: 44px; padding: 10px 14px;
  font: inherit; color: var(--night-text);
  background: var(--night-2); border: 1px solid var(--night-border); border-radius: 10px;
}
.subscribe input::placeholder { color: #7d8590; }
.subscribe .btn-primary { background: var(--night-text); color: var(--night); }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--night-muted); text-decoration: none; }
.footer-links a:hover { color: var(--night-text); text-decoration: underline; }
.license { grid-column: 1 / -1; color: var(--night-muted); font-size: 0.85rem; border-top: 1px solid var(--night-border); padding-top: 24px; margin: 0; }
.license a { color: var(--night-text); }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.notfound .lede { margin: 0 auto 28px; }
