/* =========================================================
   Memora — landing page
   Design tokens taken from the original Framer project
   ========================================================= */
:root {
  --ink: #172e28;          /* headings, primary text */
  --brand: #173f35;        /* buttons, icons, dark section */
  --muted: #78817c;        /* small body text */
  --muted-2: #737e76;      /* lead paragraphs */
  --eyebrow: #859079;      /* eyebrow labels */
  --eyebrow-light: #7b956c;/* eyebrow on dark */
  --page: #fdfefb;         /* page + card background */
  --nav: #fafcfa;          /* navigation background */
  --soft: #f3f5f1;         /* soft panels, chips */
  --sage: #e9ece6;         /* hero, CTA, footer */
  --line: #e8ece5;         /* borders */

  --container: 1120px;
  --radius-xl: 28px;
  --shadow-btn: 0 5px 14px rgba(23, 63, 53, .14);
  --shadow-card: 0 18px 40px rgba(23, 63, 53, .08);

  --font: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

/* ---------- icons ---------- */
.ic {
  flex: none;
  color: var(--brand);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic--12 { width: 12px; height: 12px; }
.ic--16 { width: 16px; height: 16px; }
.ic--18 { width: 18px; height: 18px; }
.ic--22 { width: 22px; height: 22px; }
.ic--24 { width: 24px; height: 24px; }

.card-border { border: 1px solid var(--line); }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.eyebrow--light { color: var(--eyebrow-light); }

h1 {
  font-size: 62px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -2.6px;
  color: var(--ink);
}
h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.6px;
  color: var(--ink);
}
.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted-2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-btn);
  cursor: default;
}
a.btn--primary { cursor: pointer; gap: 8px; }
a.btn--primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn .apple { color: #fff; }
.btn--secondary {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(23, 63, 53, .06);
}
.btn--secondary:hover { background: #eef1eb; transform: translateY(-1px); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 48px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}
.brand__name { font-size: 20px; font-weight: 700; letter-spacing: -.7px; line-height: 1; }

.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
}
.nav__links a { font-size: 14px; font-weight: 600; line-height: 1; padding: 4px 0; }
.nav__links a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, top .25s ease;
}
.nav__toggle span:first-child { top: 15px; }
.nav__toggle span:last-child { top: 23px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- layout ---------- */
.wrap { width: min(var(--container), 100% - 48px); margin: 0 auto; }

/* ---------- hero ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding: 76px 64px;
  border-radius: var(--radius-xl);
  background: var(--sage);
}
.hero__copy { flex: 1 1 0; max-width: 606px; }
.hero__copy .eyebrow { margin-bottom: 24px; }
.hero__copy h1 { margin-bottom: 24px; max-width: 480px; }
.hero__copy .lead { max-width: 470px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

/* phone mockup */
.phone {
  flex: none;
  width: 330px;
  height: 620px;
  padding: 10px;
  border-radius: 42px;
  background: var(--brand);
  border: 1px solid var(--ink);
  box-shadow: 0 28px 54px rgba(23, 63, 53, .16);
}
.phone__screen {
  height: 100%;
  padding: 24px 20px;
  border-radius: 33px;
  background: var(--page);
}
.phone__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.phone__app { font-size: 17px; font-weight: 700; letter-spacing: -.5px; }
.phone__title { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px; }

.bignum {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--soft);
}
.bignum strong { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -1.8px; color: var(--brand); }
.bignum span { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--muted); }

.phone__rows { display: grid; gap: 14px; margin: 22px 0; }
.phone__rows div { display: flex; align-items: center; justify-content: space-between; }
.phone__rows dt, .phone__rows dd { font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.phone__rows dd { display: flex; }

.phone__album {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.apple { width: 16px; height: 16px; flex: none; color: #000; }

/* ---------- trust points ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 32px 0;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--page);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- generic section ---------- */
.section { padding: 88px 0; }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__head .eyebrow { margin-bottom: 14px; }
.section__head h2 { margin-bottom: 14px; }
.section__sub { font-size: 17px; line-height: 1.6; color: var(--ink); }
.section__sub--muted { color: var(--muted-2); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border-radius: 18px;
  background: var(--page);
}
.step__num {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.step .ic { margin-bottom: 18px; }
.step h3, .feature h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.4px;
  margin-bottom: 18px;
}
.step p, .feature p { font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--muted); }

/* features */
.section#features { padding-top: 40px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: 18px; background: var(--page); }
.feature .ic { margin-bottom: 18px; }
.feature h3 { margin-bottom: 16px; }
.feature p { max-width: 215px; }

/* ---------- split sections (preflight / verify / privacy) ---------- */
.split, .verify, .privacy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}
.split__copy { flex: 1 1 0; max-width: 556px; }
.split__copy .eyebrow { margin-bottom: 14px; }
.split__copy h2 { margin-bottom: 20px; }
.preflight .split__copy h2 { max-width: 440px; }
.split__copy .lead { margin-bottom: 22px; }

.preflight { padding: 88px 0; }
.note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

.panel {
  flex: none;
  width: 500px;
  padding: 26px;
  border-radius: 22px;
  background: var(--page);
  box-shadow: var(--shadow-card);
}
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.panel__head p { font-size: 18px; font-weight: 700; line-height: 1.2; }
.bignum--panel { padding: 18px; margin-bottom: 16px; }
.bignum--panel span { color: var(--ink); }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  background: var(--soft);
}
.metric strong { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.metric span { font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--muted); }

/* verification (dark) */
.verify {
  padding: 76px 64px;
  border-radius: var(--radius-xl);
  background: var(--brand);
}
.verify .split__copy { max-width: 428px; }
.verify h2 { font-size: 48px; letter-spacing: -2px; line-height: 1.08; color: #fff; }
.verify .lead { color: var(--soft); margin-bottom: 26px; }
.verify__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.panel--report { padding: 24px; }
.metrics--report .metric { padding: 13px; }
.metrics--report .metric strong { font-size: 18px; }
.album {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

/* privacy */
.privacy {
  padding: 76px 64px;
  border-radius: var(--radius-xl);
  background: var(--soft);
}
.privacy .split__copy { max-width: 468px; }
.textlink { font-size: 14px; font-weight: 600; color: var(--ink); }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.principles {
  flex: none;
  width: 460px;
  display: grid;
  gap: 22px;
  padding: 26px 20px;
  border-radius: 20px;
  background: var(--page);
}
.principles li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

/* notice */
.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  padding: 20px 26px;
  border-radius: 16px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq { padding-top: 96px; padding-bottom: 92px; }
.faq__list { display: grid; gap: 10px; max-width: 920px; margin: 0 auto; }
.faq__item { border-radius: 16px; background: var(--soft); }
.faq__item h3 { font-size: inherit; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  cursor: pointer;
  border-radius: 16px;
}
.faq__chev { transition: transform .3s ease; }
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 20px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- final CTA ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 78px 48px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom: 0;
  background: var(--sage);
  text-align: center;
}
.cta .section__sub { margin-bottom: 4px; }

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 52px 48px 32px;
  background: var(--sage);
  border-top: 1px solid var(--line);
}
.footer__top { display: flex; justify-content: space-between; gap: 40px; }
.footer__company { display: grid; gap: 16px; max-width: 340px; }
.footer address { font-size: 13px; font-weight: 500; line-height: 1.6; color: var(--muted); }
.footer__links { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer__links a { font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--ink); }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__disc { text-align: center; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--muted); }

/* ---------- document pages (privacy, terms, support, legal, contact) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 0 96px; }
.doc .eyebrow { margin-bottom: 14px; }
.doc h1 { font-size: 48px; letter-spacing: -1.8px; margin-bottom: 14px; }
.doc__updated { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 28px; }
.doc .lead { margin-bottom: 28px; }
.doc h2 { font-size: 26px; letter-spacing: -.8px; line-height: 1.2; margin: 44px 0 14px; }
.doc h3 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; line-height: 1.3; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--muted-2); }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.doc ol { list-style: decimal; padding-left: 22px; margin-top: 10px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--eyebrow); }
.doc strong { color: var(--ink); }
.doc a:not(.btn) { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.doc address { font-size: 16px; line-height: 1.65; color: var(--muted-2); }
.callout { padding: 20px 22px; border-radius: 16px; background: var(--soft); margin-bottom: 8px; }
.callout p { color: var(--ink); }
.doc__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.doc__card { padding: 22px; border-radius: 18px; background: var(--page); }
.doc__card .ic { margin-bottom: 14px; }
.doc__card h3 { margin-top: 0; }
.doc__card p { font-size: 14px; line-height: 1.5; }
.doc__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .hero { padding: 60px 44px; gap: 40px; }
  h1 { font-size: 52px; letter-spacing: -2px; }
  .panel { width: 440px; }
  .principles { width: 400px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__inner { padding: 14px 20px; }
  .nav__toggle { display: block; }
  .nav__cta { margin-left: auto; padding: 10px 16px; font-size: 14px; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--nav);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }

  .hero, .split, .verify, .privacy { flex-direction: column; align-items: stretch; }
  .hero { padding: 44px 24px; gap: 44px; }
  .hero__copy, .split__copy,
  .verify .split__copy, .privacy .split__copy { max-width: none; }
  .phone { align-self: center; }
  .panel, .principles { width: 100%; }
  .verify, .privacy { padding: 56px 24px; gap: 40px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 40px; letter-spacing: -1.6px; }
  h2, .verify h2 { font-size: 32px; letter-spacing: -1.2px; }
  .lead, .section__sub { font-size: 16px; }
  .hero { padding: 36px 20px; }
  .hero__copy .eyebrow { letter-spacing: .1em; }
  .phone { width: 100%; max-width: 330px; height: auto; }
  .phone__screen { padding-bottom: 60px; }
  .section, .preflight { padding: 64px 0; }
  .section#features { padding-top: 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  .trust { gap: 10px; padding: 24px 0; }
  .trust li { padding: 12px; font-size: 13px; }
  .panel { padding: 18px; }
  .bignum strong { font-size: 32px; }
  .verify, .privacy { padding: 44px 20px; }
  .notice { align-items: flex-start; padding: 16px; }
  .faq__q { padding: 18px 16px; font-size: 15px; }
  .faq__a p { padding: 0 16px 18px; }
  .cta { padding: 56px 20px; }
  .footer { padding: 40px 20px 28px; }
  .footer__top { flex-direction: column; }
  .footer__links { align-items: flex-start; }
  .footer__disc { text-align: left; }
  .doc { padding: 48px 0 64px; }
  .doc h1 { font-size: 36px; letter-spacing: -1.2px; }
  .doc h2 { font-size: 22px; margin-top: 36px; }
  .doc__cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
