/* sunnymonkeys.com stylesheet, version 4. Tokens and rules are explained in DESIGN.md.
   Root font size is the browser default (16px); 1rem = 16px. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --grey-1: #f2f2f2;
  --grey-2: #d6d6d6;
  --grey-3: #6b6b6b;
  --grey-4: #a3a3a3;
  --grey-5: #3a3a3a;

  /* Sky: the logo's blue. Sun: the warm second color. See DESIGN.md for where each goes. */
  --blue: #2988fc;
  --sky: #7fc3ff;
  --sky-wash: #e4f1ff;
  --sun: #ffb42b;
  --sun-light: #ffd36a;
  --sun-wash: #fff3db;
  --grad: linear-gradient(135deg, #2988fc 0%, #7fc3ff 100%);
  --grad-sun: linear-gradient(135deg, #ffb42b 0%, #ffd36a 100%);
  --grad-h: linear-gradient(90deg, #2988fc 0%, #7fc3ff 42%, #ffd36a 72%, #ffb42b 100%);
  --grad-btn: linear-gradient(90deg, #2988fc 0%, #5aaeff 50%, #2988fc 100%);
  --glow: radial-gradient(70% 70% at 100% 0%, rgba(41, 136, 252, 0.42), rgba(41, 136, 252, 0) 70%);
  --glow-sun: radial-gradient(50% 50% at 0% 100%, rgba(255, 180, 43, 0.22), rgba(255, 180, 43, 0) 70%);

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: var(--grey-3);
  --rule: var(--grey-2);
  --surface: var(--grey-1);

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --t-display: clamp(3.25rem, 1rem + 7.5vw, 7.5rem);
  --t-1: clamp(2.25rem, 1.25rem + 3.5vw, 4.25rem);
  --t-2: clamp(1.625rem, 1.3rem + 1vw, 2rem);
  --t-3: 1.375rem;
  --t-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-fine: 0.8125rem;

  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  interpolate-size: allow-keywords;
}

.ink {
  --bg: var(--ink);
  --fg: var(--paper);
  --fg-muted: var(--grey-4);
  --rule: var(--grey-5);
  --surface: #161616;
  background: var(--bg);
  color: var(--fg);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-body) / 1.6 var(--font-body);
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  overflow-wrap: normal;
}
h1, h2 { text-transform: uppercase; letter-spacing: -0.01em; }
h1 { font-size: var(--t-display); line-height: 0.95; }
h2 { font-size: var(--t-1); line-height: 0.98; }
h3 { font-size: var(--t-2); font-weight: 600; line-height: 1.1; }
h4 { font-size: var(--t-3); font-weight: 600; line-height: 1.2; }
.measure { max-width: 66ch; }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 56ch; }
.muted { color: var(--fg-muted); }
.small { font-size: var(--t-small); }
.fine { font-size: var(--t-fine); }
.stack > * + * { margin-top: var(--s-3); }
.stack-2 > * + * { margin-top: var(--s-2); }
.stack-1 > * + * { margin-top: var(--s-1); }
.prose a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: var(--blue); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.quote { font-style: italic; font-size: var(--t-lead); line-height: 1.4; }
.signature { font: 600 var(--t-3) / 1.2 var(--font-display); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--sky-wash); color: var(--ink); }
.ink ::selection { background: var(--blue); color: #fff; }
.skip {
  position: absolute; left: var(--s-2); top: -4rem;
  padding: var(--s-1) var(--s-2); background: var(--ink); color: var(--paper);
  z-index: 100; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: var(--s-2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Layout */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section-tight { padding-block: clamp(3rem, 5vw, 5rem); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .lead { margin-top: var(--s-3); }
.grid-2 { display: grid; gap: var(--s-5) var(--s-6); align-items: center; }
.grid-3 { display: grid; gap: var(--s-4); }
.grid-4 { display: grid; gap: var(--s-4); }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2.sidebar { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
.rule-top { border-top: 1px solid var(--rule); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* Brand mark: the white PNG as a mask, so it takes the current color (always blue) */
.mark {
  display: inline-block; width: 1em; height: 1.17em; background: currentColor;
  -webkit-mask: url("../images/logo-sunny-monkeys-white.png") center / contain no-repeat;
  mask: url("../images/logo-sunny-monkeys-white.png") center / contain no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.5rem;
  border: 1.5px solid var(--fg); border-radius: var(--radius);
  background: transparent; color: var(--fg);
  font: 600 var(--t-3) / 1 var(--font-display); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, background-position 0.5s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-primary {
  background: var(--grad-btn); background-size: 200% 100%; background-position: 0 0;
  color: #fff; border-color: transparent;
}
.btn-primary:hover { background-position: 100% 0; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn-lg { min-height: 3.5rem; padding: 0.9rem 2rem; font-size: 1.5rem; }
.link {
  display: inline-block; font: 600 var(--t-3) / 1.2 var(--font-display);
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: var(--blue); text-decoration-thickness: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid var(--grey-2);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad-h); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.site-header.is-scrolled::after { transform: none; }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none;
  font: 700 1.625rem / 1 var(--font-display); text-transform: uppercase; letter-spacing: 0.01em;
}
.brand .mark { font-size: 1.9rem; color: var(--blue); transition: transform 0.3s var(--ease); }
.brand:hover .mark { transform: translateY(-2px) rotate(-6deg); }
.site-nav { display: flex; align-items: center; gap: var(--s-4); margin-left: auto; }
.site-nav ul { display: flex; gap: var(--s-4); list-style: none; }
.site-nav a {
  font: 600 1.25rem / 1 var(--font-display); text-decoration: none; padding: 0.4rem 0;
  border-bottom: 2px solid transparent; transition: border-color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.site-nav .nav-actions { display: flex; align-items: center; gap: var(--s-3); }
.site-nav .nav-actions .btn { min-height: 2.6rem; padding: 0.45rem 1.1rem; font-size: 1.125rem; }
.nav-login {
  display: inline-flex; align-items: center; gap: 0.45rem; margin-left: var(--s-3); padding: 0.4rem 0 0.4rem var(--s-3);
  border-left: 1px solid var(--grey-2); font: 500 var(--t-small) / 1 var(--font-body); color: var(--grey-3);
  text-decoration: none; white-space: nowrap; transition: color 0.2s;
}
.nav-login svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-login:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: var(--blue); }
.login-mobile { display: none; }
.nav-toggle {
  display: none; margin-left: auto; width: 3rem; height: 3rem; padding: 0;
  border: 1.5px solid var(--ink); border-radius: var(--radius); background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 1.25rem; height: 2px; margin: 4px auto; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .nav-login { display: none; }
  .login-mobile { display: inline-block; font: 500 1.125rem / 1 var(--font-body); color: var(--grey-4); text-decoration: none; }
  .login-mobile:hover { color: var(--paper); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: var(--s-5); padding: var(--s-5) var(--gutter);
    background: var(--ink); background-image: var(--glow), var(--glow-sun); color: var(--paper); overflow: auto;
    transform: translateX(100%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0.3s;
  }
  body.nav-open .site-nav { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav ul { flex-direction: column; gap: var(--s-3); }
  .site-nav li, .site-nav .nav-actions { opacity: 0; transform: translateX(1rem); transition: opacity 0.35s, transform 0.35s var(--ease); transition-delay: calc(var(--i, 0) * 60ms + 120ms); }
  body.nav-open .site-nav li, body.nav-open .site-nav .nav-actions { opacity: 1; transform: none; }
  .site-nav a { font-size: 2.25rem; }
  .site-nav .nav-actions { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .site-nav .nav-actions .btn { font-size: 1.375rem; min-height: 3rem; padding: 0.7rem 1.5rem; }
}

/* Hero: two soft blobs, sky on the right and sun on the left, drifting slowly */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6.5rem); overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before {
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; right: -14vw; top: -18vw;
  background: radial-gradient(circle, rgba(127, 195, 255, 0.6) 0%, rgba(127, 195, 255, 0.22) 40%, rgba(127, 195, 255, 0) 68%);
}
.hero::after {
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -18vw; bottom: -26vw;
  background: radial-gradient(circle, rgba(255, 211, 106, 0.5) 0%, rgba(255, 211, 106, 0.16) 40%, rgba(255, 211, 106, 0) 68%);
}
.hero-grid { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6); } }
.hero-grid h1 { font-size: clamp(2.75rem, 1rem + 5vw, 5.5rem); }
.hero .lead { margin-top: var(--s-4); }
.hero .actions { margin-top: var(--s-4); }
.hero-simple h1 { max-width: 14ch; }
.hero-simple .lead { margin-top: var(--s-4); }
.hero h1 .line { display: block; }

/* Marquee: a moving strip of what we make */
.marquee { overflow: hidden; border-block: 1px solid var(--rule); padding: 0.85rem 0; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex: none; }
.marquee span { display: inline-flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem; font: 600 1.25rem / 1 var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.marquee i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--sun); }
.marquee span:nth-child(2n) i { background: var(--blue); }
/* Four identical groups, moved by one group's width (25%), so three always cover the screen and the loop never shows an end */
@keyframes marquee { to { transform: translateX(-25%); } }

/* Split: the two ways to work */
.split { display: grid; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split .half { padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); border-top: 4px solid; }
.split .half.paper { border-image: var(--grad-sun) 1; }
.split .half.ink { border-image: var(--grad) 1; background-image: var(--glow); }
@media (min-width: 900px) {
  .split .half:first-child { padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding-right: var(--s-6); }
  .split .half:last-child { padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); padding-left: var(--s-6); }
}
.half .kicker { font: 700 var(--t-1) / 1 var(--font-display); text-transform: uppercase; }
.half h3 { margin-top: var(--s-3); max-width: 22ch; }
.half p { margin-top: var(--s-3); max-width: 55ch; }
.half ul { margin-top: var(--s-3); list-style: none; }
.half li { padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.half .link { margin-top: var(--s-4); }

/* Tiles: linked cards with a drawn icon */
.tiles { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); list-style: none; }
.tile {
  display: grid; align-content: start; gap: 0.75rem; height: 100%; padding: var(--s-3);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); text-decoration: none; color: var(--fg); background: var(--bg);
  transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease);
}
a.tile:hover { border-color: var(--blue); background-color: var(--sky-wash); transform: translateY(-3px); }
.ink .tile { background: transparent; }
.ink a.tile:hover { background-color: rgba(41, 136, 252, 0.14); }
.tile .icon { width: 2.25rem; height: 2.25rem; color: var(--blue); }
.tile .icon svg, .row .icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: var(--t-2); }
.tile p { color: var(--fg-muted); font-size: var(--t-body); }
.ink .tile p { color: var(--grey-4); }

/* Rows: lists with a rule above each item */
.rows { list-style: none; border-bottom: 1px solid var(--rule); }
.row {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-2) var(--s-3);
  padding: var(--s-3) var(--s-2); margin: 0 calc(-1 * var(--s-2)); border-top: 1px solid var(--rule); align-items: start;
  border-radius: var(--radius); transition: background-color 0.25s;
}
.row:hover { background-color: var(--sun-wash); }
@media (max-width: 759px) { .row > :not(.icon) { grid-column: 2; } .row h3 { grid-row: 1; } }
@media (min-width: 760px) { .row { grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 1.5fr) auto; } }
.row .icon { width: 2rem; height: 2rem; color: var(--blue); }
.row h3 { font-size: var(--t-2); }
.row .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; grid-column: 2 / -1; }
@media (min-width: 760px) { .row .tags { grid-column: auto; justify-content: flex-end; max-width: 14rem; } }
.tag {
  display: inline-block; padding: 0.2rem 0.7rem; border: 1px solid var(--rule); border-radius: 999px;
  font-size: var(--t-small); line-height: 1.4; white-space: nowrap; background: var(--bg);
}
.row-link { text-decoration: none; }
.row-link:hover h3 { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: var(--blue); }

/* Icons draw themselves when they come into view */
[data-reveal] .icon svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s ease; transition-delay: calc(var(--i, 0) * 80ms + 150ms); }
[data-reveal].is-visible .icon svg *, html:not(.reveal) [data-reveal] .icon svg * { stroke-dashoffset: 0; }

/* Steps: numbered because they are a sequence */
.steps { display: grid; gap: var(--s-4); counter-reset: step; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.steps li { padding-top: var(--s-2); border-top: 1px solid var(--rule); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block;
  font: 700 var(--num-size, var(--t-1)) / 1 var(--font-display); color: var(--blue);
}
.steps h3 { margin-top: var(--s-2); }
.steps p { margin-top: var(--s-1); }

/* Facts: short commitments, each with a small gradient bar */
.facts { display: grid; gap: var(--s-3); list-style: none; }
@media (min-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .facts { grid-template-columns: repeat(var(--cols, 4), 1fr); } }
.facts li { padding-top: var(--s-2); border-top: 1px solid var(--rule); }
.facts li::before { content: ""; display: block; width: 2.5rem; height: 3px; border-radius: 2px; background: var(--grad); margin-bottom: 0.9rem; }
.facts.sun li::before { background: var(--grad-sun); }
.facts h4 { margin-bottom: 0.4rem; }
.facts p { font-size: var(--t-body); }

/* Plans (in-house options, package headers) */
.plans { display: grid; gap: var(--s-4); }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
.plan { display: flex; flex-direction: column; align-items: flex-start; padding-top: var(--s-3); border-top: 4px solid var(--sun); border-image: var(--grad-sun) 1; }
.ink .plan { border-image: var(--grad) 1; }
.plan > * { width: 100%; }
.plan .plan-name { font: 700 var(--t-2) / 1 var(--font-display); text-transform: uppercase; }
.plan .price { margin-top: var(--s-2); font: 700 clamp(2.5rem, 2rem + 2vw, 3.5rem) / 1 var(--font-display); }
.plan .price small { font-size: var(--t-body); font-family: var(--font-body); font-weight: 400; color: var(--fg-muted); margin-left: 0.4rem; }
.plan h3 { margin-top: var(--s-2); }
.plan p { margin-top: var(--s-2); }
.plan p:last-of-type { margin-bottom: var(--s-3); }
.plan ul { margin-top: 0; list-style: none; }
.plan li { padding: 0.5rem 0; border-top: 1px solid var(--rule); }
.plan .btn { width: auto; margin-top: auto; }
.plan ul + .btn { margin-top: var(--s-3); }

/* Comparison table */
.table-wrap { margin-top: var(--s-5); }
table.compare { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.compare th, .compare td { padding: 0.8rem 0.75rem; text-align: left; vertical-align: top; border-top: 1px solid var(--rule); }
.compare thead th { font: 600 var(--t-3) / 1 var(--font-display); text-transform: uppercase; background: var(--sky-wash); border-top: 0; }
.compare tbody tr { transition: background-color 0.2s; }
.compare tbody tr:hover { background-color: var(--sun-wash); }
.compare th[scope="row"] { font-weight: 500; width: 32%; }
.compare td { width: 22.6%; }
.compare .yes::before { content: "\2713\00a0"; color: var(--blue); font-weight: 700; }
.compare .no { color: var(--fg-muted); }
@media (max-width: 719px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: var(--s-2) 0; border-top: 1px solid var(--rule); }
  .compare th[scope="row"] { width: 100%; padding: 0 0 0.4rem; border: 0; font: 600 var(--t-3) / 1.2 var(--font-display); }
  .compare td { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s-2); padding: 0.25rem 0; border: 0; }
  .compare td::before, .compare td.yes::before { content: attr(data-plan); color: var(--fg-muted); font-weight: 400; }
  .compare td.yes::after { content: "\2713\00a0Included"; }
}

/* Boards and diagrams (inline SVG). Each has a desktop and a phone drawing. */
.board-m, .diagram-m { display: none; }
@media (max-width: 599px) {
  .board-d, .diagram-d { display: none; }
  .board-m, .diagram-m { display: block; }
}
.board { width: 100%; height: auto; color: var(--fg); }
.board text, .diagram text { font-family: var(--font-display); font-weight: 600; fill: currentColor; }
.board .chip rect { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.board .chip text { font-size: 15px; }
.board .day { font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.board .grid line { stroke: var(--rule); stroke-width: 1; }
.board .frame { fill: var(--surface); stroke: var(--rule); }
.board .done path { stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.board .done circle { fill: var(--bg); stroke: var(--blue); stroke-width: 1.5; }
.board .review rect { fill: url(#sm-grad); }
.board .review text { fill: #fff; font-size: 15px; }
.board-m .chip text, .board-m .review text { font-size: 12.5px; }
.board-m .day { font-size: 12px; }
.diagram { width: 100%; height: auto; color: var(--fg); }
.diagram .person { fill: currentColor; }
.diagram .brand { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.diagram .brand text { fill: currentColor; font-size: 16px; }
.diagram .line { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; }
.diagram .solid { stroke: var(--blue); stroke-width: 2.5; fill: none; }
.diagram .label { font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; }
.diagram .note { font-family: var(--font-body); font-weight: 400; font-size: 15px; fill: var(--fg-muted); }
.diagram .pulse { fill: none; stroke: var(--blue); stroke-width: 2; }
.diagram-m .label { font-size: 16px; }
.diagram-m .note { font-size: 14px; }
.diagram-m .brand text { font-size: 15px; }
.timeline .bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 0.35s); }
.timeline.is-visible .bar, .timeline.is-static .bar { transform: none; }
.timeline .bar.fill { fill: url(#sm-grad); }
.timeline .bar.outline { fill: var(--bg); stroke: currentColor; stroke-width: 1.5; }
.timeline .tick { stroke: var(--rule); }
.timeline text { font-family: var(--font-display); font-weight: 600; fill: currentColor; font-size: 16px; }
.timeline .week { fill: var(--fg-muted); font-size: 14px; }
.timeline.diagram-m text { font-size: 14px; }
.timeline.diagram-m .week { font-size: 12px; }

/* Motion. Everything here is off when the visitor prefers reduced motion. */
.board .chip { opacity: 0; transform: translateY(-8px); animation: chip-in 14s infinite; animation-delay: calc(var(--i) * 0.55s); }
.board .done { opacity: 0; animation: chip-in 14s infinite; animation-delay: calc(var(--i) * 0.55s + 0.4s); }
.board .review { opacity: 0; animation: chip-in 14s infinite; animation-delay: calc(var(--i) * 0.55s); }
.board.is-static .chip, .board.is-static .done, .board.is-static .review { animation: none; opacity: 1; transform: none; }
@keyframes chip-in {
  0% { opacity: 0; transform: translateY(-8px); }
  4% { opacity: 1; transform: none; }
  88% { opacity: 1; transform: none; }
  94% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 0; transform: translateY(-8px); }
}
.diagram .orbit { transform-origin: var(--ox) var(--oy); animation: orbit 9s linear infinite; }
.diagram .orbit:nth-child(2n) { animation-duration: 11s; animation-direction: reverse; }
.diagram .orbit .brand { transform-box: fill-box; transform-origin: center; animation: orbit-back 9s linear infinite; }
.diagram .orbit:nth-child(2n) .brand { animation-duration: 11s; animation-direction: reverse; }
.diagram .pulse { transform-origin: var(--ox) var(--oy); animation: pulse 3s ease-out infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes orbit-back { to { transform: rotate(-360deg); } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: drift 18s ease-in-out infinite alternate; }
  .hero::after { animation: drift 24s ease-in-out infinite alternate-reverse; }
  .marquee-track { animation: marquee 36s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes drift { to { transform: translate(-7%, 9%) scale(1.1); } }
/* Hero entrance: sm.js adds html.anim only when the page opens in a visible tab */
html.anim .hero h1 .line { opacity: 0; transform: translateY(0.3em); animation: rise 0.7s var(--ease) forwards; }
html.anim .hero h1 .line:nth-child(2) { animation-delay: 0.08s; }
html.anim .hero h1 .line:nth-child(3) { animation-delay: 0.16s; }
html.anim .hero-rise { opacity: 0; transform: translateY(0.6rem); animation: rise 0.7s var(--ease) 0.28s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Reveals: sm.js adds html.reveal, then is-visible to each [data-reveal] as it scrolls into view */
html.reveal [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(16px); }
html.reveal [data-reveal] { transition: opacity 0.6s ease, transform 0.6s var(--ease); }
html.reveal [data-reveal="stagger"], html.reveal [data-reveal="stagger"]:not(.is-visible) { opacity: 1; transform: none; transition: none; }
html.reveal [data-reveal="stagger"] > * { transition: opacity 0.55s ease, transform 0.55s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.reveal [data-reveal="stagger"]:not(.is-visible) > * { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  .board .chip, .board .done, .board .review, .diagram .orbit, .diagram .orbit .brand, .diagram .pulse { animation: none !important; opacity: 1; transform: none; }
  .timeline .bar { transition: none; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-group[aria-hidden] { display: none; }
  .btn, .tile, .brand .mark { transition: none; }
}

/* FAQ */
.faq { list-style: none; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: var(--s-3) 0; cursor: pointer; list-style: none;
  font: 600 var(--t-2) / 1.2 var(--font-display); transition: color 0.2s;
}
.faq summary:hover { color: var(--blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.9rem; height: 0.9rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.25s var(--ease); margin-right: 0.3rem;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq .answer { padding: 0 0 var(--s-3); max-width: 66ch; }

/* Forms */
.form { display: grid; gap: var(--s-3); }
.field label { display: block; font: 600 var(--t-3) / 1.2 var(--font-display); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--fg); border-radius: var(--radius); background: var(--bg); color: var(--fg);
  font: inherit; line-height: 1.4; transition: border-color 0.2s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; }
.ink .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E"); }
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .newsletter input:focus { border-color: var(--blue); }
.field .hint { margin-top: 0.4rem; font-size: var(--t-small); color: var(--fg-muted); }
.form-status { min-height: 1.5rem; font-size: var(--t-body); }
.form-status[data-state="error"], .form-status[data-state="success"] { font-weight: 500; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter { display: flex; flex-wrap: wrap; gap: var(--s-2); max-width: 32rem; }
.newsletter input { flex: 1 1 14rem; min-height: 3rem; padding: 0.7rem 0.9rem; border: 1.5px solid var(--fg); border-radius: var(--radius); background: var(--bg); color: var(--fg); font: inherit; transition: border-color 0.2s; }
.newsletter .btn { flex: none; }

/* Info list next to the form */
.info-list { list-style: none; }
.info-list li { padding: var(--s-2) 0; border-top: 1px solid var(--rule); }
.info-list h4 { margin-bottom: 0.2rem; }
.info-list a { text-decoration: underline; text-underline-offset: 0.18em; }

/* Closing call to action */
.cta h2 { max-width: 16ch; }
.cta .lead { margin-top: var(--s-3); }
.cta .actions { margin-top: var(--s-4); }
.section.ink { background-image: var(--glow), var(--glow-sun); }

/* Article pages (privacy, terms) */
.article { max-width: 70ch; }
.article h2 { font-size: var(--t-2); text-transform: none; letter-spacing: 0; margin-top: var(--s-5); }
.article p, .article ul { margin-top: var(--s-2); }
.article ul { padding-left: 1.2em; }
.article .meta { color: var(--fg-muted); margin-top: var(--s-2); }

/* Footer */
.site-footer { padding-block: var(--s-6) var(--s-4); border-top: 4px solid; border-image: var(--grad-h) 1; background-image: var(--glow); }
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: var(--s-4); } }
.site-footer h4 { margin-bottom: var(--s-2); }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-color: var(--sky); }
.site-footer .brand { font-size: 1.5rem; }
.site-footer .tagline { margin-top: var(--s-2); max-width: 30ch; color: var(--fg-muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); justify-content: space-between;
  margin-top: var(--s-6); padding-top: var(--s-3); border-top: 1px solid var(--rule);
  font-size: var(--t-small); color: var(--fg-muted);
}
.footer-bottom ul { display: flex; gap: var(--s-3); }
.footer-bottom li + li { margin: 0; }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound .code { font: 700 clamp(6rem, 25vw, 18rem) / 0.9 var(--font-display); color: var(--sky-wash); }

/* Brand sheet (/brand) */
.swatches { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); list-style: none; }
.swatch { border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.swatch .chip { height: 6rem; border-bottom: 1px solid var(--rule); }
.swatch .meta { padding: 0.75rem 0.9rem; font-size: var(--t-small); }
.swatch .meta strong { display: block; font: 600 var(--t-3) / 1.2 var(--font-display); }
.logo-tiles { display: grid; gap: var(--s-3); list-style: none; }
@media (min-width: 760px) { .logo-tiles { grid-template-columns: repeat(3, 1fr); } }
.logo-tile { display: grid; place-items: center; min-height: 12rem; padding: var(--s-4); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.logo-tile .brand { font-size: 2rem; pointer-events: none; }
.logo-tile .mark-only { font-size: 5rem; }
.specimen { list-style: none; }
.specimen li { display: grid; gap: var(--s-2); padding: var(--s-3) 0; border-top: 1px solid var(--rule); align-items: baseline; }
@media (min-width: 760px) { .specimen li { grid-template-columns: 11rem 1fr; } }
.specimen .what { font-size: var(--t-small); color: var(--fg-muted); }
.specimen .display { font: 700 var(--t-display) / 0.95 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; }
.specimen .h2 { font: 700 var(--t-1) / 0.98 var(--font-display); text-transform: uppercase; }
.specimen .h3 { font: 600 var(--t-2) / 1.1 var(--font-display); }
.demo { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; padding: var(--s-3); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.demo.ink { border-color: var(--grey-5); }
.icon-row { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; }
.icon-row li { display: grid; gap: 0.5rem; justify-items: center; font-size: var(--t-small); }
.icon-row .icon { width: 2.5rem; height: 2.5rem; color: var(--blue); }
.icon-row .icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rules { list-style: none; }
.rules li { padding: 0.6rem 0; border-top: 1px solid var(--rule); }
.rules li strong { font-family: var(--font-display); font-weight: 600; font-size: var(--t-3); }
