/* Memory Jigsaw website (landing, guide, FAQ, legal). Built by scripts/build-site.mjs. */
@font-face { font-family: Fraunces; font-weight: 600; font-display: swap; src: url(/site/fonts/fraunces-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Fraunces; font-weight: 700; font-display: swap; src: url(/site/fonts/fraunces-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 400; font-display: swap; src: url(/site/fonts/manrope-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(/site/fonts/manrope-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(/site/fonts/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(/site/fonts/manrope-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(/site/fonts/manrope-latin-800-normal.woff2) format("woff2"); }

:root {
  --ink: #10201F; --brand: #12302F; --brand-2: #0C2221; --accent: #0F6E6E; --accent-soft: #DDEEEA;
  --amber: #E9A04A; --amber-ink: #2A1B08; --sub: #4A5856; --body: #33423F; --muted: #6B7A77;
  --line: #E3E8E5; --line-2: #EEF2F0; --soft: #F3F6F4; --paper: #FFFFFF; --on-brand: #BCD2CF;
  --display: Fraunces, Georgia, "Times New Roman", serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.015em; color: var(--brand); margin: 0; }
.lead { font-size: 19px; color: var(--sub); margin: 0; max-width: 34em; }
.muted { color: var(--sub); }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: #1D4C4A; color: #fff; }
.btn-amber { background: var(--amber); color: var(--amber-ink); font-weight: 800; }
.btn-amber:hover { background: #F0B262; color: var(--amber-ink); }
.btn-line { background: #fff; color: var(--brand); border-color: #C9D3CF; }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { color: var(--brand); }
.btn-lg { font-size: 17px; padding: 15px 24px; border-radius: 12px; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 12px 28px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--brand); margin-right: auto; }
.logo b { font-family: var(--display); font-weight: 700; font-size: 20px; white-space: nowrap; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.nav a { color: #33423F; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--amber); }
.top-cta { display: flex; gap: 6px; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--brand); cursor: pointer; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 24px 16px; box-shadow: 0 16px 30px rgba(18,48,47,.08); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-2); color: var(--accent); }
  .top.open .nav { display: flex; }
  .menu-btn { display: inline-flex; }
  .top-cta .btn-ghost { display: none; }
}
@media (max-width: 420px) { .top-cta .btn-dark { padding: 10px 12px; font-size: 14px; } .logo b { font-size: 18px; } }

/* Sections */
.band-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--brand); color: #fff; position: relative; }
.band-dark::before, .band-dark::after { content: ""; position: absolute; left: 0; right: 0; height: 20px; background-repeat: repeat-x; background-size: 140px 20px; pointer-events: none; }
.band-dark::before { top: -19px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='20' viewBox='0 0 140 20'%3E%3Cpath d='M0 20 H58 C60 20 61 17 59 14 C55 8 60 1 70 1 C80 1 85 8 81 14 C79 17 80 20 82 20 H140 Z' fill='%2312302F'/%3E%3C/svg%3E"); }
.band-dark::after { bottom: -19px; background-position: 70px 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='20' viewBox='0 0 140 20'%3E%3Cpath d='M0 0 H58 C60 0 61 3 59 6 C55 12 60 19 70 19 C80 19 85 12 81 6 C79 3 80 0 82 0 H140 Z' fill='%2312302F'/%3E%3C/svg%3E"); }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin-bottom: 40px; }
.section-head .display { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; }
.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.chip { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.02em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--sub); padding: 0; margin: 4px 0 0; list-style: none; }
.ticks li { display: flex; align-items: center; gap: 6px; }
.hero-art { flex: 1 1 440px; min-width: 0; position: relative; max-width: 600px; margin: 0 auto; }
.jig { width: 100%; height: auto; display: block; overflow: visible; }
.toast-card { position: absolute; left: -7%; top: 4%; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(18,48,47,.14); display: flex; align-items: center; gap: 12px; }
.toast-card .ic { width: 36px; height: 36px; border-radius: 10px; background: #FFF3E2; display: grid; place-items: center; flex: none; }
.toast-card b { display: block; font-size: 15px; line-height: 1.3; }
.toast-card small { font-size: 13px; color: var(--sub); }
@media (max-width: 640px) {
  .hero .wrap { padding-top: 40px; padding-bottom: 56px; gap: 28px; }
  .toast-card { position: static; margin: 10px auto 0; width: max-content; max-width: 100%; }
}
.phone { border-radius: 34px; padding: 10px; background: var(--brand); box-shadow: 0 30px 60px rgba(18,48,47,.35); }
.phone img { border-radius: 26px; width: 100%; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 32px; padding-top: 28px; padding-bottom: 28px; }
.facts b { display: block; color: var(--brand); font-size: 15px; }
.facts span { font-size: 14px; color: var(--sub); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; font-size: 21px; color: var(--brand); }
.card p { margin: 0; color: var(--sub); }
.card .meta { font-size: 13px; font-weight: 700; color: var(--accent); }
.pnum { display: block; margin: -6px 0 -4px -6px; }
.num { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--amber); font: 700 20px var(--display); display: grid; place-items: center; }
.card-sm { padding: 22px; gap: 8px; }
.card-sm b { color: var(--brand); font-size: 17px; }
.card-sm span { color: var(--sub); font-size: 15px; }

/* Themes */
.split { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.split > * { min-width: 0; }
.split-copy { flex: 1 1 400px; display: flex; flex-direction: column; gap: 16px; }
.band-dark .display { color: #fff; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.band-dark .eyebrow { color: var(--amber); }
.band-dark p { color: var(--on-brand); font-size: 17px; margin: 0; }
.band-dark a { color: var(--amber); font-weight: 700; text-decoration: none; }
.themes { flex: 1 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.theme { border-radius: 12px; padding: 16px; min-height: 128px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background-size: 90px 90px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transform: rotate(var(--r, 0deg)); transition: transform .2s; }
.theme:nth-child(3n+1) { --r: -1.2deg; } .theme:nth-child(3n+2) { --r: .8deg; } .theme:nth-child(4n) { --r: -.4deg; }
.theme:hover { transform: rotate(0) translateY(-3px); }
.theme b { font: 700 19px/1.2 var(--display); display: block; }
.theme small { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .theme { transition: none; } }

/* Race */
.race-shots { flex: 1 1 400px; display: flex; justify-content: center; gap: 18px; }
.race-shots .phone { width: 230px; background: #3A2340; box-shadow: 0 24px 50px rgba(58,35,64,.3); }
.race-shots .phone:first-child { margin-top: 40px; }
@media (max-width: 520px) { .race-shots .phone { width: 46%; padding: 6px; border-radius: 22px; } .race-shots .phone img { border-radius: 17px; } }
.split-copy .display { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 3px; }

/* Pricing */
.plans { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.plan { flex: 1 1 340px; max-width: 460px; min-width: 0; border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.plan.pro { border: 2px solid var(--brand); background: #FBFCFB; }
.plan-name { font-weight: 800; font-size: 20px; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.badge { font-size: 12px; background: var(--amber); color: var(--amber-ink); padding: 3px 8px; border-radius: 999px; }
.price { font: 700 40px/1.1 var(--display); color: var(--brand); }
.price small { font: 600 16px var(--sans); color: var(--sub); }
.rows { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.rows li:last-child { border-bottom: 0; }
.rows b { font-variant-numeric: tabular-nums; }

/* FAQ teaser */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 36px; }
.qa-grid b { display: block; font-size: 17px; color: var(--brand); margin-bottom: 4px; }
.qa-grid span { color: var(--sub); font-size: 15px; }

/* CTA band */
.cta-band { background: var(--brand); border-radius: 24px; padding: 56px 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta-band h2 { font: 700 clamp(28px, 3vw, 36px)/1.15 var(--display); color: #fff; margin: 0; }
.cta-band p { color: var(--on-brand); margin: 6px 0 0; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { color: #fff; border-color: #fff; }
@media (max-width: 560px) { .cta-band { padding: 36px 24px; border-radius: 18px; } }

/* Footer */
.foot { background: var(--brand-2); color: var(--on-brand); font-size: 14px; }
.foot a { color: var(--on-brand); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-top { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-top: 56px; }
.foot-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.foot-logo { display: flex; align-items: center; gap: 12px; }
.foot-brand b { font: 700 20px/1.05 var(--display); color: #fff; }
.foot-col { display: flex; flex-direction: column; gap: 8px; min-width: 140px; }
.foot-col h2 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; }
.foot-bottom { border-top: 1px solid #22403E; margin-top: 40px; padding-top: 20px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }

/* Docs and legal pages */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { font-size: clamp(34px, 4vw, 46px); line-height: 1.1; }
.page-head p { margin: 0; color: var(--sub); max-width: 40em; }
.doc { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; padding-top: 44px; padding-bottom: 96px; }
.toc { flex: 1 1 220px; min-width: 0; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; padding: 0 10px; }
.toc a { text-decoration: none; padding: 7px 10px; border-radius: 8px; color: var(--sub); font-weight: 500; }
.toc a:hover { background: var(--soft); color: var(--brand); }
.toc a.on { background: #E6EFEC; color: var(--brand); font-weight: 700; }
.prose { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 40px; color: var(--body); line-height: 1.7; }
.prose section { display: flex; flex-direction: column; gap: 12px; }
.prose h2 { margin: 0; font: 700 28px/1.2 var(--display); color: var(--brand); }
.prose.legal h2 { font: 800 21px/1.3 var(--sans); }
.prose p, .prose ol, .prose ul { margin: 0; }
.prose ol, .prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose b, .prose strong { color: var(--ink); }
.updated { color: var(--muted); font-size: 14px; }
.note { display: flex; gap: 12px; border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.note svg { flex: none; margin-top: 3px; }
.note-tip { background: #FFF6E8; border: 1px solid #F3D9B1; color: #4A3412; }
.note-info { background: var(--soft); border: 1px solid #DDE5E2; }
.summary { background: var(--soft); border: 1px solid #DDE5E2; border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.summary h2 { font: 800 16px var(--sans); color: var(--brand); }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-box table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; min-width: 560px; }
.table-box th { background: var(--soft); text-align: left; padding: 10px 14px; font-size: 13px; color: var(--sub); }
.table-box td { padding: 10px 14px; border-top: 1px solid var(--line-2); vertical-align: top; }
.table-box td:first-child { font-weight: 700; color: var(--brand); }
.table-box .r { text-align: right; font-variant-numeric: tabular-nums; }
.tools { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tools div { display: flex; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.tools div:last-child { border-bottom: 0; }
.tools b { flex: 0 0 80px; color: var(--brand); }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.partners div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.partners b { display: block; font-size: 15px; color: var(--brand); }
.doc-end { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--sub); font-size: 15px; }
@media (max-width: 860px) { .toc { position: static; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; } .toc h2 { width: 100%; padding: 0; } .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; } }

/* FAQ page */
.faq-head .wrap { align-items: center; text-align: center; padding-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.filters button { font: 700 14px var(--sans); padding: 10px 16px; min-height: 44px; border-radius: 999px; cursor: pointer; border: 1px solid #C9D3CF; background: #fff; color: var(--brand); }
.filters button[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.faq { max-width: 880px; margin: 0 auto; padding-top: 32px; padding-bottom: 88px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 4px; cursor: pointer; font: 700 18px/1.4 var(--sans); color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.faq summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #C9D3CF; display: grid; place-items: center; font-style: normal; font-size: 20px; line-height: 1; transition: transform .15s; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 52px 22px 4px; color: var(--body); }
.help-box { margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.help-box b { display: block; font-size: 18px; color: var(--brand); }
.help-box span { color: var(--sub); }
