/* Recall — marketing site
   Design language mirrors the app: deep violet-black, one bright violet accent,
   rounded system type, soft cards. */

:root {
  --bg: #08070e;
  --bg-2: #0d0c16;
  --card: #14131f;
  --card-2: #191828;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #edebf6;
  --muted: #a29fba;
  --dim: #6f6c86;
  --accent: #8b7cf6;
  --accent-soft: #b3a6ff;
  --radius: 22px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: #fff; }

::selection { background: rgba(139, 124, 246, 0.35); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(8, 7, 14, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 17px;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.2s ease;
}
.nav-cta:hover { background: #9b8dff; transform: translateY(-1px); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -320px 0 auto 0;
  height: 780px;
  background: radial-gradient(
      ellipse 60% 50% at 50% 42%,
      rgba(124, 108, 240, 0.38),
      transparent 70%
    );
  pointer-events: none;
}
.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #46d17f;
  box-shadow: 0 0 10px #46d17f;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  margin-top: 26px;
}
@media (max-width: 900px) {
  .hero { padding-top: 56px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .eyebrow { margin: 0 auto; }
}

h1 {
  font-size: clamp(38px, 5.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 22px 0 0;
}
h1 .grad {
  background: linear-gradient(105deg, #c9bfff 10%, var(--accent) 55%, #6d5ce0 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19.5px);
  line-height: 1.62;
  margin: 22px 0 0;
  max-width: 33em;
}
@media (max-width: 900px) { .lede { margin-inline: auto; } }

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}
@media (max-width: 900px) { .cta-row { justify-content: center; } }
.badge-link {
  display: inline-block;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.badge-link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.badge-link img { height: 54px; width: auto; }

/* Desktop-only nudge: you can't install an iPhone app on the machine you're
   reading this on, so hand over a code to point a phone at. */
.qr { display: none; }
@media (min-width: 901px) and (hover: hover) {
  .qr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--dim);
    font-size: 13px;
    font-weight: 600;
    max-width: 220px;
    line-height: 1.35;
  }
  .qr img { width: 54px; height: 54px; border-radius: 6px; }
  /* CJK: don't split a word across lines in such a narrow box. */
  .qr span { word-break: keep-all; }
}

.meta {
  margin-top: 18px;
  color: var(--dim);
  font-size: 14.5px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 900px) { .meta { justify-content: center; } }
.meta span::after { content: " ·"; color: var(--line-strong); }
.meta span:last-child::after { content: ""; }

/* ---------- phone ---------- */

.phone {
  position: relative;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(160deg, #3a3752, #17162200 55%), #14131f;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.6) inset;
  max-width: 300px;
  margin: 0 auto;
}
.phone img { border-radius: 38px; }
.phone-glow::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 108, 240, 0.5), transparent 70%);
  filter: blur(58px);
  z-index: -1;
}
.hero-phone { max-width: 322px; }

/* ---------- section scaffolding ---------- */

section { position: relative; }
.section { padding: 96px 0; }
.section-sm { padding: 72px 0; }

.kicker {
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
}
.section-lede {
  color: var(--muted);
  margin: 18px auto 0;
  max-width: 40em;
  font-size: 18px;
}
.center { text-align: center; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 64px;
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 56px; max-width: 420px; margin-inline: auto; }
}
.step { text-align: center; }
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(139, 124, 246, 0.14);
  border: 1px solid rgba(139, 124, 246, 0.35);
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 650;
}
.step p { color: var(--muted); margin: 0 0 28px; font-size: 16.5px; }
.step .phone { max-width: 258px; }

/* ---------- features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature:hover { border-color: rgba(139, 124, 246, 0.42); transform: translateY(-3px); }
.feature .ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(139, 124, 246, 0.13);
  color: var(--accent-soft);
  margin-bottom: 16px;
}
.feature .ico svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 17.5px; margin: 0 0 6px; font-weight: 650; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 15.5px; line-height: 1.55; margin: 0; }

/* ---------- split (stats) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 46px; text-align: center; }
  .split .section-lede { margin-inline: auto; }
}
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 16.5px;
  text-align: left;
}
.checks svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.checks strong { color: var(--text); font-weight: 600; }
@media (max-width: 900px) { .checks { max-width: 400px; margin-inline: auto; } }

/* ---------- privacy band ---------- */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 120% at 50% 0%, rgba(124, 108, 240, 0.16), transparent 70%),
    var(--bg-2);
}
.privacy-line {
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0;
}
.privacy-line span { color: var(--dim); }

/* ---------- faq ---------- */

.faq { margin-top: 48px; display: grid; gap: 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 44px 22px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--dim);
  border-bottom: 2px solid var(--dim);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
  border-color: var(--accent);
}
.faq p { color: var(--muted); margin: 0 0 24px; padding-right: 44px; font-size: 16.5px; }

/* ---------- final cta ---------- */

.final {
  text-align: center;
  padding: 110px 0 120px;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -280px;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 108, 240, 0.3), transparent 70%);
  pointer-events: none;
}
.final .wrap { position: relative; }
.final img.icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 28px;
  box-shadow: 0 22px 50px -18px rgba(124, 108, 240, 0.8);
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  color: var(--dim);
  font-size: 14.5px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.disclaimer {
  margin-top: 26px;
  color: #55536a;
  font-size: 13px;
  line-height: 1.6;
  max-width: 62em;
}

/* ---------- language switcher ---------- */

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 14px;
}
.langs a { color: var(--dim); }
.langs a:hover { color: var(--text); }
.langs a[aria-current="true"] { color: var(--accent-soft); font-weight: 600; }

/* Dismissible suggestion — never a forced redirect. */
.langbar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 18px;
  border-radius: 980px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 19, 31, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.85);
  font-size: 14.5px;
}
.langbar a { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.langbar button {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.langbar button:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- legal / text pages ---------- */

.doc { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; }
.doc .updated { color: var(--dim); font-size: 14.5px; margin-bottom: 34px; }
.doc h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 42px 0 10px;
  font-weight: 650;
}
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 30px;
}
.callout {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
}
.callout p { margin: 0; }

/* ---------- guides (long-form) ---------- */

.doc .standfirst {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 34px;
}
.doc h3 {
  font-size: 17.5px;
  margin: 30px 0 6px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.doc ol { padding-left: 20px; }
.doc ol li { margin-bottom: 12px; }
.doc code {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15.5px;
}
.doc th, .doc td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc th { color: var(--text); font-weight: 650; }
.doc td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* In-guide call to action back to the app. */
.cta-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid rgba(139, 124, 246, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  margin: 40px 0 8px;
}
.cta-card img.icon { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; }
.cta-card .txt { flex: 1 1 260px; }
.cta-card h3 { margin: 0 0 4px; font-size: 18px; }
.cta-card p { margin: 0; font-size: 15.5px; }
.cta-card .badge-link img { height: 46px; width: auto; }

.related {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.related h2 { font-size: 20px; margin: 0 0 14px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related a { font-weight: 600; }

.guide-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.guide-list li {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.25s ease;
}
.guide-list li:hover { border-color: rgba(139, 124, 246, 0.42); }
.guide-list a { font-size: 18.5px; font-weight: 650; letter-spacing: -0.015em; }
.guide-list p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
