:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f7;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #5f6368;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --brand: #0d9488;
  --brand-strong: #0f766e;
  --brand-soft: #ccfbf1;
  --brand-ink: #134e4a;
  --on-brand: #ffffff;
  --mark-1: #f3d4e0;
  --mark-2: #d4efda;
  --mark-3: #dcd6fd;
  --pastel-1: #f4b4ca;
  --pastel-2: #a6dcb6;
  --pastel-3: #c2b6fa;
  --pastel-4: #f9c896;
  --pastel-5: #a3d0f4;
  --pastel-6: #eed98a;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 12px 32px -12px rgb(0 0 0 / 0.18);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f0f;
    --bg-alt: #121616;
    --surface: #161b1b;
    --text: #f4f4f5;
    --muted: #a1a8a8;
    --faint: #6b7272;
    --line: #262c2c;
    --brand: #14b8a6;
    --brand-strong: #2dd4bf;
    --brand-soft: #0f2e2b;
    --brand-ink: #99f6e4;
    --on-brand: #04201e;
    --mark-1: #5a2f40;
    --mark-2: #24503a;
    --mark-3: #3d3670;
    --pastel-1: #e8a3bc;
    --pastel-2: #94cfa6;
    --pastel-3: #b1a5f0;
    --pastel-4: #ecb886;
    --pastel-5: #92c1e8;
    --pastel-6: #dcc87a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

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

html { scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.05rem; }
p { margin: 0; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; fill: currentColor; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; font-size: 0.94rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.lang { font-size: 0.9rem; color: var(--muted); }
.lang:hover { color: var(--text); }

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

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 7px 14px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--faint); }
.btn-block { width: 100%; }
.btn-disabled, .btn-disabled:hover { background: var(--bg-alt); color: var(--muted); border-color: var(--line); cursor: default; transform: none; }

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

.hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 600; font-size: 0.92rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.035em; }
.lead { margin-top: 20px; font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 14px; font-size: 0.86rem; color: var(--faint); }
.fine a[data-os] { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
/* Above the buttons: what to do, then the release (version and date) in a
   chip; each button carries only its system and download size. */
.dl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 28px; }
.dl-title { font-weight: 700; font-size: 0.98rem; color: var(--text); }
.release-line {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 11px 3px 9px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt);
  font-size: 0.82rem; color: var(--muted); font-weight: 500;
}
.release-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.dl-head + .cta-row { margin-top: 12px; }
/* The downloads fill the text column; the visitor's own system (moved
   first by the page) gets the widest button. On a phone it takes the
   whole first row and the other two share the second. */
#downloads { display: grid; grid-template-columns: 1.5fr 1fr 1fr; max-width: 38rem; }
@media (max-width: 520px) {
  #downloads { grid-template-columns: 1fr 1fr; }
  #downloads .btn-dl:first-child { grid-column: 1 / -1; }
}
.btn-dl { padding-top: 9px; padding-bottom: 9px; gap: 10px; }
.dl-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: left; }
.dl-meta { font-size: 0.76rem; font-weight: 500; opacity: 0.85; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl-meta:empty { display: none; }
.btn-ghost .dl-meta { color: var(--muted); opacity: 1; }
.center { text-align: center; }

@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* The app, drawn rather than screenshotted. */
.mock { position: relative; padding: 0 0 112px 0; }
.mock-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.mock-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px; background: var(--bg-alt); }
.mock-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 168px; }
.mock-label { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.mock-id { font: 700 1.55rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; margin-top: 8px; }
.mock-status { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.mock-status i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.mock-field-label { font-size: 0.7rem; color: var(--faint); margin-top: 6px; }
.mock-field { border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; font: 0.9rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.mock-button { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: var(--on-brand); border-radius: 7px; padding: 7px; font-size: 0.82rem; font-weight: 600; }
.mock-request {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 250px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-request-head { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.mock-request-head .icon { color: var(--brand); width: 1.3em; height: 1.3em; }
.mock-request-id { font: 600 1.05rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.mock-fp { font: 0.72rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--faint); }
.mock-request-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; font-size: 0.78rem; font-weight: 600; }
.mock-reject { padding: 5px 10px; border-radius: 6px; background: var(--bg-alt); color: var(--muted); }
.mock-accept { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 6px; background: var(--brand); color: var(--on-brand); }

@media (max-width: 520px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-card { min-height: 0; }
  .mock-request { position: relative; right: auto; width: auto; margin: -24px 12px 0; }
  .mock { padding-bottom: 0; }
}

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

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section h2 { text-align: center; }
.section-lead { text-align: center; color: var(--muted); margin: 14px auto 0; max-width: 38em; }

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
/* One more box per step: progress you can see without reading a number. */
.step-marks { display: flex; gap: 6px; margin-bottom: 18px; }
.step-marks i { width: 22px; height: 22px; border-radius: 6px; }
.step-marks .c1 { background: var(--mark-1); }
.step-marks .c2 { background: var(--mark-2); }
.step-marks .c3 { background: var(--mark-3); }
.section-video { padding-top: 0; }
.promo { position: relative; max-width: 960px; margin: 36px auto 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 24px 60px -32px rgba(15, 23, 42, .35); }
.promo-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #fff; }
.promo-play { display: none; }
.js .promo-video { cursor: pointer; }
.js .promo.is-playing .promo-video { cursor: auto; }
.js .promo::after { content: ""; position: absolute; inset: 0; background: rgba(15, 23, 42, .3); pointer-events: none; transition: opacity .3s ease; }
.js .promo.is-playing::after { opacity: 0; }
.js .promo-play {
  display: grid; place-items: center; position: absolute; z-index: 1; left: 50%; top: 50%;
  width: 88px; height: 88px; margin: -44px 0 0 -44px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; color: #0d9488; cursor: pointer; box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .5);
  transition: transform .2s ease, background-color .2s ease, opacity .3s ease;
}
.promo-play svg { width: 40px; height: 40px; margin-left: 4px; fill: currentColor; }
.promo-play:hover { transform: scale(1.08); color: #0f766e; }
.promo-play:focus-visible { outline: 3px solid #0d9488; outline-offset: 4px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .85); }
.promo.is-playing .promo-play { opacity: 0; transform: scale(.85); pointer-events: none; }
@media (max-width: 520px) {
  .js .promo-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .promo-play svg { width: 32px; height: 32px; margin-left: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .promo::after, .js .promo-play { transition: none; }
  .promo-play:hover { transform: none; }
}
.steps p, .features p { color: var(--muted); margin-top: 8px; font-size: 0.96rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.features article {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
/* Each card gets its own pastel top edge that fades out to the right. */
.features article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(to right, var(--edge) 0%, var(--edge) 18%, transparent 92%);
}
.features article:nth-child(1) { --edge: var(--pastel-1); }
.features article:nth-child(2) { --edge: var(--pastel-2); }
.features article:nth-child(3) { --edge: var(--pastel-3); }
.features article:nth-child(4) { --edge: var(--pastel-4); }
.features article:nth-child(5) { --edge: var(--pastel-5); }
.features article:nth-child(6) { --edge: var(--pastel-6); }

@media (max-width: 900px) {
  .steps, .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .steps { padding: 24px 20px; gap: 28px; }
  .steps, .features { grid-template-columns: 1fr; }
}

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

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
}
.plan-featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.badge {
  position: absolute;
  top: -11px;
  inset-inline-start: 22px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.plan-for { color: var(--muted); font-size: 0.88rem; margin-top: 6px; min-height: 2.8em; }
.price { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.price span { font-size: 2.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; margin-inline-end: 2px; }
.plan ul, .promises ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
.plan li, .promises li { display: flex; gap: 9px; align-items: flex-start; }
.plan li .icon, .promises li .icon { color: var(--brand); margin-top: 0.2em; }
.plan li.muted { color: var(--muted); }
.plan li.muted .icon { color: var(--faint); }
.plan .btn { margin-top: auto; }

.below-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.enterprise, .promises { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.enterprise { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.enterprise p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }
.enterprise .btn { align-self: flex-start; }
.promises ul { margin-bottom: 0; }

@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .below-plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .plan-for { min-height: 0; }
}

/* ---------------------------------------------------------------- faq */

#faq h2 { margin-bottom: 40px; }
/* Two separate columns: opening a question on one side never stretches the
   other. Closed rows share one height so the dividers line up across. */
.faq-cols { display: flex; gap: 48px; align-items: flex-start; }
.faq-col { flex: 1 1 0; min-width: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 84px;
  padding: 14px 4px 14px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: start;
  cursor: pointer;
}
.faq-q:hover { color: var(--brand-strong); }
.faq-q:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 6px 0 auto;
  height: 2px;
  border-radius: 1px;
  background: var(--faint);
  transition: transform 0.25s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::after { transform: rotate(0deg); }
.faq-a > div { overflow: hidden; }
.faq-a p { color: var(--muted); padding: 0 8px 22px 0; }
.js .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.25s ease, visibility 0.25s;
}
.js .faq-item.open .faq-a { grid-template-rows: 1fr; visibility: visible; }

@media (max-width: 800px) {
  .faq-cols { flex-direction: column; gap: 0; }
  .faq-col + .faq-col { border-top: 0; }
  .faq-q { min-height: 0; padding-block: 18px; }
}

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

.nav-links a[aria-current="page"] { color: var(--text); }

.blog { padding: 56px 0 88px; }
.blog-head h1, .post h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); letter-spacing: -0.03em; }
.blog-head .lead { margin-top: 14px; }

.back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.back:hover { color: var(--text); }
.post-meta { margin-top: 14px; font-size: 0.88rem; color: var(--faint); }

.prose { margin-top: 36px; font-size: 1.04rem; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--brand-strong); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-alt); padding: 1px 5px; border-radius: 5px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.5; }
.prose th, .prose td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 120px; }
.prose th { background: var(--bg-alt); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

@media (max-width: 600px) {
  .blog { padding: 36px 0 64px; }
  .prose { font-size: 1rem; }
}

/* ---------------------------------------------------------------- language picker */

.lang-picker { position: relative; }
.lang-picker summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary:hover, .lang-picker[open] summary { color: var(--text); background: var(--bg-alt); }
.lang-picker summary:focus-visible, .lang-picker a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lang-picker .lang-code { display: none; }
.lang-picker ul {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 20;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lang-picker-footer ul { top: auto; bottom: calc(100% + 6px); inset-inline-end: auto; inset-inline-start: 0; }
.lang-picker li a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 0.93rem; color: var(--text); }
.lang-picker li a:hover { background: var(--bg-alt); }
.lang-picker li a[aria-current] { color: var(--brand); font-weight: 600; }

@media (max-width: 520px) {
  .nav .lang-picker .lang-name { display: none; }
  .nav .lang-picker .lang-code { display: inline; }
}

/* ---------------------------------------------------------------- blog index */

.blog-hero { max-width: 46em; }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.035em; }
.blog-hero .lead { margin-top: 14px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; margin-top: 44px; align-items: start; }
.blog-main { display: grid; gap: 28px; min-width: 0; }

.cat-alternatives { --cat: var(--brand); --cat-bg: color-mix(in srgb, var(--brand) 13%, var(--surface)); }
.cat-comparison { --cat: #7c6cf0; --cat-bg: color-mix(in srgb, #7c6cf0 13%, var(--surface)); }
.cat-guide { --cat: #e08a2c; --cat-bg: color-mix(in srgb, #e08a2c 13%, var(--surface)); }

.post-visual { overflow: hidden; background: var(--cat-bg); }
.pv { display: block; width: 100%; height: 100%; }
.pv-bg { fill: var(--cat-bg); }
.pv-glow { fill: var(--cat); opacity: 0.12; }
.pv-screen { fill: var(--surface); stroke: var(--cat); stroke-width: 3; }
.pv-stand { fill: var(--cat); opacity: 0.55; }
.pv-ink { fill: var(--cat); opacity: 0.75; }
.pv-soft { fill: var(--cat); opacity: 0.35; }
.pv-line { stroke: var(--cat); stroke-width: 3; stroke-dasharray: 5 7; stroke-linecap: round; fill: none; transition: stroke-dashoffset 1.2s linear; }
.pv-dot { fill: var(--cat); }
a:hover .pv-line { stroke-dashoffset: -48; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 600; color: var(--cat); background: var(--cat-bg); }
.post-featured, .post-tile {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.post-featured:hover, .post-tile:hover { border-color: var(--cat); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-featured:focus-visible, .post-tile:focus-visible, .rail-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.post-featured { grid-template-columns: 1.05fr 1fr; min-height: 300px; }
.post-featured .post-visual { min-height: 220px; }
.post-featured-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px; }
.post-featured h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -0.025em; }
.post-featured p { color: var(--muted); }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 600; color: var(--brand); }

.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-tile { grid-template-rows: auto 1fr; }
.post-tile .post-visual { aspect-ratio: 16 / 7; }
.post-tile-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; }
.post-tile h3 { font-size: 1.08rem; line-height: 1.3; }
.post-tile p { color: var(--muted); font-size: 0.93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-index .post-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 0.84rem; color: var(--faint); }

.blog-rail { position: sticky; top: 92px; display: grid; gap: 16px; }
.rail-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.rail-card h2 { font-size: 1rem; }
.rail-card p { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }
.rail-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.92rem; font-weight: 600; color: var(--brand); }
.rail-try { background: radial-gradient(260px 160px at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), var(--surface); }
.rail-try .btn { margin-top: 16px; }

@media (max-width: 1000px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-rail { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .post-featured { grid-template-columns: minmax(0, 1fr); }
  .post-featured .post-visual { min-height: 0; aspect-ratio: 16 / 8; }
  .post-featured-text { padding: 22px; }
  .post-grid, .blog-rail { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- about */

.about { display: grid; gap: 88px; }
.about h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.025em; }
.about h3 { font-size: 1.05rem; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 8px; }
.about-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -0.035em; line-height: 1.08; }
.about-hero .lead { margin-top: 18px; max-width: 32em; }
.about-hero-visual { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--cat-bg); box-shadow: var(--shadow); }
.about-hero-visual .pv { height: 100%; }

.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-top: -32px; }
.about-stat { display: flex; flex-direction: column-reverse; gap: 6px; padding: 28px 24px; }
.about-stat + .about-stat { border-inline-start: 1px solid var(--line); }
.about-stat strong { font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1; letter-spacing: -0.03em; color: var(--brand); }
.about-stat span { font-size: 0.9rem; color: var(--muted); }

.about-story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-story p { margin-top: 16px; color: var(--muted); font-size: 1.04rem; max-width: 38em; }
.about-timeline { list-style: none; margin: 0; padding: 4px 0 0; position: relative; display: grid; gap: 36px; }
.about-timeline::before { content: ""; position: absolute; inset-inline-start: 7px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(to bottom, var(--brand) 0 6px, transparent 6px 12px); }
.about-timeline li { position: relative; padding-inline-start: 36px; }
.about-timeline li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.about-timeline time { font-size: 0.86rem; font-weight: 700; color: var(--brand); letter-spacing: 0.02em; }
.about-timeline h3 { margin-top: 2px; font-size: 1.2rem; }
.about-timeline p { margin-top: 6px; color: var(--muted); font-size: 0.96rem; }

.about-what .lead { margin-top: 12px; }
.about-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.about-tile, .about-card { position: relative; overflow: hidden; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.about-tile::before, .about-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(to right, var(--edge) 0%, var(--edge) 18%, transparent 92%); }
.about-tile:nth-child(1) { --edge: var(--pastel-5); }
.about-tile:nth-child(2) { --edge: var(--pastel-2); }
.about-tile:nth-child(3) { --edge: var(--pastel-3); }
.about-card:nth-child(1) { --edge: var(--pastel-1); }
.about-card:nth-child(2) { --edge: var(--pastel-4); }
.about-card:nth-child(3) { --edge: var(--pastel-6); }
.about-card:nth-child(4) { --edge: var(--pastel-2); }
.about-tile p, .about-card p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.about-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }

.about-company {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%), var(--surface);
  box-shadow: var(--shadow);
}
.about-label { margin-top: 18px; font-size: 0.8rem; font-weight: 600; color: var(--faint); }
.about-company address { margin-top: 6px; font-style: normal; line-height: 1.6; }
.about-company p { margin-top: 14px; color: var(--muted); }
.about-company a:not(.btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.about-contact .about-label { margin-top: 0; }
.about-mail { display: inline-block; margin-top: 6px; font-size: 1.3rem; font-weight: 700; overflow-wrap: anywhere; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

@media (max-width: 900px) {
  .about { gap: 64px; }
  .about-hero, .about-story, .about-company { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -16px; }
  .about-stat:nth-child(3) { border-inline-start: 0; }
  .about-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about-tiles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .about-cards { grid-template-columns: minmax(0, 1fr); }
  .about-company { padding: 24px 20px; }
  .about-stat { padding: 20px 16px; }
}

/* ---------------------------------------------------------------- contact */

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  gap: 64px;
  align-items: start;
}
.contact-page .post .prose { margin-top: 28px; }
.contact-card {
  position: sticky;
  top: 92px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}
.contact-card h2 { font-size: 1.45rem; }
.contact-lead { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
#contact-form { display: grid; gap: 16px; margin-top: 24px; }
.contact-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#contact-form label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 600; }
#contact-form input, #contact-form select, #contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#contact-form textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.contact-select { position: relative; display: block; }
#contact-form select { appearance: none; padding-inline-end: 40px; cursor: pointer; }
.contact-select .icon { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status:empty { display: none; }
.contact-status { font-size: 0.9rem; color: var(--muted); }
.contact-status.error { color: #dc2626; }
#contact-form .btn { margin-top: 4px; cursor: pointer; }
#contact-form .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.contact-done { margin-top: 24px; padding: 24px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.contact-done:focus { outline: none; }
.contact-done .icon { width: 32px; height: 32px; }
.contact-done h2 { margin-top: 10px; font-size: 1.15rem; }
.contact-done p { margin-top: 6px; }

@media (prefers-color-scheme: dark) {
  .contact-status.error { color: #f87171; }
}
@media (max-width: 900px) {
  .contact-page { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-card { position: static; order: -1; }
}
@media (max-width: 520px) {
  .contact-card { padding: 22px 18px; }
  .contact-two { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- account: invite and discount */

.acc-invite {
  background: radial-gradient(420px 200px at 100% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), var(--surface);
}
.acc-invite > p:not(.fine) { margin-top: 8px; color: var(--muted); }
.acc-invite-link { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.acc-invite-link .acc-input { flex: 1 1 220px; min-width: 0; letter-spacing: 0; font-size: 0.9rem; }
.acc-invite .fine { margin-top: 10px; }
.acc-invite-stats { display: flex; gap: 28px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.acc-invite-stats div { display: flex; align-items: baseline; gap: 8px; }
.acc-invite-stats strong { font-size: 1.5rem; color: var(--brand); }
.acc-invite-stats span { font-size: 0.9rem; color: var(--muted); }
.acc-discount, .acc-ref {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.92rem;
  font-weight: 600;
}
.acc-old-price { color: var(--faint); font-weight: 400; font-size: 0.7em; }

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

.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer-about { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-about p { color: var(--muted); font-size: 0.9rem; max-width: 22em; }
.footer-about .lang-picker summary { padding-inline: 0; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col h2 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text); margin-bottom: 4px; }
.footer-col a { font-size: 0.92rem; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-col a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-base p { color: var(--faint); font-size: 0.84rem; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 330px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- wiki and pages */

.doc-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.doc-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.doc-nav a:hover { border-color: var(--brand); }
.doc-nav span { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); margin-bottom: 2px; }
.doc-next { grid-column: 2; text-align: end; }
.doc .prose h2:first-child { margin-top: 0; }

@media (max-width: 600px) {
  .doc-nav { grid-template-columns: 1fr; }
  .doc-next { grid-column: auto; }
}

/* ---------------------------------------------------------------- wiki (docs layout) */

.is-docs .blog { padding-top: 28px; }
.docs {
  width: min(1120px, 100% - 32px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  column-gap: 40px;
  align-items: start;
}
.docs-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.docs-menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.docs-search { position: relative; flex: 1; max-width: 560px; }
.docs-search > .icon { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.docs-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.docs-search input::placeholder { color: var(--faint); }
.docs-search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.docs-results {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: min(420px, 70vh);
  overflow: auto;
}
.docs-results a { display: block; padding: 10px 12px; border-radius: 8px; }
.docs-results strong { display: block; font-size: 0.95rem; }
.docs-results span { display: block; margin-top: 2px; font-size: 0.84rem; color: var(--muted); }
.docs-results li.active a, .docs-results a:hover { background: var(--bg-alt); }
.docs-results .empty { padding: 12px; font-size: 0.9rem; color: var(--muted); }

.docs-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-bottom: 24px; }
.docs-side p { font-size: 0.8rem; font-weight: 600; color: var(--text); margin: 22px 0 6px; }
.docs-side p:first-child { margin-top: 0; }
.docs-side ul { list-style: none; margin: 0; padding: 0; }
.docs-side a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 0.92rem; color: var(--muted); }
.docs-side a:hover { color: var(--text); background: var(--bg-alt); }
.docs-side a[aria-current] { color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }

.docs-main { min-width: 0; }
.docs-main h1 { margin-bottom: 4px; }
.docs-main .prose { margin-top: 24px; }

.docs-toc { position: sticky; top: 84px; font-size: 0.86rem; }
.docs-toc p { font-weight: 600; margin-bottom: 10px; }
.docs-toc ul { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.docs-toc a { display: block; padding: 4px 0 4px 14px; margin-inline-start: -1px; border-inline-start: 1px solid transparent; color: var(--muted); }
.docs-toc .toc-h3 a { padding-inline-start: 26px; }
.docs-toc a:hover { color: var(--text); }
.docs-toc a.active { color: var(--brand); border-inline-start-color: var(--brand); font-weight: 600; }

.docs a:focus-visible, .docs-menu-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 1100px) {
  .docs { grid-template-columns: 200px minmax(0, 1fr); column-gap: 36px; }
  .docs-toc { display: none; }
}
@media (max-width: 800px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-top { flex-wrap: wrap; margin-bottom: 20px; }
  .docs-search { flex: 1 1 100%; max-width: none; order: -1; }
  .docs-menu-btn { display: inline-flex; }
  .docs-side { display: none; position: static; max-height: none; margin-bottom: 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .docs-side.open { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------------------------------------------------------------- account */

/* Layout classes set display; `hidden` must still hide. */
[hidden] { display: none !important; }

.account h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 24px; }
.account h2 { text-align: start; font-size: 1.15rem; margin-bottom: 14px; }
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.acc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.acc-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.2em; }
.acc-link { display: inline-block; margin-top: 12px; font-size: 0.9rem; color: var(--brand); }
.acc-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acc-label { font-size: 0.85rem; color: var(--muted); }
.acc-plan { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.acc-who { text-align: end; font-size: 0.92rem; color: var(--muted); display: flex; flex-direction: column; align-items: flex-end; }
.acc-who .acc-link { margin-top: 4px; }
.acc-subs, .acc-devices { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.acc-sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); }
.acc-sub > span:first-child { font-weight: 600; margin-inline-end: auto; }
.acc-sub .fine { margin: 0; }
.acc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.acc-plan-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.acc-plan-card .price { margin: 0; }
.acc-plan-card .fine { margin: 0 0 6px; }
.acc-plan-wanted { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.acc-checkout h2 { margin: 2px 0 0; }
.acc-checkout .price { margin: 6px 0 2px; }
.acc-checkout .fine { margin: 0 0 14px; }
.acc-checkout .acc-link { display: inline-block; margin-top: 14px; }
.notice { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; background: var(--bg-alt); border: 1px solid var(--line); }
.notice-error { background: color-mix(in srgb, #ef4444 10%, var(--surface)); border-color: color-mix(in srgb, #ef4444 40%, var(--line)); }
.notice-ok { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }


/* Account dashboard: tabs over one panel at a time. */
.acc-wrap { width: min(960px, 100% - 32px); }
.acc-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.acc-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.acc-tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 0.95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.acc-tabs a:hover { color: var(--text); }
.acc-tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }
.acc-bar .acc-who { flex-direction: row; align-items: baseline; gap: 12px; padding-bottom: 10px; }
.acc-bar .acc-who .acc-link { margin: 0; }
.acc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.acc-card-head h2 { margin: 0; }
.acc-team-invite { margin-top: 12px; }
.acc-brand { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.acc-brand > .acc-input { flex: none; }
.acc-brand-row { align-items: center; }
.acc-brand-code { margin: 12px 0 4px; }
.acc-brand-code strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.25rem; letter-spacing: 0.12em; }
.acc-brand-color { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.acc-brand-color input { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.acc-brand-logo { height: 40px; max-width: 160px; object-fit: contain; }
.acc-card > .fine:first-of-type { margin-top: 8px; }
.acc-select { flex: 0 1 auto; width: auto; padding-block: 6px; font-size: 0.9rem; }
.acc-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.acc-status-paid { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.acc-status-open, .acc-status-failed { background: color-mix(in srgb, #ef4444 12%, var(--surface)); border-color: transparent; color: color-mix(in srgb, #b91c1c 80%, var(--text)); }
.acc-status-pending { background: color-mix(in srgb, #f59e0b 14%, var(--surface)); border-color: transparent; color: color-mix(in srgb, #92400e 80%, var(--text)); }

.acc-table-wrap { overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.94rem; }
.acc-table th { text-align: start; font-size: 0.8rem; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.acc-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.acc-table tr:last-child td { border-bottom: 0; }
.acc-table td .fine { margin: 2px 0 0; }
.acc-amount { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.acc-links { display: flex; gap: 12px; flex-wrap: wrap; }
.acc-links .acc-link { margin: 0; }
@media (max-width: 600px) {
  .acc-table thead { display: none; }
  .acc-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .acc-table tr:last-child { border-bottom: 0; }
  .acc-table td { padding: 0; border: 0; }
  .acc-table td:nth-child(2), .acc-table td:nth-child(4) { text-align: end; }
  .acc-table td:nth-child(5) { grid-column: 1 / -1; }
  .acc-tabs a { padding: 10px 10px; font-size: 0.9rem; }
}

.acc-conn-device { margin-top: 18px; }
.acc-conn-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.acc-conn-head h3 { margin: 0; font-size: 1rem; }
.acc-conn-head .fine { margin: 0; margin-inline-end: auto; }
.acc-conns { list-style: none; padding: 0; margin: 8px 0 0; }
.acc-conn { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.acc-conn .fine { margin: 0; }
.acc-conn-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-conn-who { font-weight: 600; overflow-wrap: anywhere; }
.acc-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.acc-conn-dur { margin-inline-start: auto; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.9rem; }
.acc-dir-incoming { background: color-mix(in srgb, #6366f1 12%, var(--surface)); border-color: transparent; color: color-mix(in srgb, #4338ca 75%, var(--text)); }
.acc-dir-outgoing { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.acc-perms { display: flex; gap: 6px; flex-wrap: wrap; }
.acc-chip { font-size: 0.78rem; padding: 2px 8px; border-radius: 6px; background: var(--bg-alt); color: var(--muted); }
.acc-files summary { cursor: pointer; font-size: 0.88rem; color: var(--brand); width: fit-content; }
.acc-files ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.acc-files li { display: flex; gap: 8px; align-items: baseline; font-size: 0.88rem; }
.acc-files li .fine { margin: 0; white-space: nowrap; }
.acc-file-dir { color: var(--muted); width: 1em; text-align: center; }
.acc-file-name { overflow-wrap: anywhere; }
.acc-privacy { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }

.consent {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin-inline: auto;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.consent a { color: var(--brand-strong); text-decoration: underline; }
.consent-actions { display: flex; flex-shrink: 0; gap: 8px; }
@media (max-width: 600px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent-actions .btn { flex: 1; }
}
.pricing-page .section { padding-top: 0; }
.pricing-page .section h1 { text-align: center; font-size: clamp(1.9rem, 4.2vw, 2.7rem); letter-spacing: -0.03em; }
.post-visual > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-cover { margin: 24px 0 0; }
.post-cover img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
