/* VidFetch — mobile-first, engagement-focused */
:root {
  --ink: #14212b;
  --ink-soft: #3d4f5c;
  --muted: #6b7c88;
  --paper: #f3f6f8;
  --paper-2: #e8eef2;
  --brand: #0e7c7b;
  --brand-deep: #0a5c5b;
  --accent: #e85d04;
  --accent-hover: #d14f00;
  --line: rgba(20, 33, 43, 0.1);
  --ok: #1b7f5a;
  --warn: #b45309;
  --ad-bg: #eef2f5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 33, 43, 0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --max: 1080px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(14, 124, 123, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(232, 93, 4, 0.1), transparent 50%),
    linear-gradient(180deg, #f7fafb 0%, var(--paper) 40%, #eef3f6 100%);
  background-attachment: scroll;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

h1, h2, h3, .brand {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.container {
  width: min(100% - 1.25rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 251, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, #14919b 55%, var(--accent) 130%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(14, 124, 123, 0.08);
}

.nav-cta {
  display: none;
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

.menu-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

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

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0.75rem 0 1rem;
}

.mobile-menu.open {
  display: block;
  animation: fadeSlide 0.25s ease;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: 0;
  margin-top: 0.5rem;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

/* Sticky bottom tab bar — mobile only (header links, no Paste link) */
.bottom-nav {
  display: none;
}

@media (max-width: 719px) {
  .menu-btn {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }

  .nav-cta {
    display: none !important;
  }

  body.has-bottom-nav {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    min-height: 3.75rem;
    padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(20, 33, 43, 0.06);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.35rem 0.2rem 0.45rem;
    text-decoration: none;
    color: #9aa8b2;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  .bottom-nav-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.1;
  }

  .bottom-nav-item.is-active {
    color: var(--brand);
  }

  .bottom-nav-item.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.15rem;
    width: 1.15rem;
    height: 3px;
    border-radius: 999px;
    background: var(--brand);
    transform: translateX(-50%);
  }
}

/* GPT Anchor ads */
.vf-anchor-ad {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 55;
}

.vf-anchor-ad [id^="div-gpt-ad"] {
  width: 100%;
  display: flex;
  justify-content: center;
}

.vf-anchor-ad--top {
  position: sticky;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: transparent;
}

.vf-anchor-ad--bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}

@media (max-width: 719px) {
  /* Sit above sticky bottom nav so tabs stay visible */
  body.has-bottom-nav .vf-anchor-ad--bottom {
    bottom: calc(4.25rem + env(safe-area-inset-bottom));
  }

  body.has-bottom-nav.has-anchor-bottom {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom) + 0.5rem);
  }

  .bottom-nav {
    z-index: 70;
  }

  .hero-visual {
    display: none;
  }
}

@media (min-width: 720px) {
  .vf-anchor-ad--bottom {
    bottom: 0;
  }
}

/* Hero */
.hero {
  padding: 1.75rem 0 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.65rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  margin: 0 0 0.75rem;
  max-width: 12ch;
}

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

.hero-lead {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34ch;
}

.hero-visual {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(14, 124, 123, 0.95), rgba(10, 92, 91, 0.9) 45%, rgba(232, 93, 4, 0.85)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.04) 10px,
      rgba(255, 255, 255, 0.04) 20px
    );
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 65%);
  animation: pulseOrb 4.5s ease-in-out infinite;
}

.phone-mock {
  position: absolute;
  inset: 18px 18px auto;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 1rem;
  backdrop-filter: blur(6px);
  color: #fff;
  animation: floatY 5s ease-in-out infinite;
}

.phone-mock .bar {
  height: 10px;
  width: 42%;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.85rem;
}

.phone-mock .thumb {
  height: 88px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
  margin-bottom: 0.75rem;
}

.phone-mock .line {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  margin-bottom: 0.45rem;
}

.phone-mock .line.short {
  width: 55%;
}

.phone-mock .btn-ghost {
  margin-top: 0.85rem;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Tool */
.tool-section {
  padding: 0.5rem 0 2rem;
}

.tool-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
  animation: fadeSlide 0.3s ease;
}

.tool-panel[hidden],
.bridge-panel[hidden] {
  display: none !important;
}

.tool-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.tool-panel .hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Step flow indicator */
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.flow-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.flow-step.is-active {
  color: var(--ink);
}

.flow-step.is-done {
  color: var(--ok);
}

.flow-num {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.flow-step.is-active .flow-num {
  background: var(--brand);
  color: #fff;
}

.flow-step.is-done .flow-num {
  background: rgba(27, 127, 90, 0.15);
  color: var(--ok);
}

.flow-line {
  width: 28px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

/* Platform picker */
.platform-pick-grid {
  display: grid;
  gap: 0.65rem;
}

.platform-pick {
  appearance: none;
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.platform-pick:hover {
  border-color: var(--brand);
  background: #fff;
}

.platform-pick:active {
  transform: scale(0.98);
}

.platform-pick:focus-visible {
  outline: 3px solid rgba(14, 124, 123, 0.35);
  outline-offset: 2px;
}

.platform-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(20, 33, 43, 0.12);
}

.platform-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}

.platform-icon-yt { background: linear-gradient(135deg, #ff0033, #c4302b); }
.platform-icon-ig { background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4); }
.platform-icon-tt { background: linear-gradient(135deg, #25f4ee, #111 48%, #fe2c55); }
.platform-icon-fb { background: linear-gradient(135deg, #4b90ff, #1877f2); }
.platform-icon-other { background: linear-gradient(135deg, #5b6b78, #0e7c7b); }

.platform-pick-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}

.platform-pick-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.platform-pick-text span {
  font-size: 0.85rem;
  color: var(--muted);
}

.platform-pick-arrow {
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.platform-pick-arrow svg {
  display: block;
}

.bridge-panel .bridge-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.selected-platform-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.selected-platform-label {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  border-radius: 10px;
}

button.chip {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.platforms {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
  margin-inline: -0.15rem;
  padding-inline: 0.15rem;
}

.platforms::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.chip:hover,
.chip.active {
  background: rgba(14, 124, 123, 0.1);
  color: var(--brand-deep);
  border-color: rgba(14, 124, 123, 0.2);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-dot-yt { background: #ff0033; }
.chip-dot-ig { background: linear-gradient(135deg, #f58529, #dd2a7b); }
.chip-dot-tt { background: #111; box-shadow: 2px 0 0 #25f4ee, -2px 0 0 #fe2c55; }
.chip-dot-fb { background: #1877f2; }

.chip-ico {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: currentColor;
}

.chip-ico svg {
  display: block;
  width: 14px;
  height: 14px;
}

.chip-ico-yt { color: #ff0033; }
.chip-ico-ig { color: #dd2a7b; }
.chip-ico-tt { color: #111; }
.chip-ico-fb { color: #1877f2; }

.chip.active .chip-ico-yt,
.chip.active .chip-ico-ig,
.chip.active .chip-ico-tt,
.chip.active .chip-ico-fb {
  color: var(--brand-deep);
}

.url-form {
  display: grid;
  gap: 0.65rem;
}

.url-form input[type="url"] {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.url-form input[type="url"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 124, 123, 0.15);
  background: #fff;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 12px;
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--brand);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

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

.paste-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.paste-row input {
  flex: 1;
  min-width: 0;
}

.paste-row .btn {
  flex-shrink: 0;
  min-width: 78px;
  min-height: 52px;
  padding-inline: 0.85rem;
}

/* Progress / results — keep users on page */
.status-box,
.result-box {
  display: none;
  margin-top: 1rem;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  animation: fadeSlide 0.3s ease;
}

.status-box.visible,
.result-box.visible {
  display: block;
}

.status-title {
  font-weight: 700;
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress {
  height: 8px;
  background: #d7e0e6;
  border-radius: 99px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), #14919b, var(--accent));
  background-size: 200% 100%;
  animation: progressShine 1.4s linear infinite;
  border-radius: inherit;
  transition: width 0.35s ease;
}

.status-steps {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.status-steps li.done {
  color: var(--ok);
  font-weight: 600;
}

.status-steps li.active {
  color: var(--ink);
  font-weight: 600;
}

.result-meta {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.result-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(14, 124, 123, 0.25), rgba(232, 93, 4, 0.2)),
    var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-weight: 600;
  overflow: hidden;
}

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

.quality-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-info h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.result-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.quality-list {
  display: grid;
  gap: 0.55rem;
}

.quality-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.quality-item > div:first-child {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.quality-format-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(14, 124, 123, 0.1);
  color: var(--brand-deep);
}

.quality-format-ico.is-audio {
  background: rgba(232, 93, 4, 0.12);
  color: var(--accent);
}

.quality-format-ico.is-image {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
}

.quality-format-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.quality-item strong {
  display: block;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.quality-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

.quality-item .btn {
  min-height: 40px;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.stay-nudge {
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: rgba(14, 124, 123, 0.08);
  border: 1px dashed rgba(14, 124, 123, 0.25);
  font-size: 0.92rem;
}

.stay-nudge a {
  font-weight: 700;
}

/* Ads */
.ad-top-wrap {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.ad-display-wrap {
  margin: 1rem auto 0.5rem;
  display: flex;
  justify-content: center;
  text-align: center;
}

.ad-display-wrap .ad-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ad-display-wrap .ad-label {
  display: block;
  width: fit-content;
  margin: 0 auto 0.55rem;
  text-align: center;
}

.ad-display-wrap [id^="div-gpt-ad"],
.ad-display-wrap [id^="div-gpt-ad"] > div,
.ad-display-wrap [id^="div-gpt-ad"] iframe {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

.ad-display-wrap [id^="div-gpt-ad"] {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ad-unit {
  margin: 1.25rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.ad-label {
  margin: 0 0 0.55rem;
  padding: 0.35rem 0.65rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #e8eef2;
  border-radius: 6px;
  display: inline-block;
}

.ad-unit .adsbygoogle {
  display: block;
  margin: 0 auto;
  border: 0 !important;
  outline: 0;
  background: transparent;
  min-height: 0;
}

.howto-cta {
  margin: 1rem 0 1.25rem;
  text-align: center;
}

.howto-cta .btn {
  width: min(100%, 200px);
}

/* legacy placeholder class — keep invisible if anything remains */
.ad-slot {
  display: none !important;
}

/* Sections */
.section {
  padding: 2rem 0;
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 4.5vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.feature:last-child {
  border-bottom: 1px solid var(--line);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.steps h3 {
  margin: 0.15rem 0 0.3rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Cards only for interactive destinations */
.link-grid {
  display: grid;
  gap: 0.75rem;
}

.link-card {
  display: block;
  padding: 1.1rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.link-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  color: inherit;
}

.link-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: var(--brand-deep);
}

.link-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.55rem;
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

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

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.faq-item .answer {
  padding: 0 1rem 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Article */
.page-hero {
  padding: 1.75rem 0 1rem;
}

.page-hero-badge {
  margin-bottom: 0.85rem;
}

.page-hero-badge .platform-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.page-hero-badge .platform-icon svg {
  width: 26px;
  height: 26px;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 48ch;
}

.btn-with-icon .btn-ico,
.btn .btn-ico {
  display: block;
  flex-shrink: 0;
}

.btn-with-icon {
  gap: 0.55rem;
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
}

.prose h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.25rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.related {
  margin-top: 1.5rem;
}

/* App promo strip */
.app-strip {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand) 60%, #14919b);
  color: #fff;
}

.app-strip h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.app-strip p {
  margin: 0 0 1rem;
  opacity: 0.92;
  font-size: 0.95rem;
}

.app-strip .btn {
  background: #fff;
  color: var(--brand-deep);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.5rem 0 0;
  max-width: 32ch;
}

.footer-col h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.25rem 0;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--brand-deep);
}

.footer-bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(247, 250, 251, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: none;
}

.sticky-cta.visible {
  display: block;
  animation: fadeSlide 0.25s ease;
}

.sticky-cta .btn {
  width: 100%;
}

body.has-sticky {
  padding-bottom: 76px;
}

/* Animations */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseOrb {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes progressShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Desktop */
@media (min-width: 480px) {
  .container {
    width: min(100% - 2rem, var(--max));
  }

  .platforms {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (max-width: 519px) {
  .hero h1 {
    max-width: none;
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .hero-lead {
    max-width: none;
  }

  .quality-item {
    flex-direction: column;
    align-items: stretch;
  }

  .quality-item .btn {
    width: 100%;
  }

  .selected-platform-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .selected-platform-bar .btn {
    width: 100%;
  }

  .flow-step span:not(.flow-num) {
    font-size: 0.78rem;
  }

  .status-steps {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .tool-panel {
    padding: 1rem;
  }

  .result-box,
  .status-box {
    padding: 0.85rem;
  }
}

@media (min-width: 720px) {
  body {
    background-attachment: fixed;
  }

  .menu-btn {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hero {
    padding: 2.5rem 0 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .hero-visual {
    min-height: 320px;
  }

  .phone-mock {
    inset: 28px 36px auto;
  }

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

  .url-form .paste-row {
    grid-column: 1 / -1;
  }

  .platform-pick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-pick[data-platform="other"] {
    grid-column: 1 / -1;
  }

  .result-meta {
    grid-template-columns: minmax(160px, 220px) 1fr;
    align-items: center;
  }

  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .feature {
    border: 0;
    padding: 0;
  }

  .feature:last-child {
    border: 0;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .sticky-cta {
    display: none !important;
  }

  body.has-sticky {
    padding-bottom: 0;
  }
}

@media (min-width: 960px) {
  .link-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .prose {
    padding: 1.75rem 2rem;
  }

  .platform-pick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .platform-pick[data-platform="other"] {
    grid-column: auto;
  }

  .hero h1 {
    max-width: 13ch;
  }
}

@media (max-width: 359px) {
  .brand {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .paste-row {
    flex-direction: column;
  }

  .paste-row .btn {
    width: 100%;
  }
}
