@font-face {
  font-family: 'LvelsDisplay';
  src: url('/assets/fonts/outfit-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LvelsSans';
  src: url('/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LvelsSans';
  src: url('/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LvelsSans';
  src: url('/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --target-size: 36px;
  --blur-chrome: 18px;
  --dur-fast: 120ms;
  --spring-snappy: cubic-bezier(0.2, 0.9, 0.25, 1);
  --brand-color: #ff4d9d;
  --brand-gradient: linear-gradient(135deg, #db2777 0%, #9333ea 54%, #4f46e5 100%);
  --bg-page: #0a0715;
  --aurora-1: rgba(192, 38, 211, 0.24);
  --aurora-2: rgba(236, 72, 153, 0.18);
  --aurora-3: rgba(14, 165, 233, 0.14);
  --aurora-4: rgba(124, 58, 237, 0.16);
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(16, 11, 34, 0.68);
  --glass-bg-strong: rgba(14, 10, 30, 0.9);
  --glass-neutral-btn: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(28, 20, 56, 0.72);
  --glass-highlight: inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.36), inset -1.5px -1.5px 5px rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 14px 34px rgba(4, 2, 14, 0.44), var(--glass-highlight);
  --glass-shadow-sm: 0 10px 26px rgba(4, 2, 14, 0.3), var(--glass-highlight);
  --accent-love-glow: 0 8px 22px rgba(225, 29, 72, 0.36), var(--glass-highlight);
  --text-main: #f9f7ff;
  --text-muted: #c8bfe7;
  --champagne-text: #f5d0fe;
  --link-color: #f9a8d4;
  --link-hover: #ffffff;
  --focus-ring: #f9a8d4;
  --border-subtle: rgba(255, 255, 255, 0.16);
  --border-specular: rgba(255, 255, 255, 0.3);
  --radius-pill: 999px;
}

@media (pointer: coarse) {
  :root {
    --target-size: 44px;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg-page: #f2f4fc;
  --aurora-1: rgba(236, 72, 153, 0.16);
  --aurora-2: rgba(168, 85, 247, 0.15);
  --aurora-3: rgba(14, 165, 233, 0.15);
  --aurora-4: rgba(244, 114, 182, 0.13);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-bg-strong: rgba(255, 255, 255, 0.96);
  --glass-neutral-btn: rgba(255, 255, 255, 0.9);
  --glass-highlight: inset 1px 1px 2px rgba(255, 255, 255, 0.96), 0 0 0 1px rgba(76, 54, 138, 0.12);
  --glass-shadow: 0 14px 32px rgba(45, 32, 92, 0.1), var(--glass-highlight);
  --glass-shadow-sm: 0 8px 22px rgba(45, 32, 92, 0.08), var(--glass-highlight);
  --text-main: #18122b;
  --text-muted: #524873;
  --champagne-text: #86198f;
  --link-color: #9d174d;
  --link-hover: #701a75;
  --focus-ring: #db2777;
  --border-subtle: rgba(76, 54, 138, 0.16);
  --border-specular: rgba(76, 54, 138, 0.24);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg-page: #f2f4fc;
    --aurora-1: rgba(236, 72, 153, 0.16);
    --aurora-2: rgba(168, 85, 247, 0.15);
    --aurora-3: rgba(14, 165, 233, 0.15);
    --aurora-4: rgba(244, 114, 182, 0.13);
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-bg-strong: rgba(255, 255, 255, 0.96);
    --glass-neutral-btn: rgba(255, 255, 255, 0.9);
    --glass-highlight: inset 1px 1px 2px rgba(255, 255, 255, 0.96), 0 0 0 1px rgba(76, 54, 138, 0.12);
    --glass-shadow: 0 14px 32px rgba(45, 32, 92, 0.1), var(--glass-highlight);
    --glass-shadow-sm: 0 8px 22px rgba(45, 32, 92, 0.08), var(--glass-highlight);
    --text-main: #18122b;
    --text-muted: #524873;
    --champagne-text: #86198f;
    --link-color: #9d174d;
    --link-hover: #701a75;
    --focus-ring: #db2777;
    --border-subtle: rgba(76, 54, 138, 0.16);
    --border-specular: rgba(76, 54, 138, 0.24);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:where([hidden]) {
  display: none;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

html {
  scroll-padding-top: calc(76px + var(--sat));
  background-color: var(--bg-page);
  overflow-x: clip;
}

body {
  font-family: 'LvelsSans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-block-size: 100dvh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 84% 8%, var(--aurora-1) 0%, transparent 44%),
    radial-gradient(circle at 12% 20%, var(--aurora-2) 0%, transparent 42%),
    radial-gradient(circle at 78% 86%, var(--aurora-3) 0%, transparent 48%),
    radial-gradient(circle at 22% 84%, var(--aurora-4) 0%, transparent 45%);
}

.skip-link:not(:focus-visible) {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus-visible {
  position: fixed;
  inset-block-start: calc(12px + var(--sat));
  inset-inline-start: calc(12px + var(--sal));
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg-strong);
  border: 2px solid var(--focus-ring);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}

.primary-btn,
.secondary-btn,
.danger-btn {
  padding: 9px 16px;
  min-block-size: var(--target-size);
  min-inline-size: var(--target-size);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.secondary-btn {
  background: var(--glass-neutral-btn);
  box-shadow: var(--glass-highlight);
  color: var(--text-main);
}

.primary-btn {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: var(--accent-love-glow);
}

.danger-btn {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.88), rgba(159, 18, 57, 0.94));
  color: #ffffff;
  border-color: rgba(251, 113, 133, 0.45);
}

.web-seo-landing,
.seo-page-shell {
  --seo-link: #f9a8d4;
  --seo-link-hover: #fdf2f8;
  --seo-sticky-surface: #151026;
  --seo-card-surface: rgba(20, 15, 38, 0.88);
  width: 100%;
  max-inline-size: 1040px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-main);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .web-seo-landing,
  :root:not([data-theme="dark"]) .seo-page-shell {
    --seo-link: #9d174d;
    --seo-link-hover: #701a75;
    --seo-sticky-surface: #eef1fb;
    --seo-card-surface: rgba(255, 255, 255, 0.95);
  }
}

:root[data-theme="light"] .web-seo-landing,
:root[data-theme="light"] .seo-page-shell {
  --seo-link: #9d174d;
  --seo-link-hover: #701a75;
  --seo-sticky-surface: #eef1fb;
  --seo-card-surface: rgba(255, 255, 255, 0.95);
}

.seo-page-shell {
  padding: 20px calc(16px + var(--sar)) calc(48px + var(--sab)) calc(16px + var(--sal));
}

.seo-site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  background: var(--seo-sticky-surface);
  border-block-end: 1px solid var(--border-specular);
  padding: calc(8px + var(--sat)) calc(16px + var(--sar)) 8px calc(16px + var(--sal));
}

.seo-header-inner {
  max-inline-size: 1040px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-main);
  text-decoration: none;
  font-family: 'LvelsDisplay', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.seo-brand-link img {
  border-radius: 9px;
  flex-shrink: 0;
}

.seo-site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.seo-site-nav a,
.web-seo-inline-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid transparent;
}

.seo-site-nav a:hover,
.web-seo-inline-nav a:hover {
  border-color: var(--border-specular);
  background: rgba(236, 72, 153, 0.12);
}

.seo-site-nav a[aria-current="page"] {
  border: 2px solid #ec4899;
  background: rgba(236, 72, 153, 0.18);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-header-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.seo-btn-sm {
  padding: 7px 13px;
  font-size: 0.83rem;
}

/* Accessible Breadcrumbs (modern-web-guidance: breadcrumbs) */
.seo-breadcrumb > ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.seo-breadcrumb > ol > li + li::before {
  content: "›" / "";
  margin-inline-end: 6px;
  color: var(--text-muted);
}

.seo-breadcrumb a {
  color: var(--seo-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-breadcrumb a[aria-current="page"] {
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
}

@media (forced-colors: active) {
  .seo-breadcrumb a[aria-current="page"] {
    text-decoration: underline;
  }
}

.seo-hero-card,
.seo-editorial-card {
  background: var(--seo-card-surface);
  border: 1px solid var(--border-specular);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--glass-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.seo-hero-card h1,
.seo-editorial-card h2,
.seo-editorial-card h3 {
  font-family: 'LvelsDisplay', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.25;
  text-wrap: balance;
}

.seo-hero-card h1 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
}

.seo-editorial-card h2 {
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
}

.seo-editorial-card h3 {
  font-size: 1.04rem;
  margin-block-start: 6px;
}

.seo-freshness-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.seo-author-byline {
  font-size: 0.83rem;
  color: var(--text-muted);
  border-inline-start: 3px solid #ec4899;
  padding-inline-start: 10px;
}

.seo-answer-block,
.seo-editorial-card p,
.seo-steps-list li,
.seo-feature-list li {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text-main);
}

.seo-steps-list,
.seo-feature-list {
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 4px;
}

.seo-table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(560px, 80dvh);
  container-type: inline-size;
  border: 1px solid var(--border-specular);
  border-radius: 16px;
}

.seo-cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.seo-cmp-table caption {
  text-align: start;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--seo-sticky-surface);
  border-block-end: 1px solid var(--border-specular);
}

.seo-cmp-table th,
.seo-cmp-table td {
  padding: 11px 14px;
  text-align: start;
  border-block-end: 1px solid var(--border-specular);
  vertical-align: top;
}

.seo-cmp-table thead th,
.seo-cmp-table tbody th {
  background: var(--seo-sticky-surface);
  color: var(--text-main);
  font-weight: 700;
}

@container (width < 600px) {
  .seo-cmp-table,
  .seo-cmp-table thead,
  .seo-cmp-table tbody,
  .seo-cmp-table tr,
  .seo-cmp-table th,
  .seo-cmp-table td {
    display: block;
  }
  .seo-cmp-table thead {
    display: none;
  }
  .seo-cmp-table tr {
    margin: 10px;
    border: 1px solid var(--border-specular);
    border-radius: 12px;
    overflow: hidden;
  }
  .seo-cmp-table td:nth-child(2)::before {
    content: var(--label-2) ": ";
    font-weight: 700;
  }
  .seo-cmp-table td:nth-child(3)::before {
    content: var(--label-3) ": ";
    font-weight: 700;
  }
  .seo-cmp-table td:nth-child(4)::before {
    content: var(--label-4) ": ";
    font-weight: 700;
  }
}

.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.seo-mini-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-specular);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--text-main);
}

.seo-mini-card strong {
  color: var(--seo-link);
  font-size: 0.96rem;
}

.seo-mini-card span {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.seo-mini-card:hover,
.seo-city-pill:hover {
  border-color: #ec4899;
}

.seo-city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 4px;
}

.seo-city-pill {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-specular);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.seo-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seo-faq-item {
  border: 1px solid var(--border-specular);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 14px;
}

.seo-faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65ch;
  padding-block: 13px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-main);
  cursor: pointer;
}

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

.seo-faq-item > summary::before {
  content: "";
  inline-size: 0.95em;
  block-size: 0.95em;
  flex-shrink: 0;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.seo-faq-item[open] > summary::before {
  rotate: 0deg;
}

.seo-faq-answer {
  padding-block: 0 14px;
}

/* Copy for AI & Code Block Affordances (modern-web-guidance: copy-button) */
.seo-ai-bridge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-specular);
  background: rgba(255, 255, 255, 0.03);
}

.seo-ai-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-button {
  min-inline-size: 28px;
  min-block-size: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-specular);
  background: var(--glass-bg-strong);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-button[data-copied] {
  border-color: #10b981;
}

.copy-button[data-failed] {
  border-color: #ef4444;
}

.copy-button .copy-icon::before {
  content: "📋";
}

.copy-button[data-copied] .copy-icon::before {
  content: "✓";
}

.copy-tip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--border-specular);
  color: var(--text-main);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.copy-button[data-copied] + .copy-tip,
.copy-button[data-failed] + .copy-tip {
  opacity: 1;
}

.seo-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seo-code-wrap pre {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-specular);
  background: rgba(8, 5, 18, 0.78);
  color: #f9f7ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-x: auto;
}

/* Public Footer */
.web-seo-footer {
  background: var(--seo-card-surface);
  border: 1px solid var(--border-specular);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.web-seo-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 18px;
}

.web-seo-footer-heading {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-block-end: 8px;
}

.web-seo-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
}

.web-seo-footer a,
.seo-editorial-card a:not(.primary-btn):not(.secondary-btn):not(.seo-mini-card):not(.seo-city-pill) {
  color: var(--seo-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.web-seo-footer a:hover,
.seo-editorial-card a:not(.primary-btn):not(.secondary-btn):not(.seo-mini-card):not(.seo-city-pill):hover {
  color: var(--seo-link-hover);
}

.web-seo-footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-block-start: 1px solid var(--border-specular);
  padding-block-start: 14px;
}

.legal-shell {
  max-inline-size: 860px;
  margin-inline: auto;
  padding: calc(24px + var(--sat)) calc(20px + var(--sar)) calc(48px + var(--sab)) calc(20px + var(--sal));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-card {
  background: var(--seo-card-surface, var(--glass-bg));
  border: 1px solid var(--border-specular);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--glass-shadow);
}

.legal-card h1,
.legal-card h2 {
  font-family: 'LvelsDisplay', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.legal-card h1 {
  font-size: 1.75rem;
  margin-block-end: 6px;
}

.legal-card h2 {
  font-size: 1.15rem;
  margin-block-start: 22px;
  margin-block-end: 8px;
  color: var(--champagne-text);
}

.legal-card p,
.legal-card li {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.64;
}

.legal-card ul {
  padding-inline-start: 20px;
  margin-block: 8px;
}

.legal-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .seo-hero-card,
  .seo-editorial-card,
  .web-seo-footer,
  .legal-card {
    padding: 16px;
    border-radius: 18px;
  }
}
