/* SBL Themes — studio site. Plain CSS, generated pages, no runtime build. */
:root {
  --ink: #17211d;
  --ink-soft: #2c3833;
  --ivory: #f7f6f2;
  --sage: #dce5d9;
  --sage-deep: #c9d6c4;
  --champagne: #c7a57d;
  --champagne-deep: #8a6a45;
  --white: #ffffff;
  --text: #2a302d;
  --muted: #5b625e;
  --line: #e6e3db;
  --radius: 12px;
  --radius-sm: 8px;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Mrs Saint Delafield', 'Snell Roundhand', cursive;
  --width: 1180px;
  --shadow: 0 30px 60px -30px rgba(23, 33, 29, 0.35);
}

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

html {
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.6rem, 1.7rem + 3.6vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
}

h3 {
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 20;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--ivory);
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: calc(var(--width) + 3rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: block;
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.center {
  text-align: center;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--ink-soft);
  text-decoration: none;
}

.button .arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

.button--outline {
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  background: var(--ink);
  color: var(--ivory);
}

.button--light {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}

.button[aria-disabled='true'] {
  opacity: 0.55;
  cursor: default;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
}

.text-link .arrow {
  width: 0.9rem;
  height: 0.9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 246, 242, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.6rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav ul {
  display: flex;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a:not(.button) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.nav a:not(.button):hover,
.nav a[aria-current='page'] {
  text-decoration: underline;
}

.menu {
  display: none;
}

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

  .menu {
    display: block;
    position: relative;
  }

  .menu summary {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    list-style: none;
    cursor: pointer;
  }

  .menu summary::-webkit-details-marker {
    display: none;
  }

  .menu[open] summary {
    background: var(--sage);
  }

  .menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: min(18rem, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .menu-panel ul {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
  }

  .menu-panel li a {
    display: block;
    padding: 0.6rem 0.4rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .menu-panel .button {
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f6f1 0%, #f3efe6 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  background: var(--hero-image) right center / cover no-repeat;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}

/* Small screens: the leaves only sit behind the laptop, below the text. */
@media (max-width: 959px) {
  .hero::before {
    width: 100%;
    background-position: center bottom;
    -webkit-mask-image: linear-gradient(180deg, transparent 52%, #000 75%);
    mask-image: linear-gradient(180deg, transparent 52%, #000 75%);
  }
}

.hero .wrap {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

@media (min-width: 960px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

.hero h1 {
  max-width: 11ch;
}

.hero-sub {
  margin: 0.2rem 0 0;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.platforms {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(23, 33, 29, 0.12);
  max-width: 26rem;
}

.platforms .eyebrow {
  margin-bottom: 0.9rem;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.25;
}

.platform img {
  width: 2.1rem;
  height: 2.1rem;
}

.platform strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.platform span {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.signature {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  width: fit-content;
  margin: 1.4rem 0 0 auto;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  background: rgba(247, 246, 242, 0.88);
  backdrop-filter: blur(6px);
  color: var(--ink);
}

.signature-script {
  font-family: var(--script);
  font-size: 2.2rem;
  line-height: 1;
}

.signature-text {
  padding-left: 1rem;
  border-left: 1px solid rgba(23, 33, 29, 0.25);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* ---------- Device frames ---------- */
.laptop {
  position: relative;
  margin: 0 auto;
  max-width: 44rem;
  filter: drop-shadow(0 35px 40px rgba(23, 33, 29, 0.25));
}

.laptop-screen {
  padding: 2.2% 2.2% 3%;
  border-radius: 18px 18px 6px 6px;
  background: #1b1d1c;
}

.laptop-screen picture,
.laptop-screen img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
}

.laptop-base {
  position: relative;
  height: 0.9rem;
  margin: 0 -7%;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #d9d9d6 0%, #a9a9a5 100%);
}

.laptop-base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 14%;
  height: 35%;
  border-radius: 0 0 8px 8px;
  background: #8e8e8a;
  translate: -50% 0;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.9rem;
  padding: 0 0.8rem;
  border-bottom: 1px solid var(--line);
  background: #f3f2ee;
}

.browser-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #d6d3cb;
}

.browser img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.phone {
  overflow: hidden;
  border: 7px solid #1b1d1c;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--white {
  background: var(--white);
}

.section--tight {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 span {
  display: block;
  font-size: 0.72em;
  color: var(--ink-soft);
}

/* Theme showcase */
.showcase {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin-top: 3rem;
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: 0.32fr 1fr 0.32fr;
    gap: 2rem;
  }
}

@media (max-width: 899px) {
  .showcase {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .showcase .browser {
    grid-column: 1 / -1;
    order: -1;
  }
}

/* Feature columns */
.columns {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

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

  .columns > * + * {
    border-left: 1px solid var(--line);
  }
}

.column {
  padding: 0 clamp(0rem, 3vw, 2.5rem);
}

.column .icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
}

.column h3 {
  margin-bottom: 0.4rem;
}

.column p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Help banner */
.help-banner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-top: 3.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: #eeefe9;
}

@media (min-width: 800px) {
  .help-banner {
    grid-template-columns: auto 1fr auto auto;
    gap: 1.75rem;
  }
}

.help-banner .icon-wrap {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--white);
}

.help-banner h3 {
  margin: 0 0 0.15rem;
  font-size: 1.3rem;
}

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

.help-banner .email {
  font-weight: 500;
  white-space: nowrap;
}

/* Newsletter band */
.band {
  position: relative;
  overflow: hidden;
  background: #f1eee6;
}

.band::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(15rem, 30vw);
  height: 100%;
  background: var(--band-image) left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 100%);
  opacity: 0.85;
}

@media (max-width: 899px) {
  .band::before {
    display: none;
  }
}

.band .wrap {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 900px) {
  .band .wrap {
    grid-template-columns: 1fr 26rem;
    padding-left: max(1.5rem, min(16rem, 18vw));
  }
}

.band h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem);
  margin-bottom: 0.3rem;
}

.band p {
  margin: 0;
  color: var(--muted);
}

.subscribe {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.subscribe input[type='email'] {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 0;
  font: inherit;
  font-size: 0.92rem;
  background: transparent;
}

.subscribe input[type='email']:focus-visible {
  outline: 2px solid var(--champagne-deep);
  outline-offset: -2px;
}

.subscribe .button {
  border-radius: 0;
  min-height: auto;
}

.form-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c9cfca;
  font-size: 0.9rem;
}

.site-footer a {
  color: #e9ece8;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer .logo {
  color: var(--ivory);
}

.footer-about {
  max-width: 18rem;
  margin-top: 1rem;
}

.footer-title {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ivory);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  color: #e9ece8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

/* ---------- Catalog ---------- */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.filters button {
  min-height: 2.5rem;
  padding: 0.4rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}

.filters button[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ivory);
}

.theme-grid {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.theme-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1rem 1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.theme-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.theme-card h2,
.theme-card h3 {
  margin: 0;
  font-size: 1.6rem;
}

.theme-card h2 a,
.theme-card h3 a {
  text-decoration: none;
}

.theme-card h2 a::after,
.theme-card h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.theme-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--sage);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
}

.tag--status {
  background: #f3ead9;
  color: #6b5032;
}

.tag img {
  width: 0.9rem;
  height: 0.9rem;
}

.empty-card {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  min-height: 16rem;
  padding: 2rem;
  border: 1px dashed var(--sage-deep);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.empty-card strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
}

/* ---------- Theme page ---------- */
.theme-hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

@media (min-width: 960px) {
  .theme-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.swatches {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.swatches span {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

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

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

.feature {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.feature .icon {
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.gallery {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.phones {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 2.5rem;
}

.phones .phone {
  width: min(15rem, 30%);
}

.changelog {
  margin: 0;
  padding: 0;
  list-style: none;
}

.changelog > li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.changelog h3 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.changelog time {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Docs ---------- */
.docs-index {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 4rem;
  padding: 0;
  list-style: none;
}

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

.docs {
  display: grid;
  gap: 2.5rem;
  padding: 1rem 0 5rem;
}

@media (min-width: 960px) {
  .docs {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
  }
}

.toc {
  font-size: 0.9rem;
}

@media (min-width: 960px) {
  .toc {
    position: sticky;
    top: 6rem;
    align-self: start;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  margin: 0.15rem 0;
}

.toc ol ol {
  margin: 0.15rem 0 0.4rem 0.9rem;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.toc-title {
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.content {
  min-width: 0;
  max-width: 46rem;
}

.content h2 {
  margin-top: 2.2em;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem);
}

.content > h2:first-child {
  margin-top: 0;
}

.content h3 {
  margin-top: 1.6em;
}

.content code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--sage);
}

.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--white);
}

.content th,
.content td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.content th {
  font-weight: 600;
  background: var(--sage);
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.note {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  font-size: 0.95rem;
}

.note--warn {
  border-left-color: #a3402b;
}

details.faq {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

details.faq summary {
  font-weight: 600;
  cursor: pointer;
}

details.faq[open] summary {
  margin-bottom: 0.5rem;
}

.steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.steps > li {
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1rem;
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Support ---------- */
.support-grid {
  display: grid;
  gap: 2.5rem;
  padding: 1rem 0 5rem;
}

@media (min-width: 900px) {
  .support-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.panel iframe {
  width: 100%;
  min-height: 760px;
  border: 0;
}

/* Ticket form */
.ticket-form {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.field legend {
  margin-bottom: 0.4rem;
}

.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input:not([type='file']),
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #8c877d;
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--champagne-deep);
  outline-offset: 1px;
}

.field input[type='file'] {
  max-width: 100%;
  font-size: 0.88rem;
}

.files {
  display: grid;
  gap: 0.5rem;
}

.field-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.ticket-form .text-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ticket-form > .button {
  justify-self: start;
}

.checklist {
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  rotate: -45deg;
}

.checklist--no li::before {
  width: 0.6rem;
  height: 2px;
  top: 0.75rem;
  border: 0;
  background: var(--muted);
  rotate: 0deg;
}

/* ---------- Reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
