/*
 * Syfft marketing site: base styles and the home page's shared pieces.
 *
 * Load order on every page: tokens.css (colour, type, space, radius, shadow, focus), this file,
 * site.css (site chrome and inner-page components), then the page's own css/<page>.css.
 * Every value comes from tokens.css; the only literals are the mockup one-offs listed below.
 *
 * Contents
 *   1. Mockup one-offs          6. Mail window (.mock-window, .mock-bar, .mail-app, .mail-row)
 *   2. Base and type            7. How it works (.benefits, .benefit-grid, .feature-icon)
 *   3. Layout (.wrap, .section) 8. Dark band (.approach, .certainty-card, .everyday-rules)
 *   4. Buttons and links        9. FAQ split (.home-faq)
 *   5. Utilities and .reveal   10. Motion (only without prefers-reduced-motion)
 *
 * Mobile first. Breakpoints: min-width 600, 760, 1000 and 1400 (tokens.css).
 * site/README.md lists every class with example markup.
 */

/* ---- 1. Mockup one-offs ------------------------------------------------------------------
 * Values that only exist inside product illustrations, kept out of the token palette:
 * the window's traffic-light dots, the switch knob, the miniature type size, and the
 * wordmark (a logo, not text). --night-accent is the blue on the always-dark band.
 */
:root {
  --mock-dot-1: #ffb6b4;
  --mock-dot-2: #f5d291;
  --mock-dot-3: #b0d7bb;
  --mock-knob: #ffffff;
  --mock-fs: 12px;
  --night-accent: #9eb6ff;
  --brand-fs: 27px;
}
@media (min-width: 1000px) {
  :root {
    --brand-fs: 30px;
  }
}

/* ---- 2. Base and type ------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--site-nav-height) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: var(--lh-heading);
  letter-spacing: var(--track-heading);
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: var(--focus-offset);
}
main {
  overflow-wrap: break-word;
}
main img {
  max-width: 100%;
  height: auto;
}
/* Links inside running text (zero specificity: any component's link style wins). */
:where(main :is(p, li, td, dd) a:not([class])) {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Icons: <svg class="icon" aria-hidden="true"><use href="#name" /></svg>. The size follows
   the text; a component sets --icon-size when it needs a fixed one. */
.icon {
  width: var(--icon-size, 1.25em);
  height: var(--icon-size, 1.25em);
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Fallback for a sprite icon written without the class (<svg><use href="#x" /></svg>):
   zero specificity, so .icon, .logo and every component size still win. */
:where(svg:not([viewBox])) {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* One eyebrow style. .tiny-label is the same label inside mockups and cards, with less space
   under it. */
.eyebrow,
.tiny-label {
  margin: 0 0 var(--space-5);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--subtle);
}
.tiny-label {
  margin-bottom: var(--space-2);
}
.lede {
  max-width: var(--measure);
  margin: var(--space-5) 0 0;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--muted);
}
.hero-note {
  margin: var(--space-3) 0 0;
  font-size: var(--fs-meta);
  color: var(--subtle);
}
.blue-period {
  color: var(--blue);
}
.approach .blue-period {
  color: var(--night-accent);
}

/* ---- 3. Layout -------------------------------------------------------------------------
 * <section class="section [alt]" aria-labelledby="x"><div class="wrap">
 *   <div class="section-head"><p class="eyebrow">…</p><h2 id="x">Title. <span>Muted.</span></h2>
 *     <p class="lede">…</p></div> …
 * </div></section>
 */
.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.section {
  padding-block: var(--section-y);
}
.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-head {
  max-width: 760px;
  margin-bottom: var(--space-7);
}
.section-head h2 {
  font-size: var(--fs-h2);
}
.section-head h2 span {
  color: var(--subtle);
}
@media (min-width: 760px) {
  .section-head {
    margin-bottom: var(--space-8);
  }
}

/* ---- 4. Buttons and links --------------------------------------------------------------
 * <a class="btn btn-primary" href="/start/?from=x">Get started <svg class="icon" …></a>
 * <a class="btn btn-secondary" href="/labels/">See the 12 labels</a>
 * .btn-sm is the compact size (the nav). .text-link is the blue arrow link.
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--on-blue);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--blue) 12%, transparent);
}
.btn-primary:is(:hover, :focus-visible) {
  background: var(--blue-hover);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:is(:hover, :focus-visible) {
  border-color: var(--control);
}
.btn-sm {
  min-height: 44px;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-meta);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-6);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--blue);
  --icon-size: 16px;
}
.text-link:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-head > .text-link {
  margin-top: var(--space-5);
}

/* ---- 5. Utilities and .reveal ------------------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: var(--space-5);
  z-index: 100;
  padding: var(--space-4);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
}
.skip:focus {
  top: var(--space-5);
}
/* Fades in on scroll (nav.js adds .js-motion only without reduced motion). */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js-motion .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- 6. Mail window --------------------------------------------------------------------
 * The home demo's window, used for every product illustration.
 * <div class="mock-window" aria-hidden="true">
 *   <div class="mock-bar"><div class="mock-dots"><i></i><i></i><i></i></div>
 *     <span>Title</span><span class="mock-bar-meta">READ-ONLY</span></div>
 *   <div class="mail-row"><span class="avatar">PR</span><span class="email-line">
 *     <span class="sender">…</span><span class="mail-subject">…</span></span>
 *     <span class="mail-meta"><span class="chip tone-leads">Leads</span></span></div>
 * </div>
 * .mail-app (.sidebar + .mail-main) adds the folder column. Avatar tints use the label tones:
 * .avatar (blue), .pink, .sand, .teal. Mocks use fictional people and .test domains only.
 */
.mock-window {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-window);
  font-size: var(--mock-fs);
  line-height: 1.45;
  color: var(--ink);
  text-align: left;
}
.mock-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  height: 38px;
  padding: 0 var(--space-3);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--surface), var(--surface-2));
  color: var(--subtle);
}
.mock-bar > span:not(.mock-bar-meta) {
  display: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.mock-bar-meta {
  grid-column: -2 / -1;
  justify-self: end;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  white-space: nowrap;
}
.mock-dots {
  display: flex;
  gap: 6px;
}
.mock-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mock-dot-1);
}
.mock-dots i:nth-child(2) {
  background: var(--mock-dot-2);
}
.mock-dots i:nth-child(3) {
  background: var(--mock-dot-3);
}
@media (min-width: 760px) {
  .mock-bar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    height: 44px;
    padding-inline: var(--space-5);
  }
  .mock-bar > span:not(.mock-bar-meta) {
    display: block;
    grid-column: 2;
  }
}

/* The folder column and the message list. */
.mail-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.sidebar {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.folder-list {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: thin;
}
.folder {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-s);
  background: none;
  font-size: var(--mock-fs);
  text-align: left;
  white-space: nowrap;
  color: var(--muted);
  --icon-size: 16px;
}
.folder:is(:hover, :focus-visible) {
  background: var(--hover);
}
.folder.active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}
.folder:disabled {
  cursor: default;
}
.folder b {
  margin-left: auto;
  padding: 2px 5px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.folder-heading,
.demo-brand,
.profile {
  display: none;
}
.folder-heading {
  padding: var(--space-5) var(--space-3) var(--space-2);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  color: var(--subtle);
}
.unclear-folder {
  border-radius: var(--radius-s);
}
.mail-main {
  min-width: 0;
}
@media (min-width: 1000px) {
  .mail-app {
    grid-template-columns: 196px minmax(0, 1fr);
  }
  .sidebar {
    padding: var(--space-5) var(--space-3) var(--space-4);
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .folder-list {
    flex-direction: column;
    overflow: visible;
  }
  .folder-heading {
    display: block;
  }
  .demo-brand,
  .profile {
    display: flex;
  }
  .folder b {
    padding: 0;
    background: none;
  }
  .unclear-folder {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    border-radius: 0;
  }
}

/* Toolbar above the list. */
.mail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4);
}
.mail-toolbar > div:first-child {
  min-width: 0;
}
.mail-toolbar h2 {
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.sift-active {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--mock-fs);
  white-space: nowrap;
  color: var(--ok);
  --icon-size: 16px;
}
.mail-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
}
@media (min-width: 760px) {
  .mail-toolbar {
    padding: var(--space-5) var(--space-6);
  }
  .mail-summary {
    padding-inline: var(--space-6);
  }
}

/* One email. */
.mail-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2);
  min-height: 64px;
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-s);
  background: var(--tone-waiting_reply-bg);
  color: var(--tone-waiting_reply);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
}
.avatar.pink {
  background: var(--tone-promotions-bg);
  color: var(--tone-promotions);
}
.avatar.sand {
  background: var(--tone-deadline-bg);
  color: var(--tone-deadline);
}
.avatar.teal {
  background: var(--tone-receipts-bg);
  color: var(--tone-receipts);
}
.email-line {
  display: block;
  min-width: 0;
}
.sender {
  display: block;
  margin-bottom: 2px;
  font-weight: 600;
}
.mail-subject {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
  color: var(--muted);
}
.mail-meta {
  max-width: 96px;
  text-align: right;
  overflow-wrap: anywhere;
  color: var(--subtle);
}
/* The demo's own tag (app.js); .chip is the label tag everywhere else. */
.mail-tag {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.mail-tag.uncertain {
  background: var(--tone-neutral-bg);
  color: var(--tone-neutral);
}
.mail-meta .chip,
.folder .chip {
  padding: 3px 8px;
  font-size: var(--fs-eyebrow);
  white-space: nowrap;
}
.mail-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
}
.mail-bottom > span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  line-height: 1.5;
  color: var(--subtle);
  --icon-size: 14px;
}
@media (min-width: 760px) {
  .mail-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: var(--space-3);
    min-height: 53px;
    padding: var(--space-3) var(--space-6);
  }
  .mail-meta {
    min-width: 62px;
    max-width: 150px;
  }
  .mail-bottom {
    padding-inline: var(--space-6);
  }
}
@media (min-width: 1000px) {
  .email-line {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
  }
  .sender {
    flex: 0 0 112px;
    margin: 0;
  }
  .mail-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---- 7. How it works --------------------------------------------------------------------
 * <section class="benefits wrap"><div class="section-head">…</div>
 *   <ol class="benefit-grid"><li class="benefit"><div class="feature-icon"><svg class="icon" …>
 *     </div><h3>1. Chat.</h3><p>…</p></li>…</ol></section>
 * .benefit-grid.uc-steps holds four steps.
 */
.benefits {
  padding-top: var(--section-y);
}
.benefit-grid {
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: var(--space-4);
}
.feature-icon {
  display: grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-m);
  background: var(--blue-soft);
  color: var(--blue);
  --icon-size: 22px;
}
.benefit h3 {
  margin: var(--space-2) 0 var(--space-2);
}
.benefit p {
  margin: 0;
  color: var(--muted);
}
.benefit-grid + .text-link {
  margin-top: var(--space-6);
}
@media (min-width: 760px) {
  .benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-7);
  }
  .benefit-grid.uc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefit {
    display: block;
  }
  .feature-icon {
    margin-bottom: var(--space-5);
  }
  .benefit h3 {
    margin: 0 0 var(--space-3);
  }
  .benefit p {
    max-width: 300px;
  }
}
@media (min-width: 1000px) {
  .benefit-grid.uc-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- 8. Dark band -----------------------------------------------------------------------
 * The one dark band ("Knowing when to step back"). It stays dark in both colour schemes and
 * reads only --night* tokens.
 * <section class="approach"><div class="approach-inner wrap">
 *   <div class="approach-copy"><p class="eyebrow">…</p><h2>…</h2><p>…</p>
 *     <p class="approach-secondary">…</p></div>
 *   <div class="certainty-card"><div class="certainty-top"><span class="tiny-label">…</span>
 *     <svg class="icon" …></div><h3>…</h3><p>…</p>
 *     <div class="everyday-rules"><div><div><strong>…</strong><p>…</p>
 *       <span class="rule-mail"><b>Sender</b>Subject</span></div>
 *       <span class="chip tone-…">Label</span></div>…</div>
 *     <p class="rules-footer">…</p></div>
 * </div></section>
 */
.approach {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--night-line);
  background: var(--night);
  color: var(--night-ink);
}
.approach::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 95% 10%,
    color-mix(in srgb, var(--night-accent) 14%, transparent),
    transparent 60%
  );
  pointer-events: none;
}
.approach-inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--section-y);
}
.approach .eyebrow,
.approach .tiny-label {
  color: var(--night-muted);
}
.approach-copy h2 {
  margin-bottom: var(--space-6);
  font-size: var(--fs-h2);
}
.approach-copy h2 span:not(.blue-period) {
  color: var(--night-muted);
}
:where(.approach-copy) > p {
  max-width: 440px;
  line-height: var(--lh-body);
  color: var(--night-muted);
}
.approach-copy .approach-secondary {
  margin-top: var(--space-5);
  font-size: var(--fs-small);
  color: var(--night-ink);
}
.certainty-card {
  margin: 0;
  padding: var(--space-5);
  border: 1px solid var(--night-line);
  border-radius: var(--radius-l);
  background: var(--night-surface);
  box-shadow: var(--shadow-2);
}
.certainty-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  color: var(--night-muted);
  --icon-size: 18px;
}
.certainty-top .tiny-label {
  margin: 0;
}
.certainty-card h3 {
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.certainty-card > p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--night-muted);
}
.everyday-rules {
  margin-top: var(--space-5);
}
.everyday-rules > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--night-line);
}
.everyday-rules > div:last-child {
  border-bottom: 0;
}
.everyday-rules > div > div {
  flex: 1;
  min-width: 180px;
}
/* The card is always dark, so its chips take the dark tone values whatever the page theme. */
.certainty-card {
  --tone-promotions: #f39cc4;
  --tone-promotions-bg: #37182a;
  --tone-deadline: #f2bf6b;
  --tone-deadline-bg: #33260f;
  --tone-neutral: #b0b6c2;
  --tone-neutral-bg: #232833;
}
.everyday-rules .chip {
  flex: none;
  align-self: center;
}
.everyday-rules .chip-none::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
/* One fictional email per row, the way the sort shows it: sender, then subject. It is one
 * truncated line; `contain` keeps its text from widening the card on a phone. */
.rule-mail {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--fs-small);
  color: var(--night-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  contain: inline-size;
}
.rule-mail b {
  margin-right: var(--space-2);
  font-weight: 600;
  color: var(--night-ink);
}
.everyday-rules strong {
  display: block;
  font-weight: 600;
  color: var(--night-ink);
}
.everyday-rules p {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-small);
  line-height: var(--lh-body);
  color: var(--night-muted);
}
.rules-footer {
  margin: var(--space-5) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--night-line);
  font-size: var(--fs-meta);
  color: var(--night-muted);
}
@media (min-width: 760px) {
  .approach-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-7);
  }
  .certainty-card {
    padding: var(--space-6);
  }
}
@media (min-width: 1000px) {
  .approach-inner {
    gap: var(--space-9);
  }
  .everyday-rules > div {
    flex-wrap: nowrap;
  }
}

/* ---- 9. FAQ split: intro on the left, .faq on the right ---------------------------------
 * <section class="home-faq wrap"><div class="section-head">…<a class="text-link" href="/faq/">…
 *   </a></div><div class="faq">…</div></section>
 */
.home-faq {
  display: grid;
  gap: var(--space-6);
  padding-top: var(--section-y);
}
.home-faq > .section-head {
  margin-bottom: 0;
}
@media (min-width: 1000px) {
  .home-faq {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-8);
  }
}

/* ---- 10. Motion --------------------------------------------------------------------------
 * Every transition lives here, so reduced motion turns all of it off without !important.
 */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .btn {
    transition:
      transform 0.25s var(--ease),
      box-shadow 0.25s,
      background-color 0.2s,
      border-color 0.2s;
  }
  .text-link .icon {
    transition: transform 0.3s var(--ease);
  }
  .folder {
    transition:
      background-color 0.2s,
      color 0.2s;
  }
  .mail-row {
    transition:
      background-color 0.2s,
      opacity 0.3s,
      transform 0.4s var(--ease);
  }
  .js-motion .reveal {
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--blue) 20%, transparent);
  }
  .text-link:hover .icon,
  a:hover .text-link .icon {
    transform: translateX(3px);
  }
}
