:root {
  --ink: #18242b;
  --muted: #62747a;
  --line: #dbe5e4;
  --paper: #f7faf8;
  --card: #fff;
  --teal: #087f78;
  --teal-dark: #075b59;
  --coral: #f07d68;
  --shadow: 0 18px 50px rgba(28, 66, 67, 0.09);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
button,
textarea {
  font: inherit;
}
.shell {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
}
.privacy-pill {
  font-size: 0.8rem;
  color: var(--teal-dark);
  background: #e5f4f0;
  border-radius: 99px;
  padding: 7px 12px;
}
.hero {
  padding: 74px 0 46px;
  max-width: 690px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  margin: 0 0 22px;
}
.lede {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 620px;
}
.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.85rem;
}
.hero-meta span:before {
  content: "✓";
  color: var(--coral);
  font-weight: 800;
  margin-right: 7px;
}
.workspace {
  margin-bottom: 78px;
}
.tool-tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  padding-bottom: 11px;
  scrollbar-width: thin;
}
.tab {
  white-space: nowrap;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--muted);
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
}
.tab:hover,
.tab.active {
  color: var(--teal-dark);
  background: #e8f3f0;
}
.input-card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.input-card {
  border-radius: 0 16px 16px 16px;
  padding: 22px;
}
.input-heading,
.input-footer,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.input-heading label,
label {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
}
.hint,
.input-footer,
.microcopy {
  font-size: 0.78rem;
  color: var(--muted);
}
.hint {
  display: block;
  font-weight: 400;
  margin-top: 3px;
}
.input-card textarea {
  margin-top: 17px;
  width: 100%;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
  resize: vertical;
  color: var(--ink);
  background: #fbfdfc;
  outline: none;
}
.input-card textarea:focus,
.compare-grid textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px #d7efea;
}
.input-footer {
  margin-top: 11px;
}
.button {
  border: 0;
  border-radius: 9px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 750;
}
.button.ghost {
  background: #edf3f1;
  color: var(--teal-dark);
}
.button.primary {
  background: var(--teal);
  color: white;
}
.button.primary:hover {
  background: var(--teal-dark);
}
.panels {
  margin-top: 18px;
}
.panel {
  border-radius: 16px;
  padding: 27px;
  min-height: 270px;
}
.panel-title {
  margin-bottom: 23px;
}
.panel-title h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.tool-icon {
  font-weight: 800;
  color: var(--coral);
  font-size: 1.4rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.stat {
  background: #f1f7f5;
  border-radius: 12px;
  padding: 18px 14px;
}
.stat strong {
  display: block;
  color: var(--teal-dark);
  font-size: 1.75rem;
  letter-spacing: -0.06em;
}
.stat span {
  font-size: 0.75rem;
  color: var(--muted);
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}
.action {
  text-align: left;
  background: #f3f7f6;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 17px;
  cursor: pointer;
  color: var(--ink);
}
.action:hover {
  border-color: var(--teal);
  background: #e7f3ef;
}
.action b,
.action small {
  display: block;
}
.action small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}
.result-box,
.compare-result {
  margin-top: 20px;
  background: #f3f7f6;
  border-radius: 11px;
  padding: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.transform-result {
  margin-top: 18px;
}
.transform-result h3 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 1rem;
}
.result-output {
  white-space: pre-wrap;
  overflow: auto;
  max-height: 360px;
  margin: 12px 0 0;
  font: inherit;
  color: var(--ink);
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.noscript-notice {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #e8c9a5;
  border-radius: 11px;
  background: #fff8ec;
  color: var(--ink);
}
.noscript-notice a {
  color: var(--teal-dark);
  font-weight: 800;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.compare-grid textarea {
  width: 100%;
  min-height: 150px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  resize: vertical;
}
.compare-result {
  margin: 0;
  min-height: 150px;
  white-space: pre-wrap;
}
.compare-result strong {
  color: var(--teal-dark);
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  padding: 0 0 72px;
}
.feature-number {
  color: var(--coral);
  font-weight: 800;
  font-size: 0.8rem;
}
.feature-row h3 {
  margin: 8px 0 5px;
  font-size: 1rem;
}
.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.77rem;
}
.site-footer .shell {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }
  .hero {
    padding: 52px 0 34px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:last-child {
    grid-column: span 2;
  }
  .action-grid,
  .compare-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }
  .input-card {
    border-radius: 0 12px 12px 12px;
    padding: 16px;
  }
  .panel {
    padding: 20px;
  }
  .site-footer .shell {
    display: block;
  }
  .site-footer span {
    display: block;
    margin: 4px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
:focus-visible {
  outline: 3px solid #f0a391;
  outline-offset: 2px;
}

/* Shared result, branding and server-mode styles. */
[hidden] {
  display: none !important;
}
.brand-icon {
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
a {
  color: var(--teal-dark);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compare-grid > div {
  min-width: 0;
}
.compare-result {
  max-height: 430px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.result-output,
.server-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.server-output {
  max-height: 600px;
  overflow: auto;
  color: var(--ink);
}
.server-mode-link {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 20px 0 0;
}
.server-mode-link a {
  font-weight: 700;
}
.server-hero {
  max-width: 760px;
  padding-bottom: 30px;
}
.server-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
.server-result,
.fallback-form {
  margin-bottom: 26px;
}
.fallback-form {
  margin-bottom: 56px;
}
.fallback-form h2 {
  margin-top: 0;
}
.fallback-form label {
  margin: 20px 0 7px;
}
.fallback-form select,
.fallback-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  background: #fbfdfc;
}
.fallback-form select {
  max-width: 420px;
}
.fallback-form textarea {
  min-height: 180px;
  resize: vertical;
}
.fallback-form .button {
  margin-top: 10px;
}
.transform-result {
  border: 1px solid var(--line);
}
@media (max-width: 760px) {
  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .privacy-pill {
    font-size: 0.7rem;
  }
}
