/* ==========================================================================
   fotobieb – landing page template
   ========================================================================== */

:root {
  --accent: #ffb400;
  --accent-soft: #fff3d6;
  --ink: #111111;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --subtle: #8c8c8c;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-soft: #f5f4f2;
  --bg-dark: #121212;
  --danger: #b42318;
  --danger-soft: #fde8e7;
  --success: #1d7a3a;
  --success-soft: #e6f6ea;

  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 54px);
  --section-y: clamp(80px, 11vw, 140px);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 80px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5'/%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font: 500 16px/1 var(--font-sans);
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--btn-shadow, var(--ink));
}
.btn:active { transform: none; box-shadow: none; }

.btn-primary { background: var(--accent); }

/* Ink hover shadow by default; yellow on dark surfaces */
.btn-outline { --btn-shadow: var(--btn-light-shadow, var(--ink)); background: var(--bg); border-color: var(--line); }

/* Yellow hover shadow by default (visible on white); surfaces can override */
.btn-dark { --btn-shadow: var(--btn-dark-shadow, var(--accent)); background: var(--ink); color: #fff; }

.btn-ghost { background: transparent; border-color: rgba(17, 17, 17, .25); }

.btn-sm { min-height: 46px; padding: 0 16px; font-size: 15px; }
.btn-xs { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* Logo ------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 16px; }
.logo-full { gap: 9px; }
.logo-mark { flex: none; }
/* Wordmark: ExtraBold and tight, the same voice as the headlines */
.logo-full span {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.045em;
  color: var(--ink);
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: none;
  padding-inline: clamp(16px, 2.5vw, 30px);
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.2vw, 56px);
  margin-inline: auto;
}

.nav-item { position: relative; display: flex; align-items: center; gap: 2px; }

.nav-link {
  font-size: 15px;
  color: var(--text);
  transition: color .2s;
}
.nav-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.nav-link[aria-current="page"] { font-weight: 600; color: var(--ink); }

/* Second level: the parent is a button (label + chevron), not a link */
.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 5px 0 0; /* same footprint as the original separate chevron button */
  border: 0;
  background: none;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: color .2s;
}
.sub-toggle:hover,
.has-sub.is-open .sub-toggle { color: var(--ink); }
.has-sub.is-current .sub-toggle { font-weight: 600; color: var(--ink); }
.sub-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--ease-out);
}
.has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  z-index: 10;
  top: 100%;
  left: 50%;
  width: 320px;
  padding-top: 18px; /* hover bridge between the link and the panel */
  translate: -50% 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease-out), visibility 0s .2s;
}
.has-sub.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s, transform .2s var(--ease-out);
}

.sub-panel {
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 8px 8px 0 var(--ink);
}
.sub-panel ul { display: grid; gap: 2px; }
.sub-panel ul a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color .15s;
}
.sub-panel ul a:hover { background: var(--accent-soft); }
.sub-panel strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.sub-panel span { font-size: 13px; color: var(--muted); }
.sub-all {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 12px 12px 8px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.sub-all svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.sub-all:hover svg { transform: translateX(4px); }

/* Mouse users: open on hover too (desktop only); a click pins it open */
@media (hover: hover) and (min-width: 961px) {
  .has-sub:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .2s, transform .2s var(--ease-out);
  }
  .has-sub:hover .sub-toggle svg { transform: rotate(180deg); }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Section scaffolding ---------------------------------------------------- */
.section { padding-block: var(--section-y); }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

.h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.033em;
  color: var(--ink);
  text-wrap: balance;
}

.lead,
.is-style-lead {
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  text-wrap: pretty;
}

.checks li {
  position: relative;
  padding-left: 32px;
}
.checks li + li { margin-top: 12px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: var(--accent) var(--check) center / 18px no-repeat;
}

/* Scroll reveal (only when JS is running). Uses an animation on `translate`
   so it never overrides an element's own transform or transitions (hovers). */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: reveal-in .8s var(--ease-out) var(--d, 0s) both; }

@keyframes reveal-in {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(56px, 7vw, 82px) 0 clamp(48px, 6vw, 76px);
}

/* Floating logo-shaped decorations */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.deco {
  position: absolute;
  border-radius: 28%;
  translate: var(--px, 0) var(--py, 0);
  transition: translate .6s var(--ease-out);
  animation: float 8s ease-in-out infinite;
}
/* Sit at the screen edges, partly off-canvas (the hero clips them) */
.deco-1 { left: -36px; top: 20%; width: 120px; height: 120px; background: var(--accent); box-shadow: 10px 10px 0 var(--ink); }
.deco-2 { right: 4%; top: 8%; width: 72px; height: 72px; background: var(--ink); box-shadow: 8px 8px 0 var(--accent); animation-delay: -3s; }
.deco-3 { left: 6%; top: 70%; width: 44px; height: 44px; background: var(--ink); animation-delay: -5s; animation-duration: 10s; }
.deco-4 { right: -48px; top: 46%; width: 140px; height: 140px; border: 8px solid var(--ink); background: var(--accent); box-shadow: 14px 14px 0 var(--ink); animation-delay: -1s; animation-duration: 11s; }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  max-width: 11ch;
  font-size: clamp(48px, 7.4vw, 92px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}

.hero-lead {
  margin-top: clamp(20px, 3vw, 34px);
  font-size: clamp(18px, 1.9vw, 22px);
  color: var(--muted);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

/* Showcase image (half on white, half on soft grey) ---------------------- */
.showcase {
  position: relative;
  padding-bottom: clamp(56px, 8vw, 96px);
  background: var(--bg-soft);
  overflow-x: clip;
}

.showcase .container {
  position: relative;
  max-width: calc(1082px + var(--gutter) * 2);
}

/* White band behind the top half of the image */
.showcase .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 50%;
  transform: translateX(-50%);
  background: var(--bg);
}

.showcase-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 1082 / 423;
  background: #1a1410;
}

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

/* Logo marquee ----------------------------------------------------------- */
.trust { margin-top: clamp(48px, 6vw, 72px); }

.trust-title {
  padding-inline: var(--gutter);
  text-align: center;
  font-size: 14px;
  color: var(--subtle);
}

.marquee {
  display: flex;
  margin-top: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding-right: clamp(40px, 6vw, 80px);
  animation: marquee 40s linear infinite;
}

@keyframes marquee { to { transform: translateX(-100%); } }

.wm {
  font-size: 22px;
  line-height: 1;
  color: #a19d96;
  white-space: nowrap;
  transition: color .2s;
}
.wm:hover { color: var(--ink); }
.wm-1 { font-weight: 800; letter-spacing: -.05em; font-size: 25px; }
.wm-2 { font-family: var(--font-serif); font-style: italic; font-size: 24px; }
.wm-3 { font-weight: 600; text-transform: uppercase; letter-spacing: .22em; font-size: 15px; }
.wm-4 { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.wm-4::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 4px solid currentColor; }
.wm-5 { font-weight: 500; letter-spacing: -.02em; }
.wm-5::first-letter { color: #c2bdb4; }
.wm-6 { font-family: var(--font-serif); font-size: 25px; letter-spacing: -.02em; }

/* Features --------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.feature {
  padding: 36px 32px 40px;
  background: var(--bg);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature:hover .feature-icon { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }

.feature h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
.feature p { color: var(--muted); }

/* Stats ------------------------------------------------------------------ */
.stats-section { padding-top: 0; padding-bottom: calc(var(--section-y) * .8); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.stat-num {
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-num small {
  margin-left: .08em;
  font-size: .45em;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--accent);
}
.stat-label { color: var(--muted); }

/* Dark section with tabs ------------------------------------------------- */
.section-dark {
  --btn-shadow: #fff;
  --btn-light-shadow: var(--accent);
  background: var(--bg-dark);
  color: #bdbdbd;
}
.section-dark .h2 { color: #fff; }

.tabs {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  padding: 5px;
  overflow-x: auto;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  scrollbar-width: none;
}

.tab {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: #cfcfcf;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s;
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--ink); }
.tab:focus-visible { outline-color: #fff; }

.panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  margin-top: 48px;
  animation: panel-in .5s var(--ease-out);
}
.panel[hidden] { display: none; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
}

.panel-copy h3 {
  margin-bottom: 16px;
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
}
.panel-copy p { margin-bottom: 28px; font-size: 17px; }
.panel-copy .checks { color: #e6e6e6; }

.visual {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  background: var(--accent);
}

/* Folder tree */
.folder-ico {
  position: relative;
  flex: none;
  width: 16px;
  height: 12px;
  margin-top: 2px;
  border-radius: 1px 3px 3px 3px;
  background: #cfcac0;
}
.folder-ico::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 4px;
  border-radius: 2px 2px 0 0;
  background: inherit;
}
.folder-ico.is-accent { background: var(--accent); }

.tree,
.asset-card,
.share-card {
  width: min(100%, 360px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  box-shadow: 8px 8px 0 var(--ink);
}

.tree { padding: 22px 22px 24px; font-size: 14px; }
.tree-root,
.tree li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tree-root { font-weight: 700; color: var(--ink); }
.tree ul { width: 100%; margin: 8px 0 0 7px; padding-left: 16px; border-left: 1px dashed #d6d2ca; }
.tree li { padding: 5px 0; }
.tree li > ul { margin-top: 4px; }
.tree em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--subtle); }
.tree li.is-active {
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 8px;
  background: var(--accent-soft);
  font-weight: 600;
  color: var(--ink);
}

/* Asset with rights */
.asset-card { overflow: hidden; }
.asset-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 60% 50%; border-bottom: 2px solid var(--ink); }
.asset-body { padding: 18px 20px 20px; }
.asset-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--ink); }
.asset-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.asset-card dt { color: var(--subtle); }
.asset-card dd { color: var(--ink); font-weight: 500; }

/* Share card */
/* A light card inside the dark section: back to light-surface hover shadows */
.share-card { --btn-shadow: var(--ink); --btn-light-shadow: var(--ink); padding: 22px; }
.share-title { font-weight: 700; color: var(--ink); }
.share-meta { margin-top: 2px; font-size: 14px; color: var(--subtle); }

.share-link {
  display: flex;
  gap: 8px;
  margin: 18px 0 8px;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}
.share-link input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; color: var(--ink); }
.share-link .btn { border-radius: 9px; }
.share-link .btn.is-done { background: var(--ink); color: #fff; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  cursor: pointer;
}
.toggle-row:first-of-type { border-top: 0; }
.toggle-row select {
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23666' stroke-width='1.6'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") right 8px center / 12px no-repeat;
  font-size: 14px;
  appearance: none;
  cursor: pointer;
}

/* Switch (checkbox + button variants) */
.switch-input,
.switch {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: #d9d6d0;
  appearance: none;
  cursor: pointer;
  transition: background-color .25s;
}
.switch-input::before,
.switch span {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .25s var(--ease-out);
}
.switch-input:checked,
.switch[aria-checked="true"] { background: var(--ink); }
.switch-input:checked::before,
.switch[aria-checked="true"] span { transform: translateX(18px); }

/* Testimonial ------------------------------------------------------------ */
.big-quote {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.big-quote blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}
.big-quote figcaption {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  text-align: left;
  font-size: 15px;
  color: var(--muted);
}
.big-quote strong { font-weight: 600; color: var(--ink); }

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  color: var(--ink);
}

/* Pricing ---------------------------------------------------------------- */
.billing {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.billing > span:first-child { color: var(--ink); }
.billing.is-yearly > span:first-child { color: var(--muted); }
.billing.is-yearly > span:last-child { color: var(--ink); }
.billing .tag { margin-left: 4px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.plan h3 { font-size: 22px; font-weight: 700; color: var(--ink); }
.plan-desc { margin-top: 6px; color: var(--muted); }

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 28px;
}
.amount {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--ink);
}
.amount.bump { animation: bump .45s var(--ease-out); }
@keyframes bump {
  0% { opacity: 0; transform: translateY(10px); }
}
.per { color: var(--muted); }
.price-note { min-height: 1.5em; margin: 6px 0 28px; font-size: 14px; color: var(--subtle); }

.plan .checks { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; }

.plan--featured {
  --btn-shadow: #fff;
  --btn-light-shadow: var(--accent);
  margin-block: -14px;
  padding-block: 50px;
  border-color: var(--ink);
  background: var(--ink);
  color: #cfcfcf;
}
.plan--featured h3,
.plan--featured .amount { color: #fff; }
.plan--featured .plan-desc,
.plan--featured .per { color: #a8a8a8; }
.plan--featured .checks { border-color: rgba(255, 255, 255, .14); color: #eee; }

/* Positions a .tag in the corner of a plan */
.plan-flag { position: absolute; top: 18px; right: 18px; }

/* FAQ -------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }

.plus {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  transition: background-color .25s, transform .35s var(--ease-out);
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--ink);
}
.plus::after { transform: rotate(90deg); }
.faq-item summary:hover .plus { background: var(--accent-soft); }
:root:not(.js) .faq-item[open] .plus,
.faq-item.is-open .plus { background: var(--accent); transform: rotate(45deg); }

.faq-body p {
  max-width: 60ch;
  padding-bottom: 26px;
  color: var(--muted);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}

/* Smooth open/close: JS keeps <details> open and toggles .is-open */
.js .faq-body {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .38s var(--ease-out), visibility 0s .38s;
}
.js .faq-item.is-open .faq-body {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .38s var(--ease-out), visibility 0s;
}
.faq-inner { min-height: 0; overflow: hidden; }
.js .faq-item:not(.is-open) .faq-body p { opacity: 0; transform: translateY(-6px); }

/* CTA -------------------------------------------------------------------- */
.cta-section { padding-top: 0; }

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px);
  border-radius: 32px;
  background: var(--accent);
  --btn-dark-shadow: #fff;
}
.cta .lead { color: rgba(17, 17, 17, .72); }

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.cta-art { position: relative; height: 300px; }

.sq {
  position: absolute;
  border-radius: 28%;
  animation: float 7s ease-in-out infinite;
}
.sq-1 {
  top: 6%;
  left: 18%;
  width: 190px;
  height: 190px;
  background: var(--ink);
  animation-delay: -2s;
}
.sq-2 {
  top: -2%;
  left: 8%;
  width: 180px;
  height: 180px;
  border: 10px solid var(--ink);
  background: #ffc83d;
}
.sq-3 {
  right: 4%;
  bottom: 0;
  width: 96px;
  height: 96px;
  border: 8px solid var(--ink);
  background: #fff;
  animation-delay: -4s;
  animation-duration: 9s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(6px, -14px) rotate(3deg); }
}

/* Footer ----------------------------------------------------------------- */
.site-footer { padding: 66px 0 28px; border-top: 1px solid var(--line); }

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 48px;
}

.footer-quote { margin-top: 56px; }
.footer-quote p {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
}
.footer-quote cite {
  display: block;
  margin-top: 18px;
  font-size: 14px;
  font-style: normal;
  color: var(--subtle);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 2px;
}

.footer-heading {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--subtle);
}

.footer-links li + li { margin-top: 8px; }
.footer-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  margin-top: 84px;
  font-size: 15px;
  color: var(--subtle);
}
.footer-bottom a:hover { color: var(--ink); }

/* Notification bar ------------------------------------------------------- */
.notice-bar {
  background: var(--ink);
  font-size: 14px;
  color: #e6e6e6;
}
.notice-bar[hidden] { display: none; }

.notice-inner {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-block: 6px;
}
.notice-text {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  text-align: center;
}
.notice-text a {
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* Chevron after the link (in the link color, outside the underline) */
.notice-text a::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%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 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease-out);
}
.notice-text a:hover::after { transform: translateX(3px); }
.notice-close {
  grid-column: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
}
.notice-close:hover { background: rgba(255, 255, 255, .12); }
.notice-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
:root:not(.js) .notice-close { visibility: hidden; }

/* Variant: light yellow bar */
.notice-bar--soft { background: var(--accent-soft); color: var(--text); }
.notice-bar--soft .notice-text a { color: var(--ink); text-decoration-color: var(--ink); }
.notice-bar--soft .notice-close { color: var(--ink); }
.notice-bar--soft .notice-close:hover { background: rgba(17, 17, 17, .08); }

/* Tags ------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.tag--accent { background: var(--accent); }
.tag--dark { background: var(--ink); color: #fff; }
.tag--success { background: var(--success-soft); color: var(--success); }

/* Breadcrumbs ------------------------------------------------------------ */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #bdbdbd; }
.breadcrumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.breadcrumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.breadcrumbs [aria-current="page"] { font-weight: 500; color: var(--ink); }

/* Page header (subpages) ------------------------------------------------- */
.page-header {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 7vw, 96px);
  background: var(--bg-soft);
}
.page-header .breadcrumbs { margin-bottom: clamp(28px, 5vw, 56px); }
.page-header + .section { padding-top: clamp(40px, 5vw, 72px); }

.page-title {
  max-width: 16ch;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
.page-header .lead { max-width: 58ch; }
.page-header .tag { margin-bottom: 20px; }

.page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.page-header--center { text-align: center; }
.page-header--center .breadcrumbs ol,
.page-header--center .page-actions { justify-content: center; }
.page-header--center .page-title,
.page-header--center .lead { margin-inline: auto; }

/* Two logo shapes at the right edge */
.page-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-deco .deco-a {
  right: -36px;
  top: 22%;
  width: 104px;
  height: 104px;
  background: var(--accent);
  box-shadow: 9px 9px 0 var(--ink);
}
.page-deco .deco-b {
  right: 9%;
  bottom: 14%;
  width: 46px;
  height: 46px;
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
  animation-delay: -3s;
}

/* Article meta (blog detail header) */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
}
.article-meta strong { font-weight: 600; color: var(--ink); }
.article-meta .avatar { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
.meta-dot { color: #c9c9c9; }

/* Arrow link ------------------------------------------------------------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.arrow-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s var(--ease-out);
}
.arrow-link:hover svg { transform: translateX(4px); }

/* Image + text split ----------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split + .split { margin-top: clamp(80px, 10vw, 136px); }
.split--reverse .split-media { order: 2; }

.split-photo {
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background: #1a1410;
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

.split-copy h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
.split-copy .lead { margin-top: 16px; }
.split-copy .checks { margin-top: 28px; }
.split-copy .arrow-link { margin-top: 32px; }

/* Logo grid + customer story --------------------------------------------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}
.logo-grid li {
  display: grid;
  place-items: center;
  min-height: 128px;
  padding: 24px;
  background: var(--bg);
}

.story-card {
  --btn-shadow: #fff;
  --btn-light-shadow: var(--accent);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  margin-top: 24px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #cfcfcf;
}
.story-card .tag { margin-bottom: 20px; }
.story-quote {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.22;
  color: #fff;
  text-wrap: balance;
}
.story-person { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 15px; }
.story-person strong { font-weight: 600; color: #fff; }
.story-card .avatar { box-shadow: 3px 3px 0 #fff; }
.story-card .arrow-link { margin-top: 28px; color: #fff; }
.story-stats { display: grid; gap: 28px; }
.story-stat { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.story-stat b {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent);
}
.story-stat span { color: #a8a8a8; }

/* Link cards (related / next steps) -------------------------------------- */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform .2s, box-shadow .2s;
}
.link-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.link-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.link-card p { color: var(--muted); }
.link-card-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: auto;
  border-radius: 50%;
  background: var(--accent);
}
.link-card-arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.link-card p + .link-card-arrow { margin-top: 18px; }

/* Blog: post cards, filters, pagination ---------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg);
  transition: transform .2s, box-shadow .2s;
}
.post-card[hidden] { display: none; }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }

.post-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #1a1410;
}
.post-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

/* On-brand placeholder artwork for posts without a photo */
.post-art { position: absolute; inset: 0; background: var(--art-bg, var(--accent)); }
.post-art::before,
.post-art::after { content: ""; position: absolute; border-radius: 28%; aspect-ratio: 1; }
.post-art::before {
  left: 20%;
  top: 22%;
  width: 34%;
  background: var(--art-1, var(--ink));
  box-shadow: 10px 10px 0 var(--art-2, var(--bg));
}
.post-art::after {
  right: 16%;
  bottom: 16%;
  width: 20%;
  border: 5px solid var(--ink);
  background: var(--art-2, var(--bg));
}

.post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px 28px;
  /* Border only around the text, so media runs edge to edge */
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.post-body .tag { align-self: flex-start; margin-bottom: 8px; }
.post-card h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
.post-card p { font-size: 15px; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--subtle); }

.post-card--featured { flex-direction: row; }
.post-card--featured .post-media { flex: 1.2; aspect-ratio: auto; min-height: 380px; }
.post-card--featured .post-body {
  flex: 1;
  justify-content: center;
  gap: 14px;
  padding: clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.post-card--featured h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.025em; }
.post-card--featured p { font-size: 17px; }
.post-card--featured .post-meta { margin-top: 8px; }

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: clamp(56px, 7vw, 88px) 0 28px;
}
.blog-toolbar h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.chip:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip[aria-pressed="true"]:hover { box-shadow: 3px 3px 0 var(--accent); }

.empty-state { padding: 48px 0; text-align: center; color: var(--muted); }
.empty-state[hidden] { display: none; }

.pagination { display: flex; justify-content: center; margin-top: 56px; }
.pagination[hidden] { display: none; }
.pagination ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.page-btn {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.page-btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.page-btn[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.page-btn[aria-current="page"]:hover { box-shadow: 3px 3px 0 var(--accent); }
.page-btn:disabled { opacity: .35; cursor: default; }
.page-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Long-form text --------------------------------------------------------- */
.prose { max-width: 68ch; font-size: 18px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h3 { margin-top: 1.8em; font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose h2 + *,
.prose h3 + * { margin-top: .6em; }
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul,
.prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { font-weight: 700; color: var(--ink); }
.prose blockquote {
  margin-block: 1.6em;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.3em;
  line-height: 1.4;
  color: var(--ink);
}
.prose figure { margin-block: 2em; }
.prose figure img { width: 100%; border-radius: var(--radius-lg); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th,
.prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.prose hr { height: 1px; margin-block: 2.4em; border: 0; background: var(--line); }
.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  color: var(--ink);
}
.table-scroll { overflow-x: auto; }

.callout,
.is-style-callout {
  padding: 20px 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--accent-soft);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 17px;
  line-height: 1.6;
}
.prose .callout,
.prose .is-style-callout { margin-block: 2em; }
.callout strong,
.is-style-callout strong { color: var(--ink); }

/* Article layout with table of contents ---------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.article-cover {
  overflow: hidden;
  aspect-ratio: 21 / 9;
  margin-bottom: clamp(48px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background: #1a1410;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

.toc { position: sticky; top: calc(var(--header-h) + 32px); }
.toc-title { margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc a {
  display: block;
  margin-left: -2px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { border-left-color: var(--ink); font-weight: 600; color: var(--ink); }

.author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 68ch;
  margin-top: 56px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.author-box p { font-size: 15px; color: var(--muted); }
.author-box strong { display: block; font-size: 16px; color: var(--ink); }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-label { padding: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
/* A legend sits outside the fieldset's flex gap, so space it explicitly */
legend.field-label { margin-bottom: 8px; }
.field-label .opt { font-weight: 400; color: var(--muted); }
.field-hint { font-size: 14px; color: var(--muted); }

.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--subtle);
  border-radius: 12px;
  background: var(--bg);
  font-size: 16px;
  color: var(--ink);
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #9a9a9a; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--accent); }
textarea.input { min-height: 148px; line-height: 1.5; resize: vertical; }
select.input {
  padding-right: 44px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23111' stroke-width='1.6'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") right 16px center / 14px no-repeat;
  cursor: pointer;
}

.field-error {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--danger);
}
.field-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.field.is-invalid .field-error { display: flex; }
.field.is-invalid .input { border-color: var(--danger); }
.field.is-invalid .input:focus { box-shadow: 4px 4px 0 #f5b8b2; }

/* Choice chips (radio) */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--subtle);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-weight: 500;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.choice:hover span { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice:hover input:checked + span { box-shadow: 3px 3px 0 var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.field.is-invalid .choice span { border-color: var(--danger); }

/* Checkbox */
.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; cursor: pointer; }
.checkbox input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid var(--subtle);
  border-radius: 7px;
  background: var(--bg);
  appearance: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.checkbox input:checked { border-color: var(--ink); background: var(--accent) var(--check) center / 18px no-repeat; }
.checkbox a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.field.is-invalid .checkbox input { border-color: var(--danger); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: 14px; color: var(--muted); }

.form-success {
  padding: clamp(28px, 4vw, 48px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  box-shadow: 8px 8px 0 var(--ink);
}
.form-success[hidden] { display: none; }
.form-success h2 { margin-top: 24px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.form-success h2:focus { outline: none; }
.form-success p { margin-top: 10px; font-size: 17px; color: var(--text); }
.form-success .btn { margin-top: 24px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
.info-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.info-card h2 { margin-bottom: 18px; font-size: 20px; font-weight: 700; color: var(--ink); }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list li + li { margin-top: 16px; }
.contact-list small { display: block; font-size: 13px; color: var(--subtle); }
.contact-list a { font-weight: 600; color: var(--ink); }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--ink);
}
.icon-tile svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Cookie banner ---------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  z-index: 60;
  left: 24px;
  bottom: 24px;
  width: min(420px, calc(100% - 32px));
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 8px 8px 0 var(--ink);
  animation: cookie-in .5s var(--ease-out) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(20px); } }
.cookie-banner h2 { font-size: 18px; font-weight: 700; color: var(--ink); }
.cookie-banner p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.cookie-banner p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; margin-top: 18px; }
.cookie-actions .btn { flex: 1; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.link-button:hover { color: var(--ink); }

/* 404 -------------------------------------------------------------------- */
.error-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(64px, 10vw, 140px) 0 clamp(72px, 10vw, 140px);
  text-align: center;
}
.error-code {
  display: inline-flex;
  align-items: center;
  gap: .04em;
  font-size: clamp(120px, 22vw, 240px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--ink);
}
.error-code svg { width: .76em; height: .76em; animation: float 7s ease-in-out infinite; }
.error-page .h2 { margin-top: 28px; }
.error-page .lead { max-width: 52ch; margin-inline: auto; }
.error-page .hero-actions { margin-top: 32px; }
.error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 40px; }

/* Responsive ------------------------------------------------------------- */
/* Header switches to the hamburger menu (the nav needs ~960px to fit) */
@media (max-width: 960px) {
  :root { --header-h: 68px; }

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

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px 16px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }

  .site-nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 14px 0; font-size: 18px; }
  .sub-toggle { flex: 1; justify-content: space-between; padding: 14px 14px 14px 0; font-size: 18px; }

  /* Submenu becomes an accordion inside the mobile menu */
  .sub-menu {
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    padding: 0;
    translate: none;
    transform: none;
    opacity: 1;
    transition: grid-template-rows .3s var(--ease-out), visibility 0s .3s;
  }
  .has-sub.is-open > .sub-menu {
    grid-template-rows: 1fr;
    transition: grid-template-rows .3s var(--ease-out), visibility 0s;
  }
  .sub-panel { min-height: 0; overflow: hidden; padding: 0 0 0 12px; border: 0; border-radius: 0; box-shadow: none; }
  .sub-panel ul a { padding: 10px 12px; }
  .sub-all { margin: 4px 0 14px; padding: 10px 12px; border-top: 0; }

  .is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s, transform .2s;
  }

  .is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-quote { margin-top: 32px; }

  .features { grid-template-columns: repeat(2, 1fr); }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }

  .panel { grid-template-columns: 1fr; }

  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan--featured { margin-block: 0; padding-block: 36px; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split-media { order: 0; }
  .story-card { grid-template-columns: minmax(0, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }

  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 20px 24px; border-radius: var(--radius); background: var(--bg-soft); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-aside { position: static; }
}

@media (max-width: 860px) {

  .showcase-media { aspect-ratio: 4 / 3; }

  .deco-3, .deco-4 { display: none; }
  .deco-1 { left: -24px; top: 8%; width: 72px; height: 72px; box-shadow: 6px 6px 0 var(--ink); }
  .deco-2 { right: -12px; top: 6%; width: 48px; height: 48px; box-shadow: 5px 5px 0 var(--accent); }


  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }

  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .link-cards { grid-template-columns: 1fr; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-media { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .post-card--featured .post-body { border-top: 0; border-left: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

  .cta { grid-template-columns: 1fr; }
  .cta-art { height: 180px; order: -1; }
  .sq-1 { width: 120px; height: 120px; left: 12%; }
  .sq-2 { width: 116px; height: 116px; left: 4%; border-width: 8px; }
  .sq-3 { width: 64px; height: 64px; right: auto; left: 52%; border-width: 6px; }
}

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .feature { padding: 28px 24px 32px; }

  /* Smaller shapes, kept to the edges around the headline */
  .deco-3, .deco-4 { display: block; }
  .deco-1 { left: -18px; top: 3%; width: 54px; height: 54px; box-shadow: 4px 4px 0 var(--ink); }
  .deco-2 { right: -10px; top: 5%; width: 38px; height: 38px; box-shadow: 4px 4px 0 var(--accent); }
  .deco-3 { left: 4%; top: auto; bottom: 16px; width: 20px; height: 20px; }
  .deco-4 { right: -22px; top: 25%; width: 58px; height: 58px; border-width: 4px; box-shadow: 6px 6px 0 var(--ink); }

  /* Footer columns become an accordion (toggles are added by main.js) */
  .footer-links { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .footer-col { border-bottom: 1px solid var(--line); }
  .footer-col:first-child { border-top: 1px solid var(--line); }
  .footer-heading:has(.footer-toggle) { margin: 0; }

  .footer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 0;
    border: 0;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
  }
  .footer-toggle .plus { width: 28px; height: 28px; }
  .footer-col.is-open .plus { background: var(--accent); transform: rotate(45deg); }

  .js .footer-list {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .38s var(--ease-out), visibility 0s .38s;
  }
  .js .footer-col.is-open .footer-list {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .38s var(--ease-out), visibility 0s;
  }
  .footer-list ul { min-height: 0; overflow: hidden; }
  .footer-list li:last-child { padding-bottom: 18px; }
  .footer-bottom { margin-top: 56px; gap: 8px 20px; }
  .hero-actions .btn,
  .cta-actions .btn,
  .page-actions .btn { flex: 1 1 100%; }

  .page-deco .deco-a { right: -24px; top: auto; bottom: 18px; width: 56px; height: 56px; box-shadow: 5px 5px 0 var(--ink); }
  .page-deco .deco-b { display: none; }

  .post-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .logo-grid li { min-height: 96px; }

  .cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; box-shadow: 5px 5px 0 var(--ink); }
  .cookie-actions { flex-direction: column; }

  .notice-inner { grid-template-columns: 1fr 32px; }
  .notice-text { grid-column: 1; justify-content: flex-start; text-align: left; }
  .notice-close { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; }
}

/* WordPress ----------------------------------------------------------------
   Additions for the WordPress theme: admin bar, skip link, core blocks in
   long-form text, block styles, form error, server-side pagination. */

/* Sticky header below the admin bar (the bar scrolls away below 600px) */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link: visible on keyboard focus only */
.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 18px;
  clip-path: none;
  border-radius: var(--radius-pill);
  background: var(--ink);
  font-weight: 600;
  color: #fff;
}

/* Core blocks inside .prose: same look as the hand-written article markup */
.prose .wp-block-table { margin: 0; overflow-x: auto; }
.prose > .wp-block-table:not(:first-child) { margin-top: 1.1em; }
.prose .wp-block-table thead { border-bottom: 0; }
.prose .wp-block-table th,
.prose .wp-block-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); }
.prose figcaption { margin-bottom: 0; }
.prose .wp-block-quote > :first-child { margin-top: 0; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.prose .aligncenter { margin-inline: auto; text-align: center; }

/* Article without enough headings for a table of contents */
.article-layout--no-toc { grid-template-columns: minmax(0, 1fr); }

/* Client logo uploaded as an image instead of a text wordmark */
.wm-logo img { width: auto; max-width: 160px; max-height: 40px; filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s; }
.wm-logo:hover img { filter: none; opacity: 1; }

/* Form: message when sending fails */
.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--danger-soft);
  font-size: 15px;
  font-weight: 500;
  color: var(--danger);
}
.form-error[hidden] { display: none; }
.form-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--danger);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.form [type="submit"].is-loading { opacity: .6; pointer-events: none; }

/* Server-side pagination (archives): links and disabled ends */
.page-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.page-btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

