/* ARN Smart bar: one thin row above every product header (build-site.cjs, renderArnBar), the same on every site
   (user decision 2026-11-02). build-site.cjs puts this file in front of the product's site.css. The bar scrolls
   away with the page; the product header below it stays sticky. Values are fixed here, not taken from the product's
   variables, so the bar looks the same on all fourteen sites. */
.arn-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #18191c;
  color: #c9ccd2;
  font: 500 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.arn-bar__row {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1440px;
  min-height: 36px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.arn-bar a {
  color: #e7e9ec;
  text-decoration: none;
}

.arn-bar a:hover,
.arn-bar a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.arn-bar__home {
  display: flex;
  flex: none;
}

.arn-bar__home img {
  display: block;
  width: auto;
  height: 18px;
}

.arn-bar__contact {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.arn-bar__contact li {
  margin: 0;
  padding: 0 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.arn-bar__links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 999.98px) {
  .arn-bar__place,
  .arn-bar__extra {
    display: none;
  }
}

@media (max-width: 639.98px) {
  .arn-bar__row {
    gap: 10px;
  }

  .arn-bar__contact li {
    padding: 0 10px;
  }

  .arn-bar__mail {
    display: none;
  }
}

/* The narrowest phones keep the logo (arnsmart.com) and the phone number. */
@media (max-width: 359.98px) {
  .arn-bar__links {
    display: none;
  }
}

/* WebPix mini site — product stylesheet. build-site.cjs copies it to site/webpix/assets/site.css.
   A light, image-led gallery: white space, the logo's sage green with a fresh lime spark, large rounded image
   frames with soft shadows. The centered hero sits on a faint transparency checkerboard; section images rise
   gently into view.
   Headings: ARN Smart Exuberant. Text: Jost (SIL Open Font License, fonts/Jost-OFL.txt).
   Markup contract and class names: site/README.md and _tools/build-site.cjs; layout overrides in templates.cjs. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "ARN Smart Exuberant";
  src: url("fonts/ARNSmartExuberant-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ARN Smart Exuberant";
  src: url("fonts/ARNSmartExuberant-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --ink: #1d2618;
  --text: #353f30;
  --muted: #586253;
  --brand: #6f8a5c;
  --brand-strong: #4e6b3d;
  --brand-deep: #3f5a30;
  --forest: #22301c;
  --forest-text: #c9d6c0;
  --forest-bright: #e3eadd;
  --spark: #d7ef72;
  --paper: #ffffff;
  --mist: #f2f5ee;
  --line: #dde4d6;
  --shadow-frame: 0 0 0 1px rgb(34 48 28 / 0.06), 0 24px 48px -26px rgb(34 48 28 / 0.32);
  --shadow-lift: 0 0 0 1px rgb(34 48 28 / 0.06), 0 36px 72px -30px rgb(34 48 28 / 0.42);
  --radius-frame: 28px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --font-display: "ARN Smart Exuberant", "Jost", system-ui, sans-serif;
  --font-text: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-height: 72px;
  --toc-height: 60px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: calc(var(--header-height) + var(--toc-height) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
}

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

a {
  color: var(--brand-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-deep);
}

:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
}

::selection {
  background: var(--spark);
  color: var(--forest);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: #ffffff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

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

.wrap--narrow {
  max-width: calc(820px + 2 * var(--gutter));
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--brand-strong);
  color: #ffffff;
  box-shadow: 0 12px 24px -14px rgb(63 90 48 / 0.8);
}

.btn--primary:hover {
  background: var(--brand-deep);
  color: #ffffff;
}

.btn--secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--brand-deep);
}

.btn--secondary:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.btn--ghost-light {
  border-color: rgb(255 255 255 / 0.45);
  background: transparent;
  color: #ffffff;
}

.btn--ghost-light:hover {
  border-color: var(--spark);
  color: var(--spark);
}

/* On the dark panels the main action takes the lime spark. */
.closing .btn--primary,
.edition-panel--pro .btn--primary {
  background: var(--spark);
  color: var(--forest);
  box-shadow: 0 14px 30px -16px rgb(215 239 114 / 0.6);
}

.closing .btn--primary:hover,
.edition-panel--pro .btn--primary:hover {
  background: #e6f79c;
  color: var(--forest);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.actions--center {
  justify-content: center;
}

/* "Live demo" and "Download free" (engine: extraLinksHtml): a small up-right arrow marks a link that leaves the site. */
.btn--external::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5h5v5M9.5 2.5l-7 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5h5v5M9.5 2.5l-7 7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pricing__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.edition-panel--pro .btn--external {
  border-color: rgb(255 255 255 / 0.35);
  background: transparent;
  color: #ffffff;
}

.edition-panel--pro .btn--external:hover {
  border-color: var(--spark);
  color: var(--spark);
}

/* ---------- Header and menu ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(221 228 214 / 0.8);
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  text-decoration: none;
}

.brand__wordmark {
  width: auto;
  height: 36px;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--mist);
  color: var(--ink);
}

.main-nav a[aria-current="page"] {
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--brand-deep);
  font-weight: 600;
}

.site-header__action {
  min-height: 42px;
  padding: 9px 20px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-open .nav-toggle__bars {
  background: transparent;
}

.nav-open .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1119px) {
  .site-header__row {
    flex-wrap: wrap;
    column-gap: 12px;
  }

  .site-header__action {
    margin-left: auto;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    flex-basis: 100%;
    order: 5;
    margin-left: 0;
  }

  .main-nav ul {
    flex-wrap: wrap;
    padding-bottom: 14px;
  }

  .js .site-header:not(.nav-open) .main-nav {
    display: none;
  }

  .js .nav-open .main-nav ul {
    flex-direction: column;
  }

  .js .nav-open .main-nav a {
    padding: 12px 16px;
  }
}

@media (max-width: 639px) {
  :root {
    --header-height: 64px;
    --toc-height: 56px;
  }

  .site-header__action {
    display: none;
  }

  .js .nav-toggle {
    margin-left: auto;
  }

  .brand__wordmark {
    height: 32px;
  }
}

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

/* Centered hero (site.json hero.layout "center"): eyebrow, title, summary, the page's points and the buttons read as
   one block under the logo's lime light. */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 80px) clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60% 70% at 50% 0%, rgb(215 239 114 / 0.3), transparent 70%),
    radial-gradient(40% 55% at 0% 100%, rgb(111 138 92 / 0.12), transparent 70%),
    radial-gradient(40% 55% at 100% 100%, rgb(111 138 92 / 0.1), transparent 70%),
    var(--paper);
  text-align: center;
}

.hero--home {
  padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px);
}

/* A faint transparency checkerboard, the grid an image editor shows behind a picture, fading out from the top. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(rgb(111 138 92 / 0.08) 0% 25%, transparent 0% 50%) 50% 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(75% 85% at 50% 0%, #000000, transparent 75%);
  mask-image: radial-gradient(75% 85% at 50% 0%, #000000, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--muted);
  font-size: 0.94rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--brand);
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* A small two-tone brand pill on each side: sage and spark, mirrored. */
.eyebrow::before,
.eyebrow::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand) 50%, var(--spark) 50%);
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--spark) 50%, var(--brand) 50%);
}

.hero h1 {
  max-width: 22ch;
  font-size: clamp(2.3rem, 1.3rem + 3.2vw, 3.9rem);
  letter-spacing: -0.015em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero--home h1 {
  max-width: 20ch;
  font-size: clamp(2.6rem, 1.2rem + 4.2vw, 4.8rem);
}

.hero__summary {
  max-width: 46rem;
  margin-top: 24px;
  font-size: 1.125rem;
}

.hero--home .hero__summary {
  font-size: 1.2rem;
}

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

/* The Overview's points: white cards, each with the lime check. */
.hero__points {
  display: grid;
  gap: 14px;
  width: min(100%, 34rem);
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.hero__point {
  position: relative;
  padding: 18px 20px 18px 58px;
  border-radius: var(--radius-card);
  background: rgb(255 255 255 / 0.88);
  box-shadow: var(--shadow-frame);
  font-size: 1rem;
  line-height: 1.5;
}

.hero__point::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--spark);
}

.hero__point::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 29px;
  width: 6px;
  height: 11px;
  border: solid var(--forest);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.hero .actions {
  margin-top: 36px;
}

@media (min-width: 900px) {
  .hero__points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 68rem);
  }
}

/* Below the desktop width the four Overview buttons do not fit one row: two equal columns, so no button is left
   alone on a line, and one column on phones. */
@media (max-width: 1023px) {
  .hero--home .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 34rem);
  }
}

@media (max-width: 479px) {
  .hero--home .actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .eyebrow::before,
  .eyebrow::after {
    display: none;
  }
}

/* ---------- "On this page" ---------- */

.toc {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.toc__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: var(--toc-height);
}

.toc__toggle {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.toc__label {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--mist);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc__current {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toc__toggle::after {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: -4px 4px 0;
  border: solid var(--brand-strong);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.toc--open .toc__toggle::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.toc__steps {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.toc__step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--brand-deep);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.toc__step:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.toc__step[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.toc__list {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
}

.js .toc__list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: var(--gutter);
  width: min(560px, calc(100% - 2 * var(--gutter)));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-lift);
}

.js .toc--open .toc__list {
  display: grid;
  gap: 2px;
}

.toc__list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.toc__list a:hover {
  background: var(--mist);
  color: var(--ink);
}

.toc__list a.is-active {
  background: var(--mist);
  color: var(--brand-deep);
  font-weight: 600;
}

.toc__num {
  min-width: 2ch;
  color: var(--brand-strong);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 639px) {
  .toc__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .toc__step-text {
    display: none;
  }

  .toc__step {
    justify-content: center;
    width: 40px;
    padding: 6px;
    font-size: 1.1rem;
  }
}

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

.block {
  padding-block: clamp(64px, 9vw, 128px);
}

.tint {
  background: var(--mist);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.pricing__intro h2 {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.2rem);
  letter-spacing: -0.01em;
}

.section-head__lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
}

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

.prose ul,
.edition-panel ul {
  display: grid;
  gap: 10px;
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.prose ul li,
.edition-panel li {
  position: relative;
  padding-left: 28px;
}

/* List marker: a small diamond, like the sparkles in the WebPix mark. */
.prose ul li::before,
.edition-panel li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 5px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}

/* "**Lead-in.** text" paragraphs read as short labelled rows. */
.prose p:has(> strong:first-child) {
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.prose p > strong:first-child {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  font-weight: 500;
  text-decoration-color: rgb(111 138 92 / 0.5);
  text-decoration-thickness: 2px;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose--light {
  color: var(--forest-text);
}

.prose--center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

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

.feature {
  padding-block: clamp(64px, 8vw, 120px);
}

.feature__grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.feature__number {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--spark);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.feature__label {
  color: var(--brand-strong);
  font-family: var(--font-text);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.feature__title {
  margin-bottom: 26px;
  font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

/* A second image in a section (Cloud Storage's real screenshot) sits under the first as a smaller framed inset. */
.feature__media .figure + .figure {
  position: relative;
  margin-top: 20px;
}

.feature__media .figure + .figure .figure__link {
  border: 4px solid #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
}

/* One column: the image leads its section. */
@media (max-width: 1023px) {
  .feature__media {
    order: -1;
  }
}

@media (min-width: 1024px) {
  /* The image column stays within the 640 px image the engine's sizes attribute asks for, so it is never enlarged. */
  .feature--figure .feature__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, min(620px, 56%));
  }

  .feature--reverse .feature__grid {
    grid-template-columns: minmax(0, min(620px, 56%)) minmax(0, 1fr);
  }

  .feature--reverse .feature__text {
    order: 2;
  }

  /* The inset overlaps the foot of the illustration above it. */
  .feature__media .figure + .figure {
    margin: -64px 0 0 14%;
  }

  .feature--text .feature__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .feature--text .feature__head {
    position: sticky;
    top: calc(var(--header-height) + var(--toc-height) + 32px);
  }

  .feature--text .feature__title {
    margin-bottom: 0;
  }
}

/* ---------- Figures ---------- */

.figure {
  margin: 0;
}

.figure__link {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-frame);
  background: #ffffff;
  box-shadow: var(--shadow-frame);
  cursor: zoom-in;
}

.figure__link img {
  width: 100%;
}

.figure figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Overview cards ---------- */

.cards {
  display: grid;
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-frame);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 26px 28px 28px;
}

.card__title {
  font-size: 1.55rem;
}

.card__body p {
  margin: 0;
}

.card__link {
  margin-top: auto;
  color: var(--brand-strong);
  font-weight: 600;
  text-decoration: none;
}

/* The card's link covers the whole card; its focus ring is drawn around the card. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__link:focus-visible {
  outline: none;
}

.card__link:focus-visible::after {
  outline: 3px solid var(--brand-strong);
  outline-offset: -3px;
}

.card:hover .card__link {
  color: var(--brand-deep);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Steps: How WebPix Works ---------- */

.steps {
  position: relative;
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps__item {
  position: relative;
  counter-increment: step;
}

.steps__item::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: #ffffff;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.steps__item:last-child::before {
  border-color: var(--spark);
  background: var(--spark);
  color: var(--forest);
}

.steps__title {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.steps__text p {
  margin: 0;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* One line runs through the step markers, from sage to spark. */
  .steps::before {
    content: "";
    position: absolute;
    top: 27px;
    right: 12%;
    left: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--spark));
  }
}

/* ---------- Audience tiles ---------- */

.tiles {
  display: grid;
  gap: 20px;
}

.tile {
  padding: 30px 28px;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-frame);
}

.tile__title {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.tile__title::before {
  content: "";
  display: block;
  width: 36px;
  height: 6px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand) 50%, var(--spark) 50%);
}

.tile p:last-child {
  margin: 0;
}

@media (min-width: 768px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Choose WebPix: edition panels ---------- */

.pricing__intro {
  max-width: 780px;
  margin: 0 auto clamp(36px, 4vw, 56px);
  text-align: center;
}

.pricing__lead {
  margin: 16px 0 18px;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
  line-height: 1.3;
}

.editions {
  display: grid;
  gap: 24px;
}

.edition-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-frame);
  background: #ffffff;
}

.edition-panel__title {
  margin-bottom: 22px;
  font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.2;
}

.edition-panel--pro {
  border-color: var(--forest);
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(215 239 114 / 0.14), transparent 70%),
    var(--forest);
  box-shadow: var(--shadow-lift);
  color: var(--forest-text);
}

.edition-panel--pro .edition-panel__title {
  color: #ffffff;
}

.edition-panel--pro li::before {
  background: var(--spark);
}

.price {
  margin: auto 0 22px;
  padding-top: 26px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

.price__amount {
  margin-inline: 0.1em;
  color: var(--spark);
  font-family: var(--font-display);
  font-size: 2.4em;
  line-height: 1;
  vertical-align: -0.12em;
}

.pricing__checkout {
  display: grid;
  gap: 10px;
}

.pricing__buy {
  width: 100%;
}

.pricing__notes {
  max-width: 820px;
  margin: 36px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  text-align: center;
}

@media (min-width: 900px) {
  .editions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Practical workflow ---------- */

.workflow {
  padding-block: clamp(40px, 6vw, 88px);
}

.workflow__panel {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--wrap);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-frame);
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(215 239 114 / 0.12), transparent 70%),
    var(--forest);
  color: var(--forest-text);
}

.workflow__panel h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
}

.workflow__panel ol {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  counter-reset: flow;
  list-style: none;
}

.workflow__panel li {
  position: relative;
  padding: 60px 20px 22px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.05);
  color: var(--forest-bright);
  counter-increment: flow;
}

.workflow__panel li::before {
  content: counter(flow);
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--spark);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .workflow__panel ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .workflow__panel ol {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

/* ---------- Questions ---------- */

.faq {
  display: grid;
  gap: 18px;
}

.faq__item {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
}

.faq__item h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.faq__item .prose {
  font-size: 1rem;
}

@media (min-width: 900px) {
  .faq {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Closing band ---------- */

.closing {
  padding-block: clamp(40px, 6vw, 88px) 0;
}

/* The engine's closing band (".wrap.closing__inner") becomes a rounded card inside the page margins. */
.closing__inner {
  position: relative;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--wrap);
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 72px);
  border-radius: 36px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(215 239 114 / 0.18), transparent 60%),
    var(--forest);
  color: var(--forest-text);
  text-align: center;
}

/* The white WebPix mark (site.json logos.mark), faint in the corner. */
.closing__inner::before {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -72px;
  width: clamp(200px, 30vw, 400px);
  aspect-ratio: 1;
  background: url("brand/webpix-mark-white.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-8deg);
}

.closing h2 {
  position: relative;
  max-width: 20ch;
  margin: 0 auto 20px;
  color: #ffffff;
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem);
}

.closing .prose,
.closing .actions {
  position: relative;
}

.closing :focus-visible,
.workflow__panel :focus-visible,
.edition-panel--pro :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--spark);
}

.page-review {
  margin-block: 36px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

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

.site-footer {
  padding-block: 56px 44px;
  background: var(--forest);
  color: var(--forest-text);
}

.site-footer__grid {
  display: grid;
  gap: 32px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.site-footer__brand img {
  width: 220px;
  height: auto;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  color: var(--forest-bright);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--spark);
  text-decoration: underline;
}

.site-footer__publisher {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.site-footer__publisher img {
  width: 130px;
  height: auto;
}

.site-footer__publisher p {
  margin: 0;
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .site-footer__grid {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: stretch;
    text-align: left;
  }

  .site-footer__publisher {
    justify-items: end;
  }
}

/* ---------- Image viewer ---------- */

.lightbox {
  width: min(96vw, 1400px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 40px 120px rgb(0 0 0 / 0.45);
}

.lightbox::backdrop {
  background: rgb(20 28 17 / 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  max-height: 94vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Motion (only when the visitor has not asked for less) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .btn,
  .card,
  .toc__step,
  .main-nav a {
    transition:
      transform 0.25s var(--ease-out),
      box-shadow 0.25s ease,
      background-color 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease;
  }

  .btn:not(:disabled):hover {
    transform: translateY(-2px);
  }

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

  .figure__link img,
  .card__media img {
    transition: transform 0.7s var(--ease-out);
  }

  .figure__link:hover img,
  .card:hover .card__media img {
    transform: scale(1.03);
  }

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    transition: transform 0.2s ease;
  }

  /* Section images and cards rise gently as they scroll into view (CSS scroll timeline; no script).
     The "translate" property leaves "transform" free for the hover lift. */
  @supports (animation-timeline: view()) {
    .feature__media,
    .card {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 28px;
  }
}
