:root {
  --ink: #111312;
  --muted: #636861;
  --soft: #f5f3eb;
  --paper: #fcfbf7;
  --panel: #ffffff;
  --line: #dedbd1;
  --line-strong: #c8c4b8;
  --green: #2d5b45;
  --blue: #2d6f88;
  --coral: #d95f45;
  --lime: #d9f26d;
  --shadow: 0 20px 44px rgba(17, 19, 18, 0.1);
  color-scheme: light;
  font-family: "Avenir Next", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

button,
input {
  letter-spacing: 0;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner,
.hero,
.studio,
.workflow-strip,
.visual-story,
.home-use-cases,
.product-strip,
.proof-band,
.use-cases,
.faq,
.page-heading,
.pricing-grid,
.content-band,
.blog-grid,
.article,
.dashboard-grid,
.account-shell,
.account-console,
.seo-grid,
.site-footer,
.tool-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 70px;
}

.brand,
.nav-links,
.nav-actions,
.hero-actions,
.result-actions,
.pack-row,
.studio-account,
.trust-row {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  background: var(--ink);
  border-radius: 8px;
  color: var(--lime);
  display: grid;
  height: 34px;
  place-items: center;
  width: 34px;
}

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

.nav-links a,
.language-link,
.text-link,
.footer-grid a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover,
.language-link:hover,
.text-link:hover,
.footer-grid a:hover {
  color: var(--ink);
}

.nav-actions {
  gap: 10px;
  justify-content: flex-end;
}

.login-button,
.nav-cta,
.primary-button,
.secondary-button,
.google-button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 780;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  text-decoration: none;
  white-space: nowrap;
}

.login-button,
.secondary-button,
.google-button {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.login-button span,
.google-button span {
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: grid;
  font-size: 0.76rem;
  height: 20px;
  place-items: center;
  width: 20px;
}

.nav-cta,
.primary-button {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: white;
}

.full-button {
  width: 100%;
}

.primary-button:hover,
.secondary-button:hover,
.login-button:hover,
.google-button:hover,
.nav-cta:hover,
.mode-card:hover {
  transform: translateY(-1px);
}

.hero {
  padding-bottom: 22px;
  padding-top: 54px;
  text-align: center;
}

.hero h1,
.tool-hero h1,
.page-heading h1,
.article h1,
.auth-card h1 {
  font-size: 4.15rem;
  line-height: 0.98;
  margin: 0 auto;
  max-width: 840px;
}

.hero p,
.tool-hero p,
.page-heading p,
.lede,
.auth-card p,
.auth-side p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.55;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.section-kicker {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.trust-row {
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.trust-row span,
.keyword-row span,
.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
}

.home-hero {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  padding-bottom: 30px;
  padding-top: 46px;
  text-align: left;
}

.home-hero h1,
.home-hero p {
  margin-left: 0;
  margin-right: 0;
}

.home-hero h1 {
  max-width: 650px;
}

.home-hero p {
  max-width: 560px;
}

.home-copy {
  display: grid;
  gap: 0;
}

.home-copy .hero-actions,
.home-trust {
  justify-content: flex-start;
}

.home-visual {
  background: #141715;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 430px;
  overflow: hidden;
  position: relative;
}

.home-visual-main {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-result-card {
  background: rgba(252, 251, 247, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  bottom: 16px;
  box-shadow: 0 16px 36px rgba(17, 19, 18, 0.18);
  display: grid;
  gap: 5px;
  left: 16px;
  max-width: 320px;
  padding: 14px;
  position: absolute;
}

.home-result-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.home-result-card strong {
  line-height: 1.25;
}

.studio {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(340px, 0.92fr) minmax(380px, 1.08fr);
  padding-bottom: 42px;
  padding-top: 22px;
  scroll-margin-top: 90px;
}

.studio-panel,
.result-panel,
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.studio-panel,
.result-panel {
  padding: 22px;
}

.studio-topbar,
.result-header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.studio-panel h2,
.proof-band h2,
.content-band h2,
.auth-side h2 {
  font-size: 2.35rem;
  line-height: 1.05;
  margin: 0 0 12px;
}

.studio-panel p,
.proof-band p,
.content-band p,
.use-card p,
.price-card p,
.blog-card p,
.article p,
.article li,
.fine-print,
.status-line {
  color: var(--muted);
  line-height: 1.6;
}

.key-output {
  overflow-wrap: anywhere;
}

.api-key-list {
  vertical-align: top;
}

.api-key-table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

.api-key-table th,
.api-key-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.api-key-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.api-key-row td:first-child {
  display: grid;
  gap: 6px;
}

.api-key-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  text-transform: uppercase;
}

.api-key-status-active {
  background: #e9f7ef;
  border-color: #bfe7cf;
  color: #126636;
}

.api-key-status-deleted,
.api-key-status-revoked {
  background: #f4f0ea;
  color: #7a5c32;
}

.api-key-table button {
  min-height: 34px;
}

.drop-zone {
  background: var(--soft);
  border: 1px dashed var(--blue);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  margin: 18px 0;
  min-height: 118px;
  padding: 22px;
  place-items: center;
  text-align: center;
}

.drop-zone input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.drop-title {
  font-size: 1.08rem;
  font-weight: 850;
}

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

.upload-trust {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -6px 0 16px;
}

.mode-grid,
.pricing-grid,
.blog-grid,
.use-cases,
.engine-grid,
.dashboard-grid {
  display: grid;
  gap: 16px;
}

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

.mode-card {
  background: #f8f7f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 16px;
  text-align: left;
}

.mode-card.active {
  background: #fbfff0;
  border-color: var(--green);
}

.mode-card span {
  font-weight: 850;
}

.mode-card small {
  color: var(--green);
  font-weight: 820;
}

.mode-card em {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.45;
}

.studio-account {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
  gap: 12px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
}

.result-panel {
  display: grid;
  gap: 14px;
}

.result-header {
  color: var(--muted);
  font-size: 0.92rem;
}

.result-header div {
  display: grid;
  gap: 4px;
}

.result-header strong {
  color: var(--ink);
}

.result-job-meta {
  color: var(--muted);
  margin: 0;
  max-width: 300px;
  text-align: right;
}

.preview-shell {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 430px;
  overflow: hidden;
  place-items: center;
}

.preview-shell img {
  height: 100%;
  max-height: 600px;
  object-fit: cover;
  width: 100%;
}

.before-after-slider {
  height: 100%;
  min-height: 430px;
  position: relative;
  width: 100%;
}

.before-image,
.after-layer img {
  inset: 0;
  position: absolute;
}

.after-layer {
  bottom: 0;
  clip-path: inset(0 calc(100% - var(--reveal, 52%)) 0 0);
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

.after-layer img {
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.slider-line {
  bottom: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  z-index: 3;
}

.slider-line span {
  background: white;
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(17, 19, 18, 0.2);
  display: block;
  height: 42px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
}

.slider-line span::before,
.slider-line span::after {
  background: var(--ink);
  content: "";
  height: 12px;
  position: absolute;
  top: 14px;
  width: 2px;
}

.slider-line span::before {
  left: 16px;
}

.slider-line span::after {
  right: 16px;
}

.comparison-slider {
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 4;
}

.result-actions {
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.studio-metrics {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 12px;
}

.workflow-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 32px;
  padding-top: 4px;
}

.workflow-strip article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 158px;
  padding: 18px;
}

.workflow-strip span {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
}

.workflow-strip strong {
  font-size: 1.12rem;
}

.workflow-strip p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.product-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 42px;
}

.product-strip article {
  background: var(--ink);
  color: white;
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
}

.product-strip article:first-child {
  border-radius: 8px 0 0 8px;
}

.product-strip article:last-child {
  border-radius: 0 8px 8px 0;
}

.product-strip span {
  color: #d7ddd4;
  line-height: 1.5;
}

.visual-story {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(280px, 0.82fr) minmax(380px, 1.18fr);
  padding-bottom: 52px;
  padding-top: 50px;
}

.story-copy h2 {
  font-size: 2.35rem;
  line-height: 1.05;
  margin: 0 0 12px;
}

.story-copy p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.strong-link {
  color: var(--ink);
  font-weight: 850;
}

.story-media img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.home-use-cases {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.1fr);
  padding-bottom: 56px;
}

.visual-card {
  overflow: hidden;
  padding: 0;
}

.visual-card img {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  width: 100%;
}

.visual-card h3,
.visual-card p {
  padding-left: 18px;
  padding-right: 18px;
}

.visual-card h3 {
  margin-top: 18px;
}

.visual-card p {
  padding-bottom: 18px;
}

.automation-card {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.automation-card .card-label {
  color: var(--lime);
}

.automation-card p {
  color: #d7ddd4;
}

.automation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.automation-actions .secondary-button {
  background: white;
  border-color: white;
  color: var(--ink);
}

.proof-band,
.tool-hero {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(280px, 0.84fr) minmax(380px, 1.16fr);
  padding-bottom: 62px;
  padding-top: 52px;
}

.tool-hero img,
.proof-band img,
.blog-card img,
.article-cover,
.auth-side img {
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.proof-band img,
.tool-hero img,
.auth-side img {
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
  width: 100%;
}

.use-cases {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 56px;
  padding-top: 10px;
}

.use-card,
.price-card,
.blog-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.use-card {
  min-height: 190px;
  padding: 20px;
}

.use-card h3,
.price-card h2,
.blog-card h2 {
  margin: 0 0 10px;
}

.faq {
  display: grid;
  gap: 10px;
  padding-bottom: 62px;
}

.faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}

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

.page-heading {
  padding-bottom: 26px;
  padding-top: 54px;
  text-align: center;
}

.content-band {
  border-top: 1px solid var(--line);
  padding-bottom: 46px;
  padding-top: 46px;
}

.seo-panel {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
}

.seo-panel img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.seo-deep-dive {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
}

.intent-box {
  background: var(--ink);
  border-radius: 8px;
  color: white;
  padding: 20px;
}

.intent-box h3 {
  margin: 0 0 12px;
}

.intent-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.intent-box li {
  color: #e9eee7;
  line-height: 1.45;
}

.seo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 36px;
}

.fix-list,
.related-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fix-list span,
.related-searches a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
  padding: 8px 12px;
  text-decoration: none;
}

.docs-panel {
  display: grid;
  gap: 18px;
}

.docs-steps,
.endpoint-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.docs-steps article,
.endpoint-list div,
.code-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.docs-steps article {
  padding: 20px;
}

.docs-steps span {
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 860;
}

.docs-steps h3 {
  font-size: 1.08rem;
  margin: 10px 0 8px;
}

.docs-steps p,
.endpoint-list span {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

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

.endpoint-list div {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.endpoint-list code {
  color: var(--green);
  font-weight: 800;
}

.code-card {
  overflow: hidden;
  position: relative;
}

.code-card button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
}

.code-card pre {
  background: #171b19;
  color: #f6f0df;
  margin: 0;
  overflow-x: auto;
  padding: 24px;
}

.code-card code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword-row span,
.badge {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 820;
}

.steps {
  color: var(--muted);
  line-height: 1.8;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 46px;
  padding-top: 18px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.price-card.featured {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.price {
  font-size: 2.2rem;
  font-weight: 850;
}

.price-card ul {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  padding-left: 18px;
}

.plan-usage {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 760;
  margin: 0;
  padding: 10px 12px;
}

.price-card button {
  margin-top: auto;
}

.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 56px;
  padding-top: 18px;
}

.blog-card {
  overflow: hidden;
}

.blog-card img {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
  width: 100%;
}

.blog-card span,
.blog-card h2,
.blog-card p {
  display: block;
  padding-left: 18px;
  padding-right: 18px;
}

.blog-card span {
  color: var(--coral);
  font-weight: 850;
  padding-top: 18px;
}

.blog-card p {
  padding-bottom: 20px;
}

.article {
  max-width: 860px;
  padding-bottom: 72px;
  padding-top: 52px;
}

.article-cover {
  aspect-ratio: 16 / 9;
  margin-bottom: 30px;
  width: 100%;
}

.article-media-grid {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  margin: 28px 0;
}

.article-media-grid figure,
.article-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.article-media-grid img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.article-media-grid figcaption,
.article-note {
  color: var(--muted);
  line-height: 1.55;
}

.article-media-grid figcaption {
  padding: 14px 16px 16px;
}

.article-note {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.article-note strong {
  color: var(--green);
}

.article-note p {
  margin: 0;
}

.article-case-study {
  background: var(--ink);
  border-radius: 8px;
  color: white;
  margin: 28px 0;
  padding: 24px;
}

.article-case-study span {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.article-case-study h2 {
  color: white;
  margin-top: 8px;
}

.article-case-study p {
  color: #e4e9e1;
  margin-bottom: 0;
}

.article-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.article-checklist,
.article-workflow,
.article-cta-panel {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 24px;
}

.article-checklist ul {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.article-checklist li {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.article-cta-panel {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 20px;
}

.article-cta-panel h2 {
  margin: 6px 0 0;
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.article-cta-panel .article-links {
  justify-content: flex-end;
  margin-top: 0;
}

pre {
  background: #171a16;
  border-radius: 8px;
  color: #f2f5e9;
  overflow: auto;
  padding: 18px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.site-footer {
  align-items: start;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  padding-bottom: 34px;
  padding-top: 34px;
}

.footer-brand,
.footer-grid nav {
  display: grid;
  gap: 10px;
}

.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.footer-grid h3 {
  color: var(--ink);
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.split-band {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.engine-band {
  background: var(--ink);
  border-radius: 0;
  color: white;
  margin-top: 24px;
  max-width: none;
  padding-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1180px) / 2 + 24px));
}

.engine-band p {
  color: #d9dfd4;
}

.engine-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 24px;
}

.engine-grid div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 16px;
}

.engine-grid strong {
  color: var(--lime);
  font-size: 1.55rem;
}

.engine-grid span {
  color: white;
  font-weight: 820;
}

.account-shell {
  display: grid;
  gap: 18px;
  padding-bottom: 18px;
  padding-top: 46px;
}

.account-header {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 22px;
}

.account-header h1 {
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 8px 0 12px;
  max-width: 720px;
}

.account-header p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

.account-console {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding-bottom: 72px;
}

.account-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
  position: sticky;
  top: 88px;
}

.account-sidebar a {
  border-radius: 6px;
  color: var(--muted);
  font-weight: 780;
  padding: 10px 12px;
  text-decoration: none;
}

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

.account-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.account-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(17, 19, 18, 0.06);
  padding: 18px;
}

.account-overview,
.panel-heading {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.account-panel h2 {
  font-size: 1.45rem;
  margin: 4px 0 8px;
}

.account-panel p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.api-key-scroll {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  max-height: 420px;
  overflow: auto;
}

.api-key-form {
  align-items: end;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.2fr) auto;
  margin-top: 16px;
  padding: 14px;
}

.api-key-form label,
.api-key-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
}

.api-key-form span,
.api-key-form legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.api-key-form input[type="text"] {
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 12px;
}

.api-key-form fieldset {
  border: 0;
  grid-template-columns: repeat(3, max-content);
  padding: 0;
}

.api-key-form fieldset label {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 0.9rem;
  gap: 6px;
}

.card-label {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-layout {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(320px, 0.58fr) minmax(360px, 0.72fr);
  max-width: 980px;
  margin: 0 auto;
  min-height: calc(100vh - 160px);
  padding: 50px 24px 72px;
}

.compact-auth {
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.compact-auth h1 {
  font-size: 2.3rem;
  margin-left: 0;
}

.compact-auth p {
  font-size: 1rem;
  margin: 0;
}

.auth-side {
  display: grid;
  gap: 14px;
}

.dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 72px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.is-signed-in .signed-out-only {
  display: none;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .nav-links,
  .nav-actions {
    justify-content: flex-start;
  }

  .studio,
  .home-hero,
  .visual-story,
  .seo-panel,
  .seo-deep-dive,
  .account-console,
  .api-key-form,
  .proof-band,
  .tool-hero,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .use-cases,
  .pricing-grid,
  .blog-grid,
  .article-media-grid,
  .footer-grid,
  .engine-grid,
  .docs-steps,
  .endpoint-list,
  .dashboard-grid,
  .seo-grid,
  .workflow-strip,
  .home-use-cases,
  .product-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-strip article,
  .product-strip article:first-child,
  .product-strip article:last-child {
    border-radius: 8px;
  }

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

  .hero h1,
  .tool-hero h1,
  .page-heading h1,
  .article h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero,
  .studio,
  .workflow-strip,
  .visual-story,
  .home-use-cases,
  .product-strip,
  .proof-band,
  .use-cases,
  .faq,
  .page-heading,
  .pricing-grid,
    .content-band,
    .blog-grid,
    .article,
    .dashboard-grid,
    .account-shell,
    .account-console,
    .seo-grid,
    .site-footer,
    .tool-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .docs-steps,
  .endpoint-list {
    grid-template-columns: 1fr;
  }

  .code-card button {
    position: static;
    margin: 12px 12px 0;
  }

  .hero {
    padding-top: 38px;
    text-align: left;
  }

  .hero h1,
  .tool-hero h1,
  .page-heading h1,
  .article h1 {
    font-size: 1.85rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 330px;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .hero p,
  .tool-hero p,
  .page-heading p,
  .lede {
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0;
    max-width: 330px;
  }

  .nav-links,
  .nav-actions,
  .hero-actions,
  .studio-account,
  .result-actions,
  .split-band {
    align-items: stretch;
    flex-direction: column;
  }

  .mode-grid,
  .use-cases,
  .pricing-grid,
  .blog-grid,
  .footer-grid,
  .engine-grid,
  .dashboard-grid,
  .seo-grid,
  .workflow-strip,
  .home-use-cases,
  .product-strip,
  .studio-metrics {
    grid-template-columns: 1fr;
  }

  .trust-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .trust-row span {
    max-width: 100%;
    text-align: center;
  }

  .home-hero {
    gap: 16px;
    padding-bottom: 12px;
    padding-top: 30px;
  }

  .home-visual {
    min-height: 180px;
  }

  .home-visual-main {
    aspect-ratio: 16 / 9;
  }

  .home-result-card {
    display: none;
  }

  .home-trust span:not(:first-child) {
    display: none;
  }

  .workflow-strip {
    padding-bottom: 22px;
  }

  .visual-story {
    gap: 22px;
    padding-bottom: 36px;
    padding-top: 36px;
  }

  .primary-button,
  .secondary-button,
  .google-button,
  .login-button,
  .nav-cta {
    width: 100%;
  }

  .studio-topbar,
  .account-header,
  .account-overview,
  .panel-heading,
  .result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-header {
    display: flex;
  }

  .account-sidebar {
    position: static;
  }

  .account-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-shell {
    min-height: 320px;
  }

  .studio-panel h2,
  .proof-band h2,
  .content-band h2,
  .auth-side h2 {
    font-size: 1.8rem;
  }

  .header-inner {
    gap: 10px;
    min-height: 0;
  }

  .nav-links {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .nav-links a {
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: none;
    justify-content: center;
    min-height: 38px;
  }

  .nav-links a:nth-child(1),
  .nav-links a:nth-child(3),
  .nav-links a:nth-child(4) {
    display: flex;
  }

  .nav-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .nav-actions .language-link {
    display: none;
  }

  .site-header .login-button,
  .site-header .nav-cta {
    min-height: 44px;
    padding-left: 10px;
    padding-right: 10px;
    width: 100%;
  }

  .studio {
    scroll-margin-top: 128px;
  }
}
