:root {
  --bg-color: #fafafa;
  --panel-bg: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --border-color: #eaeaea;
  --border-hover: #cccccc;
  --accent: #000000;
  --accent-soft: #fafafa;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --radius-xl: 12px;
  --radius-lg: 8px;
  --radius-md: 6px;
  --radius-sm: 4px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: var(--ink);
  background: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  padding: 24px 24px 72px;
}

.site-header {
  max-width: 1200px;
  margin: 0 auto 28px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.site-header-brand {
  font-size: 14px;
  font-weight: 700;
}

.site-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.site-header-nav a {
  font-size: 14px;
  color: var(--muted);
}

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

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

code {
  font-family: "SF Mono", "Menlo", monospace;
  background: var(--bg-color);
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.9em;
}

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

.search-page,
.editor-page,
.info-page,
.article-page,
.tools-page,
.tool-page {
  max-width: 1200px;
  margin: 0 auto;
}

/* Layout */
.hero-shell,
.editor-hero,
.workspace,
.search-layout {
  display: grid;
  gap: 32px;
}

.hero-shell,
.editor-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.hero-main {
  max-width: 640px;
}

.hero-side.compact {
  display: flex;
  align-items: center;
}

.hero-side-note,
.eyebrow {
  display: none; /* Simplify UI: hide the eyebrow and side-note as Vercel is minimal */
}

h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.hero-copy {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.brand-mark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Base Panel */

.search-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* Buttons and Links */
.primary-link,
.primary-button,
.secondary-button,
.action-link,
.mini-button,
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  padding: 10px 16px;
  border: 1px solid transparent;
  outline: none;
}

.primary-link,
.primary-button,
.action-link {
  background: var(--ink);
  color: #fff !important;
  border-color: var(--ink);
}

.primary-link:hover,
.primary-button:hover,
.action-link:hover {
  background: #333;
  border-color: #333;
}

.secondary-button {
  background: var(--panel-bg);
  color: var(--ink);
  border-color: var(--border-color);
}

.secondary-button:hover {
  background: var(--bg-color);
  border-color: var(--border-hover);
}

.action-link.dark {
  background: #fff;
  color: var(--ink) !important;
  border-color: var(--border-color);
}

.action-link.dark:hover {
  background: var(--bg-color);
}

.action-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.text-link {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--ink);
}

.text-link.strong {
  font-weight: 500;
}

/* Search Layout */
.search-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.search-home {
  display: grid;
  gap: 28px;
  justify-items: center;
  padding: 56px 0 24px;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumb-sep {
  color: var(--border-hover);
}

.info-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--border-color);
}

.info-hero-copy {
  max-width: 760px;
}

.info-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.info-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 28px;
}

.article-hero {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--border-color);
}

.article-hero-copy {
  max-width: 760px;
  text-align: center;
}

.article-hero-link {
  margin-top: 20px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 220px;
  gap: 64px;
  justify-content: center;
  padding-top: 28px;
  align-items: start;
}

.article-sidebar {
  position: relative;
}

.article-toc {
  position: sticky;
  top: 24px;
  padding: 4px 0 4px 18px;
  border-left: 1px solid var(--border-color);
  background: transparent;
}

.article-toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

.article-toc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.article-toc-list a {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  padding-left: 18px;
}

.article-toc-list a:hover {
  color: var(--ink);
}

.article-toc-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: #d8d8d8;
}

.article-body {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.article-section {
  display: grid;
  gap: 16px;
}

.article-section + .article-section {
  padding-top: 8px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.article-section h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.article-section p,
.article-list {
  font-size: 17px;
  line-height: 1.85;
  color: #2d2d2d;
}

.article-list {
  margin: 0;
  padding-left: 22px;
}

.article-list li + li {
  margin-top: 10px;
}

.info-page-status {
  margin-top: 24px;
}

.info-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.info-card h2 {
  font-size: 20px;
  line-height: 1.3;
}

.info-card p,
.info-list {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.info-list {
  margin: 0;
  padding-left: 20px;
}

.search-home-brand {
  max-width: 760px;
  text-align: center;
  display: grid;
  gap: 12px;
}

.search-home-brand h1 {
  font-size: clamp(38px, 6vw, 56px);
  letter-spacing: -0.06em;
}

.search-home-brand .hero-copy {
  margin-top: 0;
  font-size: 17px;
}

.search-panel {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-panel-home {
  width: min(100%, 920px);
  display: grid;
  gap: 0;
}

.search-block {
  display: grid;
  gap: 12px;
}

.field-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.search-bar {
  display: flex;
  gap: 8px;
}

.search-bar-large {
  gap: 0;
  align-items: stretch;
  min-height: 58px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel-bg);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.08);
}

.search-bar input {
  flex: 1;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  font-size: 14px;
  background: var(--panel-bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}

.search-bar-large input {
  border: none;
  border-radius: 0;
  padding: 0 24px;
  font-size: 18px;
  background: transparent;
}

.search-bar input:focus {
  border-color: var(--muted);
  box-shadow: 0 0 0 1px var(--muted);
}

.search-bar-large input:focus {
  border-color: transparent;
  box-shadow: none;
}

.search-submit {
  min-width: 96px;
  border: none;
  border-radius: 0;
  padding: 0 24px;
  background: var(--ink);
}

.search-submit:hover {
  background: #333;
}

.search-submit svg {
  width: 22px;
  height: 22px;
  display: block;
}

.results-panel-home {
  margin-top: 20px;
}

.topic-cluster,
.seo-copy-grid {
  margin-top: 56px;
}

.topic-cluster-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.topic-cluster-head h2,
.seo-copy-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.topic-cluster-head p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

.topic-cluster-grid,
.seo-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.topic-card,
.seo-copy-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.topic-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.topic-card h3 {
  font-size: 20px;
  line-height: 1.25;
}

.topic-card p,
.seo-copy-card p,
.seo-copy-card .info-list {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.section-divider {
  height: 1px;
  margin: 18px 0 10px;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0), rgba(17, 17, 17, 0.14) 18%, rgba(17, 17, 17, 0.14) 82%, rgba(17, 17, 17, 0));
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.reviews-showcase {
  margin-top: 72px;
  padding: 12px 0 0;
}

.reviews-showcase-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.reviews-showcase-head h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.reviews-showcase-head p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

.reviews-columns {
  column-count: 3;
  column-gap: 24px;
}

.review-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  padding: 26px 24px;
  background: #fcfbff;
  border: 1px solid #e6d7ff;
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(122, 75, 255, 0.03);
}

.review-card h3 {
  text-align: center;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 16px;
}

.review-card p {
  font-size: 15px;
  line-height: 1.75;
  color: #262626;
}

.review-card p + p {
  margin-top: 12px;
}

.review-rating {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.faq-showcase {
  margin-top: 80px;
  padding-bottom: 8px;
}

.faq-showcase-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.faq-showcase-head h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.faq-showcase-head p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0 20px;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 28px 20px 0;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--muted);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

/* Icon Card */
.icon-card {
  display: block;
  text-decoration: none;
}

.icon-preview {
  height: 168px;
  display: grid;
  place-items: center;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.icon-card:hover .icon-preview {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.icon-preview-image {
  width: 132px;
  height: 132px;
  object-fit: contain;
}

.icon-link {
  color: inherit;
}

/* Empty & Error */
.empty-state {
  padding: 40px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.page-error {
  margin-bottom: 24px;
}

.message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--border-color);
}

.message.error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.message.success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.hidden {
  display: none !important;
}

/* Workspace Panels */
.workspace {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.billing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #f5f5f5);
}

.billing-banner-copy {
  display: grid;
  gap: 6px;
}

.billing-banner-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.billing-banner-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.uploader-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 40px 24px;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  background: var(--panel-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dropzone:hover, .dropzone.active {
  border-color: var(--ink);
  background: var(--bg-color);
}

.dropzone.has-preview {
  padding: 24px;
  border-style: solid;
  background: var(--bg-color);
}

.dropzone-preview {
  width: 100%;
  display: grid;
  place-items: center;
}

.dropzone-preview img {
  width: min(220px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
}

.dropzone-icon {
  font-size: 24px;
  color: var(--muted);
}

.dropzone strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.dropzone span:last-child {
  font-size: 12px;
  color: var(--muted);
}

.entry-links {
  text-align: center;
}

.input-divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.input-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--border-color);
}

.input-divider span {
  position: relative;
  display: inline-block;
  padding: 0 10px;
  background: var(--panel-bg);
}

.text-source {
  display: grid;
  gap: 12px;
}

.text-input {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font: inherit;
  font-size: 20px;
  line-height: 1.4;
  background: var(--panel-bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.text-input-hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.color-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.size-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.color-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.color-label {
  font-size: 14px;
  font-weight: 500;
}

.color-hint {
  font-size: 12px;
  color: var(--muted);
}

.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 4px 8px;
  cursor: pointer;
}

#background-color,
#foreground-color {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

#background-color::-webkit-color-swatch-wrapper,
#foreground-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

#background-color::-webkit-color-swatch,
#foreground-color::-webkit-color-swatch {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

#background-color-value,
#foreground-color-value {
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  text-transform: uppercase;
  min-width: 54px;
}

.size-slider-wrap {
  min-width: min(100%, 220px);
  display: flex;
  align-items: center;
  gap: 12px;
}

#icon-scale {
  width: min(100%, 180px);
  accent-color: var(--ink);
}

#icon-scale-value {
  font-family: inherit;
  font-size: 12px;
  color: var(--ink);
  min-width: 40px;
  text-align: right;
}

.tips {
  padding: 16px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tips-title {
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.platform-proof {
  margin-bottom: 28px;
}

.platform-proof-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.platform-proof-list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  gap: 10px;
}

.platform-proof-list span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.32);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}


/* Preview Section */
.preview-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.preview-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.toolbar {
  width: 100%;
}

.toolbar-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.toolbar-actions .action-link {
  width: 100%;
  min-height: 48px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.preview-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-card.large {
  grid-column: span 1;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.preview-title {
  font-size: 14px;
  font-weight: 500;
}

.preview-desc {
  font-size: 12px;
  margin-top: 2px;
  color: var(--muted);
}

.preview-scale {
  font-size: 12px;
  color: var(--muted);
}

.preview-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-stage {
  height: 180px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  padding: 16px;
}

.preview-placeholder {
  font-size: 12px;
  color: var(--muted);
}

.preview-image {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.mini-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  font-size: 12px;
}

.mini-button:hover {
  background: var(--bg-color);
  border-color: var(--border-hover);
}

.billing-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
  z-index: 40;
}

.billing-modal-card {
  width: min(100%, 460px);
  position: relative;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  display: grid;
  gap: 16px;
}

.billing-modal-card h2 {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.billing-modal-copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.billing-feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.billing-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-color);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.billing-modal-close:hover {
  background: #efefef;
}

.site-footer {
  max-width: 1200px;
  margin: 56px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.tools-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.tools-hero-copy {
  max-width: 760px;
}

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

.tool-directory-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border-color);
}

.tool-hero-copy {
  max-width: 760px;
}

.tool-workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  padding-top: 28px;
  align-items: start;
}

.tool-control-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tool-select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--panel-bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.tool-select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.tool-platform-group {
  display: grid;
  gap: 12px;
}

.tool-platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-platform-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--panel-bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.tool-platform-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.tool-platform-chip[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.tool-platform-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-color);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.tool-platform-note strong {
  color: var(--ink);
}

.tool-group-badge {
  display: inline-flex;
  align-self: flex-start;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.28);
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.tool-help-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.tool-mode-group {
  display: grid;
  gap: 10px;
}

.tool-mode-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--panel-bg);
  font-size: 14px;
  cursor: pointer;
}

.tool-mode-option input {
  margin: 0;
  accent-color: var(--ink);
}

.tool-toolbar-actions {
  margin-top: 4px;
}

.tool-toolbar-actions button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.tool-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tool-preview-stage-wrap {
  background: linear-gradient(135deg, #f7f7f7 0%, #ececec 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 20px;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tool-preview-shell {
  width: min(100%, 420px);
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
  cursor: grab;
  touch-action: none;
}

.tool-preview-shell.portrait {
  aspect-ratio: 9 / 19.542857;
}

.tool-preview-shell.landscape {
  width: min(100%, 780px);
  aspect-ratio: 19.542857 / 9;
}

.tool-preview-shell.dragging {
  cursor: grabbing;
}

.tool-preview-shell.is-stretch {
  cursor: default;
}

.tool-preview-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.tool-directory-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-directory-top h2 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.tool-directory-top p {
  color: var(--muted);
  line-height: 1.6;
}

.tool-status {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tool-feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.tool-directory-link {
  margin-top: auto;
  align-self: flex-start;
}

.tool-directory-link-muted {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--muted);
}

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

@media (max-width: 1024px) {
  body {
    padding: 20px 16px 56px;
  }

  .hero-shell,
  .editor-hero,
  .info-hero,
  .article-hero,
  .tools-hero,
  .tool-hero,
  .platform-proof,
  .search-layout,
  .workspace {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .search-panel {
    position: static;
  }

  .search-home {
    padding-top: 32px;
  }

  .search-home-brand h1 {
    font-size: 34px;
  }

  .search-panel-home {
    width: 100%;
  }

  .platform-proof-list {
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
  }

  .info-hero {
    align-items: flex-start;
  }

  .info-sections {
    grid-template-columns: 1fr;
  }

  .article-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-toc {
    position: static;
    margin-bottom: 24px;
    max-height: none;
    overflow: visible;
    padding: 20px 22px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  }

  .tool-workspace {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .topic-cluster-grid,
  .seo-copy-grid {
    grid-template-columns: 1fr;
  }

  .reviews-columns {
    column-count: 2;
  }

  .faq-showcase {
    margin-top: 64px;
  }

  .search-bar-large {
    min-height: auto;
    flex-direction: column;
    border-width: 1px;
    border-radius: 20px;
  }

  .search-bar-large input {
    min-height: 56px;
    padding: 0 18px;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .search-submit {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }
}

@media (max-width: 640px) {
  .reviews-showcase {
    margin-top: 56px;
  }

  .reviews-showcase-head h2 {
    font-size: 30px;
  }

  .reviews-columns {
    column-count: 1;
  }

  .faq-showcase-head h2 {
    font-size: 28px;
  }

  .faq-item {
    padding: 0 16px;
  }

  .faq-item summary {
    font-size: 16px;
    padding-right: 24px;
  }

  .toolbar {
    width: 100%;
  }

  .preview-controls {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    grid-template-columns: 1fr;
  }

  .platform-proof-list {
    grid-template-columns: 1fr;
  }

  .color-control {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .size-control {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .size-slider-wrap {
    width: 100%;
  }

  #icon-scale {
    width: 100%;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-preview-head {
    flex-direction: column;
  }

  .tool-preview-stage-wrap {
    min-height: 360px;
    padding: 14px;
  }

  .tool-preview-shell {
    width: min(100%, 320px);
  }

  .tool-preview-shell.landscape {
    width: 100%;
  }

  .site-header-inner,
  .billing-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
