/* SH2 - editorial utilities site */

:root {
  --accent: #2F8A5C;
  --accent-deep: #1F6B45;
  --accent-soft: #E8F3EC;
  --accent-tint: #F4F9F5;

  --ink: #0E1411;
  --ink-2: #2A332E;
  --ink-3: #5A6660;
  --ink-4: #8A938E;
  --line: #E4E2DA;
  --line-2: #EFEDE5;

  --bg: #FAF8F2;
  --bg-card: #FFFFFF;
  --bg-tint: #F4F2EA;

  --warn: #C8632A;
  --info: #2F6FB8;

  --rainbow: linear-gradient(90deg, #E55D3C 0%, #E89A2E 18%, #F2C544 36%, #2F8A5C 56%, #2F6FB8 76%, #7A4DB8 100%);

  --serif: "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  --shadow-card: 0 1px 0 rgba(14,20,17,0.04), 0 8px 24px -16px rgba(14,20,17,0.12);
  --shadow-pop: 0 24px 48px -24px rgba(14,20,17,0.18);
}

[data-theme="dark"] {
  --ink: #F2EFE4;
  --ink-2: #DDD7C6;
  --ink-3: #A8A395;
  --ink-4: #6E6A5F;
  --line: #2A2D26;
  --line-2: #1F221C;

  --bg: #0E110D;
  --bg-card: #151914;
  --bg-tint: #1A1E18;

  --accent-soft: #14241B;
  --accent-tint: #11181400;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

.rainbow-bar {
  height: 3px;
  width: 100%;
  background: var(--rainbow);
  position: sticky;
  top: 0;
  z-index: 60;
}

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 3px;
  z-index: 55;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}
[data-theme="dark"] .brand-logo {
  filter: brightness(1.15);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 8px;
}
.nav-links > * {
  display: flex;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-family: var(--sans);
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.has-menu::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  opacity: 0.6;
}
.nav-spacer { flex: 1; }
.nav-mode {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3);
  cursor: pointer; padding: 6px 10px; border-radius: 999px;
  background: transparent; border: none; font-family: inherit;
}
.nav-mode:hover { background: var(--bg-tint); color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-tint); }
.btn-ink {
  background: var(--ink);
  color: var(--bg);
}
.btn-ink:hover { background: var(--ink-2); }

/* Dropdown */
.menu-wrap { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.menu-item {
  display: flex; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
}
.menu-item:hover { background: var(--bg-tint); }
.menu-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.menu-title { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.menu-sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }

/* ---------- HERO ---------- */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 32px 56px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-3);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 480px;
  margin: 0 0 36px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-cta-meta {
  font-size: 13px;
  color: var(--ink-4);
  display: flex; align-items: center; gap: 6px;
}
.hero-cta-meta::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Hero card (URL shortener live demo) */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}

/* Hero tabs */
.hero-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-tint);
  border-radius: 12px;
  margin-bottom: 22px;
}
.hero-tab {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.hero-tab.active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Informative tile (no demo) */
.info-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  transition: border-color .15s ease, transform .15s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.info-tile:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.info-tile .tool-num { margin-bottom: 4px; }
.info-tile h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 8px 0 0;
}
.info-tile h3 em { font-style: italic; color: var(--accent); }
.info-tile p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.info-tile .tile-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-tile .tile-points li {
  font-size: 12.5px;
  color: var(--ink-2);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.info-tile .tile-points li::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.info-tile .tile-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
}
.hero-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 22px;
}
.hero-card-title {
  display: flex; align-items: center; gap: 12px;
}
.tile-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.hero-card h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); font-family: var(--sans); }
.hero-card .tile-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

.tag {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--ink-3);
  font-weight: 500;
  border: 1px solid var(--line);
}
.tag.pos { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }

.field-label {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.input-row {
  display: flex;
  gap: 8px;
}
.input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input::placeholder { color: var(--ink-4); }

.fineprint {
  font-size: 12.5px;
  color: var(--ink-4);
  line-height: 1.5;
  margin-top: 16px;
}

/* Result chip (after shortening) */
.result-chip {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--accent-tint);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  animation: fadeUp .25s ease;
}
.result-chip code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent-deep);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.copy-btn:hover { background: var(--accent); color: #fff; }
.copy-btn.copied { background: var(--accent); color: #fff; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- TOOLS GRID (4-column tabs/grid) ---------- */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 32px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 32px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 700px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-meta {
  font-size: 14px;
  color: var(--ink-3);
  text-align: right;
  flex-shrink: 0;
  max-width: 280px;
  line-height: 1.5;
}

.info-tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) {
  .info-tiles-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .info-tiles-grid { grid-template-columns: 1fr; }
}

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

.tool-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  transition: border-color .15s ease, transform .15s ease;
}
.tool-tile:hover { border-color: var(--ink-3); }

.tool-tile-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.tool-tile h3 {
  margin: 12px 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.tool-tile p.tile-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0 0 20px;
}

.tool-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

.tool-tile .demo {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* QR canvas styles */
.qr-canvas {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-tint);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  position: relative;
}
.qr-canvas svg { width: 100%; height: 100%; }
.qr-canvas .qr-placeholder {
  font-size: 12px;
  color: var(--ink-4);
  font-family: var(--mono);
}

/* File transfer demo container (hero card) */
.ft-demo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.ft-demo .dropzone {
  margin: 0;
}
.ft-demo .field-label {
  margin-bottom: 2px;
}
.ft-demo .btn-primary {
  margin-top: 4px;
}
.ft-demo .fineprint {
  margin-top: 4px;
}
.ft-demo .input {
  flex: none;
  width: 100%;
  box-sizing: border-box;
}
.ft-limit {
  display: block;
  font-size: 11.5px;
  color: var(--ink-4);
  margin-top: 2px;
}

/* File transfer drop zone */
.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--bg-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.dropzone:hover, .dropzone.over {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.dropzone strong { color: var(--ink); font-weight: 600; }

.file-list {
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--mono);
}
.file-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px;
  background: var(--bg-tint);
  border-radius: 6px;
}
.file-row .progress {
  width: 50px; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden;
}
.file-row .progress > span { display: block; height: 100%; background: var(--accent); transition: width .2s; }

/* Forms preview */
.form-preview {
  background: var(--bg-tint);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-line {
  display: flex; flex-direction: column; gap: 4px;
}
.form-line label {
  font-size: 10.5px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.form-line .placeholder {
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-4);
  padding: 6px 10px;
  display: flex; align-items: center;
}
.form-line .radio-row {
  display: flex; gap: 8px;
}
.form-line .pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--ink-3);
}
.form-line .pill.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- BAND / utility statement ---------- */
.band {
  background: #0E1411;
  color: #F2EFE4;
  padding: 80px 0;
  margin: 80px 0 0;
}
[data-theme="dark"] .band {
  background: #111714;
}
.band-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
}
.band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.band h2 em { font-style: italic; color: var(--accent); }
.band-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.band-list li {
  display: flex; gap: 14px; align-items: baseline;
  font-size: 15px;
  color: rgba(242, 239, 228, 0.75);
  border-top: 1px solid rgba(242, 239, 228, 0.12);
  padding-top: 14px;
}
.band-list .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
  width: 32px;
}

/* ---------- USE CASES STRIP ---------- */
.usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.usecase {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.usecase .ucnum {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-4); margin-bottom: 12px;
  letter-spacing: 0.06em;
}
.usecase h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.usecase p { font-size: 14px; color: var(--ink-3); line-height: 1.55; margin: 0; }

/* ---------- TRUST / NUMBERS STRIP ---------- */
.numbers-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.numbers-strip .stat {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.numbers-strip .stat:last-child { border-right: none; }
.stat .big {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.stat .big sup { font-size: 18px; color: var(--accent); }
.stat .lbl {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 8px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-tint);
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h5 {
  font-size: 13px; font-weight: 600;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.footer ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer ul a {
  font-size: 14px; color: var(--ink-3);
}
.footer ul a:hover { color: var(--accent); }
.footer-blurb {
  font-size: 13.5px; color: var(--ink-3);
  line-height: 1.55; margin: 16px 0 0;
  max-width: 280px;
}
.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-4);
}
.footer-bottom .right { display: flex; gap: 24px; }

/* ---------- LIST view of tool tiles ---------- */
.tools-grid.list-view {
  grid-template-columns: 1fr;
}
.tools-grid.list-view .tool-tile {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  min-height: auto;
  padding: 32px;
}

/* ---------- Pricing ---------- */
.pricing-hero { text-align: center; padding: 80px 32px 32px; }
.pricing-hero .eyebrow { justify-content: center; }
.pricing-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.pricing-hero h1 em { font-style: italic; color: var(--accent); }
.pricing-hero p { color: var(--ink-3); font-size: 17px; max-width: 520px; margin: 0 auto; line-height: 1.5; }

.billing-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-tint);
  border-radius: 999px;
  margin-top: 32px;
  border: 1px solid var(--line);
}
.billing-btn {
  border: none;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--ink-3);
  transition: background .12s, color .12s, box-shadow .12s;
}
.billing-btn.active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.pricing-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 32px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column;
}
.price-card.feature { border-color: var(--ink); position: relative; }
.price-card.feature::before {
  content: "Most popular";
  position: absolute; top: -12px; left: 24px;
  background: var(--ink); color: var(--bg);
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.price-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.price-card .desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; margin: 0 0 24px; min-height: 60px; }
.price {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 8px;
}
.price .per { font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.price-features {
  list-style: none; padding: 24px 0 0; margin: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.price-features li {
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex; gap: 8px; align-items: flex-start;
  line-height: 1.45;
}
.price-features li::before {
  content: "";
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8l3.5 3.5L13 5' fill='none' stroke='%232F8A5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
}
.price-features li.muted { color: var(--ink-4); }
.price-features li.muted::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h10' fill='none' stroke='%238A938E' stroke-width='2' stroke-linecap='round'/></svg>");
}
.price-card .btn { width: 100%; justify-content: center; margin-top: 24px; }

/* Comparison table */
.compare-section { padding-top: 96px; }
.compare-wrap {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 32px;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 400;
  vertical-align: top;
}
.compare-table thead th {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
  background: var(--bg-tint);
  border-bottom: 2px solid var(--line);
}
.compare-table tbody th {
  font-weight: 500;
  color: var(--ink);
  width: 22%;
  white-space: nowrap;
}
.compare-table .cat-row th {
  font-weight: 600;
  font-size: 12px;
  color: var(--accent);
  background: var(--bg-tint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 18px 10px;
}
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .featured-col {
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  color: var(--ink);
  font-weight: 500;
}
.compare-table thead th.featured-col {
  background: color-mix(in oklab, var(--accent) 10%, var(--bg-tint));
}
.compare-table .no { color: var(--ink-4); }

@media (max-width: 768px) {
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
  .compare-table tbody th { white-space: normal; }
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  cursor: pointer;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.faq-toggle {
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 18px;
  flex-shrink: 0;
}
.faq-answer {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.55;
  max-width: 560px;
  display: none;
}
.faq-answer.open { display: block; }

/* ---------- Product page ---------- */
.product-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.product-hero h1 em { font-style: italic; color: var(--accent); }
.product-hero p.lede { font-size: 19px; color: var(--ink-3); line-height: 1.5; margin: 0 0 32px; max-width: 520px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 56px 0;
}
.feature {
  display: flex; flex-direction: column; gap: 12px;
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 8px;
}
.feature h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
.feature p { font-size: 14px; color: var(--ink-3); line-height: 1.55; margin: 0; }

/* ---------- Generic content pages ---------- */
.page-hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 32px 48px;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero p.lede { font-size: 19px; color: var(--ink-3); line-height: 1.5; margin: 0; max-width: 640px; }

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 32px 80px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.page-content h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -0.02em; margin: 48px 0 16px; }
.page-content h3 { font-size: 18px; margin: 32px 0 8px; font-weight: 600; }
.page-content p { margin: 0 0 18px; }
.page-content ul { padding-left: 20px; margin: 0 0 18px; }
.page-content ul li { margin-bottom: 8px; }
.page-content code { font-family: var(--mono); font-size: 14px; background: var(--bg-tint); padding: 2px 6px; border-radius: 4px; }
.page-content pre { background: var(--ink); color: var(--bg); padding: 20px 24px; border-radius: 12px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.page-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; margin: 24px 0; color: var(--ink-3); font-style: italic; font-family: var(--serif); font-size: 22px; line-height: 1.4; }

/* Blog list */
.blog-list {
  max-width: 880px; margin: 0 auto;
  padding: 16px 32px 80px;
  display: flex; flex-direction: column;
}
.blog-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
  cursor: pointer;
  transition: padding-left .15s ease;
}
.blog-row:hover { padding-left: 8px; }
.blog-row .date { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }
.blog-row h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -0.01em; margin: 0 0 6px; line-height: 1.15; }
.blog-row p { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.5; }
.blog-row .tag { align-self: start; }

/* Careers */
.role-list {
  max-width: 880px; margin: 0 auto;
  padding: 16px 32px 80px;
}
.role-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.role-row h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.role-row .meta { font-size: 13px; color: var(--ink-3); }
.role-row .arrow { color: var(--accent); font-family: var(--mono); }

/* Status */
.status-grid {
  max-width: 880px; margin: 0 auto;
  padding: 16px 32px 80px;
}
.status-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 10px; }
.status-dot.warn { background: var(--warn); }

/* API endpoints table */
.api-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.5fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.method-get { font-family: var(--mono); font-size: 11px; font-weight: 600; color: #2F6FB8; letter-spacing: 0.04em; }
.method-post { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; }
.method-delete { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--warn); letter-spacing: 0.04em; }
.api-path { font-family: var(--mono); font-size: 13px; }
.api-desc { color: var(--ink-3); font-size: 14px; }

/* Demo panel content */
.tab-panel-content { display: block; }
.tab-panel-content.hidden { display: none; }

/* responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 56px 24px 32px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .band-inner { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .numbers-strip { grid-template-columns: repeat(2, 1fr); }
  .numbers-strip .stat:nth-child(2) { border-right: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .tools-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-meta { text-align: left; }
  .usecases { grid-template-columns: 1fr; }
  .blog-row { grid-template-columns: 1fr; gap: 8px; }
  .role-row { grid-template-columns: 1fr auto; }
  .api-row { grid-template-columns: 60px 1fr; }
  .api-desc { grid-column: 1 / -1; }
}

/* ---------- Demo area (product pages) ---------- */
.demo-area {
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.demo-area .input-row input,
.demo-area input[type="text"],
.demo-area input[type="url"],
.demo-area input[type="email"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
  width: 100%;
  box-sizing: border-box;
}
.demo-area .input-row input:focus,
.demo-area input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.demo-area input::placeholder { color: var(--ink-4); }
.demo-area .input-row { display: flex; gap: 8px; align-items: stretch; }
.demo-area .input-row input { flex: 1; }

.err-msg {
  font-size: 13px;
  color: var(--warn);
  margin-top: 6px;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 13px;
}
.result-row code { font-family: var(--mono); flex: 1; word-break: break-all; }
.btn-sm { font-size: 12px !important; padding: 6px 10px !important; }

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.drop-zone:hover, .drop-zone.over {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.file-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  gap: 4px;
}
.progress {
  background: var(--line);
  border-radius: 4px;
  height: 4px;
  flex: 1;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width .2s;
}

/* Demo form preview */
.demo-form-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.demo-form-field input,
.demo-form-field select,
.demo-form-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
  opacity: 0.7;
}
.demo-form-field textarea { resize: none; }

/* Storage demo */
.storage-demo {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.storage-demo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}
.storage-demo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
  transition: background .1s;
}
.storage-demo-row:last-child { border-bottom: none; }
.storage-demo-row:hover { background: var(--accent-soft); }
.storage-demo-meta { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-4); }

/* API table */
.api-table { margin: 24px 0; }

/* Status ok/uptime */
.status-ok { color: var(--accent); font-size: 13px; font-weight: 500; }
.status-uptime { color: var(--ink-3); font-family: var(--mono); font-size: 13px; }

/* hero-card-head / hero-card-title (product pages) */
.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hero-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-card-title h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0; }
.tile-sub { font-size: 12px; color: var(--ink-4); }
