:root {
  --ink: #18202f;
  --muted: #647084;
  --paper: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #f1f7ff;
  --surface-mint: #ecfbf7;
  --line: #d9e3ef;
  --line-strong: #b9c9dc;
  --blue: #2f6fed;
  --blue-dark: #2154c7;
  --teal: #10a99a;
  --teal-dark: #087f76;
  --coral: #ec6a4e;
  --violet: #7c6ee6;
  --gold: #f0b429;
  --shadow: 0 18px 50px rgba(35, 63, 111, 0.14);
  --shadow-hover: 0 26px 70px rgba(35, 63, 111, 0.2);
  --radius: 8px;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --ink: #f5f5f5;
  --muted: #a8a8a8;
  --paper: #000000;
  --surface: #070707;
  --surface-soft: #101010;
  --surface-mint: #0c1513;
  --line: #262626;
  --line-strong: #3a3a3a;
  --blue: #f5f5f5;
  --blue-dark: #ffffff;
  --teal: #34d8bd;
  --teal-dark: #6df2dc;
  --coral: #ff6f57;
  --violet: #d6d6d6;
  --gold: #f2c94c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.56);
  --shadow-hover: 0 26px 70px rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 12%, rgba(47, 111, 237, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(16, 169, 154, 0.12), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

html[data-theme="dark"] body {
  background: #000;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  flex: 0 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: 5.1rem;
  font-weight: 820;
  line-height: 0.96;
}

h2 {
  font-size: 2.25rem;
  line-height: 1.08;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.25;
}

code,
pre {
  font-family: var(--mono);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  width: min(1220px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand,
.nav-action,
.primary-link,
.secondary-link,
.primary-btn,
.ghost-btn,
.icon-btn,
.mode-tab,
.theme-toggle {
  min-height: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 850;
}

.brand-image-link {
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(150px, 16vw, 190px);
  height: auto;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(47, 111, 237, 0.98), rgba(16, 169, 154, 0.92));
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 111, 237, 0.28);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 760;
}

.primary-nav > a,
.nav-menu > summary {
  position: relative;
  padding: 0.45rem 0;
}

.primary-nav > a::after,
.nav-menu > summary::after {
  position: absolute;
  right: 0;
  bottom: 0.18rem;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.primary-nav > a:hover,
.nav-menu > summary:hover {
  color: var(--ink);
}

.primary-nav > a:hover::after,
.nav-menu > summary:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-menu {
  position: relative;
}

.nav-menu > summary {
  list-style: none;
  cursor: pointer;
}

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

.nav-panel {
  position: absolute;
  left: -1.25rem;
  top: calc(100% + 0.8rem);
  display: grid;
  gap: 1.2rem;
  min-width: 420px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.nav-panel-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-panel p {
  margin: 0 0 0.45rem;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-panel a {
  display: block;
  padding: 0.48rem 0;
  color: var(--ink);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle,
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.theme-toggle:hover,
.icon-btn:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(16, 169, 154, 0.16);
  transform: translateY(-1px);
}

.theme-toggle svg {
  position: absolute;
}

.theme-toggle {
  position: relative;
}

html[data-theme="light"] .theme-toggle-moon,
html[data-theme="dark"] .theme-toggle-sun {
  opacity: 0;
}

.nav-action,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 840;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-action,
.primary-link {
  padding: 0 1rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(47, 111, 237, 0.22);
}

.nav-action:hover,
.primary-link:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
}

html[data-theme="dark"] .nav-action,
html[data-theme="dark"] .primary-link {
  background: #f5f5f5;
  border-color: #f5f5f5;
  color: #000;
  box-shadow: none;
}

html[data-theme="dark"] .nav-action:hover,
html[data-theme="dark"] .primary-link:hover {
  background: #fff;
  color: #000;
}

.secondary-link {
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.secondary-link:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 28px rgba(47, 111, 237, 0.12);
  transform: translateY(-1px);
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: calc(88vh - 72px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 255, 0.86)),
    radial-gradient(circle at 76% 26%, rgba(16, 169, 154, 0.16), transparent 26rem),
    radial-gradient(circle at 20% 84%, rgba(236, 106, 78, 0.12), transparent 22rem);
}

html[data-theme="dark"] .home-hero {
  background: #000;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-pattern::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 111, 237, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 237, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 82%, transparent);
}

html[data-theme="dark"] .hero-pattern::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
}

.formula-float {
  position: absolute;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.86rem;
  box-shadow: 0 14px 34px rgba(35, 63, 111, 0.1);
}

.float-a {
  top: 16%;
  right: 16%;
}

.float-b {
  bottom: 18%;
  left: 8%;
}

.float-c {
  top: 58%;
  right: 6%;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1220px, calc(100% - 32px));
  min-height: calc(88vh - 72px);
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
}

.hero-copy {
  max-width: 600px;
}

.hero-copy h1 {
  color: var(--ink);
}

.hero-lede {
  max-width: 560px;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions,
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-bottom: 1.3rem;
}

.hero-metrics span,
.logo-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.hero-metrics strong {
  margin-right: 0.35rem;
  color: var(--ink);
}

.hero-showcase {
  position: relative;
  min-height: 520px;
}

.mock-window {
  position: absolute;
  inset: 38px 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-showcase:hover .mock-window {
  box-shadow: var(--shadow-hover);
  transform: rotate(0) translateY(-4px);
}

.mock-window-bar {
  display: flex;
  gap: 0.38rem;
  align-items: center;
  height: 34px;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.mock-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.mock-window-bar span:nth-child(2) {
  background: var(--gold);
}

.mock-window-bar span:nth-child(3) {
  background: var(--teal);
}

.mock-window img {
  display: block;
  width: 100%;
  height: calc(100% - 34px);
  object-fit: cover;
  object-position: top left;
}

.mini-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.16rem;
  min-width: 210px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease;
}

.mini-card:hover {
  transform: translateY(-4px);
}

.mini-card span {
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mini-card strong {
  font-family: var(--mono);
}

.mini-card em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-style: normal;
}

.mini-card-formula {
  left: 0;
  top: 0;
}

.mini-card-api {
  right: 18px;
  bottom: 18px;
}

.eyebrow,
.section-kicker,
.plan-label {
  margin: 0 0 0.55rem;
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  width: min(1220px, calc(100% - 32px));
  margin: 1.2rem auto 0;
}

.content-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4.8rem 0;
}

.content-band {
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-soft));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

html[data-theme="dark"] .content-band {
  background: #000;
}

.band-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4.8rem 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 1.35rem;
}

.section-heading h2,
.converter-head h2,
.result-head h3 {
  margin-bottom: 0;
}

.section-heading p:last-child,
.page-hero p,
.feature-grid p,
.workflow-list p,
.pipeline-graphic p,
.price-card li,
.docs-content li,
.docs-content p,
.timeline p {
  color: var(--muted);
}

.feature-grid,
.pricing-grid,
.blog-grid,
.blog-topic-grid,
.page-list,
.workflow-list,
.post-grid {
  display: grid;
  gap: 0.9rem;
}

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

.feature-grid-3,
.pricing-grid,
.blog-grid,
.blog-topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid article,
.price-card,
.blog-grid article,
.blog-topic-grid article,
.workflow-list article,
.timeline article,
.assurance-panel,
.pipeline-graphic article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-grid article:hover,
.price-card:hover,
.blog-grid article:hover,
.blog-topic-grid article:hover,
.page-list a:hover,
.workflow-list article:hover,
.pipeline-graphic article:hover {
  border-color: color-mix(in srgb, var(--blue) 70%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-grid h2,
.feature-grid h3,
.price-card h2,
.blog-grid h2,
.blog-topic-grid h2,
.workflow-list h3,
.pipeline-graphic h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.feature-icon {
  display: inline-grid;
  min-width: 42px;
  height: 34px;
  margin-bottom: 1rem;
  padding: 0 0.6rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--surface-soft), var(--surface-mint));
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 850;
}

.feature-visual {
  display: grid;
  height: 128px;
  margin-bottom: 1rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(241, 247, 255, 0.76)),
    var(--surface-soft);
}

html[data-theme="dark"] .feature-visual,
html[data-theme="dark"] .handwriting-visual,
html[data-theme="dark"] .pdf-visual,
html[data-theme="dark"] .api-visual {
  background: #0b0b0b;
}

.feature-visual svg {
  width: 74%;
  height: 74%;
  color: var(--blue);
  stroke-width: 3;
}

.handwriting-visual {
  background: linear-gradient(135deg, rgba(236, 251, 247, 0.92), rgba(255, 255, 255, 0.8));
}

.handwriting-visual svg {
  color: var(--teal);
}

.pdf-visual {
  background: linear-gradient(135deg, rgba(255, 245, 238, 0.98), rgba(255, 255, 255, 0.8));
}

.pdf-visual svg {
  color: var(--coral);
}

.api-visual {
  background: linear-gradient(135deg, rgba(242, 240, 255, 0.98), rgba(255, 255, 255, 0.82));
}

.api-visual svg {
  color: var(--violet);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.pipeline-graphic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.pipeline-graphic::before {
  position: absolute;
  top: 50%;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--coral));
  content: "";
}

.pipeline-graphic article {
  position: relative;
  min-height: 178px;
  padding-top: 3rem;
}

.pipeline-graphic span,
.workflow-list span {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 850;
}

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

.page-list a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.25rem 0.8rem;
  align-items: start;
  min-height: 112px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-icon {
  display: grid;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-weight: 850;
}

.page-list span:not(.page-icon),
.blog-grid span,
.blog-topic-grid p {
  color: var(--muted);
}

.blog-topic-grid article {
  min-height: 230px;
}

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

.featured-post-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  grid-template-areas:
    "lead side-a"
    "lead side-b";
  align-items: stretch;
}

.featured-post-grid .featured-post-card:first-child {
  grid-area: lead;
}

.featured-post-grid .featured-post-card:nth-child(2) {
  grid-area: side-a;
}

.featured-post-grid .featured-post-card:nth-child(3) {
  grid-area: side-b;
}

.featured-post-card {
  overflow: hidden;
}

.wp-post-card.featured-post-card a {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 0;
}

.featured-post-image {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-soft), var(--surface-mint));
}

.featured-post-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.featured-post-card:hover .featured-post-image img {
  transform: scale(1.025);
}

.featured-post-card-large .featured-post-image {
  aspect-ratio: 1200 / 676;
}

.featured-post-card-small .featured-post-image {
  aspect-ratio: 1200 / 676;
}

.featured-post-card-body {
  padding: 1rem;
}

.featured-post-card-large .featured-post-card-body {
  padding: 1.15rem;
}

.wp-post-card.featured-post-card-large h2 {
  font-size: 1.48rem;
  line-height: 1.12;
}

.wp-post-card.featured-post-card-small h2 {
  font-size: 1.08rem;
  line-height: 1.16;
}

.featured-post-card p {
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.featured-post-card-large p {
  -webkit-line-clamp: 4;
}

.blog-topic-grid article a {
  display: block;
  height: 100%;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.post-card-meta > span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.post-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
}

.single-post-tags {
  margin: 0 0 1.5rem;
}

.page-hero {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 5.2rem 0 2.4rem;
}

.page-hero h1 {
  max-width: 880px;
  color: var(--ink);
  font-size: 4.1rem;
}

.page-hero p {
  max-width: 720px;
  font-size: 1.08rem;
}

.compact-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.hero-note {
  min-width: 230px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note span {
  color: var(--muted);
  font-size: 0.92rem;
}

.price-card {
  display: grid;
  align-content: start;
  min-height: 390px;
}

.price-card.featured {
  border-color: var(--blue);
  box-shadow: inset 0 4px 0 var(--blue);
}

.price {
  margin: 0.35rem 0 1rem;
  font-size: 2.2rem;
  font-weight: 850;
}

.price span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.price-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.price-card .primary-link,
.price-card .secondary-link {
  align-self: end;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

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

th {
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: 0;
}

.tool-page {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.tool-page .page-hero {
  width: 100%;
}

.tool-shell {
  padding: 0 0 4.8rem;
}

.converter-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.converter-head,
.result-head,
.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.converter-head {
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.mode-tabs {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-width: 84px;
  padding: 0 0.78rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.mode-tab.active {
  background: var(--surface);
  color: var(--teal-dark);
  box-shadow: 0 1px 4px rgba(35, 63, 111, 0.16);
}

.converter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  min-height: 520px;
}

.input-pane,
.result-pane {
  min-width: 0;
  padding: 1.25rem;
}

.result-pane {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface-soft);
}

.tool-row {
  margin-bottom: 0.85rem;
}

.color-palette,
.result-actions,
.social-links,
.assurance-row,
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.color-btn {
  width: 30px;
  height: 30px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--swatch);
}

.color-btn.active {
  border-color: var(--surface);
  outline: 2px solid var(--ink);
}

.ghost-btn,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: var(--radius);
  font-weight: 800;
}

.ghost-btn {
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: transform 160ms ease, border-color 160ms ease;
}

.ghost-btn:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-1px);
}

.canvas-frame {
  position: relative;
  overflow: hidden;
  min-height: 416px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(47, 111, 237, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(47, 111, 237, 0.06) 1px, transparent 1px),
    #fff;
  background-size: 36px 36px;
  touch-action: none;
}

#whiteboard {
  display: block;
  width: 100%;
  height: 416px;
  cursor: crosshair;
}

.canvas-watermark {
  position: absolute;
  right: 1rem;
  bottom: 0.8rem;
  color: rgba(24, 32, 47, 0.22);
  font-family: var(--mono);
  font-size: 0.95rem;
  pointer-events: none;
}

.upload-panel {
  display: grid;
  gap: 1rem;
  min-height: 456px;
}

.drop-zone {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.65rem;
  min-height: 280px;
  padding: 2rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.drop-zone svg {
  width: 2.1rem;
  height: 2.1rem;
  color: var(--teal);
}

.drop-zone strong {
  font-size: 1.28rem;
}

.drop-zone span {
  color: var(--muted);
  font-size: 0.92rem;
}

.drop-zone.dragging,
.drop-zone:hover {
  border-color: var(--teal);
  background: var(--surface-mint);
  transform: translateY(-2px);
}

.file-preview {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 0.9rem;
  min-height: 96px;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.file-preview img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.file-preview strong,
.file-preview span {
  display: block;
  overflow-wrap: anywhere;
}

.file-preview span {
  color: var(--muted);
  font-size: 0.92rem;
}

.pdf-badge {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 6px;
  background: #fff0ea;
  color: var(--coral);
  font-family: var(--mono);
  font-weight: 850;
}

.result-head {
  margin-bottom: 0.85rem;
}

.result-head .section-kicker,
.converter-head .section-kicker {
  margin-bottom: 0.25rem;
}

.output-box {
  position: relative;
  flex: 1;
  min-height: 340px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.output-box pre {
  min-height: 100%;
  margin: 0;
  padding: 1rem;
  white-space: pre-wrap;
}

#output {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.placeholder {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.92rem;
  pointer-events: none;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(16, 169, 154, 0.16);
  border-bottom-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.primary-btn {
  width: 100%;
  padding: 0 1rem;
  border: 1px solid var(--teal);
  background: var(--teal);
  color: white;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-btn:hover:not(:disabled) {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.primary-btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

.status-line {
  min-height: 1.35rem;
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.model-line {
  min-height: 1.2rem;
  margin: 0.65rem 0 0;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.model-line + .status-line {
  margin-top: 0.25rem;
}

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 2rem;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  align-content: start;
  gap: 0.2rem;
  height: max-content;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-sidebar a {
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 760;
}

.docs-sidebar a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.docs-content {
  display: grid;
  gap: 2rem;
}

.docs-content section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.docs-content h2 {
  font-size: 1.75rem;
}

.docs-content pre {
  overflow-x: auto;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101827;
  color: #dce7ff;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline span {
  color: var(--coral);
  font-family: var(--mono);
  font-weight: 850;
}

.assurance-panel,
.assurance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.assurance-panel span,
.assurance-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-soft) 60%, var(--surface)));
}

html[data-theme="dark"] .site-footer {
  background: #000;
}

.footer-top,
.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.45fr);
  gap: 2.4rem;
  padding: 2.5rem 0 1.8rem;
}

.footer-brand p {
  max-width: 380px;
  margin: 0.9rem 0;
  color: var(--muted);
}

.social-links {
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.social-links a:hover {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.14);
  transform: translateY(-2px);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.footer-nav h2 {
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.footer-nav a {
  display: block;
  margin-bottom: 0.46rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0 1.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-bottom .assurance-row {
  justify-content: center;
}

.wp-page-shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 4rem 0;
}

.wp-page-head h1 {
  font-size: 3.5rem;
}

.wp-content-body {
  color: var(--muted);
  font-size: 1.05rem;
}

.wp-content-body h2,
.wp-content-body h3 {
  color: var(--ink);
}

.wp-content-body a {
  color: var(--blue);
  font-weight: 850;
}

.wp-post-list {
  display: grid;
  gap: 0.8rem;
}

.wp-post-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.wp-post-card a {
  display: block;
  padding: 1rem;
}

.wp-post-card p:first-child {
  margin-bottom: 0.35rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
}

.wp-post-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1040px) {
  h1 {
    font-size: 4rem;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.8rem;
  }

  .nav-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 118px;
    min-width: 0;
  }

  .hero-content,
  .converter-grid,
  .split-section,
  .footer-top,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 460px;
  }

  .mock-window {
    inset: 48px 0 0;
  }

  .feature-grid-4,
  .page-list,
  .footer-nav,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "lead lead"
      "side-a side-b";
  }

  .featured-post-grid .featured-post-card:first-child {
    grid-column: 1 / -1;
  }

  .pipeline-graphic {
    grid-template-columns: 1fr;
  }

  .pipeline-graphic::before {
    display: none;
  }

  .result-pane {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .docs-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom .assurance-row {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  h1,
  .page-hero h1,
  .wp-page-head h1 {
    font-size: 2.72rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .site-header-inner,
  .hero-content,
  .logo-strip,
  .content-section,
  .band-inner,
  .page-hero,
  .tool-page,
  .docs-layout,
  .footer-top,
  .footer-bottom,
  .wp-page-shell {
    width: min(100% - 20px, 1220px);
  }

  .brand-text {
    display: none;
  }

  .primary-nav {
    gap: 1rem;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .nav-action {
    padding: 0 0.75rem;
  }

  .home-hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 3rem 0;
  }

  .hero-showcase {
    min-height: 360px;
  }

  .mock-window {
    inset: 44px 0 0 0;
    transform: rotate(0);
  }

  .mini-card {
    min-width: 178px;
  }

  .mini-card-formula {
    left: 0;
  }

  .mini-card-api {
    right: 0;
    bottom: 0;
  }

  .float-a,
  .float-b,
  .float-c {
    display: none;
  }

  .feature-grid-4,
  .feature-grid-3,
  .pricing-grid,
  .blog-grid,
  .blog-topic-grid,
  .post-grid,
  .page-list,
  .footer-nav,
  .docs-sidebar {
    grid-template-columns: 1fr;
  }

  .compact-hero,
  .converter-head,
  .tool-row {
    align-items: stretch;
    flex-direction: column;
  }

  .mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mode-tab {
    min-width: 0;
    padding: 0 0.45rem;
  }

  .input-pane,
  .result-pane {
    padding: 0.8rem;
  }

  .canvas-frame,
  #whiteboard,
  .upload-panel {
    min-height: 340px;
  }

  #whiteboard {
    height: 340px;
  }

  .output-box {
    min-height: 260px;
  }

  .featured-post-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lead"
      "side-a"
      "side-b";
  }

  .featured-post-grid .featured-post-card:first-child {
    grid-column: auto;
  }

  .featured-post-card-large .featured-post-image,
  .featured-post-card-small .featured-post-image {
    min-height: 0;
    aspect-ratio: 1200 / 676;
  }
}
