@font-face {
  font-family: Geist;
  src: url("/fonts/geist-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("/fonts/geist-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Geist;
  src: url("/fonts/geist-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-geist-sans: Geist, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

/* Brand accents layered on the AniDachi account tokens. */
[data-ani-theme="account"] {
  --accent: #ff9143;
  --accent-hover: #ffa866;
  --accent-deep: #c2410c;
  --accent-ink: #1a0f06;
  --accent-soft: color-mix(in srgb, #ff9143 10%, transparent);
  --accent-line: color-mix(in srgb, #ff9143 32%, transparent);
  --accent-glow: 0 0 0 1px color-mix(in srgb, #ff9143 40%, transparent), 0 18px 60px -18px color-mix(in srgb, #ff9143 55%, transparent);
  --ani-text-strong: #fbf6ef;
  --ani-panel-raised: #1b1a1c;
}

/* Homepage and flagship pages. Token names come from ani-tokens.css (AniDachi account handoff). */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Tokens live on <body>; hard-code the canvas here so overscroll never shows white. */
  background: #0d0d0f;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ani-canvas);
  color: var(--ani-text);
  font-family: var(--ani-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fine film grain across the canvas: keeps flat blacks from feeling templated. */
body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
}

body > * {
  position: relative;
  z-index: 1;
}

body > .site-header {
  position: sticky;
  z-index: 20;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--ani-text-strong);
}

:focus-visible {
  outline: 2px solid var(--ani-focus);
  outline-offset: 4px;
}

a {
  color: var(--ani-menu-accent);
  text-underline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Serif italic accent word inside headings. */
.accent {
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 90;
  padding: 10px 18px;
  border-radius: var(--ani-radius-pill);
  background: var(--ani-primary);
  color: var(--ani-on-primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  /* Fully out of view until focused, so rubber-band overscroll can't reveal it. */
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  clip-path: none;
  opacity: 1;
  pointer-events: auto;
}

.shell {
  width: min(100% - 64px, 1200px);
  margin-inline: auto;
}

/* z: skip 90, cookie 80, header 20 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  border-bottom: 1px solid var(--ani-line);
  background: color-mix(in srgb, var(--ani-canvas) 80%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 68px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ani-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand::before {
  flex: none;
  width: 28px;
  height: 28px;
  background: url("/assets/brand/heart-96.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 10px rgb(255 40 40 / 0.3));
  content: "";
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a,
.contact-link {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: #b9b1a7;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ani-motion-control);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ani-text-strong);
}

.contact-link {
  justify-self: end;
  padding: 0 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--ani-radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  transition:
    background-color var(--ani-motion-control),
    color var(--ani-motion-control),
    border-color var(--ani-motion-control);
}

.contact-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.ac-button,
.c-btn,
.pilot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--ani-control-border);
  border-radius: var(--ani-radius-pill);
  background: transparent;
  color: var(--ani-text);
  font: 600 14px/1.3 var(--ani-font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--ani-motion-control),
    border-color var(--ani-motion-control),
    color var(--ani-motion-control),
    box-shadow var(--ani-motion-control),
    transform var(--ani-motion-control);
}

.c-btn::after,
.pilot-link::after {
  font-family: var(--font-mono);
  font-weight: 400;
  transition: transform var(--ani-motion-control);
  content: "→";
}

.c-btn:hover::after,
.pilot-link:hover::after {
  transform: translateX(3px);
}

.ac-button:hover:not(:disabled),
.c-btn-secondary:hover {
  background: var(--ani-hover);
  border-color: var(--ani-control-border-hover);
}

.ac-button:active,
.c-btn:active,
.pilot-link:active {
  transform: scale(0.98);
}

.c-btn,
.pilot-link,
.ac-button.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 10px 34px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}

.c-btn:hover,
.pilot-link:hover,
.ac-button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: transparent;
  box-shadow: 0 14px 44px -12px color-mix(in srgb, var(--accent) 90%, transparent);
}

.c-btn-secondary {
  background: color-mix(in srgb, var(--ani-text) 3%, transparent);
  border-color: var(--ani-control-border);
  color: var(--ani-text);
  box-shadow: none;
}

.c-btn-secondary:hover {
  box-shadow: none;
}

.c-btn-secondary::after {
  color: var(--ani-muted);
}

.hero {
  min-height: 0;
  padding: 32px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  max-width: 11.5em;
  color: var(--ani-text-strong);
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.hero h1 .accent {
  font-size: 1.1em;
  line-height: 0.9;
}

.lead {
  max-width: 44ch;
  margin-top: 22px;
  color: var(--ani-muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-support {
  margin-top: 16px;
  color: var(--ani-muted);
  font-size: 13px;
}

.hero-support a {
  color: var(--ani-text);
}

.panel {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-panel);
  background: var(--ani-panel);
}

.panel-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.panel-row + .panel-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ani-line);
}

.k {
  margin: 0 0 6px;
  color: var(--ani-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.v {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.is-rejected .v {
  color: var(--ani-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.is-approved {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--ani-progress) 35%, transparent);
  border-radius: var(--ani-radius-field);
  background: color-mix(in srgb, var(--ani-progress) 8%, transparent);
}

.is-approved .k {
  color: var(--ani-progress);
}

.panel figcaption {
  margin-top: 16px;
  color: var(--ani-muted);
  font-size: 12px;
}

.band {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--ani-line);
  scroll-margin-top: 84px;
}

.band h2 {
  max-width: 20ch;
  color: var(--ani-text-strong);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.lead-block {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--ani-muted);
  font-size: 17px;
  line-height: 1.6;
}

.steps {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--ani-line);
  counter-increment: step;
}

.steps li:last-child {
  border-bottom: 1px solid var(--ani-line);
}

.steps li::before {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  content: counter(step, decimal-leading-zero);
}

.steps h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps p {
  margin-top: 6px;
  max-width: 58ch;
  color: var(--ani-muted);
  font-size: 15px;
}

.note {
  margin-top: 24px;
  max-width: 64ch;
  color: var(--ani-muted);
  font-size: 13px;
  line-height: 1.6;
}

.note a,
.footer-col a:hover,
.footer-bottom a {
  color: var(--ani-text);
}

.sprint .c-btn-secondary {
  margin-top: 24px;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.faq-list details {
  border-top: 1px solid var(--ani-line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--ani-line);
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  padding: 20px 40px 20px 0;
  color: var(--ani-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color var(--ani-motion-control);
}

.faq-list summary:hover {
  color: var(--ani-text-strong);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border: 1px solid var(--ani-control-border);
  border-radius: 50%;
  color: var(--ani-muted);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  transition:
    transform var(--ani-motion-segment),
    color var(--ani-motion-control),
    border-color var(--ani-motion-control);
  content: "+";
}

.faq-list details[open] summary::after {
  border-color: var(--accent-line);
  color: var(--accent);
  transform: rotate(45deg);
}

.faq-list details p {
  margin: 0 0 22px;
  max-width: 62ch;
  color: var(--ani-muted);
  font-size: 15px;
}

.pilot-link {
  margin-top: 28px;
}

.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--ani-line);
  color: var(--ani-muted);
  font-size: 13px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 24ch;
}

.footer-col p {
  margin: 0 0 14px;
  color: var(--ani-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 9px;
}

.footer-col a {
  color: #a09c97;
  text-decoration: none;
  transition: color var(--ani-motion-control);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--ani-line);
  font-size: 12px;
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  color: var(--ani-muted);
  text-decoration: none;
}

.footer-bottom a:last-child {
  margin-left: auto;
}

.cookie-consent {
  position: fixed;
  z-index: 80;
  right: 32px;
  bottom: 20px;
  left: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 34rem;
  margin-left: auto;
  padding: 16px 18px;
  border: 1px solid var(--ani-line);
  border-radius: var(--ani-radius-panel);
  background: var(--ani-notifications);
  box-shadow: var(--ani-shadow-notification);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent p {
  flex: 1 1 16rem;
  margin: 0;
  color: var(--ani-muted);
  font-size: 13px;
}

.cookie-consent p a {
  color: var(--ani-text);
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
}

.cookie-consent .c-btn {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 13px;
}

.cookie-consent .c-btn::after {
  content: none;
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--ani-canvas);
    backdrop-filter: none;
  }
}

@media (max-width: 1023px) {
  .shell {
    width: min(100% - 40px, 1200px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
  }

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    gap: 20px;
  }

  .hero,
  .hero-grid {
    min-height: 0;
  }

  .hero-grid,
  .faq,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .faq {
    gap: 24px;
  }

  .hero h1 {
    max-width: none;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(100% - 32px, 1200px);
  }

  .contact-link {
    padding: 0 12px;
    font-size: 12px;
  }

  .cookie-consent {
    right: 16px;
    left: 16px;
  }

  .footer-bottom a:last-child {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
