/* Zeoze public site.

   The palette comes from the WORDMARK, not from apps/mobile/src/theme.ts. The
   theme file's blue (#2E6E8E) is the in-app dark theme's accent; the brand mark
   itself is black serif caps with a red O (#D8171C). Building the site on the
   blue made every page fight its own logo. Red is the accent here, used
   sparingly — it is a punctuation mark, not a background.

   Neutrals are warm rather than grey, echoing the concrete and cream in the
   outfit photography. */

@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/assets/fonts/HankenGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/assets/fonts/BodoniModa-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #0b0b0c;
  --ink-soft: #57534b;
  --ink-faint: #8f887d;
  --line: #e6e1d9;
  --paper: #faf8f5;
  --paper-raised: #ffffff;
  --paper-sunk: #f2eee8;

  --red: #d8171c;
  --red-deep: #a81116;
  --red-pale: #fdecec;

  --amber: #8a5a1b;
  --amber-pale: #fbf1e2;

  --display: 'Bodoni Moda', ui-serif, Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI',
    sans-serif;

  --measure: 68ch;
  --wrap: 74rem;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 12, 0.05);
  --shadow-lg: 0 2px 4px rgba(11, 11, 12, 0.04),
    0 18px 40px -12px rgba(11, 11, 12, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f0ec;
    --ink-soft: #aaa49a;
    --ink-faint: #7d776f;
    --line: #2a2a2c;
    --paper: #0e0e0f;
    --paper-raised: #171719;
    --paper-sunk: #131315;

    --red: #f0353c;
    --red-deep: #ff5a60;
    --red-pale: #2a1315;

    --amber: #e0b878;
    --amber-pale: #241d12;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 20;
}
.skip:focus {
  left: 0;
}

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

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

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  line-height: 0;
}
.brand img {
  height: 26px;
  width: auto;
}
/* Two wordmark files rather than a CSS filter: the mark is black letters with a
   red O, and invert() would turn that O cyan. */
.brand .on-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .brand .on-light {
    display: none;
  }
  .brand .on-dark {
    display: inline;
  }
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--red);
}

/* ── Display type ────────────────────────────────────────────────────────── */

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.7rem;
  max-width: 18ch;
}

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}

.page-head {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) 0;
  position: relative;
}

.updated {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

/* The aurora gradient from the app, blurred to a wash. Decorative only. */
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background: url('/assets/aurora.jpg') center / cover no-repeat;
  filter: blur(60px) saturate(1.1);
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero::before {
    opacity: 0.24;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}

@media (max-width: 60rem) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
}

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-raised);
  font-size: 0.88rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.hero__note::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ── The A/B demo ────────────────────────────────────────────────────────── */

.ab {
  display: grid;
  gap: 0.9rem;
}

.ab__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.ab__option {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-sunk);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 437 / 850;
}
.ab__option img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ab__tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  backdrop-filter: blur(4px);
}
.ab__option--win .ab__tag {
  background: var(--red);
  color: #fff;
}

.ab__meter {
  display: flex;
  height: 0.4rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}
.ab__meter i {
  display: block;
  height: 100%;
}
.ab__meter i:first-child {
  background: var(--red);
}
.ab__meter i:last-child {
  background: var(--ink-faint);
}

.ab__legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.ab__legend b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
}
.ab__legend span:first-child b {
  color: var(--red);
}

.ab__caption {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 2rem;
  letter-spacing: -0.01em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.card__num {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--red);
  display: block;
  margin-bottom: 0.7rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.06rem;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.section-band {
  border-top: 1px solid var(--line);
  background: var(--paper-sunk);
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.linklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* The <li> is the grid item and stretches to the row height, but the <a> is
   what's actually painted — without this it only grows to its own text, so a
   one-line card ends up visibly shorter than its neighbours. */
.linklist li {
  display: flex;
}
.linklist a {
  flex: 1;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper-raised);
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.linklist a:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.linklist strong {
  display: block;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.linklist span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ── Prose ───────────────────────────────────────────────────────────────── */

.prose {
  padding-block: clamp(2rem, 5vw, 3.25rem) clamp(3rem, 7vw, 5rem);
  max-width: var(--measure);
}

.prose h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 3rem 0 0.85rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.prose > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-size: 1.08rem;
  margin: 1.9rem 0 0.5rem;
}

.prose p {
  margin: 0 0 1.05rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.3rem;
  padding-left: 1.35rem;
}
.prose li {
  margin-bottom: 0.55rem;
}
.prose li::marker {
  color: var(--red);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

/* ── Callout ─────────────────────────────────────────────────────────────── */

.callout {
  margin: 1.9rem 0;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
}
.callout--warn {
  border-left-color: var(--amber);
  background: var(--amber-pale);
}
.callout--plain {
  border-left-color: var(--line);
}
.callout__title {
  font-weight: 600;
  margin: 0 0 0.45rem;
}
.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

/* ── Table ───────────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.96rem;
}
th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  font-weight: 600;
  background: var(--paper-sunk);
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}

/* ── Steps ───────────────────────────────────────────────────────────────── */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0;
}
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.9rem;
  color: #fff;
  background: var(--red);
  margin-top: 0.05rem;
}
.steps__body p:last-child {
  margin-bottom: 0;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.faq:last-child {
  border-bottom: 0;
}
.faq__q {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.faq__a p:last-child,
.faq__a ul:last-child {
  margin-bottom: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-sunk);
  padding-block: 2.75rem 3rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer__links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.site-footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer__links a:hover {
  color: var(--red);
}
.site-footer__contact,
.site-footer__legal {
  margin: 0 0 0.35rem;
}
.site-footer__legal {
  color: var(--ink-faint);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .linklist a:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer__links,
  .skip,
  .hero::before {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
