/* Postocial marketing site: design tokens and component styles.
   Dark only. Text/background pairs are AA-checked against the surfaces below:
   --text, --text-muted, --text-subtle, --cyan and --coral-text on --bg,
   --bg-raised, --surface and --surface-hover; only --text sits on the teal glow. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin.woff2?v=153fc85b70) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --teal: #0b6e7f;
  --teal-hover: #085e6d;
  --coral: #c93c25;
  --cyan: #5ee6f0;

  --bg: #061217;
  --bg-raised: #0a1b20;
  --surface: #10262c;
  --surface-hover: #143039;
  --line: #1e3c44;
  --line-strong: #2d5761;
  --field-border: #4b727b;

  --text: #eaf6f8;
  --text-muted: #9fb7bd;
  --text-subtle: #86a2a8;
  --coral-text: #ff8a70;
  --amber: #f2c46d;
  --focus: #5ee6f0;

  --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --fs-h1: clamp(2.5rem, 1.35rem + 4.9vw, 5.25rem);
  --fs-h1-md: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.375rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --section-y: clamp(64px, 4vw + 48px, 120px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --pill: 999px;
  --shadow-lg: 0 30px 80px -24px rgb(0 0 0 / 0.65);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

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

/* The taller header comes with the desktop menu (the 1180px switch below). */
@media (min-width: 1180px) {
  :root {
    --header-h: 76px;
  }
}

/* ------------------------------------------------------------ base */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p,
dl,
dd,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

code {
  padding: 0.15em 0.4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

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

main:focus {
  outline: none;
}

::selection {
  background: rgb(94 230 240 / 0.3);
  color: var(--text);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

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

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

.ui-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.net-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.hl {
  color: var(--cyan);
}

/* ------------------------------------------------------------ buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.btn .ui-icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgb(11 110 127 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.14);
}

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

.btn--secondary {
  border-color: var(--line-strong);
  background: rgb(234 246 248 / 0.04);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--text-muted);
  background: rgb(234 246 248 / 0.08);
}

.btn--light {
  background: var(--text);
  color: var(--bg);
}

.btn--light:hover {
  background: #fff;
}

.btn--ghost {
  border-color: rgb(234 246 248 / 0.45);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: rgb(234 246 248 / 0.08);
}

.btn--lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1rem;
}

.btn--sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn__short {
  display: none;
}

@media (max-width: 379.98px) {
  .btn__long {
    display: none;
  }

  .btn__short {
    display: inline;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn:not(:disabled):hover {
    transform: translateY(-1px);
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link .ui-icon {
  width: 18px;
  height: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgb(16 38 44 / 0.75);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgb(201 60 37 / 0.28);
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--pill);
  background: rgb(94 230 240 / 0.1);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

/* ------------------------------------------------------------ header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(30 60 68 / 0.75);
  background: rgb(6 18 23 / 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.site-header__logo {
  display: inline-flex;
  flex: none;
  margin-right: auto;
  border-radius: 8px;
}

.site-header__logo img {
  width: 128px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  order: 2;
}

.site-header__login {
  display: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header__login:hover {
  color: var(--text);
}

.nav-toggle {
  order: 3;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
}

.nav-toggle .ui-icon {
  width: 22px;
  height: 22px;
}

.nav-toggle__close,
.nav-toggle[aria-expanded='true'] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__close {
  display: block;
}

.site-nav__list,
.menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link,
.site-nav__trigger {
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-nav__chevron {
  width: 16px;
  height: 16px;
  transition: rotate 0.2s;
}

.site-nav__trigger[aria-expanded='true'] .site-nav__chevron {
  rotate: 180deg;
}

.site-nav__panel {
  display: none;
}

.site-nav__trigger[aria-expanded='true'] + .site-nav__panel {
  display: block;
}

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

.menu__link:hover {
  background: var(--surface);
}

.menu__link[aria-current='page'] .menu__label {
  color: var(--cyan);
}

.menu__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--cyan);
}

.menu__icon .ui-icon,
.menu__icon .net-icon {
  width: 18px;
  height: 18px;
}

.menu__text {
  display: grid;
  gap: 2px;
  padding-top: 1px;
}

.menu__label {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
}

.menu__desc {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Mobile and tablet: the navigation is a panel opened by the menu button.
   The header switches at 1180px, where the whole desktop menu fits on one line. */
@media (max-width: 1179.98px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__link,
  .site-nav__trigger {
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }

  .site-nav__panel {
    padding: 8px 0 12px;
  }

  .site-nav__cta {
    padding-top: 20px;
  }

  .site-nav__cta .btn {
    width: 100%;
  }

  html.nav-open {
    overflow: hidden;
  }
}

/* Desktop: inline links with dropdown panels. */
@media (min-width: 1180px) {
  .site-header__logo {
    margin-right: 0;
  }

  .site-header__logo img {
    width: 150px;
  }

  .site-header__login {
    display: inline-flex;
  }

  .nav-toggle,
  .site-nav__item--mobile {
    display: none;
  }

  .site-nav {
    margin-inline: auto;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .site-nav__item {
    position: relative;
  }

  .site-nav__link,
  .site-nav__trigger {
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--pill);
    color: var(--text-muted);
    font-size: 0.9375rem;
  }

  .site-nav__link:hover,
  .site-nav__trigger:hover,
  .site-nav__trigger[aria-expanded='true'],
  .site-nav__link[aria-current='page'] {
    color: var(--text);
    background: rgb(234 246 248 / 0.06);
  }

  .site-nav__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: max-content;
    min-width: 300px;
    max-width: min(640px, calc(100vw - 48px));
    padding: 10px;
    translate: -50% 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-raised);
    box-shadow: var(--shadow-lg);
  }

  /* Invisible bridge so the pointer can travel from the button to the panel. */
  .site-nav__panel::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 14px;
  }

  .site-nav__panel--wide .menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 560px;
  }

  /* Before app.js runs (or without it), open dropdowns on hover and focus. */
  html:not(.js) .site-nav__item--menu:is(:hover, :focus-within) > .site-nav__panel {
    display: block;
  }
}

/* ------------------------------------------------------------ breadcrumbs */

.breadcrumbs {
  padding-top: 20px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs li + li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--text-subtle);
  border-right: 1.5px solid var(--text-subtle);
  rotate: 45deg;
}

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

.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumbs [aria-current='page'] {
  color: var(--text);
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(48px, 7vw, 104px);
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -260px;
  left: 50%;
  width: min(1200px, 160vw);
  height: 760px;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgb(11 110 127 / 0.6), rgb(11 110 127 / 0.12) 60%, transparent);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 720px;
  background-image: linear-gradient(rgb(94 230 240 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(94 230 240 / 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

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

.hero__title {
  max-width: 1040px;
  margin-top: 24px;
  font-size: var(--fs-h1);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero--md .hero__title {
  max-width: 900px;
  font-size: var(--fs-h1-md);
  line-height: 1.06;
}

.hero__subtitle {
  max-width: 660px;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 16px;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.hero .networks {
  margin-top: 44px;
}

.hero__preview {
  margin-top: clamp(48px, 6vw, 88px);
}

.hero--md {
  padding-bottom: clamp(48px, 6vw, 88px);
}

@media (max-width: 479.98px) {
  .hero__actions .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------ network icons */

.networks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.networks__label {
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.networks__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.networks__item {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(16 38 44 / 0.7);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.networks__item:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 639.98px) {
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .channel {
    gap: 10px;
    padding: 10px;
  }

  .channel__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .channel__name {
    font-size: 0.875rem;
  }

  .channel__detail {
    font-size: 0.75rem;
  }
}

.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.channel__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.channel__text {
  display: grid;
  min-width: 0;
}

.channel__name {
  font-weight: 700;
  line-height: 1.3;
}

.channel__detail {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ------------------------------------------------------------ product preview */

.preview {
  container-type: inline-size;
  position: relative;
  padding: clamp(6px, 1.2vw, 14px);
  border-radius: clamp(18px, 2.6vw, 30px);
  background: linear-gradient(180deg, rgb(94 230 240 / 0.32), rgb(11 110 127 / 0.16) 45%, rgb(6 18 23 / 0) 100%);
  box-shadow: inset 0 0 0 1px rgb(94 230 240 / 0.2), 0 50px 140px -60px rgb(11 110 127 / 0.95);
}

.pv-window {
  overflow: hidden;
  border: 1px solid rgb(94 230 240 / 0.2);
  border-radius: clamp(12px, 1.8vw, 20px);
  background: #08171c;
  color: var(--text);
  font-size: clamp(8px, 1.1cqi, 13px);
  line-height: 1.35;
  text-align: left;
}

.pv-window p {
  text-wrap: initial;
}

.pv-window .ui-icon,
.pv-net {
  flex: none;
  width: 1.15em;
  height: 1.15em;
}

.pv-topbar {
  display: flex;
  align-items: center;
  gap: 1em;
  height: 2.8em;
  padding: 0 1.2em;
  border-bottom: 1px solid #16323a;
  background: #0a1c22;
}

.pv-dots {
  display: flex;
  gap: 0.45em;
  width: 4em;
}

.pv-dots i {
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: #23434b;
}

.pv-dots i:first-child {
  background: var(--coral);
}

.pv-url {
  margin-inline: auto;
  padding: 0.25em 1.4em;
  border-radius: var(--pill);
  background: #0f262c;
  color: var(--text-muted);
  font-size: 0.85em;
  translate: -2em 0;
}

.pv-body {
  display: grid;
  grid-template-columns: 12.5em minmax(0, 1fr) 19.5em;
  min-height: 33em;
}

.pv-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding: 1.3em 1em;
  border-right: 1px solid #16323a;
  background: #0a1c22;
}

.pv-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1em;
  font-size: 1.1em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pv-window .pv-brand__mark {
  width: 1.7em;
  height: 1.7em;
}

.pv-workspace {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
  padding: 0.55em 0.6em;
  border: 1px solid #16323a;
  border-radius: 0.7em;
  background: #0f262c;
  font-weight: 600;
}

.pv-avatar {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 0.6em;
  background: var(--teal);
  color: #fff;
  font-size: 0.8em;
  font-weight: 800;
}

.pv-nav,
.pv-channels {
  display: grid;
  gap: 0.15em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pv-nav li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.6em;
  border-radius: 0.6em;
  color: var(--text-muted);
}

.pv-nav li.is-active {
  background: rgb(11 110 127 / 0.35);
  color: var(--text);
}

.pv-nav li.is-active .ui-icon {
  color: var(--cyan);
}

.pv-label {
  margin: 1.4em 0 0.4em 0.6em;
  color: var(--text-subtle);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pv-channels li {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.4em 0.6em;
  color: var(--text-muted);
  font-size: 0.92em;
}

.pv-status {
  width: 0.5em;
  height: 0.5em;
  margin-left: auto;
  border-radius: 50%;
  background: #3ddc97;
}

.pv-main {
  min-width: 0;
  padding: 1.3em 1.4em;
}

.pv-toolbar {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1.1em;
}

.pv-kicker {
  color: var(--text-subtle);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pv-heading {
  font-size: 1.45em;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pv-views {
  display: flex;
  margin-left: auto;
  padding: 0.2em;
  border: 1px solid #16323a;
  border-radius: var(--pill);
  background: #0f262c;
}

.pv-views span {
  padding: 0.35em 0.9em;
  border-radius: var(--pill);
  color: var(--text-muted);
  font-size: 0.9em;
}

.pv-views .is-active {
  background: #18383f;
  color: var(--text);
}

.pv-create {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6em 1em;
  border-radius: var(--pill);
  background: var(--teal);
  color: #fff;
  font-size: 0.92em;
  font-weight: 700;
  white-space: nowrap;
}

.pv-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #16323a;
  border-radius: 0.9em;
}

.pv-day {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  min-height: 26em;
  padding: 0.6em 0.45em;
  border-left: 1px solid #16323a;
}

.pv-day:first-child {
  border-left: 0;
}

.pv-day.is-today {
  background: rgb(11 110 127 / 0.13);
}

.pv-day__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding-bottom: 0.4em;
  color: var(--text-muted);
  font-size: 0.85em;
}

.pv-day__label b {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  color: var(--text);
}

.pv-day.is-today .pv-day__label b {
  background: var(--teal);
  color: #fff;
}

.pv-best {
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.35em 0.5em;
  border: 1px dashed rgb(94 230 240 / 0.55);
  border-radius: 0.5em;
  color: var(--cyan);
  font-size: 0.78em;
  font-weight: 700;
}

.pv-post {
  display: grid;
  gap: 0.35em;
  padding: 0.55em;
  border: 1px solid #1b3a42;
  border-left-width: 0.25em;
  border-radius: 0.6em;
  background: #10262c;
}

.pv-post__meta {
  display: flex;
  align-items: center;
  gap: 0.35em;
  color: var(--text-muted);
  font-size: 0.8em;
}

.pv-post__title {
  font-size: 0.88em;
  font-weight: 700;
  line-height: 1.25;
}

.pv-post__art {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 0.45em;
  background: linear-gradient(135deg, #a5f3f8, #0b6e7f);
}

.pv-line {
  display: block;
  height: 0.4em;
  border-radius: var(--pill);
  background: #1d3d45;
}

.pv-line--short {
  width: 60%;
}

.pv-post--teal {
  border-left-color: var(--cyan);
}

.pv-post--coral {
  border-left-color: var(--coral-text);
}

.pv-post--coral .pv-post__art {
  background: linear-gradient(135deg, #ffc2b3, #c93c25);
}

.pv-post--sand {
  border-left-color: var(--amber);
}

.pv-post--sky {
  border-left-color: #7cb8ff;
}

.pv-post--sky .pv-post__art {
  background: linear-gradient(135deg, #cfe5ff, #3d6fb8);
}

.pv-post--rose {
  border-left-color: #f59ac6;
}

.pv-post--rose .pv-post__art {
  background: linear-gradient(135deg, #ffd1e6, #b14d82);
}

.pv-composer {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  align-self: start;
  margin: 1.3em 1.3em 1.3em 0;
  padding: 1.1em;
  border: 1px solid #1f4149;
  border-radius: 1em;
  background: linear-gradient(180deg, #10262c, #0c1f25);
  box-shadow: 0 1.5em 3em -1em rgb(0 0 0 / 0.6);
}

.pv-composer__head,
.pv-composer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
}

.pv-composer__title {
  font-size: 1.1em;
  font-weight: 800;
}

.pv-chip {
  padding: 0.2em 0.7em;
  border-radius: var(--pill);
  background: rgb(242 196 109 / 0.15);
  color: var(--amber);
  font-size: 0.78em;
  font-weight: 700;
}

.pv-composer__channels {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

.pv-composer__channel {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border: 1px solid #285059;
  border-radius: 50%;
  background: #16343c;
}

.pv-composer__more {
  margin-left: 0.2em;
  color: var(--text-muted);
  font-size: 0.8em;
}

.pv-composer__text {
  min-height: 7em;
  padding: 0.8em;
  border: 1px solid #1b3a42;
  border-radius: 0.7em;
  background: #08171c;
  color: #d3e6ea;
  font-size: 0.9em;
  line-height: 1.5;
}

.pv-composer__media {
  display: flex;
  gap: 0.5em;
}

.pv-thumb {
  display: grid;
  place-items: center;
  width: 3.6em;
  height: 3.6em;
  border-radius: 0.6em;
}

.pv-thumb--a {
  background: linear-gradient(135deg, #ffc2b3, #c93c25);
}

.pv-thumb--b {
  background: linear-gradient(135deg, #a5f3f8, #0b6e7f);
}

.pv-thumb--add {
  border: 1px dashed var(--line-strong);
  color: var(--text-muted);
}

.pv-composer__ai {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
}

.pv-composer__ai span {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.4em 0.75em;
  border: 1px solid rgb(94 230 240 / 0.3);
  border-radius: var(--pill);
  background: rgb(94 230 240 / 0.1);
  color: var(--cyan);
  font-size: 0.82em;
  font-weight: 700;
}

.pv-composer__foot {
  margin-top: auto;
  padding-top: 0.8em;
  border-top: 1px solid #1b3a42;
}

.pv-composer__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  color: var(--text-muted);
  font-size: 0.85em;
}

.pv-composer__btn {
  padding: 0.55em 1.1em;
  border-radius: var(--pill);
  background: var(--teal);
  color: #fff;
  font-size: 0.9em;
  font-weight: 800;
}

@container (max-width: 900px) {
  .pv-body {
    grid-template-columns: minmax(0, 1fr) 18em;
  }

  .pv-sidebar {
    display: none;
  }

  .pv-calendar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .pv-day:nth-child(n + 6) {
    display: none;
  }
}

@container (max-width: 600px) {
  .pv-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .pv-composer {
    margin: 0 1.3em 1.3em;
  }

  .pv-calendar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pv-day:nth-child(n + 4) {
    display: none;
  }

  .pv-day {
    min-height: 18em;
  }

  .pv-views {
    display: none;
  }

  .pv-url {
    translate: none;
  }
}

/* ------------------------------------------------------------ sections and cards */

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.6);
}

.section--alt {
  background: linear-gradient(180deg, rgb(10 27 32 / 0), rgb(10 27 32 / 0.95) 14%, rgb(10 27 32 / 0.95) 86%, rgb(10 27 32 / 0));
}

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

.section-head--start {
  margin-inline: 0;
  text-align: left;
}

.section-title {
  margin-top: 14px;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-head > .section-title:first-child {
  margin-top: 0;
}

.section-intro {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-intro a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

  .card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--bg-raised) 65%);
}

.card::after {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 240px;
  height: 240px;
  background: radial-gradient(closest-side, rgb(94 230 240 / 0.09), transparent);
  pointer-events: none;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border: 1px solid rgb(94 230 240 / 0.28);
  border-radius: 14px;
  background: rgb(11 110 127 / 0.28);
  color: var(--cyan);
}

.card__icon .ui-icon {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card__points {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.card__points li {
  display: flex;
  gap: 10px;
}

.card__points .ui-icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--cyan);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--cyan);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.card__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.card__link .ui-icon {
  width: 18px;
  height: 18px;
}

.card--persona {
  background: var(--bg-raised);
}

.card--persona .card__icon {
  border-color: rgb(255 138 112 / 0.3);
  background: rgb(201 60 37 / 0.16);
  color: var(--coral-text);
}

.link-card {
  transition: border-color 0.2s, background-color 0.2s;
}

.link-card:hover {
  border-color: var(--line-strong);
}

.link-card a {
  text-decoration: none;
}

.link-card a::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
}

.link-card a:focus-visible {
  outline: none;
}

.link-card:has(a:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.link-card__arrow {
  margin-top: auto;
  color: var(--cyan);
}

/* ------------------------------------------------------------ feature rows */

.feature-row__inner {
  display: grid;
  align-items: center;
  gap: 40px;
}

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

  .feature-row--reverse .feature-row__visual {
    order: -1;
  }
}

.feature-row__title {
  margin-top: 14px;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  letter-spacing: -0.035em;
}

.feature-row__text > .feature-row__title:first-child {
  margin-top: 0;
}

.feature-row__lede {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checklist .ui-icon {
  margin-top: 3px;
  color: var(--cyan);
}

.visual-tile {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse at 30% 20%, rgb(94 230 240 / 0.2), transparent 60%),
    linear-gradient(150deg, #0d3a44, var(--bg-raised) 70%);
}

.visual-tile__icon {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 30px;
  background: var(--teal);
  color: #fff;
  box-shadow: 0 24px 60px -12px rgb(11 110 127 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.18);
}

.visual-tile__icon .ui-icon {
  width: 48px;
  height: 48px;
}

.visual-tile__chips {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.visual-tile__chips li {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgb(6 18 23 / 0.8);
  font-size: 0.8125rem;
  font-weight: 600;
}

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

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

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}

.step__num {
  margin-bottom: 8px;
  background: linear-gradient(180deg, var(--cyan), rgb(94 230 240 / 0.3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.step__icon {
  color: var(--cyan);
}

.step__title {
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
}

.step__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (forced-colors: active) {
  .step__num {
    background: none;
    color: CanvasText;
  }
}

/* ------------------------------------------------------------ FAQ */

.faq__inner {
  display: grid;
  gap: 32px;
}

@media (min-width: 1040px) {
  .faq__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 72px;
  }

  .faq__head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.faq__head .section-head {
  margin-bottom: 0;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

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

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--cyan);
}

.faq__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cyan);
  transition: rotate 0.2s var(--ease);
}

.faq__icon .ui-icon {
  width: 18px;
  height: 18px;
}

.faq__item[open] .faq__icon {
  rotate: 45deg;
}

.faq__a {
  padding: 0 54px 24px 0;
  color: var(--text-muted);
}

.faq__a > * + * {
  margin-top: 12px;
}

.faq__a a {
  color: var(--cyan);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------ CTA band */

.cta-band {
  padding-block: var(--section-y);
}

.cta-band__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 96px) clamp(20px, 5vw, 64px);
  border: 1px solid rgb(94 230 240 / 0.22);
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse 80% 110% at 50% -20%, rgb(11 110 127 / 0.7), transparent 70%),
    linear-gradient(160deg, #0d2c33, var(--bg-raised));
  text-align: center;
}

.cta-band__title {
  max-width: 820px;
  margin: 14px auto 0;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cta-band__panel > .cta-band__title:first-child {
  margin-top: 0;
}

.cta-band__text {
  max-width: 580px;
  margin: 18px auto 0;
  color: var(--text);
  font-size: 1.0625rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 32px;
}

.cta-band__note {
  margin-top: 16px;
  color: var(--text);
  font-size: 0.875rem;
}

@media (max-width: 479.98px) {
  .cta-band__actions .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------ pricing */

.pricing__body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--bg-raised);
}

.billing-toggle__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
}

.billing-toggle__btn:hover {
  color: var(--text);
}

.billing-toggle__btn[aria-pressed='true'] {
  background: var(--teal);
  color: #fff;
}

.billing-toggle__save {
  padding: 2px 8px;
  border-radius: var(--pill);
  background: var(--coral);
  color: #fff;
  font-size: 0.75rem;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
  width: 100%;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

/* Four plans: one, two or four columns, so no card is left alone on a row. */
.pricing__grid--4 {
  grid-template-columns: minmax(0, 1fr);
}

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

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

  .pricing__grid--4 .plan__period {
    flex-basis: 100%;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}

/* Line up the name, description, price, button and features of the cards on
   a row, whatever each description's length. pricingCards() gives each card
   six children in the flow (the badge is positioned). */
@supports (grid-template-rows: subgrid) {
  .plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    grid-row: span 6;
    align-items: start;
  }
}

.plan--featured {
  border-color: rgb(94 230 240 / 0.5);
  background: linear-gradient(180deg, rgb(11 110 127 / 0.3), var(--bg-raised) 60%);
  box-shadow: 0 30px 60px -30px rgb(11 110 127 / 0.8);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 3px 12px;
  border-radius: var(--pill);
  background: var(--coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.plan__name {
  font-size: 1.375rem;
}

.plan__desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.plan__amount {
  font-size: 2.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan__period {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.plan__alt {
  min-height: 1.5em;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.plan .btn {
  width: 100%;
}

.plan__features {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 0.9375rem;
}

.plan__features li {
  display: flex;
  gap: 10px;
}

.plan__features .ui-icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--cyan);
}

.pricing__note {
  margin-top: 24px;
  color: var(--text-subtle);
  font-size: 0.875rem;
  text-align: center;
}

/* ------------------------------------------------------------ comparison table */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}

.compare {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}

.compare caption {
  padding: 18px 20px 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
}

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

/* The row headers stay in view while the table scrolls sideways. */
.compare th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background-color: var(--bg-raised);
  box-shadow: inset -1px 0 0 var(--line);
}

.compare tbody tr:last-child > * {
  border-bottom: 0;
}

.compare thead th {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare tbody th {
  font-weight: 600;
}

/* An image, so the tint also lies over the opaque sticky row headers. */
.compare .is-highlight {
  background-image: linear-gradient(rgb(11 110 127 / 0.16), rgb(11 110 127 / 0.16));
}

.compare thead .is-highlight {
  color: var(--text);
}

.cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cell .ui-icon {
  width: 18px;
  height: 18px;
}

.cell--yes .ui-icon {
  color: var(--cyan);
}

.cell--no {
  color: var(--text-muted);
}

.cell--partial .ui-icon {
  color: var(--amber);
}

.cell__note {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.table-foot {
  margin-top: 14px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.table-foot a {
  color: var(--text-muted);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------ prose */

.prose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: clamp(32px, 5vw, 64px) var(--section-y);
}

@media (min-width: 1040px) {
  .prose-layout--toc {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 64px;
  }

  .toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}

.toc__title {
  margin-bottom: 12px;
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line);
  list-style: none;
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover {
  border-left-color: var(--teal);
  color: var(--text);
}

.prose {
  max-width: 72ch;
  color: #d3e6ea;
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

.prose h1 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: var(--fs-h1-md);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.prose h2 {
  margin: 48px 0 16px;
  color: var(--text);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.prose h3 {
  margin: 32px 0 12px;
  color: var(--text);
  font-size: 1.25rem;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose table {
  margin: 0 0 20px;
}

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

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: 8px;
}

.prose li::marker {
  color: var(--cyan);
}

.prose blockquote {
  padding-left: 20px;
  border-left: 3px solid var(--teal);
  color: var(--text-muted);
}

.prose pre {
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  overflow-wrap: normal;
}

.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose__lede {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.prose__meta {
  color: var(--text-subtle);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------ blog cards */

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  overflow: hidden;
  padding: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: var(--line-strong);
}

.post-card > :not(.post-card__cover) {
  margin-inline: 26px;
}

.post-card__cover {
  aspect-ratio: 16 / 7;
  margin-bottom: 8px;
  background: radial-gradient(circle at 20% 30%, rgb(94 230 240 / 0.5), transparent 55%), linear-gradient(135deg, #0b6e7f, #0a1b20);
}

.post-card__cover--2 {
  background: radial-gradient(circle at 75% 25%, rgb(255 138 112 / 0.55), transparent 55%), linear-gradient(135deg, #3a1a14, #0a1b20);
}

.post-card__cover--3 {
  background: radial-gradient(circle at 50% 80%, rgb(242 196 109 / 0.45), transparent 55%), linear-gradient(135deg, #10262c, #061217);
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

.post-card__title {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.post-card__title a {
  text-decoration: none;
}

.post-card__title a::before {
  content: '';
  position: absolute;
  inset: 0;
}

.post-card__title a:focus-visible {
  outline: none;
}

.post-card:has(a:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.post-card__excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------ tools and forms */

.tool-section + .tool-section {
  padding-top: 0;
}

.tool {
  padding: clamp(20px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-raised);
}

.tool__head {
  margin-bottom: 28px;
}

.tool__title {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  letter-spacing: -0.03em;
}

.tool__desc {
  max-width: 70ch;
  margin-top: 10px;
  color: var(--text-muted);
}

.tool__body {
  display: grid;
  gap: 28px;
}

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

.tool__input,
.tool__output {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.tool__copy {
  align-self: flex-start;
}

.tool__note {
  margin-top: 24px;
  color: var(--text-subtle);
  font-size: 0.875rem;
}

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

.field__label {
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 700;
}

.field__control {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.field__control:focus-visible {
  outline-offset: 1px;
}

.field__control--area {
  min-height: 190px;
  resize: vertical;
}

.field__control--short {
  min-height: 96px;
}

select.field__control {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb7bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
}

.field__control--color {
  width: 100%;
  padding: 6px;
  cursor: pointer;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-group > legend {
  float: left;
  width: 100%;
  margin-bottom: 8px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  font-weight: 600;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--cyan);
  background: rgb(94 230 240 / 0.08);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.choice input {
  margin: 0;
  accent-color: var(--cyan);
}

.choice input:focus-visible {
  outline: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
}

.stat dt {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.stat dd {
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.limits,
.style-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.limit {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.limit__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.limit__value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.limit__bar {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: var(--pill);
  background: var(--bg);
}

.limit__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.15s;
}

.limit__status {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.limit.is-over {
  border-color: rgb(255 138 112 / 0.6);
}

.limit.is-over .limit__fill {
  background: var(--coral-text);
}

.limit.is-over .limit__status {
  color: var(--coral-text);
  font-weight: 700;
}

.style-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 12px 12px 16px;
  border-radius: 14px;
  background: var(--surface);
}

.style-row__name {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.style-row__output {
  min-width: 0;
  font-size: 1.125rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.file-drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 20px;
  border: 1.5px dashed var(--field-border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.file-drop:hover,
.file-drop.is-dragging {
  border-color: var(--cyan);
  background: rgb(94 230 240 / 0.05);
}

.file-drop:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.file-drop__icon {
  width: 28px;
  height: 28px;
  color: var(--cyan);
}

.file-drop__title {
  font-weight: 700;
}

.file-drop__hint {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.file-drop__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.resizer__stage {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #0d2026;
  background-image: linear-gradient(45deg, #132a31 25%, transparent 25%, transparent 75%, #132a31 75%),
    linear-gradient(45deg, #132a31 25%, transparent 25%, transparent 75%, #132a31 75%);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px;
}

.resizer__canvas {
  width: auto;
  height: auto;
  max-height: 420px;
  border-radius: 6px;
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.7);
}

.resizer__info {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.site-footer {
  padding-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
}

.site-footer__top {
  display: grid;
  gap: 40px;
}

@media (min-width: 1040px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 3fr);
    gap: 64px;
  }
}

.site-footer__logo {
  display: inline-block;
  border-radius: 8px;
}

.site-footer__logo img {
  width: 150px;
}

.site-footer__blurb {
  max-width: 36ch;
  margin: 16px 0 24px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 32px 24px;
}

.site-footer__heading {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__col ul,
.site-footer__legal {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__col ul {
  display: grid;
  gap: 4px;
}

.site-footer__col a,
.site-footer__legal a {
  display: inline-block;
  padding: 3px 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-footer__col a:hover,
.site-footer__legal a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 24px 32px;
  border-top: 1px solid var(--line);
  color: var(--text-subtle);
  font-size: 0.875rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer__legal a {
  font-size: 0.875rem;
}

/* ------------------------------------------------------------ motion */

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

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