:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #eef1f8;
  --text: #101219;
  --muted: #5d6472;
  --line: #d9deea;
  --line-2: #c2cadb;
  --accent: #3157d5;
  --accent-dark: #203da1;
  --copper: #c96338;
  --mint: #1d8d79;
  --shadow: 0 24px 70px rgba(25, 33, 56, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 12%, rgba(49, 87, 213, 0.12), transparent 28%),
    radial-gradient(circle at 12% 28%, rgba(201, 99, 56, 0.1), transparent 24%),
    linear-gradient(180deg, #f9fafc 0%, var(--bg) 52%, #ffffff 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header,
.hero,
.section,
.site-footer {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(194, 202, 219, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 36px rgba(25, 33, 56, 0.08);
  backdrop-filter: blur(20px);
}

.brand,
.nav,
.footer-links,
.hero-actions,
.brief-actions,
.workflow-picker {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 190px;
  gap: 10px;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 790;
  text-decoration: none;
}

.brand-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--text);
  color: #ffffff;
  font-weight: 820;
}

.nav {
  justify-content: center;
  gap: 6px;
}

.nav a,
.nav-button,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 730;
  text-decoration: none;
  white-space: nowrap;
}

.nav a {
  padding: 0 16px;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(49, 87, 213, 0.08);
  color: var(--accent-dark);
}

.nav-button,
.button.primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(49, 87, 213, 0.22);
}

.nav-button {
  padding: 0 20px;
}

.button {
  min-width: 168px;
  padding: 0 22px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible,
.nav-button:hover,
.nav-button:focus-visible {
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.button.full {
  width: 100%;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(470px, 1.12fr);
  align-items: center;
  gap: 68px;
  padding: 74px 0 56px;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.6rem, 7vw, 6.7rem);
  line-height: 0.95;
  font-weight: 780;
}

h1 span,
.lead span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.05rem, 4vw, 3.7rem);
  line-height: 1.03;
  font-weight: 760;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.lead,
.section-heading p,
.fable-copy p,
.workflow-copy p,
.pricing-section .section-heading p {
  color: var(--muted);
  font-size: 1.14rem;
}

.lead {
  max-width: 660px;
  margin-bottom: 34px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.micro-card {
  max-width: 620px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  box-shadow: 0 10px 28px rgba(25, 33, 56, 0.06);
}

.product-demo {
  position: relative;
}

.product-demo::before {
  content: "";
  position: absolute;
  inset: 14% -4% -8% 8%;
  z-index: 0;
  border-radius: 32px;
  background: rgba(49, 87, 213, 0.12);
  filter: blur(20px);
}

.demo-window {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(194, 202, 219, 0.92);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.window-top {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.window-top span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--line-2);
}

.window-top span:first-child {
  background: #dc7558;
}

.window-top span:nth-child(2) {
  background: #d7a84b;
}

.window-top span:nth-child(3) {
  background: #58a990;
}

.window-top strong {
  margin-left: 10px;
  font-size: 0.9rem;
}

.demo-body {
  display: grid;
  grid-template-columns: 190px 1fr;
  min-height: 500px;
}

.demo-sidebar {
  padding: 22px 14px;
  border-right: 1px solid var(--line);
  background: var(--panel-2);
}

.sidebar-title,
.tiny-label {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.model-pill {
  width: 100%;
  min-height: 38px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  text-align: left;
}

.model-pill.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.side-stat {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.9rem;
}

.side-stat strong {
  color: var(--text);
}

.demo-main {
  padding: 26px;
}

.task-card,
.artifact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfcff;
}

.task-card {
  padding: 20px;
}

.task-card h2 {
  margin-bottom: 0;
  font-size: 1.58rem;
  line-height: 1.12;
}

.status-chip {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 141, 121, 0.12);
  color: var(--mint);
  font-size: 0.88rem;
  font-weight: 780;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.flow-card {
  min-height: 172px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.flow-card span,
.step-number,
.artifact-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 820;
}

.flow-card strong {
  display: block;
  margin: 14px 0 7px;
}

.flow-card p,
.artifact-row p,
.feature-grid p,
.steps p,
.faq-list p,
.site-footer p,
.price-card p,
.brief-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.artifact-row {
  justify-content: flex-start;
  padding: 18px;
}

.artifact-icon {
  flex: 0 0 auto;
  background: var(--copper);
}

.workflow-receipt {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.receipt-top,
.receipt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.receipt-top span,
.receipt-step small,
.receipt-footer span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.receipt-top strong {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
}

.receipt-step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf8;
}

.receipt-step p {
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 650;
}

.receipt-footer {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding-top: 4px;
}

.receipt-footer span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(18, 107, 91, 0.08);
}

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.steps,
.feature-grid {
  display: grid;
  gap: 16px;
}

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

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

.steps article,
.feature-grid article,
.signal-panel,
.brief-card,
.price-card,
.faq-list details {
  border: 1px solid rgba(194, 202, 219, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(25, 33, 56, 0.07);
}

.steps article,
.feature-grid article {
  padding: 24px;
}

.step-number {
  margin-bottom: 36px;
  background: rgba(49, 87, 213, 0.12);
  color: var(--accent-dark);
}

.fable-section,
.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(360px, 0.42fr);
  gap: 34px;
  align-items: center;
}

.fable-section,
.workflow-section,
.pricing-section {
  padding: 46px;
  border: 1px solid var(--line-2);
  border-radius: 32px;
  background: rgba(238, 241, 248, 0.78);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 780;
  text-underline-offset: 0.18em;
}

.signal-panel {
  padding: 14px;
  background: var(--panel);
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.signal-row:last-child {
  border-bottom: 0;
}

.signal-row span {
  color: var(--muted);
}

.signal-row strong {
  text-align: right;
}

.workflow-picker {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.choice,
.brief-top button {
  min-height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 720;
}

.choice {
  padding: 0 14px;
}

.choice.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.brief-card {
  overflow: hidden;
  background: #101219;
  color: #ffffff;
}

.brief-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 760;
}

.brief-top button {
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.brief-card pre {
  min-height: 310px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  white-space: pre-wrap;
  color: #fff7e8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}

.brief-actions {
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.copy-status,
.checkout-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.brief-card .copy-status {
  padding: 0 18px 18px;
  color: rgba(255, 255, 255, 0.7);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  padding: 26px;
  background: #ffffff;
}

.plan-label {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 820;
  text-transform: uppercase;
}

.price {
  margin: 16px 0 12px;
  color: var(--text) !important;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

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

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}

.price-card li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--copper);
}

.muted-plan {
  background: rgba(255, 255, 255, 0.72);
}

.checkout-status {
  margin-top: 16px;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 780;
}

.faq-list p {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 680;
  text-decoration: none;
}

.resource-section {
  padding-top: 26px;
}

.resource-grid,
.language-grid,
.metric-grid {
  display: grid;
  gap: 16px;
}

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

.resource-card,
.article-card,
.toc-card,
.metric-grid article,
.language-grid a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(25, 33, 56, 0.07);
}

.resource-card,
.metric-grid article,
.language-grid a {
  display: grid;
  align-content: start;
  min-height: 164px;
  padding: 22px;
  border-radius: 18px;
  text-decoration: none;
}

.resource-card span,
.metric-grid span {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.resource-card strong,
.metric-grid strong,
.language-grid a {
  font-size: 1.08rem;
  line-height: 1.24;
  font-weight: 790;
}

.resource-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.article-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.article-hero {
  max-width: 920px;
  padding: 92px 0 42px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--accent-dark);
  font-weight: 720;
  text-decoration: none;
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding-bottom: 56px;
}

.article-layout.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.toc-card {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
}

.toc-card strong {
  font-size: 0.84rem;
  text-transform: uppercase;
}

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

.toc-card a:hover,
.toc-card a:focus-visible,
.resource-card:hover,
.language-grid a:hover {
  color: var(--accent-dark);
}

.article-main {
  display: grid;
  gap: 18px;
}

.article-card {
  padding: 28px;
  border-radius: 22px;
}

.article-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.article-card p,
.source-list li,
.check-list li {
  color: var(--muted);
}

.check-list,
.source-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

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

.metric-grid article {
  min-height: 132px;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(49, 87, 213, 0.1), rgba(201, 99, 56, 0.1)),
    rgba(255, 255, 255, 0.88);
}

.cta-band .button {
  margin-top: 6px;
}

.source-list a {
  color: var(--accent-dark);
  font-weight: 700;
}

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

.language-grid a {
  min-height: 92px;
  place-items: center;
}

.language-hero {
  max-width: 1040px;
}

.language-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 24px;
}

.language-card {
  display: grid;
  align-content: start;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(25, 33, 56, 0.07);
  color: var(--text);
  text-decoration: none;
}

.language-card span {
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 820;
  text-transform: uppercase;
}

.language-card strong {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.language-card p {
  margin: 18px 0 24px;
  color: var(--muted);
}

.language-card em {
  align-self: end;
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 780;
}

.language-card:hover,
.language-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.language-note {
  margin-bottom: 56px;
}

@media (max-width: 1080px) {
  .hero,
  .fable-section,
  .workflow-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 44px;
  }

  .steps,
  .feature-grid,
  .resource-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header,
  .hero,
  .section,
  .site-footer,
  .article-shell {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  .site-header {
    position: static;
    grid-template-columns: 1fr auto;
    border-radius: 24px;
  }

  .brand {
    min-width: 0;
  }

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

  .hero {
    padding-top: 52px;
  }

  .product-demo::before {
    inset: 8% 0 -6% 4%;
  }

  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-grid,
  .steps,
  .feature-grid,
  .price-grid,
  .resource-grid,
  .metric-grid,
  .language-grid,
  .language-directory {
    grid-template-columns: 1fr;
  }

  .fable-section,
  .workflow-section,
  .pricing-section {
    padding: 28px;
  }

  .article-hero {
    padding-top: 52px;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 15px;
  }

  .site-header {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .brand span:last-child {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-button {
    display: none;
  }

  .nav {
    flex: 1;
    grid-column: auto;
    order: 0;
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
    padding-bottom: 0;
  }

  .nav a {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.88rem;
  }

  .nav a[href="#faq"] {
    display: none;
  }

  h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .lead span,
  .micro-card span {
    max-width: 25ch;
  }

  .eyebrow,
  .micro-card,
  .micro-card span {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .micro-card span {
    display: block;
    max-width: 23ch;
  }

  .hero-actions,
  .brief-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .task-card,
  .artifact-row,
  .signal-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-row strong {
    text-align: left;
  }
}

/* v0.5 site redesign: calmer traffic-asset/product-tool visual system. */
:root {
  --bg: #f7f4ee;
  --panel: #fffdf8;
  --panel-2: #ece6dc;
  --text: #171717;
  --muted: #63615b;
  --line: #ded7ca;
  --line-2: #cfc5b6;
  --accent: #126b5b;
  --accent-dark: #0d4d42;
  --copper: #a96238;
  --mint: #126b5b;
  --shadow: 0 18px 48px rgba(36, 32, 26, 0.1);
  --radius: 14px;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 244, 238, 0.92) 44%, #fffdf8 100%);
}

.site-header {
  top: 16px;
  border-color: rgba(207, 197, 182, 0.86);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 10px 30px rgba(36, 32, 26, 0.08);
}

.brand-symbol {
  border-radius: 10px;
  background: #171717;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(18, 107, 91, 0.08);
  color: var(--accent-dark);
}

.nav-button,
.button.primary {
  border-color: #171717;
  background: #171717;
  color: #fffdf8;
  box-shadow: none;
}

.button.secondary {
  background: transparent;
}

h1 {
  max-width: 980px;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.article-hero h1 {
  font-size: clamp(2.75rem, 5vw, 4.9rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.1rem);
}

.eyebrow,
.kicker,
.resource-card span,
.metric-grid span,
.plan-label {
  color: var(--accent-dark);
}

.product-demo::before {
  background: rgba(18, 107, 91, 0.08);
}

.steps article,
.feature-grid article,
.signal-panel,
.brief-card,
.price-card,
.faq-list details,
.resource-card,
.article-card,
.toc-card,
.metric-grid article,
.language-grid a {
  border-color: rgba(207, 197, 182, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 12px 32px rgba(36, 32, 26, 0.06);
}

.fable-section,
.workflow-section,
.pricing-section {
  border-color: var(--line-2);
  border-radius: 22px;
  background: rgba(236, 230, 220, 0.56);
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(18, 107, 91, 0.08), rgba(169, 98, 56, 0.08)),
    rgba(255, 253, 248, 0.92);
}

.language-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.language-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 42px;
  align-items: end;
  padding: 44px 0 54px;
}

.language-top h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.2vw, 5.1rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.language-top .lead {
  max-width: 720px;
  margin-bottom: 0;
}

.language-jump {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 30px rgba(36, 32, 26, 0.07);
}

.language-jump label {
  color: var(--text);
  font-weight: 790;
}

.language-jump div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.language-jump select,
.language-jump button {
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--text);
}

.language-jump select {
  width: 100%;
  padding: 0 12px;
}

.language-jump button {
  padding: 0 16px;
  background: #171717;
  color: #fffdf8;
  font-weight: 760;
}

.language-jump p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.market-panel,
.all-languages {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.market-panel .section-heading,
.all-languages .section-heading {
  max-width: 760px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.market-card,
.language-list a {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(36, 32, 26, 0.05);
}

.market-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 16px;
}

.market-card.is-suggested,
.language-list a.is-suggested {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 107, 91, 0.1);
}

.market-card span,
.language-list span {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.market-card strong {
  min-width: 0;
  font-size: 1.4rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.market-card p,
.language-list small,
.trust-strip p {
  margin: 0;
  color: var(--muted);
}

.market-card em {
  align-self: end;
  color: var(--text);
  font-style: normal;
  font-weight: 780;
}

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

.language-list a {
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  min-height: 78px;
  padding: 16px 18px;
  border-radius: 12px;
}

.language-list strong {
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.trust-strip {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(23, 23, 23, 0.04);
}

.trust-strip strong {
  font-size: 1.1rem;
}

.brief-card {
  border-color: rgba(23, 23, 23, 0.36);
  background: #181613;
  color: #fffaf0;
  box-shadow: 0 22px 50px rgba(36, 32, 26, 0.16);
}

.brief-top {
  border-bottom-color: rgba(255, 250, 240, 0.18);
  color: rgba(255, 250, 240, 0.78);
}

.brief-top button {
  border-color: rgba(255, 250, 240, 0.28);
  background: rgba(255, 250, 240, 0.08);
  color: #fffaf0;
}

.brief-card pre {
  color: #fff7e8;
  background: #211f1b;
  text-shadow: none;
}

.brief-card .copy-status {
  color: rgba(255, 250, 240, 0.78);
}

.brief-card .button.primary {
  border-color: #fff7e8;
  background: #fff7e8;
  color: #181613;
}

.brief-card .button.secondary {
  border-color: rgba(255, 250, 240, 0.72);
  background: transparent;
  color: #fffaf0;
}

@media (max-width: 960px) {
  .language-top,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .market-grid,
  .language-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .language-page {
    width: calc(100% - 28px);
    padding-top: 28px;
  }

  .language-top {
    padding-top: 28px;
  }

  .language-top h1 {
    font-size: 2.55rem;
  }

  .article-hero h1,
  h1 {
    font-size: 2.55rem;
    line-height: 1;
  }

  .language-jump div,
  .language-list a {
    grid-template-columns: 1fr;
  }
}
