@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;600&display=swap');

:root {
  --black: #000000;
  --white: #FDFFFC;
  --green: #4DA167;
  --orange: #F39237;
  --red: #e12e40;
  --blue:#0C6291;
  --shadow: 0 20px 60px rgba(23, 23, 23, 0.09);
  --radius: 8px;
  --globalfont: 'Google Sans', 'Noto Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  background: linear-gradient(180deg,rgba(255, 255, 255, 1) 35%, rgba(240, 242, 247, 1) 100%);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 400;
  min-height: 100vh;
}

.app-bg {
  position: fixed;
  inset: -200px;
  background: radial-gradient(circle at 15% 20%, rgba(23, 23, 23, 0.06), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(23, 23, 23, 0.04), transparent 35%);
  z-index: -1;
}

.topbar {
  background: var(--white);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #dedede;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 18px 24px;
  box-sizing: border-box;
}

.topbar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: 180ms ease;
}

.brand:hover {
  opacity: 0.85;
}

.logo-img {
  width: 70px;
  height: auto;
}

.topbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: #171717;
  transition: border-radius 160ms ease-out;
  cursor: pointer;
}

.topbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.topbar-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: 2px solid #171717;
  border-radius: var(--radius);
  color: #171717;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.15;
  overflow: hidden;
  padding: 0.5rem 1.1rem;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: border-radius 160ms ease-out, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.nav a {
  color: #171717;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lang-switch a {
  color: var(--black);
  text-decoration: none;
  transition: 180ms ease;
}

.nav a:hover,
.nav a.active {
  text-decoration: underline;
}

.topbar-home.active,
.topbar-home:hover {
  border-radius: 2px;
  background-color: #171717;
  color: #fff;
}

.topbar-toggle:hover,
.topbar-toggle:focus-visible,
.topbar-toggle[aria-expanded='true'] {
  border-radius: 2px;
}

.lang-switch a {
  border: none;
  padding: 0;
  text-decoration: none;
}

.lang-switch a.active,
.lang-switch a:hover {
  background: transparent;
  color: var(--black);
  text-decoration: underline;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #171717;
  text-decoration: none;
  transition: 180ms ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover {
  color: var(--blue);
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.hero {
  margin-bottom: 18px;
}

.hero h1,
.page-h1 {
  margin: 0;
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 10px 0 0;
  max-width: 700px;
  line-height: 1.5;
}

.card {
  background: var(--white);
  border: 1px solid #dfdfdf;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px;
}

.section-spaced + .section-spaced {
  margin-top: 16px;
}

.url-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.url-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.url-row input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 2px solid #171717;
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
}

.url-row .icon-only {
  flex: 0 0 auto;
}

.btn-remove {
  flex: 0 0 auto;
  white-space: nowrap;
}

.strategy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ececec;
}

.device-mode-selector {
  display: flex;
  gap: 0;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
}

.device-mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #999;
  transition: border-radius 160ms ease-out, color 200ms ease;
  position: relative;
  font-family: inherit;
}

.device-mode-btn .device-icon {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.device-mode-btn:hover {
  border-radius: 2px;
  color: #666;
}

.device-mode-btn.active {
  border-radius: 2px;
  color: var(--blue);
  font-weight: 600;
}

.device-mode-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.15;
  min-width: 7.5rem;
  overflow: hidden;
  padding: 0.75rem 1.5rem;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: border-radius 160ms ease-out, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: #171717;
  border: 2px solid #fff;
  color: #fff;
}

.btn-primary:hover {
  border-radius: 2px;
  background-color: #333;
}

.btn-secondary {
  background-color: #fff;
  border: 2px solid #171717;
  color: #171717;
}

.btn-secondary:hover {
  border-radius: 2px;
  background-color: #f0f0f0;
}

.btn-danger {
  background-color: var(--red);
  border: 2px solid var(--red);
  color: #fff;
}

.btn-danger:hover {
  border-radius: 2px;
  background-color: #8e0019;
  border-color: #8e0019;
}

.btn-success {
  background-color: var(--green);
  border: 2px solid var(--green);
  color: #fff;
}

.btn-success:hover {
  border-radius: 2px;
  background-color: #006400;
  border-color: #006400;
}

.btn-danger:hover {
  border-radius: 2px;
  background-color: #8e0019;
  border-color: #8e0019;
}

.btn:disabled {
  border-color: #999999 !important;
  color: #999999 !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.icon-only {
  width: 42px;
  min-width: 42px;
  padding: 10px 0;
  font-size: 1.3rem;
  font-weight: 500;
}

.status-message {
  min-height: 24px;
  margin: 12px 0;
  font-size: 0.92rem;
}

.analysis-timer {
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--blue);
}

.status-message.success {
  color: var(--green);
}

.status-message.warning {
  color: var(--orange);
}

.status-message.error {
  color: var(--red);
}

.report {
  margin-top: 14px;
  border-top: 1px solid #ececec;
  padding-top: 14px;
}

.report-list {
  display: grid;
  gap: 12px;
}

.report-card {
  border-radius: var(--radius);
  border: 2px solid black;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 35%, rgba(240, 242, 247, 1) 100%);
  padding: 24px;
}

.report-url-link {
  color: inherit;
  text-decoration: none;
}

.report-url-link:hover {
  text-decoration: underline;
}

.report-url-link-mark {
  font-size: 0.85em;
}

.report-card h4 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.report-meta {
  margin: 12px 0 0;
  font-size: clamp(1rem, 1.5vw, 2rem);
  color: #3a3a3a;
}

.score-logo {
  display: block;
  height: 18px;
  width: auto;
  margin: 20px 0 8px;
}

.kplus {
  font-size: 4rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 24px 0 18px;
}

.report-verdict-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.08em;
}

.report-verdict-body {
  margin: 8px 0 26px;
  font-size: clamp(1.2rem, 2.6vw, 2.8rem);
  line-height: 1.18;
}

.report-hook {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid #d9d9d9;
  border-radius: var(--radius);
  background: #ffffff;
}

.report-hook-intro,
.report-hook-line {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.report-hook-line {
  margin-top: 8px;
}

.report-hook-link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    'perf best'
    'seo access';
  gap: 8px 48px;
  font-size: clamp(1.15rem, 2.3vw, 2.55rem);
  line-height: 1.2;
}

.metrics > div:nth-child(1) { grid-area: perf; }
.metrics > div:nth-child(2) { grid-area: best; }
.metrics > div:nth-child(3) { grid-area: seo; }
.metrics > div:nth-child(4) { grid-area: access; }

.metrics > div {
  min-width: 0;
}

.share-controls {
  margin-top: 14px;
}

.share-meta {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #303030;
}

.share-controls input {
  width: 100%;
  border: 2px solid rgba(0, 0, 0, 0.2);;
  border-radius: var(--radius);
  padding: 10px;
  font: inherit;
}

.hidden {
  display: none;
}

.steps {
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f6368;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
}

.muted {
  color: #5f6368;
  line-height: 1.7;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.how-card {
  border: 1px solid #d8d8d8;
  border-radius: var(--radius);
  padding: 18px;
  background: #fbfbfb;
}

.how-card-number {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #5f6368;
}

.how-card h3,
.content-block h2,
.cta-card h2 {
  margin: 0 0 10px;
}

.how-card p,
.faq-item p,
.cta-card p {
  line-height: 1.7;
}

.how-card-note {
  margin-top: 14px;
  font-weight: 500;
}

.bullet-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.bullet-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 18px;
  line-height: 1.6;
}

.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--black);
}

.bullet-list-wide {
  margin-top: 18px;
  columns: 2;
  column-gap: 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid #e3e3e3;
  border-radius: var(--radius);
  background: #fcfcfc;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 44px 16px 16px;
  font-weight: 600;
  position: relative;
}

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

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 600;
  color: #5f6368;
}

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

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

.cta-card {
  text-align: center;
}

.cta-card p {
  max-width: 760px;
  margin: 0 auto 18px;
}

/* ── Rankings page ── */

.rankings-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.domain-chip {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  color: #555;
  white-space: nowrap;
}

.rankings-quick-info,
.audit-quick-info {
  margin-top: 12px;
  padding: 14px 16px;
  border: 2px solid #dfdfdf;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 35%, rgba(240, 242, 247, 1) 100%);
}

.rankings-quick-info h4,
.audit-quick-info h4 {
  margin: 0 0 8px;
}

.rankings-quick-info p,
.audit-quick-info p {
  margin: 0;
  line-height: 1.45;
}

.rankings-empty-msg {
  color: #666;
}

.rankings-table {
  margin-top: 14px;
  border-top: 1px solid #ececec;
  padding-top: 14px;
  overflow-x: auto;
}

.rank-strategy-label {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 12px;
}

.rank-header,
.rank-row {
  display: grid;
  grid-template-columns: 44px 1fr 60px repeat(4,140px);
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
}

.rank-header {
  font-weight: 600;
  font-size: 0.75rem;
  color: #666;
  border-bottom: 2px solid #171717;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rank-row {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.15s ease;
}

.rank-row:hover {
  background: rgba(0, 0, 0, 0.02);
}

.rank-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-pos {
  text-align: center;
  flex-shrink: 0;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  font-weight: 700;
  font-size: 0.78rem;
}

.rank-gold .rank-badge   { background: #f59e0b; color: #fff; }
.rank-silver .rank-badge { background: #9ca3af; color: #fff; }
.rank-bronze .rank-badge { background: #b45309; color: #fff; }

.rank-domain-col {
  font-weight: 500;
}

.rank-score-col {
  text-align: center;
}

.rank-kplus {
  font-weight: 700;
  font-size: 1.05rem;
}

.rank-kplus.excellent { color: var(--green); }
.rank-kplus.good      { color: var(--orange); }
.rank-kplus.poor      { color: var(--red); }

.rank-metric {
  font-size: 0.82rem;
  color: #555;
  text-align: center;
}

.rankings-failed {
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff8f8;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
}

.rankings-failed-title {
  font-weight: 600;
  color: var(--red);
  margin: 0 0 6px;
}

.rank-failed-item {
  font-size: 0.88rem;
  color: #666;
  margin: 4px 0;
}

@media (max-width: 639px) {
  .rank-header,
  .rank-row {
    grid-template-columns: 40px 1fr 64px;
  }

  .rank-metric {
    display: none;
  }

  .rank-header .rank-metric {
    display: none;
  }
}

h1, h2, h3, h4 {
  font-weight: 500;
}

.page-h2 {
  font-size: 2.5rem;
  }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.price-card {
  border: 1px solid #d8d8d8;
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card-subtitle {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #5f6368;
}

.price-heading {
  margin-top: unset;
  margin-bottom: unset;
}

.price-description {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #5f6368;
  font-weight: 500;
}

.price {
  margin-top: unset;
  margin-bottom: unset;
  font-weight: 600;
  font-size: 3rem;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: #5f6368;
}

.features-list {
  margin: 16px 0;
  padding: 12px;
  background: #f8f9fa;
  border-radius: var(--radius);
  flex: 1;
}

.features-list h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
}

.features-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.features-list li {
  margin: 6px 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: #374151;
  position: relative;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--green);
}

.price-card a {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.payment-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 0;
}

.payment-info h2 {
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.payment-info ul {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.payment-info li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
}

.payment-info p {
  font-size: 0.95rem;
  color: #5f6368;
  margin-top: 16px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 18px;
  color: #3b3b3b;
}

.footer-nav {
  width: 100%;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.footer p {
  margin: 0;
  font-size: 8px;
}

.footer-logo-link {
  display: block;
  text-align: center;
}

.footer-logo {
  width: 40px;
  height: auto;
}

.mobile-mail-link {
  font-size: 22px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.mobile-mail-link:hover {
  color: var(--black);
  text-decoration: underline;
}

@media (max-width: 1439px) {
  .topbar-inner {
    gap: 16px;
  }

  .topbar-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .topbar-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-top: 28px;
  }

  .topbar-menu.is-open {
    display: flex;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .topbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .lang-switch {
    flex-wrap: wrap;
  }

  /* ─── Full-viewport overlay (Franke-style) ─── */
  .topbar.menu-is-open {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: #fff;
    backdrop-filter: none;
    border-bottom: none;
    overflow: hidden;
  }

  /* Grid: header row (brand | toggle) + full-height menu row */
  .topbar.menu-is-open .topbar-inner {
    display: grid;
    grid-template-areas:
      "brand toggle"
      "menu  menu";
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
    padding-bottom: 0;
    gap: 0;
  }

  .topbar.menu-is-open .brand {
    grid-area: brand;
  }

  .topbar.menu-is-open .topbar-toggle {
    grid-area: toggle;
  }

  /* Menu panel fills the remaining height, actions pushed to bottom */
  .topbar.menu-is-open .topbar-menu.is-open {
    grid-area: menu;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    padding: 0;
    gap: 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 18px;
  }

  /* Large, full-width nav links with arrow */
  .topbar.menu-is-open .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .topbar.menu-is-open .nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 700;
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none !important;
    color: #171717;
  }

  .topbar.menu-is-open .nav a::after {
    content: '→';
    font-size: 1.2rem;
    font-weight: 400;
    flex-shrink: 0;
  }

  /* Actions bar (Home + LinkedIn + Lang) pinned to bottom */
  .topbar.menu-is-open .topbar-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
  }
}

/* Mobile First: Base styles optimized for small screens (< 480px) */
@media (max-width: 479px) {
  .topbar-inner {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    justify-content: flex-start;
  }

  .logo-img {
    width: 50px;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .lang-switch {
    gap: 6px;
  }

  .lang-switch a {
    font-size: 0.85rem;
  }

  .container {
    padding: 16px 12px 32px;
  }

  .hero h1,
  .page-h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .card {
    padding: 16px;
    border-radius: var(--radius);
  }

  .strategy-row {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
  }

  .device-mode-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    gap: 6px;
  }

  .device-mode-btn .device-icon {
    width: 18px;
    height: 18px;
  }

  .button-row {
    gap: 6px;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.1rem;
    min-width: 6rem;
  }

  .icon-only {
    width: 44px;
    min-width: 44px;
  }

  .url-row input {
    padding: 10px;
    font-size: 1rem;
  }

  .report-card {
    padding: 12px;
  }

  .report-card h4 {
    font-size: 0.95rem;
  }

  .kplus {
    font-size: 4rem;
  }

  .metrics {
    grid-template-columns: 1fr;
    grid-template-areas:
      'perf'
      'best'
      'seo'
      'access';
    gap: 6px;
    font-size: 0.85rem;
  }

  .share-controls input {
    padding: 8px;
    font-size: 0.9rem;
  }

  .pricing-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: 12px;
    padding-right: 12px;
  }

  .pricing-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    scroll-snap-type: x mandatory;
  }

  .price-card {
    padding: 12px;
    flex: 0 0 80vw;
    max-width: 320px;
    scroll-snap-align: start;
  }

  .steps {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 4px;
  }

  .bullet-list-wide {
    columns: 1;
  }
}

/* Tablet: 480px - 1023px */
@media (min-width: 480px) and (max-width: 1023px) {
  .topbar-inner {
    gap: 12px;
    padding: 14px 18px;
  }

  .section-spaced + .section-spaced {
    margin-top: 20px;
  }

  .nav {
    gap: 15px;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .container {
    padding: 24px 16px 40px;
  }

  .hero h1,
  .page-h1 {
    font-size: 2.5rem;
  }

  .card {
    padding: 18px;
  }

  .button-row {
    gap: 8px;
  }

  .btn {
    font-size: 1rem;
    padding: 0.65rem 1.25rem;
  }

  .report-list {
    gap: 10px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 0.9rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .steps {
    font-size: 0.95rem;
  }

  .bullet-list-wide {
    columns: 1;
  }
}

/* Desktop: 1024px - 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
  .topbar-inner {
    gap: 24px;
    padding: 18px 24px;
  }

  .section-spaced + .section-spaced {
    margin-top: 28px;
  }

  .nav {
    gap: 18px;
  }

  .nav a {
    font-size: 0.95rem;
  }

  .container {
    padding: 28px 24px 48px;
  }

  .hero h1,
  .page-h1 {
    font-size: 2.5rem;
  }

  .card {
    padding: 22px;
  }

  .button-row {
    gap: 8px;
  }

  .btn {
    font-size: 1.05rem;
    padding: 0.7rem 1.4rem;
  }

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

  .report-list {
    gap: 12px;
  }

  .report-card {
    padding: 18px;
  }

  .report-card h4 {
    font-size: clamp(1.1rem, 1.25vw, 1.45rem);
  }

  .report-meta {
    font-size: clamp(0.95rem, 1vw, 1.15rem);
  }

  .kplus {
    font-size: 4.5rem;
    margin: 16px 0 12px;
  }

  .report-verdict-title {
    font-size: clamp(1.45rem, 2.15vw, 2rem);
  }

  .report-verdict-body {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    margin: 6px 0 16px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 24px;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Large Desktop: 1440px and up */
@media (min-width: 1440px) {
  .topbar-inner {
    flex-wrap: nowrap;
    gap: 24px;
    padding: 18px 24px;
  }

  .topbar-menu {
    display: flex;
  }

  .nav {
    flex: 1;
    gap: 40px;
  }

  .topbar-actions {
    flex-shrink: 0;
  }

  .container {
    max-width: 1280px;
    padding: 32px 32px 32px;
  }

  .hero h1,
  .page-h1 {
    font-size: 4rem;
  }

  .report-card {
    padding: 22px;
  }

  .report-card h4 {
    font-size: clamp(1.2rem, 1.05vw, 1.55rem);
  }

  .report-meta {
    font-size: clamp(1rem, 0.85vw, 1.2rem);
  }

  .kplus {
    font-size: 4.5rem;
    margin: 18px 0 14px;
  }

  .report-verdict-title {
    font-size: clamp(1.7rem, 1.9vw, 2.3rem);
  }

  .report-verdict-body {
    font-size: clamp(1.1rem, 1.1vw, 1.35rem);
    margin: 8px 0 18px;
  }

  .metrics {
    gap: 8px 30px;
    font-size: clamp(1rem, 0.95vw, 1.2rem);
  }

  .card {
    padding: 28px;
  }

  .btn {
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
  }

  .pricing-grid {
    gap: 18px;
  }
}

/* ── Embeddable Badge Section ─────────────────────────────────────────────── */
.badge-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--black);
}

.badge-section-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.875rem;
}

.badge-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.badge-variant-btn {
  padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.badge-variant-btn:hover {
  background: rgba(0, 0, 0, 0.07);
}

.badge-variant-btn.active {
  background: var(--black);
  color: var(--white);
}

.badge-preview {
  margin-bottom: 1rem;
  min-height: 200px;
  pointer-events: none;
  user-select: none;
}

.badge-code-area {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--globalfont);
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.6rem 0.75rem;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  resize: vertical;
  margin-bottom: 0.75rem;
  background: var(--white);
  color: var(--black);
}
