:root {
  color-scheme: dark;
  --page: #080b0f;
  --surface: #10151d;
  --surface-2: #151c26;
  --surface-3: #1a2330;
  --border: #293444;
  --border-strong: #3b4a5e;
  --text: #f4f7fb;
  --muted: #aab6c6;
  --subtle: #77869a;
  --accent: #f7bd45;
  --accent-hover: #ffcb61;
  --accent-ink: #171006;
  --success: #43d98b;
  --focus: #78aefc;
  --danger: #ff7184;
  --facebook: #1877f2;
  --facebook-hover: #3986f5;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

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

button,
select,
[role="button"] {
  cursor: pointer;
}

button,
input,
textarea,
select,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:where(button, input, textarea, select, summary, a):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--page);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 15, 0.96);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 20px;
  width: min(100% - 32px, 1440px);
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 189, 69, 0.46);
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
}

.brand__name {
  display: block;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__tagline {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--subtle);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-nav {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.app-nav__link {
  display: inline-flex;
  min-width: 124px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.app-nav__link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.app-nav__link[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.app-nav__link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.privacy-note {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.privacy-note::before {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--success);
  content: "";
  box-shadow: 0 0 0 4px rgba(67, 217, 139, 0.1);
}

.tool-steps {
  margin-bottom: 16px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.step {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.step b {
  margin-right: 6px;
  color: var(--accent);
}

.promo-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(24, 119, 242, 0.58);
  border-left: 4px solid var(--facebook);
  border-radius: var(--radius-lg);
  background: #101a28;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.promo-card__image {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 4px rgba(24, 119, 242, 0.22);
}

.promo-card__content {
  min-width: 0;
}

.promo-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.promo-card__label,
.promo-card__availability {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-card__label {
  background: var(--facebook);
  color: #ffffff;
}

.promo-card__availability {
  gap: 6px;
  border: 1px solid rgba(67, 217, 139, 0.36);
  background: rgba(67, 217, 139, 0.08);
  color: #8ef0ba;
}

.promo-card__availability::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.promo-card__title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.promo-card__description {
  max-width: 680px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.promo-card__cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--facebook);
  border-radius: 10px;
  background: var(--facebook);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.promo-card__cta:hover {
  border-color: var(--facebook-hover);
  background: var(--facebook-hover);
}

.promo-card__cta:active {
  border-color: #0f65d8;
  background: #0f65d8;
}

.promo-card__cta:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.promo-card__cta svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.toast-region {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  display: flex;
  pointer-events: none;
  justify-content: center;
}

.toast {
  max-width: min(420px, 100%);
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 150ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer__note,
.developer-credit {
  display: block;
}

.developer-credit {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.developer-credit a {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 3px;
}

.developer-credit a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.developer-credit__copyright {
  display: block;
  color: var(--subtle);
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 10px;
  }

  .app-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .app-nav__link {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .promo-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .promo-card__image {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }

  .promo-card__title {
    font-size: 18px;
  }

  .promo-card__description,
  .promo-card__cta {
    grid-column: 1 / -1;
  }

  .promo-card__cta {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    width: min(100% - 24px, 1440px);
  }

  .privacy-note {
    display: none;
  }

  .app-nav__link {
    padding-inline: 8px;
    font-size: 12px;
  }

  .app-nav__link svg {
    display: none;
  }
}

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

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