/* Effrt — editorial-brutalist landing. Same system as the app:
   paper/ink + one violent accent, compressed black display type, mono data,
   square corners, hairline rules, hard shadows. Dark = Midnight palette.
   Layout is full-bleed: rules run edge to edge, type spans the viewport. */

@font-face {
  font-family: 'Anton';
  src: url('/fonts/anton-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/ibm-plex-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/ibm-plex-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/ibm-plex-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #EDE8DD;
  --ink: #0E0E0E;
  --accent: #5B21B6;
  --accent-lite: #8B5CF6;
  --hairline: color-mix(in srgb, var(--ink) 25%, transparent);
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --gutter: clamp(24px, 4vw, 72px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C0E13;
    --ink: #F2F3F7;
    --accent: #8B5CF6;
    --accent-lite: #5B21B6;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain — one subtle turbulence layer over everything. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 3;
}

/* Full-bleed shell: rules span the viewport, content sits inside the gutter. */
.page { position: relative; z-index: 1; }
.gut { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- header ---------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--gutter) 18px;
  border-bottom: 2px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { display: block; }
.brand .peak-l { fill: var(--accent); }
.brand .peak-r { fill: var(--accent-lite); }
.wordmark {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.02em;
  line-height: 1;
  transform: translateY(1px);
}
.header-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
@media (max-width: 560px) { .header-tag { display: none; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 9vh, 110px) var(--gutter) 0;
  overflow: hidden;
}

/* Oversized peak cropped off-canvas right — the one loud graphic. */
.hero-peak {
  position: absolute;
  right: clamp(-280px, -12vw, -120px);
  top: 0;
  width: clamp(420px, 44vw, 860px);
  height: auto;
  opacity: 0.12;
  pointer-events: none;
}
.hero-peak .peak-l { fill: var(--accent); }
.hero-peak .peak-r { fill: var(--accent-lite); }

/* Display type spans the full viewport width. line-height 1.02 keeps the
   comma's descender clear of the caps below it (Anton clips at ~0.92). */
h1 {
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 7.4vw, 150px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
h1 .acc { color: var(--accent); }
/* The forced two-line break only holds where both lines fit; on phones let it wrap. */
@media (max-width: 640px) { h1 br { display: none; } }

/* Row under the display: sub anchored left, badge pushed hard right. */
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px var(--gutter);
  padding: clamp(32px, 5vh, 56px) 0 clamp(44px, 7vh, 80px);
}
.hero-sub {
  font-family: var(--mono);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 54ch;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  padding: 14px 22px;
  box-shadow: 5px 5px 0 var(--accent);
  background: var(--paper);
  white-space: nowrap;
}

/* ---------- props: three ruled columns across the full width ---------- */

.props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.prop {
  padding: 34px clamp(22px, 2.5vw, 44px) 48px;
  border-left: 1px solid var(--hairline);
}
.prop:first-child { border-left: none; padding-left: var(--gutter); }
.prop:last-child { padding-right: var(--gutter); }
.prop-num {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.prop-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.08;
}
.prop-body {
  margin-top: 12px;
  font-size: 15px;
  opacity: 0.85;
}
@media (max-width: 860px) {
  .props { grid-template-columns: 1fr; }
  .prop, .prop:first-child, .prop:last-child {
    border-left: none;
    padding: 28px var(--gutter) 36px;
    border-top: 1px solid var(--hairline);
  }
  .prop:first-child { border-top: none; }
}

/* ---------- footer ---------- */

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: baseline;
  padding: 26px var(--gutter) 44px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
}
footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }
footer .spacer { flex: 1; }
footer .fine { opacity: 0.45; }

/* ---------- doc pages (privacy / support) ----------
   Title spans the page; below it a sticky mono rail on the left and a
   readable measure on the right — no more centred single column. */

.doc { padding: clamp(40px, 7vh, 72px) var(--gutter) 40px; }
.doc h1 {
  font-size: clamp(48px, 9vw, 130px);
  margin-bottom: clamp(24px, 4vh, 48px);
}
.doc-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 720px);
  gap: 24px clamp(40px, 6vw, 110px);
  align-items: start;
  border-top: 2px solid var(--ink);
  padding-top: 28px;
}
.doc-rail {
  position: sticky;
  top: 28px;
  font-family: var(--mono);
}
.doc-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 24px;
}
.doc-rail nav a {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
}
.doc-rail nav a:first-child { border-top: 1px solid var(--hairline); }
.doc-rail nav a:hover { color: var(--accent); padding-left: 6px; }
.doc-rail nav a { transition: padding-left 0.15s ease, color 0.15s ease; }
@media (max-width: 780px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-rail { position: static; }
  .doc-rail nav { display: none; }
}

.doc-body h2 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border-top: 2px solid var(--ink);
  padding-top: 18px;
  margin: 44px 0 12px;
  scroll-margin-top: 24px;
}
.doc-body > h2:first-child, .doc-body > p:first-child + h2 { margin-top: 0; }
.doc-body p, .doc-body li { font-size: 15.5px; margin-bottom: 12px; }
.doc-body ul { padding-left: 22px; margin-bottom: 12px; }
.doc-body li { margin-bottom: 6px; }
.doc-body strong { font-weight: 600; }
.doc-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); }
.doc-body .plain { border: none; }
.doc-lede { font-size: 17px; }

/* processor rows */
.proc {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
}
.proc:last-of-type { margin-bottom: 12px; }
.proc .name { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; }
@media (max-width: 560px) { .proc { grid-template-columns: 1fr; gap: 2px; } }

/* email block on support */
.email-block {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 600;
  border: 2px solid var(--ink);
  padding: 16px 22px;
  box-shadow: 5px 5px 0 var(--accent);
  color: var(--ink) !important;
  text-decoration: none;
  border-bottom: 2px solid var(--ink) !important;
  margin: 8px 0 20px;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.email-block:hover { box-shadow: 7px 7px 0 var(--accent); transform: translate(-1px, -1px); }

/* ---------- load reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .reveal:nth-child(1), .r1 { animation-delay: 0.05s; }
  .r2 { animation-delay: 0.15s; }
  .r3 { animation-delay: 0.25s; }
  .r4 { animation-delay: 0.35s; }
  .r5 { animation-delay: 0.45s; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}
