/* FireLiker - Clean White & Blue Theme (No Emojis) */
:root {
  color-scheme: light;
  --bg: #f2f7ff;
  --bg-gradient: radial-gradient(ellipse at 50% 0%, #deecff 0%, #f2f7ff 65%);
  --panel: #ffffff;
  --panel-elevated: #f8fbff;
  --panel-hover: #eef5ff;
  --line: #cbdaf0;
  --line-light: #e0ecfb;
  --text: #10264a;
  --muted: #415879;
  --muted-dim: #7188a8;
  --accent: #1858ca;
  --accent-hover: #1246a3;
  --accent-light: #eaf2ff;
  --accent-border: #bcd5fc;
  --success: #0d8a5b;
  --success-bg: #eafaf3;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 4px 16px rgba(18, 61, 123, 0.06);
  --shadow-md: 0 8px 28px rgba(18, 61, 123, 0.08);
  --shadow-hover: 0 12px 32px rgba(18, 61, 123, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

header, main, footer {
  width: min(1140px, calc(100% - 32px));
  margin: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

/* Header */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand img {
  border-radius: 6px;
}

.brand span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.15s ease-in-out;
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.site-nav a[aria-current="page"],
.site-nav a.active {
  background: var(--accent);
  color: #ffffff !important;
  border-color: var(--accent);
  font-weight: 700;
}

.site-nav a[aria-current="page"]:hover,
.site-nav a.active:hover {
  background: var(--accent-hover);
  color: #ffffff !important;
}

.site-nav a.highlight-nav:not([aria-current="page"]) {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.languages {
  position: relative;
}

.languages summary {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: all 0.2s;
}

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

.languages summary:hover {
  color: var(--accent);
  border-color: var(--accent-border);
}

.languages nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  min-width: 150px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.languages nav a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
}

.languages nav a:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.languages nav a[aria-current="page"],
.languages nav a.active {
  color: #ffffff !important;
  background: var(--accent);
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
  }
  .site-nav {
    order: 3;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    justify-content: center;
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: clamp(38px, 6.5vw, 68px) clamp(16px, 4vw, 36px) clamp(30px, 4.5vw, 50px);
  margin-top: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.eyebrow-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  font-weight: 850;
  color: var(--text);
}

.hero h1 .text-highlight {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.6;
  color: var(--muted);
}

/* Form */
.lookup-form {
  max-width: 680px;
  margin: 28px auto 0;
  text-align: left;
}

.lookup-label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 8px;
}

.search-box-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 6px 8px 6px 14px;
  box-shadow: 0 2px 8px rgba(18, 61, 123, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(24, 88, 202, 0.16);
}

.search-box-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  padding: 8px 4px;
  font-family: inherit;
  outline: none;
}

.search-box-wrap input::placeholder {
  color: var(--muted-dim);
}

.btn-paste {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-paste:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-light);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-helper {
  font-size: 12px;
  color: var(--muted-dim);
  margin-top: 8px;
  text-align: center;
}

/* Trust Proof Counters */
.trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 860px;
  margin: 32px auto 0;
}

.metric-card {
  padding: 12px 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
}

.metric-number {
  display: block;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 850;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.metric-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 550;
}

@media (max-width: 680px) {
  .search-box-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .btn-submit {
    width: 100%;
    margin-top: 6px;
  }
  .trust-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Panels */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3.5vw, 36px);
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 30px;
}

.section-head .eyebrow-pill {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--text);
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* Video Result Card & Engagement Dispatcher */
.video-result {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 24px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 2.5vw, 28px);
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

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

.video-thumb-wrap {
  aspect-ratio: 9/12;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb-wrap .no-thumb {
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.video-meta-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 750;
  color: var(--accent);
}

.video-caption {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.current-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.stat-item {
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.stat-item dt {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted-dim);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.stat-item dd {
  font-size: 15px;
  font-weight: 850;
  margin: 2px 0 0;
  color: var(--text);
}

.video-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.video-original-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.video-original-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.video-download-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

.video-download-link:hover {
  background: #d8e8fe;
  border-color: var(--accent);
}

/* Engagement Hub Controls */
.engagement-hub {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.5vw, 24px);
}

.hub-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.hub-header h3 {
  font-size: 19px;
  margin: 0 0 4px;
  font-weight: 800;
  color: var(--text);
}

.hub-header p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Service Tabs */
.service-tabs {
  display: flex;
  gap: 6px;
  background: #ffffff;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.service-tab {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.service-tab:hover {
  color: var(--text);
}

.service-tab.active {
  background: var(--accent);
  color: #ffffff;
}

/* Package Chips */
.package-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.package-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.package-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.package-chips.hidden {
  display: none;
}

.chip {
  padding: 10px 12px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-light);
}

.chip.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.chip-tag {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-dim);
  margin-top: 2px;
}

.chip.active .chip-tag {
  color: var(--accent);
}

/* Action CTA */
.btn-dispatch {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-dispatch:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-dispatch:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Progress Box */
.progress-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.progress-box.hidden {
  display: none;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.progress-percent {
  font-size: 13px;
  color: var(--accent);
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--line-light);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Success Box */
.success-box {
  background: var(--success-bg);
  border: 1.5px solid rgba(13, 138, 91, 0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.success-box.hidden {
  display: none;
}

.success-title {
  color: var(--success);
  font-size: 16px;
  font-weight: 850;
  margin: 0 0 6px;
}

.order-id-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(13, 138, 91, 0.15);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 800;
  color: var(--success);
  margin-bottom: 6px;
}

.success-details {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 10px;
}

.cooldown-alert {
  font-size: 12px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.cooldown-countdown {
  font-weight: 800;
  color: var(--accent);
}

@media (max-width: 820px) {
  .video-result {
    grid-template-columns: 1fr;
  }
  .video-thumb-wrap {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* Notice / Error banner */
.notice {
  background: #fff3f5;
  border: 1px solid #ffd0d8;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #bf2644;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0;
  text-align: center;
}

/* Tutorial / Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
}

.step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 2px 9px;
  width: fit-content;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
}

.step-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 980px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Editorial Content Section */
.article-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 42px);
  margin-top: 24px;
}

.article-content {
  max-width: 860px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 850;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--text);
}

.article-content h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 24px 0 8px;
  color: var(--text);
}

.article-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 14px;
}

.article-callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 20px 0;
}

.article-callout p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.pro-tips-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.pro-tip-item {
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.pro-tip-item strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.pro-tip-item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Comparison Section */
.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  background: var(--panel-elevated);
  font-weight: 800;
  color: var(--text);
}

.comparison-table td {
  color: var(--muted);
}

.comparison-table td:first-child {
  font-weight: 700;
  color: var(--text);
}

.comparison-table .highlight-col {
  color: var(--accent);
  font-weight: 750;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--accent-border);
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  user-select: none;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

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

.faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
  border-top-color: var(--line);
  padding-top: 14px;
}

/* Creator lookup profile result */
.creator-result {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-top: 24px;
}

.creator-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.creator-heading img {
  border-radius: 50%;
  border: 2px solid var(--line);
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 14px 0;
}

.guide-links a {
  display: inline-block;
  padding: 7px 12px;
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.guide-links a:hover {
  background: var(--accent-light);
  border-color: var(--accent-border);
}

/* Downloader Result Card */
.download-result-card {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 24px;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 2.5vw, 28px);
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.download-preview-thumb {
  aspect-ratio: 9/12;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.download-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.download-meta-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btn-dl-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 750;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: background 0.15s, transform 0.15s;
}

.btn-dl-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-dl-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.15s;
}

.btn-dl-secondary:hover {
  background: #d8e8fe;
  border-color: var(--accent);
}

.btn-dl-audio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  background: var(--panel-elevated);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 650;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all 0.15s;
}

.btn-dl-audio:hover {
  color: var(--text);
  border-color: var(--line-light);
}

@media (max-width: 720px) {
  .download-result-card {
    grid-template-columns: 1fr;
  }
  .download-preview-thumb {
    max-width: 200px;
    margin: 0 auto;
  }
}

/* User Reviews & Ratings Section */
.rating-summary-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin: 0 auto 28px;
  max-width: 440px;
  box-shadow: var(--shadow-sm);
}

.rating-big-score {
  font-size: 38px;
  font-weight: 850;
  color: var(--accent);
  line-height: 1;
}

.rating-stars-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stars-display {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}

.rating-meta-text {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-border);
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1.5px;
}

.review-date {
  font-size: 12px;
  color: var(--muted-dim);
  font-weight: 550;
}

.review-title {
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
  margin: 0 0 8px;
}

.review-body {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reviewer-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  font-size: 14px;
}

.reviewer-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.reviewer-handle {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-brand h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
}

.footer-brand p {
  color: var(--muted-dim);
  max-width: 380px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 550;
}

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

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-dim);
}

.disclaimer-text {
  max-width: 680px;
  line-height: 1.5;
}

/* Spin animation for form submitting */
.lookup-form[aria-busy="true"] .btn-submit::before {
  content: '';
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.4em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lookup-spin 0.75s linear infinite;
}

@keyframes lookup-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .lookup-form[aria-busy="true"] .btn-submit::before {
    animation: none;
  }
}

/* TikSave Dedicated How-To Section (Premium Stepper Flow) */
.how-to-download-panel {
  padding: 44px 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-top: 36px;
}

.tiksave-stepper-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin: 36px 0 32px;
}

.tiksave-step-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fafe 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(18, 61, 123, 0.04);
}

.tiksave-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(24, 88, 202, 0.12);
}

.step-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.step-circle-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #e4eeff;
}

.step-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-border);
}

.tiksave-step-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.tiksave-step-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
}

/* Micro-UI Preview Mockup inside Step Card */
.step-micro-mockup {
  margin-top: auto;
  background: #f1f6fd;
  border: 1px dashed #cadcf4;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 11px;
}

.mockup-share-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
}

.mockup-pill-btn {
  background: #ffffff;
  border: 1px solid #c8d9f1;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--muted);
}

.mockup-arrow {
  color: var(--accent);
  font-weight: 800;
}

.mockup-pill-active {
  background: var(--accent);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
}

.mockup-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cadcf4;
  border-radius: 6px;
  padding: 3px 6px;
  gap: 6px;
}

.mockup-input-text {
  color: var(--muted-dim);
  font-family: monospace;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.mockup-input-btn {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
}

.mockup-format-pills {
  display: flex;
  gap: 6px;
}

.mockup-format-pill {
  flex: 1;
  text-align: center;
  padding: 4px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid #cadcf4;
  background: #ffffff;
  color: var(--muted);
}

.mockup-format-pill.active {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mockup-hd-tag {
  background: var(--accent);
  color: #ffffff;
  font-size: 8px;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 800;
}

.mockup-save-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mockup-ready-badge {
  color: var(--success);
  font-weight: 700;
  font-size: 10.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mockup-save-btn {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10.5px;
}

/* Device Compatibility & Pro-Tips Strip */
.tiksave-pro-strip {
  background: #ffffff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  margin-top: 16px;
}

.pro-strip-head {
  text-align: center;
  margin-bottom: 24px;
}

.pro-strip-head h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin: 6px 0;
}

.pro-strip-head p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.pro-guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pro-guide-card {
  background: var(--panel-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  transition: border-color 0.2s;
}

.pro-guide-card:hover {
  border-color: var(--accent-border);
}

.pro-guide-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

.pro-guide-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.pro-guide-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 980px) {
  .tiksave-stepper-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .pro-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .how-to-download-panel {
    padding: 24px 16px;
  }
  .tiksave-stepper-flow {
    grid-template-columns: 1fr;
  }
  .pro-guides-grid {
    grid-template-columns: 1fr;
  }
}

/* Homepage redesign — original centered hero retained. Backup: backups/homepage-2026-11-11 */
.home-redesign .panel {
  padding: clamp(28px, 5vw, 64px);
  margin-top: 40px;
  border-radius: 28px;
  border-color: #e1e8f4;
  box-shadow: 0 12px 40px #19386606;
  font-family: 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
}
.home-redesign .panel .section-head { max-width: 740px; margin-bottom: 40px; }
.home-redesign .panel .section-head h2 {
  font-family: 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -.045em;
  color: #142a4a;
  margin-bottom: 16px;
  text-wrap: balance;
}
.home-redesign .panel .section-head p { font-size: 16px; line-height: 1.8; color: #556580; }
.home-redesign .panel .eyebrow-pill { border: 0; border-radius: 6px; font-size: 10px; padding: 7px 12px; letter-spacing: .15em; background: #e9f0ff; color: #2458c2; margin-bottom: 18px; }
.home-redesign #how-to-use { background: linear-gradient(145deg, #fff 35%, #edf4ff); }
.home-redesign .steps-grid { gap: 18px; }
.home-redesign .step-card { position: relative; padding: 26px 22px; border: 1px solid #e1e8f4; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px #234d9010; }
.home-redesign .home-icon { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 16px; background: #eaf0ff; color: #2863d6; margin-bottom: 24px; }
.home-redesign .step-badge { position: absolute; top: 32px; right: 20px; padding: 0; border: 0; background: transparent; color: #72839f; font-size: 10px; letter-spacing: .1em; }
.home-redesign .step-card h3, .home-redesign .feature-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1.35; margin: 0 0 12px; }
.home-redesign .step-card p, .home-redesign .feature-card p { font-size: 14px; line-height: 1.85; color: #586b85; margin: 0; }
.home-redesign #features { background: radial-gradient(ellipse at 100% 0%, #284c82, transparent 65%), #102442; border-color: #203b61; }
.home-redesign #features .section-head h2 { color: #fff; }
.home-redesign #features .section-head p { color: #b9cbe3; }
.home-redesign #features .eyebrow-pill { background: #ffffff12; color: #abcaff; }
.home-redesign .features-grid { gap: 18px; }
.home-redesign .feature-card { padding: 28px; background: #ffffff06; border: 1px solid #ffffff20; border-radius: 18px; box-shadow: none; }
.home-redesign .feature-card:hover { background: #ffffff0d; border-color: #7ca9e6; }
.home-redesign .feature-card h3 { color: #f5f8ff; }
.home-redesign .feature-card p { color: #b9cbe3; }
.home-redesign .feature-card .home-icon { background: #72a4ff20; color: #91baff; }
.home-redesign .feature-card:nth-child(3n + 2) .home-icon { background: #4be0c318; color: #81dccb; }
.home-redesign .feature-card:nth-child(3n) .home-icon { background: #b59cff20; color: #c5b3ff; }
.home-redesign #reviews { background: linear-gradient(140deg, #f4f1ff, #f7faff 60%, #edf6ff); }
.home-redesign .rating-summary-card { padding: 24px 32px; border: 0; background: #fff; border-radius: 20px; box-shadow: 0 8px 32px #4f478f0c; }
.home-redesign .rating-big-score { color: #192f50; font-size: 48px; letter-spacing: -.06em; }
.home-redesign .reviews-grid { gap: 20px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.home-redesign .review-card { border: 1px solid #e4e5f2; border-radius: 20px; padding: 26px; box-shadow: 0 8px 28px #4f478f06; }
.home-redesign .review-title { font-size: 18px; line-height: 1.4; letter-spacing: -.02em; margin-block: 12px; }
.home-redesign .review-body { font-size: 14px; line-height: 1.85; color: #526580; margin-bottom: 24px; }
.home-redesign .reviewer-avatar-placeholder { width: 42px; height: 42px; background: #e8e5fb; color: #6657a3; }
.home-redesign .reviewer-profile { padding-top: 20px; }
.home-redesign #faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; background: #fff; }
.home-redesign #faq .section-head { text-align: left; margin: 0; }
.home-redesign #faq .faq-list { margin: 0; width: 100%; min-width: 0; }
.home-redesign .faq-item { border: 1px solid #e0e7f1; border-radius: 12px; background: #f8faff; overflow: hidden; }
.home-redesign .faq-item summary { font-size: 15px; line-height: 1.6; padding: 20px; gap: 20px; }
.home-redesign .faq-item summary::after { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; background: #e6edfc; border-radius: 50%; font-size: 18px; }
.home-redesign .faq-item[open] { background: #fff; border-color: #abc3ed; box-shadow: 0 5px 20px #2856a10a; }
.home-redesign .faq-answer { font-size: 14px; line-height: 1.9; color: #526580; padding-inline: 20px; }
.home-redesign .site-footer { margin-top: 64px; padding-top: 40px; }
.home-redesign :is(a, button, summary):focus-visible { outline: 3px solid #3774db; outline-offset: 4px; }
.home-redesign section[id] { scroll-margin-top: 110px; }
@media (max-width: 1000px) {
  .home-redesign .steps-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-redesign .reviews-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-redesign #faq { grid-template-columns: 1fr; gap: 28px; }
  .home-redesign #faq .section-head { text-align: center; margin-inline: auto; }
}
@media (max-width: 600px) {
  .home-redesign .panel { padding: 28px 18px; margin-top: 24px; border-radius: 20px; }
  .home-redesign .steps-grid, .home-redesign .reviews-grid { grid-template-columns: minmax(0,1fr); }
  .home-redesign .panel .section-head { margin-bottom: 28px; }
  .home-redesign .step-card, .home-redesign .feature-card, .home-redesign .review-card { padding: 24px; }
  .home-redesign .rating-summary-card { padding: 20px 16px; }
}

/* Shared responsive layouts: home, downloader, results, gallery and articles. */
main, main section, main article, .engagement-hub, .download-meta-wrap,
.video-preview-card, .creator-heading > div, .footer-brand { min-width: 0; }
main :is(h1,h2,h3,h4,p,a,dd), .footer-links a { overflow-wrap: anywhere; }
main img { max-width: 100%; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 20px; }
.grid > article { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.grid > article > img { width: 100%; height: auto; display: block; }
.card-body { padding: 16px; }
.comparison-table-wrap { max-width: 100%; overflow-x: auto; }
:is(a,button,input,summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 820px) {
  .site-header { position: relative; top: 0; padding: 12px 14px; gap: 12px; }
  .site-nav { justify-content: flex-start; gap: 4px; }
  .site-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; white-space: normal; }
  .languages { margin-left: auto; max-width: 100%; }
  .languages summary { display: flex; align-items: center; min-height: 44px; }
  .languages nav { max-height: min(60vh,400px); overflow-y: auto; max-width: calc(100vw - 48px); }
  .languages nav a { min-height: 44px; display: flex; align-items: center; }
  .video-result, .download-result-card { grid-template-columns: minmax(0,1fr); }
  .video-preview-card { width: 100%; max-width: 360px; margin-inline: auto; }
  .download-preview-thumb { width: min(100%,240px); margin-inline: auto; }
  section[id], .home-redesign section[id] { scroll-margin-top: 20px; }
}
@media (max-width: 680px) {
  header, main, footer { width: calc(100% - 24px); }
  .hero { padding: 32px 18px 24px; margin-top: 16px; border-radius: 18px; }
  .hero h1 { font-size: clamp(28px,7.5vw,42px); line-height: 1.15; }
  .hero-subtitle { font-size: 15px; line-height: 1.75; }
  .eyebrow-pill { max-width: 100%; font-size: 10px; }
  .lookup-form { width: 100%; margin-top: 24px; }
  .search-box-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 8px; }
  .search-box-wrap input { width: 100%; min-height: 48px; font-size: 16px; padding: 10px 4px; }
  .btn-paste { min-height: 44px; justify-content: center; padding: 10px; }
  .search-box-wrap .btn-submit { grid-column: 1 / -1; margin-top: 0; }
  .btn-submit, .btn-dispatch, .btn-dl-primary, .btn-dl-secondary, .btn-dl-audio { min-height: 48px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .form-helper { overflow-wrap: anywhere; line-height: 1.7; }
  .trust-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 24px; }
  .metric-card { min-width: 0; padding: 12px 6px; }
  .panel, .video-result, .download-result-card, .creator-result { padding: 20px 16px; border-radius: 16px; margin-top: 20px; }
  .steps-grid, .features-grid, .tiksave-stepper-flow, .pro-guides-grid { grid-template-columns: minmax(0,1fr); }
  .service-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-tab { min-width: 0; min-height: 44px; padding: 10px 8px; overflow-wrap: anywhere; }
  .service-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .package-chips { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chip { min-width: 0; min-height: 48px; padding: 10px 6px; overflow-wrap: anywhere; }
  .engagement-hub { padding: 18px 12px; }
  .current-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-item { min-width: 0; padding: 8px; }
  .video-card-actions, .progress-header, .creator-heading { flex-wrap: wrap; }
  .order-id-tag, .notice, .success-details { overflow-wrap: anywhere; }
  .faq-item summary { min-height: 48px; gap: 12px; padding: 16px; }
  .faq-item summary::after { flex-shrink: 0; }
  .faq-answer { padding-inline: 16px; }
  .article-content { font-size: 15px; }
  .comparison-table { min-width: 480px; }
  .footer-top { flex-direction: column; }
  .footer-links { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 16px; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .footer-bottom { align-items: flex-start; }
  .step-micro-mockup, .mockup-input-box { min-width: 0; }
  .mockup-format-pills, .mockup-share-pill { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Legal documents and essential-storage notice */
.legal-page { max-width: 880px; margin-inline: auto; }
.legal-page h1 { font-size: clamp(30px,5vw,46px); line-height: 1.15; letter-spacing: -.04em; margin: 0 0 12px; }
.legal-date { font-size: 13px; color: var(--muted); }
.legal-intro { font-size: 18px; line-height: 1.8; }
.legal-page section { margin-top: 30px; }
.legal-page h2 { font-size: 21px; line-height: 1.4; letter-spacing: -.02em; }
.legal-page section p { color: var(--muted); line-height: 1.9; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 18px; border-block: 1px solid var(--line); }
.legal-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; color: var(--accent); }
.legal-nav a[aria-current] { font-weight: 750; }
.cookie-settings { border: 0; background: none; color: var(--muted); font: inherit; text-align: left; padding: 0; min-height: 44px; cursor: pointer; text-decoration: underline; }
.cookie-notice { position: fixed; z-index: 200; bottom: max(16px,env(safe-area-inset-bottom)); left: 16px; width: min(460px,calc(100% - 32px)); max-height: 65dvh; overflow-y: auto; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 60px #10264a30; }
.cookie-notice[hidden], .cookie-settings[hidden] { display: none; }
.cookie-notice h2 { margin: 0 0 10px; font-size: 19px; }
.cookie-notice p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cookie-actions a { text-decoration: underline; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.cookie-actions button { border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; padding: 10px 22px; min-height: 44px; cursor: pointer; }
#cookie-storage-status:empty { display: none; }
.cookie-actions #cookie-accept, .cookie-actions #cookie-reject { flex: 1 1 160px; }
.cookie-actions > a { flex-basis: 100%; }
