/*
 * Formatly — landing site stylesheet.
 *
 * One file for two pages: the landing page and the privacy policy. They share a
 * header, a footer and a token set, so splitting them would mean keeping two
 * copies of the same header in step by hand.
 *
 * The palette is the extension's own, not a second one invented for the web. It
 * is "Ink & Azure" from docs/02-ux/brand-identity.md: the accent is `--fm-accent`
 * (#2F5CE0 light, #3560D8 dark), sampled from the icon's royal blue, and the
 * focus ring is amber rather than blue for the same reason it is amber in the
 * product — focus must never be mistakable for selected. The extension, the icon
 * and this site are one palette rather than three.
 *
 * Theme: `data-fm-theme` on <body> is the resolved theme ('light' or 'dark').
 * `data-fm-theme-choice` records what the user picked, which may be 'auto'.
 * script.js owns both; nothing here reads prefers-color-scheme directly, so the
 * toggle wins in every direction.
 */

:root {
  --fm-surface: #ffffff;
  --fm-sunken: #f7f7f4;
  --fm-text: #2b2f3a;
  --fm-heading: #12141a;
  --fm-muted: #5b6172;
  --fm-faint: #646b7c;
  --fm-border: rgba(18, 20, 26, 0.12);
  --fm-border-strong: rgba(18, 20, 26, 0.2);

  --fm-accent: #2f5ce0;
  --fm-accent-hover: #2449c4;
  --fm-accent-ink: #ffffff;
  --fm-accent-soft: #eaf0fe;
  --fm-accent-line: #2f5ce0;

  --fm-focus: #a35f00;
  --fm-green: #17643f;
  --fm-green-soft: #e6f4ec;
  --fm-amber: #8a5300;
  --fm-amber-soft: #fdf1dc;
  --fm-danger: #a5241c;
  --fm-danger-soft: #fbe9e7;

  --fm-shadow: 0 24px 70px rgba(18, 24, 48, 0.12);
  --fm-shadow-soft: 0 14px 36px rgba(18, 24, 48, 0.08);

  --fm-radius: 16px;
  --fm-radius-sm: 10px;
  --fm-container: 1140px;

  --fm-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.fm-page {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 2%, rgba(47, 92, 224, 0.08), transparent 26rem),
    radial-gradient(circle at 84% 6%, rgba(47, 92, 224, 0.06), transparent 24rem),
    linear-gradient(180deg, #fbfbf9 0%, #ffffff 36%, #fbfbf9 100%);
  color: var(--fm-text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.fm-page[data-fm-theme='dark'] {
  --fm-surface: #191c22;
  --fm-sunken: #0d0f13;
  --fm-text: #dcdfe6;
  --fm-heading: #f4f4f1;
  --fm-muted: #9aa1b1;
  --fm-faint: #8b92a2;
  --fm-border: rgba(154, 161, 177, 0.2);
  --fm-border-strong: rgba(154, 161, 177, 0.32);

  --fm-accent: #3560d8;
  --fm-accent-hover: #3f6be2;
  --fm-accent-ink: #ffffff;
  --fm-accent-soft: #16203a;
  --fm-accent-line: #6f95ff;

  --fm-focus: #f0a63a;
  --fm-green: #58c896;
  --fm-green-soft: #10241b;
  --fm-amber: #e7a94a;
  --fm-amber-soft: #2a2113;
  --fm-danger: #f0705f;
  --fm-danger-soft: #2d1715;

  --fm-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --fm-shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.3);

  background:
    radial-gradient(circle at 12% 2%, rgba(53, 96, 216, 0.2), transparent 26rem),
    radial-gradient(circle at 84% 6%, rgba(53, 96, 216, 0.12), transparent 24rem),
    linear-gradient(180deg, #111318 0%, #14171d 42%, #111318 100%);
}

/* :where() so this reset carries ZERO specificity. As `.fm-page a` it scored 0-1-1
   and beat `.fm-button-primary` at 0-1-0, which meant every anchor-shaped button
   drew its label in body text instead of --fm-accent-ink: dark slate on a dark
   accent, at about 1.5:1. Specificity, not cascade order — moving the rule would
   not have helped. */
:where(.fm-page a) {
  color: inherit;
  text-decoration: none;
}

.fm-page img,
.fm-page svg {
  display: block;
}

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

.fm-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.fm-container {
  width: min(calc(100% - 48px), var(--fm-container));
  margin-inline: auto;
}

.fm-page code {
  /* A chip like `chrome://extensions` is one unbreakable token and ran off a 320px
     screen. Break inside it rather than clipping the end of the word. */
  overflow-wrap: anywhere;
  font-family: var(--fm-mono);
  font-size: 0.9em;
  padding: 0.1em 0.4em;
  border-radius: 5px;
  background: var(--fm-sunken);
  border: 1px solid var(--fm-border);
  color: var(--fm-heading);
}

/* Reachable by keyboard, invisible until it has focus. */
.fm-skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 60;
  padding: 12px 20px;
  border-radius: 10px;
  color: var(--fm-accent-ink);
  background: var(--fm-accent);
  font-weight: 700;
  transition: top 0.2s ease;
}

.fm-skip:focus {
  top: 16px;
}

.fm-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.fm-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  min-height: 76px;
  background: rgba(251, 251, 249, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(18, 20, 26, 0.08);
}

.fm-page[data-fm-theme='dark'] .fm-header {
  background: rgba(17, 19, 24, 0.84);
  box-shadow: 0 1px 0 rgba(154, 161, 177, 0.14);
}

.fm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
}

.fm-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  flex: 0 0 auto;
}

.fm-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.fm-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.fm-brand-name strong {
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fm-heading);
}

.fm-brand-name small {
  font-size: 0.78rem;
  color: var(--fm-muted);
  letter-spacing: 0.01em;
}

.fm-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.fm-nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fm-muted);
  transition:
    color 0.16s ease,
    background 0.16s ease;
}

.fm-nav a:hover,
.fm-nav a.is-active {
  color: var(--fm-heading);
  background: var(--fm-accent-soft);
}

.fm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.fm-icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--fm-border);
  border-radius: 10px;
  background: var(--fm-surface);
  color: var(--fm-muted);
  cursor: pointer;
  transition:
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.fm-icon-button svg {
  width: 19px;
  height: 19px;
}

.fm-icon-button:hover {
  color: var(--fm-heading);
  border-color: var(--fm-border-strong);
}

.fm-menu-toggle {
  display: none;
}

.fm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease;
}

.fm-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.fm-button-primary {
  background: var(--fm-accent);
  color: var(--fm-accent-ink);
  box-shadow: 0 10px 24px rgba(47, 92, 224, 0.28);
}

.fm-button-primary:hover {
  background: var(--fm-accent-hover);
  transform: translateY(-1px);
}

.fm-button-secondary {
  background: var(--fm-surface);
  border-color: var(--fm-border-strong);
  color: var(--fm-heading);
}

.fm-button-secondary:hover {
  border-color: var(--fm-accent);
  color: var(--fm-accent);
  transform: translateY(-1px);
}

.fm-header-cta {
  padding: 10px 17px;
  font-size: 0.9rem;
}

/* -------------------------------------------------------------- mobile nav */

.fm-mobile-nav {
  border-top: 1px solid var(--fm-border);
  background: var(--fm-surface);
  padding: 14px 0 20px;
}

.fm-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.fm-mobile-nav a:not(.fm-button) {
  display: block;
  padding: 12px 10px;
  border-radius: 9px;
  font-weight: 600;
  color: var(--fm-text);
}

.fm-mobile-nav a:not(.fm-button):hover {
  background: var(--fm-accent-soft);
}

.fm-mobile-nav .fm-button {
  width: 100%;
  margin-top: 8px;
}

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

.fm-hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 76px);
  overflow: hidden;
}

.fm-hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at 30% 0%, rgba(47, 92, 224, 0.14), transparent 62%);
  pointer-events: none;
}

.fm-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* Grid children default to min-width:auto, which lets a long word widen the
   column instead of wrapping. */
.fm-hero-copy {
  min-width: 0;
}

.fm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border: 1px solid var(--fm-border);
  border-radius: 999px;
  background: var(--fm-surface);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--fm-muted);
}

.fm-eyebrow svg {
  width: 15px;
  height: 15px;
  color: var(--fm-accent);
}

.fm-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--fm-heading);
}

.fm-hero h1 span {
  display: block;
  color: var(--fm-accent);
}

.fm-hero-text {
  margin: 0 0 28px;
  max-width: 54ch;
  font-size: clamp(1rem, 1.2vw, 1.09rem);
  color: var(--fm-muted);
}

.fm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.fm-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--fm-muted);
}

.fm-trust-list svg {
  width: 16px;
  height: 16px;
  color: var(--fm-green);
}

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

.fm-demo {
  margin: 0;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
  box-shadow: var(--fm-shadow);
  overflow: hidden;
}

.fm-demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fm-border);
  background: var(--fm-sunken);
}

.fm-demo-dots {
  display: inline-flex;
  gap: 6px;
}

.fm-demo-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fm-border-strong);
}

.fm-demo-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fm-muted);
}

.fm-demo-count {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--fm-faint);
  font-family: var(--fm-mono);
}

.fm-demo-count b {
  color: var(--fm-accent);
}

.fm-demo-count em {
  display: block;
  font-style: normal;
  text-align: right;
  font-size: 0.75rem;
}

.fm-demo-body {
  padding: 22px 20px 16px;
}

.fm-demo-line {
  margin: 0 0 14px;
  font-size: 0.97rem;
  color: var(--fm-text);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fm-demo-headline {
  font-size: 1.2rem;
  color: var(--fm-heading);
}

.fm-demo-protected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.fm-demo-guard {
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--fm-accent-soft);
  border: 1px dashed var(--fm-accent-line);
  color: var(--fm-accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.fm-demo-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--fm-border);
  font-size: 0.81rem;
  color: var(--fm-muted);
}

.fm-demo-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--fm-green);
}

.fm-demo-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 13px 20px;
  border-top: 1px solid var(--fm-border);
  background: var(--fm-sunken);
}

.fm-demo-chip {
  padding: 5px 11px;
  border: 1px solid var(--fm-border);
  border-radius: 999px;
  background: var(--fm-surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fm-muted);
}

.fm-demo-chip.is-on {
  background: var(--fm-accent);
  border-color: var(--fm-accent);
  color: var(--fm-accent-ink);
}

.fm-demo-chip-risk {
  border-style: dashed;
  color: var(--fm-amber);
  border-color: var(--fm-amber);
}

.fm-demo-more {
  font-size: 0.78rem;
  color: var(--fm-faint);
}

.fm-demo figcaption {
  padding: 12px 20px 16px;
  font-size: 0.79rem;
  color: var(--fm-faint);
  border-top: 1px solid var(--fm-border);
}

/* ----------------------------------------------------------------- sections */

.fm-section {
  padding: clamp(52px, 7vw, 96px) 0;
}

.fm-section-tight {
  padding: clamp(32px, 4vw, 56px) 0;
}

.fm-section-alt {
  background: var(--fm-sunken);
  border-block: 1px solid var(--fm-border);
}

.fm-section-heading {
  max-width: 62ch;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.fm-section-kicker {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fm-accent);
}

.fm-section-heading h2,
.fm-split h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.024em;
  font-weight: 800;
  color: var(--fm-heading);
}

.fm-section-lede {
  margin: 0;
  font-size: 1.02rem;
  color: var(--fm-muted);
}

.fm-section-lede a {
  color: var(--fm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fm-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.fm-muted-note {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--fm-faint);
}

/* -------------------------------------------------------------------- doors */

.fm-doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 22px;
  margin-bottom: 34px;
}

.fm-door {
  padding: 28px 26px;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
  box-shadow: var(--fm-shadow-soft);
}

.fm-door-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
}

.fm-door-icon svg {
  width: 23px;
  height: 23px;
}

.fm-door h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--fm-heading);
}

.fm-door p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--fm-muted);
}

.fm-door-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.fm-door-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--fm-text);
}

.fm-door-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fm-accent-line);
}

/* -------------------------------------------------------------------- steps */

.fm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.fm-steps li {
  position: relative;
  padding: 22px 22px 20px;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
  background: var(--fm-surface);
}

.fm-steps b {
  display: block;
  margin-bottom: 10px;
  font-family: var(--fm-mono);
  font-size: 0.82rem;
  color: var(--fm-accent);
}

.fm-steps h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fm-heading);
}

.fm-steps p {
  margin: 0;
  font-size: 0.89rem;
  color: var(--fm-muted);
}

/* ------------------------------------------------------------------- styles */

/* Four groups: two columns, so they pair rather than leaving one orphaned on a
   third row. */
.fm-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 20px;
  align-items: start;
}

.fm-style-group {
  padding: 24px 22px;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
}

.fm-style-group h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fm-heading);
}

.fm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.fm-badge svg {
  width: 13px;
  height: 13px;
}

.fm-badge-warn {
  background: var(--fm-amber-soft);
  color: var(--fm-amber);
}

/* The three risk badges carry the engine's own `renderRisk` values, so they are
   ranked rather than decorative: low reads as reassurance, high as a warning. */
.fm-badge-ok {
  background: var(--fm-green-soft);
  color: var(--fm-green);
}

.fm-badge-risk {
  background: var(--fm-danger-soft);
  color: var(--fm-danger);
}

.fm-style-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.fm-style-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--fm-border);
}

.fm-style-list li:last-child {
  border-bottom: 0;
}

.fm-style-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--fm-muted);
  white-space: nowrap;
}

.fm-style-sample {
  font-size: 1.12rem;
  color: var(--fm-heading);
  text-align: right;
  overflow-wrap: anywhere;
}

.fm-style-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--fm-border);
  font-size: 0.85rem;
  color: var(--fm-muted);
}

.fm-inline-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--fm-border);
  border-left: 3px solid var(--fm-accent-line);
  border-radius: var(--fm-radius-sm);
  background: var(--fm-surface);
  font-size: 0.92rem;
  color: var(--fm-muted);
}

.fm-inline-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--fm-accent);
}

.fm-inline-note b {
  color: var(--fm-heading);
}

/* ---------------------------------------------------------------- languages */

.fm-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.fm-lang-card {
  padding: 26px 24px;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
  box-shadow: var(--fm-shadow-soft);
}

.fm-lang-card h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fm-heading);
}

.fm-lang-card h3 svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
}

.fm-lang-yes h3 svg {
  background: var(--fm-green-soft);
  color: var(--fm-green);
}

.fm-lang-no h3 svg {
  background: var(--fm-sunken);
  color: var(--fm-faint);
}

.fm-lang-scripts {
  margin: 0 0 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fm-muted);
}

.fm-lang-samples {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.fm-lang-samples li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
}

.fm-lang-samples span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fm-faint);
}

.fm-lang-samples b {
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--fm-heading);
  overflow-wrap: anywhere;
}

.fm-honest {
  padding: 26px 26px 22px;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-accent-soft);
}

.fm-page[data-fm-theme='dark'] .fm-honest {
  border-color: var(--fm-accent-line);
}

.fm-honest h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--fm-heading);
}

.fm-honest p {
  margin: 0 0 12px;
  font-size: 0.96rem;
  color: var(--fm-text);
  max-width: 78ch;
}

.fm-honest-foot {
  margin: 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--fm-border);
  font-size: 0.88rem !important;
  color: var(--fm-muted) !important;
}

/* ---------------------------------------------------------------- platforms */

.fm-platform-list {
  margin: 0;
  padding: 8px 22px;
  list-style: none;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
  box-shadow: var(--fm-shadow-soft);
}

.fm-platform-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--fm-border);
}

.fm-platform-list li:last-child {
  border-bottom: 0;
}

.fm-platform-list span {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--fm-text);
}

.fm-platform-list b {
  font-family: var(--fm-mono);
  font-size: 0.95rem;
  color: var(--fm-heading);
}

.fm-platform-list em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fm-amber);
}

/* -------------------------------------------------------------------- shots */

/* Four screenshots at 1280x800: two columns. Three would orphan the fourth and
   shrink each shot below the point where its UI is legible. */
.fm-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 24px;
}

.fm-shot {
  margin: 0;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
  box-shadow: var(--fm-shadow-soft);
  overflow: hidden;
}

.fm-shot img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--fm-border);
}

.fm-shot figcaption {
  padding: 15px 18px 17px;
  font-size: 0.87rem;
  color: var(--fm-muted);
}

/* ------------------------------------------------------------------ privacy */

.fm-privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.fm-privacy-card {
  padding: 24px 22px;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
}

.fm-privacy-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  border-radius: 11px;
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
}

.fm-privacy-icon svg {
  width: 21px;
  height: 21px;
}

.fm-privacy-card h3 {
  margin: 0 0 9px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--fm-heading);
}

.fm-privacy-card p {
  margin: 0;
  font-size: 0.91rem;
  color: var(--fm-muted);
}

.fm-verify {
  padding: 26px 26px 22px;
  border: 1px solid var(--fm-accent-line);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
}

.fm-verify h3 {
  margin: 0 0 14px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--fm-heading);
}

.fm-verify ol {
  margin: 0 0 14px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--fm-text);
}

.fm-verify p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fm-muted);
}

/* ------------------------------------------------------------------- limits */

.fm-limits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-border);
  overflow: hidden;
}

.fm-limits li {
  padding: 24px 22px;
  background: var(--fm-surface);
}

/* Block flow, not flex: these headings contain inline <code> chips, and as flex
   items each chip would become its own line instead of wrapping as text. */
.fm-limits h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--fm-heading);
}

.fm-limits h3::before {
  content: '—';
  margin-right: 8px;
  color: var(--fm-amber);
  font-weight: 700;
}

.fm-limits p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fm-muted);
}

/* ---------------------------------------------------------------------- faq */

.fm-faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 14px;
  align-items: start;
}

.fm-faq-item {
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
  background: var(--fm-surface);
  overflow: hidden;
}

.fm-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--fm-heading);
  cursor: pointer;
  list-style: none;
}

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

.fm-faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--fm-muted);
  border-bottom: 2px solid var(--fm-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.fm-faq-item[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.fm-faq-item[open] summary {
  border-bottom: 1px solid var(--fm-border);
}

.fm-faq-item > div {
  padding: 16px 20px 19px;
}

.fm-faq-item p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--fm-muted);
}

.fm-faq-item p:last-child {
  margin-bottom: 0;
}

.fm-faq-item a {
  color: var(--fm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ install */

/* One centred panel rather than a grid of routes: the Chrome Web Store is the only
   way to install this, so offering it as a "choice" would invent an alternative
   that does not exist. */
.fm-install-panel {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(30px, 4vw, 48px) clamp(22px, 4vw, 44px) clamp(26px, 3vw, 38px);
  border: 1px solid var(--fm-accent-line);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
  box-shadow: var(--fm-shadow);
  text-align: center;
}

.fm-install-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 17px;
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
}

.fm-install-mark svg {
  width: 30px;
  height: 30px;
}

.fm-install-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.024em;
  font-weight: 800;
  color: var(--fm-heading);
}

.fm-install-lede {
  max-width: 46ch;
  margin: 0 auto 26px;
  font-size: 1rem;
  color: var(--fm-muted);
}

.fm-install-cta {
  width: min(100%, 340px);
  padding-block: 15px;
  font-size: 1rem;
}

.fm-install-facts {
  display: grid;
  gap: 10px;
  width: fit-content;
  margin: 28px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--fm-border);
  list-style: none;
  text-align: left;
}

.fm-install-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--fm-text);
}

.fm-install-facts svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--fm-accent);
}

.fm-install-after {
  max-width: 48ch;
  margin: 22px auto 0;
  font-size: 0.88rem;
  color: var(--fm-faint);
}

.fm-install-after b {
  color: var(--fm-text);
}

/* ------------------------------------------------------------------ callout */

.fm-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px 26px;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
  box-shadow: var(--fm-shadow-soft);
}

.fm-callout-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
}

.fm-callout-icon svg {
  width: 24px;
  height: 24px;
}

.fm-callout h2 {
  margin: 0 0 7px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--fm-heading);
}

.fm-callout p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fm-muted);
}

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

.fm-footer {
  position: relative;
  padding: clamp(44px, 5vw, 68px) 0 34px;
  border-top: 1px solid var(--fm-border);
  background: var(--fm-sunken);
}

.fm-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--fm-border);
}

.fm-footer-brand p {
  margin: 16px 0 0;
  max-width: 40ch;
  font-size: 0.89rem;
  color: var(--fm-muted);
}

.fm-footer-links h2,
.fm-footer-install h2 {
  margin: 0 0 14px;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fm-faint);
}

.fm-footer-links a {
  display: block;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--fm-muted);
}

.fm-footer-links a:hover {
  color: var(--fm-accent);
}

.fm-footer-install a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--fm-border-strong);
  border-radius: var(--fm-radius-sm);
  background: var(--fm-surface);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--fm-text);
}

.fm-footer-install a:hover {
  border-color: var(--fm-accent);
  color: var(--fm-accent);
}

.fm-footer-install svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--fm-accent);
}

.fm-footer-limit {
  max-width: 92ch;
  margin: 26px auto 0;
  padding-inline: 24px;
  font-size: 0.81rem;
  color: var(--fm-faint);
}

.fm-copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(calc(100% - 48px), var(--fm-container));
  margin: 22px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--fm-border);
  font-size: 0.82rem;
  color: var(--fm-faint);
}

.fm-copyright a {
  color: var(--fm-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fm-scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--fm-border-strong);
  border-radius: 12px;
  background: var(--fm-surface);
  color: var(--fm-muted);
  box-shadow: var(--fm-shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}

.fm-scroll-top svg {
  width: 19px;
  height: 19px;
}

.fm-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fm-scroll-top:hover {
  color: var(--fm-accent);
  border-color: var(--fm-accent);
}

/* ------------------------------------------------------- the document pages */

.fm-doc-main {
  padding: clamp(38px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
}

.fm-doc-hero {
  max-width: 68ch;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.fm-doc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fm-accent);
}

.fm-doc-eyebrow svg {
  width: 15px;
  height: 15px;
}

.fm-doc-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: var(--fm-heading);
}

.fm-doc-hero p {
  margin: 0 0 12px;
  font-size: 1.02rem;
  color: var(--fm-muted);
}

.fm-doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 0.83rem;
  color: var(--fm-faint);
}

.fm-doc-meta b {
  color: var(--fm-text);
}

.fm-doc-grid {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: start;
}

.fm-doc-aside {
  position: sticky;
  top: 96px;
  padding: 20px 18px;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
}

.fm-doc-aside h2 {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fm-faint);
}

.fm-doc-toc {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.fm-doc-toc a {
  display: block;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.87rem;
  color: var(--fm-muted);
}

.fm-doc-toc a:hover,
.fm-doc-toc a.is-active {
  background: var(--fm-accent-soft);
  color: var(--fm-accent);
}

/* A grid item's min-width is auto, so a wide table inside .fm-prose would widen
   this column and the page with it, instead of scrolling in its own wrapper. */
.fm-doc-stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.fm-doc-stack > * {
  min-width: 0;
}

.fm-prose {
  padding: 28px 28px 24px;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  background: var(--fm-surface);
}

.fm-prose-accent {
  border-color: var(--fm-accent-line);
  background: var(--fm-accent-soft);
}

.fm-prose h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fm-heading);
}

.fm-prose h3 {
  margin: 22px 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--fm-heading);
}

.fm-prose p {
  margin: 0 0 14px;
  font-size: 0.96rem;
  color: var(--fm-text);
  max-width: 76ch;
}

.fm-prose p:last-child {
  margin-bottom: 0;
}

.fm-prose ul,
.fm-prose ol {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--fm-text);
  max-width: 76ch;
}

.fm-prose a {
  color: var(--fm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.fm-table-wrap {
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 14px;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
}

.fm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.fm-table th,
.fm-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--fm-border);
}

.fm-table th {
  background: var(--fm-sunken);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fm-muted);
  white-space: nowrap;
}

.fm-table tr:last-child td {
  border-bottom: 0;
}

.fm-table td b {
  color: var(--fm-heading);
}

/* ---------------------------------------------------------------- reveals */

[data-fm-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

[data-fm-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-fm-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------- breakpoints */

@media (max-width: 1080px) {
  .fm-nav {
    display: none;
  }

  .fm-menu-toggle {
    display: grid;
  }

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

  .fm-doc-aside {
    position: static;
  }
}

@media (max-width: 900px) {
  .fm-hero-grid,
  .fm-split {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .fm-callout .fm-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .fm-container,
  .fm-copyright {
    width: calc(100% - 32px);
  }


  .fm-brand-name small {
    display: none;
  }

  .fm-header-cta span {
    display: none;
  }

  .fm-header-cta {
    padding: 10px 12px;
  }

  /* Content-width buttons stack ragged on a phone. Full width reads as deliberate
     and gives each one the whole thumb. */
  .fm-actions {
    display: grid;
    gap: 10px;
  }

  .fm-actions .fm-button {
    width: 100%;
    padding-block: 14px;
  }

  .fm-callout .fm-button {
    width: 100%;
  }

  .fm-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

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

  .fm-lang-samples li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .fm-demo-count {
    display: none;
  }

  .fm-table th {
    white-space: normal;
  }

  .fm-prose,
  .fm-door,
  .fm-lang-card,
  .fm-install-panel,
  .fm-style-group {
    padding-inline: 18px;
  }
}
