/* framemodu.com — tokens map to DESIGN.md. Black on white, one typeface family. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-variable.woff2?v=46525b05bbf4") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-variable.woff2?v=3ef2c50dc104") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-body: #2b2b2b;
  --ink-muted: #6b6b6b;
  --ink-soft: #8f8f8f; /* large text only (3.3:1) */
  --line: rgba(17, 17, 17, 0.12);
  --stage: #f4f4f4;
  --surface: #f0f0f0;
  --surface-hover: #e6e6e6;
  --ink-hover: #2e2e2e;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1120px;
  --narrow: 760px;
  --gutter: 20px;
  --radius-media: 12px;
  --radius-card: 20px;
  --section-space: clamp(80px, 9vw, 128px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01";
  overflow-x: clip;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, summary { font: inherit; color: inherit; }
.mono { font-family: var(--font-mono); font-feature-settings: normal; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

/* Wordmark: crop marks around the name. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark-mark {
  --tick: 7px;
  --weight: 1.5px;
  padding: 5px 9px 7px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / var(--tick) var(--weight),
    linear-gradient(currentColor, currentColor) 0 0 / var(--weight) var(--tick),
    linear-gradient(currentColor, currentColor) 100% 0 / var(--tick) var(--weight),
    linear-gradient(currentColor, currentColor) 100% 0 / var(--weight) var(--tick),
    linear-gradient(currentColor, currentColor) 0 100% / var(--tick) var(--weight),
    linear-gradient(currentColor, currentColor) 0 100% / var(--weight) var(--tick),
    linear-gradient(currentColor, currentColor) 100% 100% / var(--tick) var(--weight),
    linear-gradient(currentColor, currentColor) 100% 100% / var(--weight) var(--tick);
  background-repeat: no-repeat;
}
.wordmark-suffix { font-weight: 450; letter-spacing: -0.02em; color: var(--ink-muted); }
.wordmark-hero { font-size: 23px; flex-wrap: wrap; row-gap: 10px; white-space: normal; }
.wordmark-hero .wordmark-mark { --tick: 8px; padding: 6px 10px 8px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.button:active { transform: scale(0.98); }
.button .icon { width: 20px; height: 20px; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: var(--ink-hover); }
.button-secondary { background: var(--surface); color: var(--ink); }
.button-secondary:hover { background: var(--surface-hover); }
.button-quiet { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; padding-inline: 12px; }
.button-small { min-height: 40px; padding: 0 18px; font-size: 15px; }

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

/* Header: floating pill. On pages with a hero it slides in after the hero. */
.site-header {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  padding-inline: 12px;
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--container) + 48px);
  margin-inline: auto;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
.js .has-hero .site-header:not(.is-visible):not(:focus-within) {
  transform: translateY(calc(-100% - 16px));
  opacity: 0;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a, .nav-menu-panel a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface); }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(280px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.nav-menu-panel a { padding: 12px 14px; font-size: 17px; border-radius: 12px; }
.nav-menu-panel a:hover { background: var(--surface); }

@media (max-width: 859px) {
  .site-nav { display: none; }
  .site-header-inner > .button { margin-left: auto; }
  .nav-menu { display: block; }
  .site-header-inner { gap: 8px; }
}

/* Hero */
.hero { padding-top: clamp(72px, 9vw, 120px); }
.wordmark-hero { margin-bottom: 36px; }
.display {
  max-width: 14.5em;
  font-size: clamp(2.375rem, 1.95rem + 1.5vw, 3rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}
.two-tone span { color: var(--ink-soft); }
.hero .actions { margin-top: 40px; }
.hero-note { margin-top: 18px; color: var(--ink-muted); font-size: 15px; }

@media (max-width: 559px) {
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions > .button, .hero .download-menu, .hero .download-menu > summary { width: 100%; }
}

/* Download menu */
.download-menu { position: relative; }
.download-menu > summary { list-style: none; }
.download-menu > summary::-webkit-details-marker { display: none; }
.download-menu .icon-chevron { transition: transform 200ms var(--ease); }
.download-menu[open] .icon-chevron { transform: rotate(180deg); }
.download-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: max(100%, 330px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.download-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
}
.download-panel a:hover { background: var(--surface); }
.download-panel span { display: block; font-weight: 500; }
.download-panel small { display: block; color: var(--ink-muted); font-size: 14px; }
@media (max-width: 559px) { .download-panel { width: 100%; } }

/* Media */
.media-placeholder { width: 100%; aspect-ratio: 16 / 10; background: var(--stage); }
.stage {
  display: grid;
  place-items: center;
  margin-top: clamp(56px, 7vw, 80px);
  padding: clamp(20px, 6vw, 88px);
  border-radius: var(--radius-media);
  background: var(--stage);
  overflow: hidden;
}
.stage:has(picture) { padding: 0; }
.stage picture, .stage img { width: 100%; }
.stage .media-placeholder { aspect-ratio: 16 / 10; background: #ebebeb; }

/* Home hero: the display photo on the stage. At full size it is 80% of the stage
   width. On wide screens it rests at 84% of that (about two thirds of the stage),
   pinned near the top, and grows to full size over the first 60% of a viewport of
   scrolling (scroll-linked, reversible). Phones, reduced motion and browsers
   without scroll timelines get the full-size still image. */
.stage.hero-stage { padding: clamp(20px, 4.5%, 56px) clamp(16px, 10%, 112px); }
@media (max-width: 809px) { .stage.hero-stage { padding: 28px 20px 24px; } }
.hero-device { width: 100%; transform-origin: 50% 0; }
.hero-device img { height: auto; }
@media (min-width: 810px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-device {
      animation: hero-device-grow linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 60vh;
      will-change: transform;
    }
  }
}
@keyframes hero-device-grow {
  from { transform: scale(0.84); }
  to { transform: none; }
}


/* Sections */
.section { padding-top: var(--section-space); }
.section:last-child { padding-bottom: var(--section-space); }
.section-head { margin-bottom: 44px; }
.section-head h2, .shortcut h2, .cta-band h2 {
  max-width: 19em;
  font-size: clamp(1.75rem, 1.55rem + 0.7vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.caption { font-size: 20px; line-height: 1.45; color: var(--ink-muted); text-wrap: pretty; }
.caption strong { color: var(--ink); font-weight: 500; }

/* Tiles */
.tiles { display: grid; gap: 48px 40px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: block; color: inherit; text-decoration: none; }
.tile-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-media);
  background: var(--stage);
  overflow: hidden;
}
.tile-media picture, .tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-media img { transition: transform 600ms var(--ease); }
a.tile:hover .tile-media img { transform: scale(1.025); }
.tile .caption { margin-top: 20px; }

/* Animated tiles. Frames: stacked stills that cross-fade while the tile is in view
   (site.js adds .is-cycling and moves .is-on). Reveal: the framed render starts
   clipped to its photo and the frame grows in around it (site.js adds .is-playing).
   Without scripts or with reduced motion both show one complete still. */
.tile-frames { display: grid; }
.tile-frames > picture { grid-area: 1 / 1; opacity: 0; transition: opacity 520ms var(--ease); }
.tile-frames > picture.is-on { opacity: 1; }
.tile-reveal { display: grid; place-items: center; }
.tile-reveal .reveal-art { width: 53.3%; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16)); }
.tile-reveal .reveal-art picture, .tile-reveal .reveal-art img { width: 100%; height: auto; object-fit: initial; }
@media (prefers-reduced-motion: no-preference) {
  .js .tile-reveal .reveal-art img {
    clip-path: var(--inset);
    animation: tile-reveal 8s cubic-bezier(0.65, 0, 0.35, 1) infinite paused;
  }
  .js .tile-reveal.is-playing .reveal-art img { animation-play-state: running; }
}
@keyframes tile-reveal {
  0%, 16% { clip-path: var(--inset); }
  32%, 84% { clip-path: inset(0); }
  98%, 100% { clip-path: var(--inset); }
}
a.tile:hover .caption strong { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 759px) { .tiles-3 { grid-template-columns: 1fr; } }

/* Template strip: scrolls on its own, the page never scrolls sideways. */
.template-strip {
  --inset: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 0 var(--inset) 12px;
  scroll-padding-inline: var(--inset);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.template-card { flex: 0 0 clamp(220px, 62vw, 264px); scroll-snap-align: start; }
.template-card picture, .template-card .media-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-media);
  background: var(--stage);
  overflow: hidden;
}
.template-card img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform 400ms var(--ease); }
.template-open { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-media); background: none; cursor: zoom-in; }
.template-open:hover img { transform: scale(1.03); }
.template-open:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Lightbox for the template cards (assets/lightbox.js). */
.has-lightbox body { overflow: hidden; padding-right: var(--scrollbar-gap, 0); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.72); }
.lightbox-panel {
  position: relative;
  max-width: calc(100vw - 24px);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
.lightbox-stage { margin: 0 auto; background: var(--stage) center / cover no-repeat; }
.lightbox-stage picture, .lightbox-stage img { display: block; width: 100%; height: 100%; }
.lightbox-bar { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; }
.lightbox-text { flex: 1; min-width: 0; }
.lightbox-title { font-weight: 600; }
.lightbox-description { color: var(--ink-muted); font-size: 15px; line-height: 1.45; }
.lightbox-counter { color: var(--ink-muted); font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.lightbox-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface, #f0f0f0);
  color: var(--ink);
  cursor: pointer;
}
.lightbox-button:hover { background: #e6e6e6; }
.lightbox-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lightbox-button[hidden] { display: none; }
.lightbox-close { position: fixed; top: 14px; right: 14px; background: #fff; }
.lightbox-bar [data-prev] { order: -1; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox.is-open .lightbox-backdrop { animation: lightbox-fade 240ms ease-out; }
  .lightbox-stage.is-swapping picture { animation: lightbox-fade 260ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox.is-open { animation: lightbox-fade 160ms linear; }
}
@keyframes lightbox-fade { from { opacity: 0; } }
@media (max-width: 639px) {
  .lightbox-panel { width: calc(100vw - 24px) !important; }
  .lightbox-bar { flex-wrap: wrap; padding: 12px; }
  .lightbox-text { flex-basis: 100%; order: -2; }
  .lightbox-counter { margin: 0 auto; }
}
.template-card figcaption { margin-top: 12px; color: var(--ink-muted); font-family: var(--font-mono); font-size: 13px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.feature-icon { margin-bottom: 16px; color: var(--ink); }
.feature-grid .caption { font-size: 19px; }
@media (max-width: 859px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .feature-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Shortcut */
.keycaps { display: flex; gap: 8px; margin-bottom: 28px; }
.keycaps kbd {
  display: grid;
  place-items: center;
  min-width: 56px;
  height: 56px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 -3px 0 rgba(17, 17, 17, 0.06);
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 450;
}

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.plan h3 { font-size: 17px; font-weight: 600; }
.plan-price { margin-top: 12px; }
.plan-price .mono { font-size: 48px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.plan-price small { color: var(--ink-muted); font-size: 15px; }
.plan-summary { margin-top: 12px; color: var(--ink-muted); }
.plan ul { display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 22px; color: var(--ink-body); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 1.5px; background: var(--ink); }
.plan .button { margin-top: auto; }
.pricing-note { margin-top: 20px; color: var(--ink-muted); font-size: 15px; }
.pricing-note a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 759px) { .pricing { grid-template-columns: 1fr; } .plan { padding: 24px; } }

/* FAQ: questions read clearly larger than body text, answers at a comfortable
   reading size. The +/× sits in the question's own line box, so it stays aligned
   at any size. Native <details> keeps keyboard support and the expanded state. */
.faq-title {
  margin-bottom: 40px;
  font-size: clamp(2.25rem, 1.9rem + 1.2vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.1;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  padding: 24px 0 24px 44px;
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  text-wrap: pretty;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+" / "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 1em;
  color: var(--ink-soft);
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
  transition: transform 200ms var(--ease);
}
.faq-item summary:hover::before { color: var(--ink); }
.faq-item[open] summary::before { transform: rotate(45deg); }
.faq-answer { padding: 0 0 28px 44px; color: var(--ink-body); font-size: 20px; line-height: 1.5; max-width: 36em; text-wrap: pretty; }
@media (max-width: 559px) {
  .faq-item summary { padding: 20px 0 20px 36px; }
  .faq-item summary::before { top: 20px; }
  .faq-answer { padding: 0 0 24px 36px; font-size: 18px; }
}
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq-item { interpolate-size: allow-keywords; }
    .faq-item::details-content { height: 0; overflow: clip; transition: height 280ms var(--ease), content-visibility 280ms allow-discrete; }
    .faq-item[open]::details-content { height: auto; }
  }
}

/* Product page parts */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.step-number { display: block; margin-bottom: 14px; color: var(--ink-muted); font-size: 14px; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.compare figure { padding: clamp(16px, 3vw, 32px); border-radius: var(--radius-media); background: var(--stage); }
.compare picture, .compare .media-placeholder { aspect-ratio: 1 / 1; }
.compare img { width: 100%; height: 100%; object-fit: contain; }
.compare figcaption { margin-top: 14px; text-align: center; color: var(--ink-muted); font-family: var(--font-mono); font-size: 13px; }
.spec-list { max-width: var(--narrow); border-bottom: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.spec-list dt { font-weight: 500; }
.spec-list dd { color: var(--ink-muted); }
@media (max-width: 759px) {
  .steps, .compare { grid-template-columns: 1fr; }
  .spec-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* Articles: guides, support and legal */
.article-head { padding-top: clamp(120px, 14vw, 168px); }
.article-title {
  max-width: 22em;
  font-size: clamp(2.125rem, 1.8rem + 1.1vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.article-title span {
  display: block;
  max-width: 38em;
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.section-more { margin-top: 28px; color: var(--ink-muted); font-size: 16px; }
.section-more a { color: var(--ink); text-underline-offset: 3px; }

/* Template gallery (/templates/) */
.template-gallery { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 48px 32px; }
.template-entry { scroll-margin-top: 96px; }
.template-entry-media { display: grid; place-items: center; aspect-ratio: 1 / 1; padding: 20px; border-radius: var(--radius-media); background: var(--stage); }
/* Fixed square box; the image fills it with object-fit so nothing moves while it loads. */
.template-entry-media picture { display: block; width: 100%; height: 100%; }
.template-entry-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.template-entry h2 { margin-top: 18px; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.template-entry p { margin-top: 6px; color: var(--ink-body); font-size: 16px; line-height: 1.55; }
.template-entry-use span { color: var(--ink-muted); }
.template-entry-meta { color: var(--ink-muted); font-size: 13px !important; }
.template-mac-only { margin-top: 64px; padding: 28px; border-radius: var(--radius-card); background: var(--stage); }
.template-mac-only h2 { font-size: 20px; font-weight: 500; }
.template-mac-only p { margin-top: 8px; color: var(--ink-body); }
.article-byline { margin-top: 20px; color: var(--ink-muted); font-size: 14px; }
.article-visual { margin-top: 56px; padding: clamp(20px, 5vw, 64px); border-radius: var(--radius-media); background: var(--stage); }
/* Full width + height:auto lets the width/height attributes reserve space before load (no CLS); object-fit keeps the image unstretched under max-height. */
.article-visual img { width: 100%; height: auto; max-height: min(640px, 70vh); object-fit: contain; margin-inline: auto; }
.article-pricing, .download-groups, .changelog { margin-top: 56px; }
.prose { padding-top: 24px; }
.prose-section { padding-top: 40px; }
.prose h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.prose p, .prose li { color: var(--ink-body); font-size: 17px; line-height: 1.7; }
.prose p { margin-top: 12px; }
.prose ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.prose a, .changelog a { text-underline-offset: 3px; }
.prose ol { margin-top: 12px; padding-left: 22px; list-style: decimal; }
.prose li + li { margin-top: 6px; }
.table-scroll { margin-top: 20px; overflow-x: auto; }
.prose-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose-table caption { padding-bottom: 8px; color: var(--ink-muted); font-size: 14px; text-align: left; }
.prose-table th, .prose-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-body); }
.prose-table thead th { color: var(--ink); font-weight: 500; white-space: nowrap; }
.prose-table tbody th { color: var(--ink); font-weight: 500; }
.prose-figures { margin-top: 24px; display: grid; gap: 20px; }
.prose-figures-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.prose-figures figure { margin: 0; padding: 16px; border-radius: var(--radius-media); background: var(--stage); }
.prose-figures img { display: block; width: 100%; height: auto; }
.prose-figures figcaption { margin-top: 10px; color: var(--ink-muted); font-size: 14px; line-height: 1.5; }

.download-groups { display: grid; gap: 48px; max-width: var(--narrow); }
.download-groups h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.download-groups h2 .mono { color: var(--ink-muted); font-size: 16px; font-weight: 400; }
.download-groups p { margin-top: 8px; color: var(--ink-muted); }
.download-list { margin-top: 20px; border-bottom: 1px solid var(--line); }
.download-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.download-list strong { display: block; font-weight: 500; }
.download-list small { display: block; color: var(--ink-muted); font-size: 13px; word-break: break-all; }

/* License recovery form */
.recovery { margin-top: 56px; max-width: var(--narrow); padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-card); background: var(--stage); }
.recovery h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.recovery-form { margin-top: 20px; }
.recovery-form label { display: block; color: var(--ink-body); font-size: 15px; font-weight: 500; }
.recovery-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.recovery-row input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.recovery-row input::placeholder { color: var(--ink-muted); }
.recovery-row input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: transparent; }
.recovery-row input[aria-invalid="true"] { border-color: var(--ink); }
.recovery-row .button[disabled] { cursor: progress; background: var(--ink-hover); }
.recovery-status { min-height: 1.6em; margin-top: 14px; color: var(--ink); font-size: 15px; line-height: 1.6; }
.recovery-status:empty { display: none; }
.recovery-note, .recovery-nojs { margin-top: 10px; color: var(--ink-muted); font-size: 14px; line-height: 1.6; }
.recovery-nojs a { color: var(--ink); text-underline-offset: 3px; }
.js .recovery-nojs, .no-js .recovery-form, .no-js .recovery-note { display: none; }
@media (max-width: 519px) { .recovery-row .button { width: 100%; } }

.changelog { display: grid; gap: 48px; max-width: var(--narrow); }
.changelog-meta { color: var(--ink-muted); font-size: 13px; }
.changelog h2 { margin-top: 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.changelog ul { margin-top: 12px; padding-left: 20px; list-style: disc; color: var(--ink-body); line-height: 1.7; }

.cta-band { border-top: 0; }
.cta-band .actions { margin-top: 32px; }
.related h2 { font-size: 15px; font-weight: 600; }
.related ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.related a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--surface); font-size: 15px; text-decoration: none; }
.related a:hover { background: var(--surface-hover); }

/* Footer */
.site-footer { margin-top: var(--section-space); padding: 48px 0 56px; border-top: 1px solid var(--line); }
.footer-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; }
.footer-credit p { margin-top: 16px; max-width: 260px; color: var(--ink-muted); font-size: 14px; }
.footer-credit p + p { margin-top: 6px; }
.footer-credit a { text-underline-offset: 3px; }
.footer-directory { display: grid; grid-template-columns: repeat(3, auto); gap: 56px; }
.footer-group h2 { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.footer-group li a { display: inline-block; padding: 4px 0; color: var(--ink-muted); font-size: 14px; text-decoration: none; }
.footer-group li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 859px) {
  .footer-layout { grid-template-columns: 1fr; }
  .footer-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
