:root {
  color-scheme: light;
  --page: #fff8f5;
  --page-soft: #ffecea;
  --surface: #ffffff;
  --surface-strong: #f6fbff;
  --text: #061a2d;
  --muted: #5d6c79;
  --line: #dbe4ec;
  --accent: #209bd8;
  --accent-strong: #168ac2;
  --accent-soft: #e6f5fc;
  --dot: #ff746d;
  --warning: #a63f32;
  --shadow: 0 18px 42px rgba(24, 54, 82, 0.14);
  --radius-card: 8px;
  --radius-pill: 999px;
  --z-header: 20;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--page);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.section-shell,
.hero-shell,
.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-card);
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
}

.primary-button:active,
.secondary-button:active,
.copy-button:active,
.preview-button:active {
  transform: translateY(1px);
}

.hero-section {
  min-height: 100dvh;
  display: grid;
  align-items: start;
  padding: 22px 0 34px;
  background-color: var(--page);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--dot) 66%, transparent) 1px, transparent 1.2px);
  background-size: 28px 28px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  width: min(1260px, calc(100% - 32px));
}

.tool-column {
  display: grid;
  gap: 0;
  width: min(100%, 600px);
  min-width: 0;
  justify-self: end;
}

.hero-copy {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.app-icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 2px 0 24px;
}

.app-icon-link {
  --icon-bg: #b8b8b8;
  --icon-fg: #ffffff;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-fg);
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(7, 26, 45, 0.12);
  opacity: 0.62;
  transform: scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.app-icon-link span {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 840;
}

.app-icon-link[data-app="facebook"],
.app-icon-link[data-app="linkedin"] {
  --icon-bg: #d8e7fb;
  --icon-fg: #83a9dd;
}

.app-icon-link[data-app="threads"],
.app-icon-link[data-app="tiktok"],
.app-icon-link[data-app="twitter"] {
  --icon-bg: #a5a5a5;
}

.app-icon-link:hover,
.app-icon-link.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 12px 28px rgba(7, 26, 45, 0.16);
  filter: saturate(1.08);
}

.app-icon-link[data-app="instagram"]:hover,
.app-icon-link[data-app="instagram"].is-active {
  --icon-bg: linear-gradient(145deg, #833ab4 0%, #fd1d1d 48%, #fcb045 100%);
  --icon-fg: #ffffff;
}

.app-icon-link[data-app="facebook"]:hover,
.app-icon-link[data-app="facebook"].is-active {
  --icon-bg: #1877f2;
  --icon-fg: #ffffff;
}

.app-icon-link[data-app="threads"]:hover,
.app-icon-link[data-app="threads"].is-active,
.app-icon-link[data-app="twitter"]:hover,
.app-icon-link[data-app="twitter"].is-active {
  --icon-bg: #111111;
  --icon-fg: #ffffff;
}

.app-icon-link[data-app="tiktok"]:hover,
.app-icon-link[data-app="tiktok"].is-active {
  --icon-bg: linear-gradient(145deg, #25f4ee 0%, #111111 48%, #fe2c55 100%);
  --icon-fg: #ffffff;
}

.app-icon-link[data-app="linkedin"]:hover,
.app-icon-link[data-app="linkedin"].is-active {
  --icon-bg: #0a66c2;
  --icon-fg: #ffffff;
}

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

h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: 46px;
  line-height: 1;
  font-weight: 820;
}

.hero-text {
  max-width: 980px;
  margin: 0 auto;
  color: var(--text);
  font-size: 24px;
  line-height: 1.24;
  font-weight: 430;
}

.hero-workspace {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(400px, 440px);
  gap: 88px;
  align-items: start;
  justify-content: center;
  margin-top: 28px;
}

.generator-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.form-topline {
  display: none;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.field {
  display: grid;
  gap: 8px;
}

.platform-field,
.keyword-field,
.secondary-button {
  display: none;
}

label {
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 810;
}

.info-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: #9fafbc;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  vertical-align: 3px;
}

select,
textarea,
input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

select,
input {
  min-height: 60px;
  padding: 0 24px;
  font-size: 20px;
}

textarea {
  min-height: 68px;
  resize: vertical;
  padding: 16px 24px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
}

select:focus,
textarea:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

::placeholder {
  color: #b5c5d1;
  opacity: 1;
}

.helper {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.form-error {
  margin: 0;
  color: var(--warning);
  font-size: 13px;
  font-weight: 720;
}

.tone-row {
  display: grid;
  position: relative;
}

.tone-row::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 23px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  pointer-events: none;
  transform: translateY(-66%) rotate(45deg);
}

.tone-row select {
  appearance: none;
  -webkit-appearance: none;
  color: #111111;
  background: #ffffff;
  line-height: 1.2;
  padding-right: 60px;
  text-overflow: ellipsis;
}

.compact-field {
  margin-top: -4px;
}

.button-row {
  display: grid;
}

.primary-button,
.secondary-button,
.copy-button,
.preview-button {
  min-height: 48px;
  border-radius: var(--radius-pill);
  padding: 0 18px;
  font-weight: 780;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.primary-button {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-card);
  font-size: 20px;
}

.primary-button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.primary-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.secondary-button,
.copy-button,
.preview-button {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
}

.secondary-button:hover,
.copy-button:hover,
.preview-button:hover {
  border-color: var(--accent);
}

.output-panel {
  min-height: 150px;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}

.output-label {
  margin-bottom: -6px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 810;
}

.empty-state {
  position: relative;
  min-height: 146px;
  display: grid;
  align-items: start;
  gap: 6px;
  padding: 18px 72px 18px 20px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state strong {
  color: var(--text);
  font-size: 15px;
}

.loading-lines {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.loading-lines span {
  height: 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--surface-strong), var(--accent-soft), var(--surface-strong));
  background-size: 220% 100%;
  animation: shimmer 1.1s linear infinite;
}

.loading-lines span:nth-child(2) {
  width: 82%;
}

.loading-lines span:nth-child(3) {
  width: 64%;
}

.result-list {
  display: grid;
  gap: 0;
}

.result-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 96px;
  padding: 16px 174px 14px 18px;
  border-bottom: 1px solid var(--line);
}

.result-card:last-child {
  border-bottom: 0;
}

.result-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}

.result-number {
  margin-right: 8px;
  font-weight: 830;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.result-meta span {
  display: none;
}

.result-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.copy-button,
.preview-button {
  display: inline-grid;
  place-items: center;
  width: 74px;
  min-height: 48px;
  border-radius: var(--radius-card);
  padding: 0 12px;
  font-size: 13px;
  line-height: 1;
}

.preview-button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.copy-icon-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.preview-stage {
  display: grid;
  place-items: start center;
  align-self: start;
  justify-self: start;
}

.preview-device {
  --preview-accent: #171717;
  --preview-soft: #f4f4f4;
  width: min(100%, 440px);
  height: 560px;
  border: 1px solid #d8d8d8;
  border-radius: 22px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 22px 56px rgba(45, 37, 0, 0.16);
  color: #111111;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-device[data-platform="instagram"] {
  --preview-accent: #111111;
  --preview-soft: #f7f7f7;
}

.preview-device[data-platform="facebook"] {
  --preview-accent: #1877f2;
  --preview-soft: #eef3ff;
}

.preview-device[data-platform="threads"] {
  --preview-accent: #111111;
  --preview-soft: #f6f6f6;
}

.preview-device[data-platform="tiktok"] {
  --preview-accent: #111111;
  --preview-soft: #f2f2f2;
  border-color: #111111;
}

.preview-device[data-platform="twitter"] {
  --preview-accent: #111111;
  --preview-soft: #eff6fb;
}

.preview-device[data-platform="linkedin"] {
  --preview-accent: #0a66c2;
  --preview-soft: #e8f3ff;
}

.preview-appbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 30px;
  color: #171717;
  font-size: 12px;
  font-weight: 780;
}

.appbar-center {
  color: #707070;
  font-weight: 650;
}

.appbar-right {
  letter-spacing: 1px;
}

.preview-cover {
  height: 112px;
  margin: 0 -12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--preview-accent) 18%, #ffffff), color-mix(in srgb, var(--preview-accent) 5%, #f1f1f1)),
    var(--preview-soft);
}

.preview-cover span {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,.65), transparent 26%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.32) 0 8px, transparent 8px 18px);
}

.preview-profile-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: -28px;
  padding: 0 4px;
}

.preview-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: var(--preview-accent);
  color: #ffffff;
  font-size: 22px;
  font-weight: 830;
}

.preview-identity {
  align-self: end;
  display: grid;
  gap: 3px;
  padding-top: 28px;
  min-width: 0;
}

.preview-identity strong,
.preview-identity span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-identity strong {
  font-size: 17px;
}

.preview-identity span {
  color: #666666;
  font-size: 12px;
}

.preview-follow {
  align-self: end;
  min-height: 36px;
  border: 1px solid var(--preview-accent);
  border-radius: var(--radius-pill);
  padding: 0 18px;
  background: var(--preview-accent);
  color: #ffffff;
  font-weight: 780;
}

.preview-device:not([data-platform="twitter"]) .preview-follow {
  display: none;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 8px;
  text-align: center;
}

.preview-stats div {
  display: grid;
  gap: 2px;
}

.preview-stats strong {
  font-size: 15px;
}

.preview-stats span {
  color: #6f6f6f;
  font-size: 11px;
}

.preview-bio {
  min-height: 50px;
  margin: 8px 2px 8px;
  color: #111111;
  font-size: 13px;
  line-height: 1.45;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.preview-meta span {
  border-radius: var(--radius-pill);
  padding: 5px 8px;
  background: var(--preview-soft);
  color: #454545;
  font-size: 11px;
  font-weight: 680;
}

.preview-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-bottom: 8px;
}

.preview-actions button {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--preview-accent);
  color: #ffffff;
  font-weight: 760;
}

.preview-actions button + button {
  background: #eeeeee;
  color: #171717;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  color: #555555;
  font-size: 11px;
  font-weight: 720;
  text-align: center;
}

.preview-tabs span {
  padding: 8px 4px;
}

.preview-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-top: 8px;
  flex: 1;
  min-height: 0;
}

.preview-feed span {
  display: grid;
  place-items: center;
  min-height: 0;
  border-radius: 2px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--preview-accent) 11%, #ffffff), #f4f4f4),
    var(--preview-soft);
}

.linkedin-about,
.thread-list {
  display: none;
}

.preview-device[data-platform="instagram"] .preview-cover {
  height: 0;
  margin: 0;
}

.preview-device[data-platform="instagram"] .preview-profile-row {
  margin-top: 10px;
}

.preview-device[data-platform="instagram"] .preview-avatar {
  width: 80px;
  height: 80px;
  border: 2px solid #e1306c;
}

.preview-device[data-platform="facebook"] .preview-cover {
  height: 132px;
  border-radius: 0 0 10px 10px;
}

.preview-device[data-platform="facebook"] .preview-profile-row {
  grid-template-columns: auto 1fr;
}

.preview-device[data-platform="facebook"] .preview-follow {
  grid-column: 1 / -1;
  width: 100%;
}

.preview-device[data-platform="threads"] .preview-cover,
.preview-device[data-platform="tiktok"] .preview-cover {
  height: 0;
  margin: 0;
}

.preview-device[data-platform="threads"] .preview-profile-row,
.preview-device[data-platform="tiktok"] .preview-profile-row {
  margin-top: 12px;
}

.preview-device[data-platform="threads"] .preview-feed {
  display: none;
}

.preview-device[data-platform="threads"] .thread-list {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  margin-top: 8px;
  flex: 1;
  min-height: 0;
}

.preview-device[data-platform="threads"] .thread-list span {
  min-height: 38px;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  padding: 10px;
  color: #555555;
  font-size: 13px;
}

.preview-device[data-platform="tiktok"] {
  background: #111111;
  color: #ffffff;
}

.preview-device[data-platform="tiktok"] .preview-identity span,
.preview-device[data-platform="tiktok"] .preview-stats span,
.preview-device[data-platform="tiktok"] .preview-meta span,
.preview-device[data-platform="tiktok"] .preview-tabs {
  color: #d8d8d8;
}

.preview-device[data-platform="tiktok"] .preview-bio,
.preview-device[data-platform="tiktok"] .preview-identity strong,
.preview-device[data-platform="tiktok"] .preview-stats strong {
  color: #ffffff;
}

.preview-device[data-platform="tiktok"] .preview-avatar {
  border-color: #111111;
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
}

.preview-device[data-platform="tiktok"] .preview-follow,
.preview-device[data-platform="tiktok"] .preview-actions button {
  border-color: #fe2c55;
  background: #fe2c55;
}

.preview-device[data-platform="tiktok"] .preview-meta span,
.preview-device[data-platform="tiktok"] .preview-actions button + button {
  background: #2a2a2a;
  color: #ffffff;
}

.preview-device[data-platform="tiktok"] .preview-tabs {
  border-color: #2c2c2c;
}

.preview-device[data-platform="tiktok"] .preview-feed span {
  background: #252525;
}

.preview-device[data-platform="twitter"] .preview-cover {
  height: 102px;
  background: #cfd9de;
}

.preview-device[data-platform="twitter"] .preview-actions button + button {
  display: none;
}

.preview-device[data-platform="twitter"] .preview-actions {
  display: none;
}

.preview-device[data-platform="linkedin"] .preview-cover {
  height: 96px;
  background: linear-gradient(135deg, #0a66c2, #8ab8e8);
}

.preview-device[data-platform="linkedin"] .preview-stats,
.preview-device[data-platform="linkedin"] .preview-feed,
.preview-device[data-platform="linkedin"] .preview-tabs,
.preview-device[data-platform="linkedin"] .preview-bio {
  display: none;
}

.preview-device[data-platform="linkedin"] .preview-actions {
  grid-template-columns: 1fr 1fr;
}

.preview-device[data-platform="linkedin"] .linkedin-about {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 8px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  flex: 1;
}

.preview-device[data-platform="linkedin"] .linkedin-about strong {
  font-size: 14px;
}

.preview-device[data-platform="linkedin"] .linkedin-about p {
  margin: 0;
  color: #333333;
  font-size: 12px;
  line-height: 1.5;
}

.seo-section,
.seo-detail-section {
  background: #ffffff;
}

.seo-section {
  padding: 78px 0 34px;
}

.seo-detail-section {
  padding: 26px 0 88px;
}

.section-heading,
.stacked-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading h2,
.stacked-heading h2,
.article-copy h2 {
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1.08;
  font-weight: 810;
}

.section-heading p,
.stacked-heading p,
.article-copy p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
}

.article-layout {
  max-width: 1060px;
}

.article-copy {
  max-width: 760px;
}

.article-copy h2 {
  font-size: 42px;
}

.article-copy p {
  max-width: 66ch;
}

.seo-stack-layout {
  display: grid;
  gap: 58px;
  max-width: 1060px;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.seo-block {
  display: grid;
  gap: 24px;
}

.seo-block + .seo-block {
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.seo-block-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.seo-block-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 38px;
  line-height: 1.08;
  font-weight: 820;
}

.seo-block-heading p {
  margin: 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.seo-step-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.seo-step-cards li,
.seo-point-list article,
.seo-example-grid figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.seo-step-cards li {
  display: grid;
  align-content: start;
  gap: 34px;
  min-height: 190px;
  padding: 22px;
}

.seo-step-cards span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 850;
}

.seo-step-cards p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 700;
}

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

.seo-point-list article {
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 22px;
}

.seo-point-list h3 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.18;
}

.seo-point-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.seo-split-block {
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: 52px;
  align-items: start;
}

.seo-checklist {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.seo-checklist li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 690;
}

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

.seo-example-grid figure {
  margin: 0;
  padding: 22px;
}

.seo-example-grid blockquote {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 620;
}

.seo-faq-block {
  gap: 18px;
}

.compact-faq {
  gap: 10px;
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

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

summary {
  padding: 18px 20px;
  color: var(--text);
  font-weight: 760;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}

.footer-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

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

.footer-links a:hover {
  color: var(--accent-strong);
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise-in 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .generator-card.reveal {
    animation-delay: 90ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 900px) {
  h1 {
    font-size: 50px;
  }
}

@media (max-width: 1040px) {
  .hero-section {
    min-height: auto;
  }

  .hero-shell,
  .hero-workspace,
  .article-layout,
  .seo-split-block {
    grid-template-columns: 1fr;
  }

  .tool-column,
  .preview-stage {
    justify-self: center;
  }

  .tool-column {
    width: min(100%, 640px);
  }

  .preview-stage {
    order: 0;
  }

  .seo-step-cards,
  .seo-point-list,
  .seo-example-grid {
    grid-template-columns: 1fr;
  }

  .generator-card {
    width: 100%;
  }

}

@media (max-width: 760px) {
  .section-shell,
  .hero-shell,
  .footer-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .hero-section {
    padding: 32px 0 40px;
  }

  .hero-shell {
    gap: 28px;
  }

  .app-icon-row {
    gap: 12px;
    margin-bottom: 34px;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 2px 3px 8px;
    scrollbar-width: none;
  }

  .app-icon-row::-webkit-scrollbar {
    display: none;
  }

  .app-icon-link {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
  }

  .app-icon-link span {
    font-size: 26px;
  }

  .hero-copy {
    text-align: left;
  }

  h1 {
    max-width: none;
    font-size: 40px;
  }

  .hero-text {
    font-size: 22px;
  }

  .hero-workspace {
    gap: 28px;
    margin-top: 36px;
  }

  .generator-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .form-topline,
  .output-panel {
    grid-column: auto;
  }

  .button-row,
  .form-topline,
  .result-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  label,
  .output-label {
    font-size: 22px;
  }

  .info-dot {
    width: 19px;
    height: 19px;
    font-size: 11px;
    vertical-align: 3px;
  }

  select,
  input {
    min-height: 62px;
    padding: 0 18px;
    font-size: 18px;
  }

  textarea {
    min-height: 84px;
    padding: 16px 18px;
    font-size: 18px;
  }

  .primary-button {
    min-height: 68px;
    font-size: 20px;
  }

  .output-panel {
    min-height: 190px;
  }

  .result-card {
    padding: 16px 18px 74px;
  }

  .result-actions {
    right: auto;
    left: 18px;
    bottom: 14px;
  }

  .empty-state {
    min-height: 186px;
  }

  .seo-section {
    padding: 48px 0 22px;
  }

  .seo-detail-section {
    padding: 20px 0 58px;
  }

  .seo-stack-layout {
    gap: 30px;
    padding-top: 30px;
  }

  .preview-device {
    width: min(100%, 440px);
    height: 540px;
  }

  .preview-profile-row {
    grid-template-columns: auto 1fr;
  }

  .preview-follow {
    grid-column: 1 / -1;
    width: 100%;
  }

  .preview-feed span {
    min-height: 72px;
  }

  .section-heading h2,
  .stacked-heading h2,
  .article-copy h2,
  .seo-block-heading h2 {
    font-size: 30px;
  }

  .seo-block + .seo-block {
    padding-top: 34px;
  }

  .seo-step-cards li,
  .seo-point-list article,
  .seo-example-grid figure {
    min-height: auto;
    padding: 18px;
  }

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

  .footer-brand .brand-mark {
    display: inline-grid;
  }

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