/* Privopact — warm paper, chunky type, clay characters.
   Fonts are self-hosted so the site makes no third-party font requests. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-500-700.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #f6f3ec;
  --paper-2: #efeadf;
  --card: #ffffff;
  --ink: #14171f;
  --ink-2: #4a4f5c;
  --ink-3: #737885;
  --line: #e3ddd0;

  --blue: #1868db;
  --blue-hover: #1257bd;
  --blue-deep: #0f3f8c;
  --navy: #0b1b36;
  --navy-2: #13284d;

  --sun: #ffc83d;
  --sun-soft: #fff1c7;
  --coral: #ff8a6b;
  --coral-soft: #ffe3da;
  --mint: #4fbf86;
  --mint-soft: #dcf4e6;
  --sky-soft: #dce8fb;

  --display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --max: 1160px;
  --shadow-sm: 0 1px 2px rgba(20, 23, 31, 0.06), 0 0 0 1px rgba(20, 23, 31, 0.06);
  --shadow: 0 2px 4px rgba(20, 23, 31, 0.04), 0 12px 32px -8px rgba(20, 23, 31, 0.16),
    0 0 0 1px rgba(20, 23, 31, 0.05);
  --shadow-lg: 0 4px 8px rgba(20, 23, 31, 0.04), 0 32px 64px -16px rgba(15, 63, 140, 0.28),
    0 0 0 1px rgba(20, 23, 31, 0.05);

  color-scheme: light;
}

*,
*::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(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
}

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

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.2vw + 0.5rem, 5.25rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.125rem, 3.6vw + 0.75rem, 3.75rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.375rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}

.muted {
  color: var(--ink-2);
}

/* Highlighter swash behind key words (wraps cleanly across lines) */
.hl {
  font-style: normal;
  background: linear-gradient(
    176deg,
    transparent 56%,
    var(--sun) 56%,
    var(--sun) 92%,
    transparent 92%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.06em;
  margin: 0 -0.02em;
}

.hl-blue {
  color: var(--blue);
  font-style: normal;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  transform: rotate(45deg);
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
}

code {
  background: var(--sky-soft);
  color: var(--blue-deep);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ---------- Announcement + nav ---------- */

.announce {
  background: var(--navy);
  color: #dfe7f5;
  font-size: 0.875rem;
  text-align: center;
  padding: 9px 16px;
}

.announce a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.announce a:hover {
  text-decoration: underline;
}

.announce .tag {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 1px 8px;
  border-radius: 999px;
  margin-right: 8px;
}

/* Ferndesk-style header: full-width bar, centered links, raised button */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}

.logo img {
  width: 26px;
  height: 26px;
}

.nav {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 64px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #4e4a44;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.dd.open > .nav-link {
  background: var(--paper-2);
  color: var(--ink);
}

.nav-right .nav-link svg {
  width: 16px;
  height: 16px;
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}

.dd {
  position: relative;
}

.dd.open > .nav-link svg {
  transform: rotate(180deg);
}

.dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  width: 320px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(20, 23, 31, 0.18), 0 2px 4px rgba(20, 23, 31, 0.04);
}

.dd-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.dd.open .dd-menu {
  display: block;
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
}

.dd-item:hover {
  background: var(--paper);
}

.dd-item img {
  width: 40px;
  height: 40px;
  flex: none;
}

.dd-item b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.dd-item small {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.35;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-face {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid #0d4aa6;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 0 #0b3f8f,
    0 2px 4px rgba(20, 19, 18, 0.08);
  transition: background 0.12s;
}

.btn-face:hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn-face:active {
  translate: 0 1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 0 #0b3f8f;
}

.menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d8d5ce;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 #e3e0da;
  cursor: pointer;
}

.menu-btn svg {
  width: 18px;
  height: 18px;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 20px;
}

.site-header.menu-open .mobile-menu {
  display: block;
}

.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu a {
  padding: 12px 8px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu a:hover {
  background: var(--paper-2);
}

.mobile-menu .btn-face {
  justify-content: center;
  margin-top: 10px;
  padding: 12px;
  font-size: 15px;
  color: #fff;
}

@media (hover: hover) and (min-width: 961px) {
  .dd:hover .dd-menu {
    display: block;
  }
}

@media (max-width: 960px) {
  .nav,
  .nav-right {
    display: none;
  }

  .menu-btn {
    display: grid;
  }
}

/* ---------- Buttons (Ferndesk-style raised faces) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.btn:active {
  translate: 0 1px;
}

.btn-primary {
  background: var(--blue);
  border-color: #0d4aa6;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 1px 0 #0b3f8f,
    0 2px 4px rgba(20, 19, 18, 0.08);
}

.btn-primary:hover {
  background: var(--blue-hover);
  color: #fff;
}

.btn-primary:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  background: #fff;
  border-color: #d8d5ce;
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 #e3e0da, 0 2px 4px rgba(20, 19, 18, 0.04);
}

.btn-ghost:hover {
  background: #faf9f6;
  border-color: #cbc7bf;
  color: var(--ink);
}

.btn-ghost:active {
  box-shadow: none;
}

.btn-sun {
  background: var(--sun);
  border-color: #d9a520;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 1px 0 #c79410,
    0 2px 4px rgba(20, 19, 18, 0.1);
}

.btn-sun:hover {
  background: #ffd35e;
  color: var(--ink);
}

.btn-sun:active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-lg {
  padding: 11px 20px;
  font-size: 16px;
  border-radius: 8px;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
}

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

.hero h1 {
  font-size: clamp(2.75rem, 4.6vw + 0.5rem, 4.5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 500px;
  justify-self: center;
  margin-top: 24px;
}

.stage .blob {
  position: absolute;
  inset: 8% 6% 6% 8%;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 35% 30%, #e6efff 0%, var(--sky-soft) 55%, #c9dbf8 100%);
}

.stage .mascot {
  position: absolute;
  left: 1%;
  bottom: -6%;
  width: 98%;
  filter: drop-shadow(0 30px 30px rgba(15, 63, 140, 0.22));
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}

.chip b {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.chip small {
  color: var(--ink-3);
  font-size: 0.8125rem;
}

.chip .dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 800;
  font-size: 0.875rem;
}

.chip .dot svg {
  width: 16px;
  height: 16px;
}

.chip.c1 {
  top: 10%;
  left: -6%;
  transform: rotate(-3deg);
}

.chip.c2 {
  top: 34%;
  right: -8%;
  transform: rotate(2.5deg);
  animation-delay: -2s;
}

.chip.c3 {
  bottom: 12%;
  left: -2%;
  transform: rotate(1.5deg);
  animation-delay: -4s;
}

.loz {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--mint-soft);
  color: #1f6b43;
  white-space: nowrap;
}

.loz.sun {
  background: var(--sun-soft);
  color: #7a5200;
}

.loz.sky {
  background: var(--sky-soft);
  color: var(--blue-deep);
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

/* ---------- Pixel showcase ---------- */

.showcase {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #3c7be0 center 70% / cover no-repeat;
  padding: 72px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  min-height: 560px;
}

/* The pixel art loads only once the showcase nears the viewport (see nav.js) */
.showcase.is-near {
  background-image: url("/assets/art/pixel-hills.webp");
}

.showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 54, 0.35), rgba(11, 27, 54, 0) 45%);
  pointer-events: none;
}

.showcase-head {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.showcase-head h2 {
  color: #fff;
  font-size: clamp(1.875rem, 2.6vw + 0.75rem, 2.75rem);
  text-shadow: 0 2px 18px rgba(11, 27, 54, 0.35);
}

.showcase-head .kicker {
  color: #fff;
}

.showcase-head .kicker::before {
  background: var(--sun);
}

.showcase .popup {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.5), 0 40px 80px -20px rgba(11, 27, 54, 0.6);
}

/* ---------- Sections ---------- */

.section {
  padding: 112px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  max-width: 46em;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

/* ---------- Tool cards ---------- */

.tools {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 20px;
}

.tool {
  position: relative;
  border-radius: var(--r-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.tool.sky {
  background: var(--sky-soft);
}

.tool.sun {
  background: var(--sun-soft);
}

.tool .art {
  position: absolute;
  right: 28px;
  top: 24px;
  width: 116px;
  transform: rotate(6deg);
  filter: drop-shadow(0 16px 18px rgba(20, 23, 31, 0.16));
}

.tool .top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
  min-height: 104px;
  padding-right: 150px;
}

.tool h3 {
  font-size: clamp(1.625rem, 1.2vw + 1rem, 2.125rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 11em;
}

.tool p {
  color: var(--ink-2);
  max-width: 30em;
}

.tool .ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool .ticks li {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.principle {
  background: var(--card);
  border-radius: var(--r);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.principle img {
  width: 96px;
  height: 96px;
  margin: -8px 0 6px -8px;
  filter: drop-shadow(0 10px 12px rgba(20, 23, 31, 0.14));
}

.principle p {
  color: var(--ink-2);
}

/* ---------- Dark band ---------- */

.dark {
  background: var(--navy);
  color: #c9d4e8;
  border-radius: var(--r-lg);
  padding: 80px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 2px) 0 0 / 22px 22px;
  -webkit-mask: radial-gradient(ellipse at 85% 20%, #000 0, transparent 60%);
  mask: radial-gradient(ellipse at 85% 20%, #000 0, transparent 60%);
  pointer-events: none;
}

.dark > * {
  position: relative;
}

.dark h2 {
  color: #fff;
}

.dark .kicker {
  color: var(--sun);
}

.dark .kicker::before {
  background: var(--sun);
}

.dark .copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dark .copy p {
  font-size: 1.125rem;
}

.dark .copy strong {
  color: #fff;
}

.dark .hl {
  color: var(--ink);
  background: var(--sun);
  border-radius: 0.12em;
  padding: 0 0.12em;
}

.term {
  background: #061126;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.term .bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.term .bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2b3a57;
}

.term pre {
  margin: 0;
  padding: 20px 22px 24px;
  color: #93a4c3;
  white-space: pre-wrap;
  word-break: break-word;
}

.term .k {
  color: #e8eefa;
}

.term .g {
  background: var(--sun);
  color: var(--ink);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
}

.term .ok {
  color: #7fe0a8;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.1);
  transform: rotate(-4deg);
  margin-bottom: 6px;
}

.steps li:nth-child(2)::before {
  background: var(--coral);
  transform: rotate(3deg);
}

.steps li:nth-child(3)::before {
  background: var(--mint);
  transform: rotate(-2deg);
}

.steps p {
  color: var(--ink-2);
}

/* ---------- Split + checks ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.split > div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checks li {
  position: relative;
  padding: 16px 18px 16px 56px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 24px no-repeat;
}

.framed {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--sky-soft);
  padding: 48px;
  display: grid;
  place-items: center;
}

.framed .popup {
  width: min(400px, 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.framed .peek {
  position: absolute;
  width: 190px;
  right: -48px;
  bottom: -52px;
  transform: rotate(8deg);
  filter: drop-shadow(0 14px 16px rgba(20, 23, 31, 0.2));
}

/* ---------- FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 50em;
  margin: 0 auto;
}

.faq details {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 0 24px;
  transition: box-shadow 0.15s;
}

.faq details[open] {
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
  transition: rotate 0.2s;
}

.faq details[open] summary::after {
  rotate: 45deg;
  background: var(--sun);
}

.faq details p {
  padding: 0 0 22px;
  color: var(--ink-2);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  background: var(--blue);
  border-radius: var(--r-lg);
  padding: 64px 64px 64px 360px;
  color: #dbe7fb;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(255, 255, 255, 0.16) 1.6px, transparent 2px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(110deg, transparent 40%, #000 100%);
  mask: linear-gradient(110deg, transparent 40%, #000 100%);
  pointer-events: none;
}

.cta .mascot {
  position: absolute;
  left: 32px;
  bottom: -36px;
  width: 300px;
  filter: drop-shadow(0 24px 30px rgba(11, 27, 54, 0.35));
}

.cta h2 {
  color: #fff;
  position: relative;
}

.cta p {
  font-size: 1.1875rem;
  max-width: 30em;
  position: relative;
}

.cta .actions {
  position: relative;
  margin-top: 8px;
}

/* ---------- Page head + prose ---------- */

.page-head {
  padding: 72px 0 40px;
}

.page-head .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-head .row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.page-head .row img {
  width: 112px;
  flex: none;
  filter: drop-shadow(0 12px 14px rgba(20, 23, 31, 0.15));
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prose-card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 56px;
  max-width: 860px;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 44em;
  color: var(--ink-2);
}

.prose h2 {
  font-size: 2rem;
  margin-top: 32px;
  scroll-margin-top: 88px;
  color: var(--ink);
}

.prose h2:first-of-type {
  margin-top: 8px;
}

.prose h3 {
  margin-top: 12px;
  font-size: 1.25rem;
  color: var(--ink);
}

.prose strong {
  color: var(--ink);
}

.prose .meta {
  font-size: 0.9375rem;
}

.prose .notice {
  background: var(--mint-soft);
  color: #1f6b43;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #ffffff;
  margin-top: 112px;
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.site-footer .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.site-footer .about {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 22em;
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

.site-footer .base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* ---------- 404 ---------- */

.lost {
  padding: 64px 0 24px;
  text-align: center;
}

.lost .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lost img {
  width: 240px;
  filter: drop-shadow(0 20px 24px rgba(15, 63, 140, 0.2));
}

/* White bands that break up the cream page */
.band-white {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-white + .container {
  margin-top: 96px;
}

.container + .band-white {
  margin-top: 96px;
}

/* ---------- Standards strip ---------- */

.standards {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.standards .container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.standards-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.standards ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  flex: 1;
  justify-content: space-between;
}

.standards li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

/* ---------- Mission (dark) as two text columns ---------- */

#how .dark {
  align-items: start;
}

/* ---------- Focus areas ---------- */

.areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
}

.area.shipped {
  background: var(--sky-soft);
  box-shadow: inset 0 0 0 1px rgba(24, 104, 219, 0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}

.area.shipped:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(24, 104, 219, 0.35), var(--shadow);
}

.area-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.area-top img {
  width: 64px;
  height: 64px;
  margin: -8px 0 -8px -8px;
}

.area-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  color: var(--ink-2);
}

.area-icon svg {
  width: 22px;
  height: 22px;
}

.area-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.area h3 {
  font-size: 1.25rem;
}

.area p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
  flex: 1;
}

.area-link {
  margin-top: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--blue);
}

/* ---------- Build rules ---------- */

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-reset: rule;
}

.rules li {
  counter-increment: rule;
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rules li::before {
  content: counter(rule, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--blue);
  margin-bottom: 14px;
}

.rules p {
  color: var(--ink-2);
}

/* ---------- Showcase actions + plain CTA ---------- */

.showcase-head .actions {
  justify-content: center;
  margin-top: 8px;
}

.cta.cta-plain {
  padding: 64px;
  min-height: 0;
  align-items: flex-start;
}

.cta.cta-plain .kicker {
  color: #fff;
  position: relative;
}

.cta.cta-plain .kicker::before {
  background: var(--sun);
}

.cta.cta-plain .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta.cta-plain .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---------- Problem: friction cards ---------- */

.friction {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.friction-card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.friction-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.fc-stage {
  position: relative;
  height: 236px;
  padding: 28px 28px 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.fc-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgba(20, 23, 31, 0.08) 1px, transparent 1.5px) 0 0 / 16px 16px;
  -webkit-mask: linear-gradient(180deg, #000, transparent 85%);
  mask: linear-gradient(180deg, #000, transparent 85%);
}

.fc-stage.coral { background: var(--coral-soft); }
.fc-stage.sun { background: var(--sun-soft); }
.fc-stage.sky { background: var(--sky-soft); }

.fc-stage > * {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -1px 0 rgba(20, 23, 31, 0.04), 0 18px 40px -12px rgba(20, 23, 31, 0.28),
    0 0 0 1px rgba(20, 23, 31, 0.06);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
  transition: transform 0.25s ease;
}

.friction-card:hover .fc-stage > * {
  transform: translateY(-4px);
}

/* Banner mock */
.fc-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid #eee;
}

.fc-chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2ded5;
}

.fc-url {
  margin-left: 8px;
  flex: 1;
  background: var(--paper);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 10.5px;
  color: var(--ink-3);
}

.fc-page {
  position: relative;
  padding: 12px 14px 0;
  height: 156px;
}

.fc-line {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #efece6;
  margin-bottom: 8px;
}

.fc-line.w80 { width: 80%; }
.fc-line.w60 { width: 60%; }
.fc-line.w70 { width: 70%; }

.fc-banner {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 24px -8px rgba(20, 23, 31, 0.3), 0 0 0 1px rgba(20, 23, 31, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fc-banner b {
  color: var(--ink);
  font-size: 12.5px;
}

.fc-banner small {
  font-size: 10.5px;
  color: var(--ink-3);
}

.fc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.fc-accept {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11.5px;
}

.fc-manage {
  font-size: 10px;
  color: #b3afa6;
  text-decoration: underline;
}

.fc-cursor {
  position: absolute;
  width: 22px;
  height: 22px;
  left: 92px;
  bottom: 4px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  animation: fc-tap 3.2s ease-in-out infinite;
}

@keyframes fc-tap {
  0%, 100% { translate: 18px 10px; }
  45%, 60% { translate: 0 0; }
  52% { scale: 0.85; }
}

/* Settings mock */
.fc-panel {
  padding: 14px 16px 6px;
}

.fc-crumbs {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.fc-crumbs span {
  margin: 0 3px;
  color: #c9c4ba;
}

.fc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.fc-panel-head b {
  color: var(--ink);
  font-size: 13px;
}

.fc-count {
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 10.5px;
  padding: 1px 8px;
  border-radius: 999px;
}

.fc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid #f0ede7;
  color: var(--ink);
}

.fc-toggle {
  position: relative;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: var(--blue);
}

.fc-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

.fc-more {
  padding: 8px 0 10px;
  border-top: 1px solid #f0ede7;
  font-size: 11px;
  font-weight: 600;
  color: var(--coral);
}

/* Form mock */
.fc-form {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fc-form-title {
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 2px;
}

.fc-form label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-3);
}

.fc-form label span {
  border: 1px solid #e6e2da;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
}

.fc-form label em {
  font-style: normal;
  color: var(--ink-3);
}

.fc-status {
  margin-top: 4px;
  background: var(--coral-soft);
  border-radius: 8px;
  padding: 8px 10px;
}

.fc-status-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #a2402a;
  font-size: 11px;
}

.fc-status-top small {
  margin-left: auto;
  font-weight: 500;
}

.fc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: fc-pulse 1.6s ease-in-out infinite;
}

@keyframes fc-pulse {
  50% { opacity: 0.35; }
}

.fc-bar {
  margin-top: 6px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 138, 107, 0.25);
  overflow: hidden;
}

.fc-bar i {
  display: block;
  width: 84%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

/* Card copy */
.fc-copy {
  padding: 22px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.fc-copy h3 {
  font-size: 1.25rem;
}

.fc-copy p {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.friction-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
  .fc-cursor,
  .fc-dot {
    animation: none;
  }
}

/* ---------- Flagship tool + roadmap ---------- */

.flagship {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: var(--r-lg);
  background: var(--sky-soft);
  box-shadow: inset 0 0 0 1px rgba(24, 104, 219, 0.16);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}

.flagship:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(24, 104, 219, 0.32), var(--shadow);
}

.flagship-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flagship h3 {
  font-size: clamp(1.75rem, 1.5vw + 1rem, 2.25rem);
  letter-spacing: -0.03em;
}

.flagship p {
  color: var(--ink-2);
  max-width: 32em;
}

.proof {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.proof > div {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.proof dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.proof dd {
  margin: 2px 0 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.next {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}

.next-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}

.next ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.next li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9375rem;
}

.next li b {
  font-weight: 600;
  color: var(--ink);
}

.next li span {
  color: var(--ink-2);
}

/* ---------- FAQ objections ---------- */

.objections {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.objection {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.objection .q {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.objection .a {
  color: var(--ink-2);
  font-size: 1.0625rem;
}

.objection .a b {
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero {
    padding: 48px 0 72px;
  }

  .hero .container,
  .split,
  .dark {
    grid-template-columns: minmax(0, 1fr);
  }

  .stage {
    max-width: 440px;
  }

  .tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .principles,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .dark {
    padding: 56px 32px;
    gap: 40px;
  }

  .cta {
    padding: 48px 32px 260px;
  }

  .cta .mascot {
    left: auto;
    right: 24px;
    width: 220px;
    bottom: -30px;
  }

  .section {
    padding: 80px 0;
  }

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

  .friction,
  .flagship,
  .next,
  .next ul,
  .objection {
    grid-template-columns: minmax(0, 1fr);
  }

  .flagship {
    gap: 24px;
  }

  .objection {
    gap: 8px;
  }

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

  .cta.cta-plain {
    padding: 48px 32px;
  }

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

  .site-footer .about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .announce .more {
    display: none;
  }

  .chip {
    font-size: 0.8125rem;
    padding: 8px 10px;
  }

  .chip .dot {
    width: 26px;
    height: 26px;
  }

  .chip.c1 {
    left: 0;
  }

  .chip.c2 {
    right: 0;
  }

  .chip.c3 {
    left: 2%;
  }

  .tool {
    padding: 28px 24px;
    min-height: 0;
  }

  .tool .art {
    width: 84px;
    right: 20px;
    top: 20px;
  }

  .tool .top {
    min-height: 76px;
    padding-right: 100px;
  }

  .showcase {
    padding: 48px 16px 0;
    min-height: 0;
  }

  .areas,
  .rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .standards .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .standards ul {
    justify-content: flex-start;
    gap: 8px 24px;
  }

  .standards li {
    font-size: 1rem;
  }

  .cta.cta-plain {
    padding: 40px 24px;
  }

  .framed {
    padding: 28px 20px;
  }

  .framed .peek {
    width: 96px;
    right: -6px;
  }

  .prose-card {
    padding: 28px 22px;
  }

  .page-head .row img {
    width: 80px;
  }
}

@media (max-width: 640px) {
  .showcase.is-near {
    background-image: url("/assets/art/pixel-hills-800.webp");
  }
}

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

  .chip {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
