/* MIRA website. Tokens mirror src/design/tokens.ts (ink surfaces, ivory type, a quiet rose accent). */

@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-400.woff2?v=a6aecf46fb") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-400-italic.woff2?v=8f9f962c04") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-500.woff2?v=9f73e979a7") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-400.woff2?v=14df635fba") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-600.woff2?v=f713da0403") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-700.woff2?v=7904744de4") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0a0d16;
  --ink-2: #0f131e;
  --ink-3: #161b29;
  --ink-4: #1e2435;
  --ivory: #f4eee6;
  --ivory-muted: rgba(244, 238, 230, 0.78);
  --ivory-faint: rgba(244, 238, 230, 0.62);
  --line: rgba(244, 238, 230, 0.1);
  --line-strong: rgba(244, 238, 230, 0.22);
  --rose: #f0b4c0;
  --rose-deep: #e48fa2;
  --rose-wash: rgba(240, 180, 192, 0.12);

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Manrope", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gutter: 16px;
  --max: 1120px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ivory); }

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

::selection { background: var(--rose); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--rose);
  color: var(--ink);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.overline {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  text-decoration: none;
  padding-block: 8px;
}
.brand:hover { color: var(--ivory); }
.brand svg { width: 30px; height: 30px; }
.wordmark { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.3em; margin-right: -0.3em; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--ivory-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--ivory); }
.site-nav a[aria-current="page"] { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 0.5em; }
@media (max-width: 380px) {
  .site-nav a { padding-inline: 7px; font-size: 0.875rem; }
  .brand { gap: 9px; }
}

/* Hero */
.hero { padding-block: 40px 72px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 5.25rem); line-height: 1; margin-top: 18px; }
.hero h1 em, .accent { font-style: italic; color: var(--rose); }
.lead { margin-top: 22px; max-width: 34ch; font-size: 1.1875rem; line-height: 1.55; color: var(--ivory-muted); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 12px 18px 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.status-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px var(--rose-wash); }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-weight: 600; font-size: 0.9375rem; }

.frame {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--line);
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 74% 68%; }
.frame .ghost { opacity: 0; mix-blend-mode: screen; }
.corners { position: absolute; inset: 7%; pointer-events: none; }
.corners span {
  position: absolute;
  width: 15%;
  aspect-ratio: 1;
  border: 0 solid var(--ivory);
  opacity: 0.92;
}
.corners span:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 14px; }
.corners span:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 14px; }
.corners span:nth-child(3) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 14px; }
.corners span:nth-child(4) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 14px; }
.corners.guide span { border-color: var(--rose); opacity: 0.9; }
.corners.guide { transform: translate(2.2%, -1.8%); }

@media (prefers-reduced-motion: no-preference) {
  .frame .ghost { animation: ghost-align 2.6s var(--ease-out) 0.35s both; }
  .corners.guide { animation: guide-align 2.6s var(--ease-out) 0.35s both; }
  .status-dot { animation: pulse 2.8s ease-in-out infinite; }
}
@keyframes ghost-align {
  0% { opacity: 0.42; transform: translate(7%, -5%) scale(1.07); }
  70% { opacity: 0.3; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(0, 0) scale(1); }
}
@keyframes guide-align {
  0% { transform: translate(7%, -5%) scale(1.07); }
  70%, 100% { transform: translate(0, 0) scale(1); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--rose-wash); }
  50% { box-shadow: 0 0 0 7px rgba(240, 180, 192, 0.05); }
}

@media (min-width: 900px) {
  .hero { padding-block: 64px 104px; }
  .hero .wrap { grid-template-columns: 1.08fr 0.92fr; gap: 64px; }
  .frame { aspect-ratio: 9 / 13; max-width: 460px; justify-self: end; }
}

/* Sections */
.section { padding-block: 72px; border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; }
.section h2 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); margin-top: 14px; }
.section-head p:not(.overline) { margin-top: 16px; color: var(--ivory-muted); font-size: 1.125rem; }
@media (min-width: 900px) { .section { padding-block: 104px; } }

.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.step-num { font-family: var(--serif); font-style: italic; font-size: 2.5rem; line-height: 1; color: var(--rose); }
.step h3 { font-size: 1.625rem; margin-top: 22px; }
.step p { margin-top: 10px; color: var(--ivory-muted); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.privacy-grid { display: grid; gap: 40px; align-items: center; }
.privacy-photo { aspect-ratio: 4 / 5; max-width: 440px; }
.privacy-photo img { object-position: 70% 62%; }
.promise { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.promise li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.0625rem; }
.promise svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.fineprint { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ivory-faint); font-size: 0.9375rem; max-width: 40rem; }
@media (min-width: 900px) {
  .privacy-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
  .privacy-photo { order: -1; }
}

.launch { text-align: center; }
.launch .wrap { display: flex; flex-direction: column; align-items: center; }
.launch svg.mark { width: 64px; height: 64px; }
.launch h2 { max-width: 18ch; margin-top: 26px; }
.launch p { margin-top: 16px; max-width: 34rem; color: var(--ivory-muted); font-size: 1.125rem; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.button:hover { background: var(--ivory); color: var(--ink); }
.button:focus-visible { outline-color: var(--ivory); border-radius: 999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; color: var(--ivory-faint); font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 20px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.footer-nav li + li::before { content: "·"; color: var(--ivory-faint); margin-right: 6px; }
.footer-nav a { color: var(--ivory-muted); text-decoration: none; font-weight: 600; display: inline-block; padding-block: 10px; }
.footer-nav a:hover { color: var(--ivory); text-decoration: underline; }
.footer-meta { display: grid; gap: 6px; }

/* Documents (Privacy, Terms, Support) */
.doc-page { padding-block: 44px 88px; }
.doc-layout { display: grid; gap: 32px; }
.doc-header h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); margin-top: 14px; }
.doc-meta { margin-top: 14px; color: var(--ivory-faint); font-size: 0.9375rem; font-weight: 600; }
.doc-intro { margin-top: 22px; font-size: 1.1875rem; line-height: 1.6; color: var(--ivory-muted); max-width: 40rem; }
.doc-body { max-width: 44rem; }
.doc-body section { padding-top: 34px; scroll-margin-top: 20px; }
.doc-body h2 { font-size: 1.75rem; line-height: 1.15; }
.doc-body section p { margin-top: 12px; color: var(--ivory-muted); line-height: 1.7; }
.doc-body section p strong { color: var(--ivory); font-weight: 600; }
.doc-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ivory-faint); font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.toc { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ink-2); }
.toc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.375rem; font-weight: 400; color: var(--rose); line-height: 1; }
.toc[open] summary::after { content: "–"; }
.toc ol, .toc-side ol { margin: 0; padding: 0 18px 16px 40px; display: grid; gap: 2px; }
.toc li, .toc-side li { color: var(--ivory-faint); font-size: 0.9375rem; }
.toc a, .toc-side a { color: var(--ivory-muted); text-decoration: none; display: inline-block; padding-block: 6px; line-height: 1.35; }
.toc a:hover, .toc-side a:hover { color: var(--ivory); text-decoration: underline; }
.toc-side { display: none; }
.toc-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-faint); margin-bottom: 10px; }
.toc-side ol { padding: 0 0 0 30px; }

@media (min-width: 1100px) {
  .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 72px; align-items: start; }
  .toc { display: none; }
  .toc-side { display: block; position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow-y: auto; padding-top: 6px; }
}

/* Support */
.contact-card {
  margin-top: 32px;
  padding: 28px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 100% 0%, rgba(240, 180, 192, 0.1), transparent 60%), var(--ink-2);
  max-width: 44rem;
}
.contact-card h2 { font-size: 1.75rem; }
.contact-card p { margin-top: 10px; color: var(--ivory-muted); }
.contact-card .button { margin-top: 20px; }
.faq-group { margin-top: 48px; max-width: 44rem; }
.faq-group > h2 { font-size: 1.75rem; margin-bottom: 14px; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 2px;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; color: var(--rose); line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq .answer { padding: 0 2px 20px; display: grid; gap: 10px; color: var(--ivory-muted); }
.faq .answer ol, .faq .answer ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }

/* 404 */
.not-found { min-height: 62vh; display: flex; align-items: center; text-align: center; padding-block: 72px; }
.not-found .wrap { display: flex; flex-direction: column; align-items: center; }
.not-found svg.mark { width: 72px; height: 72px; }
.not-found h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); margin-top: 28px; }
.not-found p { margin-top: 14px; color: var(--ivory-muted); max-width: 30rem; }
.not-found .button { margin-top: 28px; }

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