/* InstaFuck — mobile-first (375 → 768 → 1280+) */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1a1f2e;
  --muted: #5c6578;
  --line: #e2e6ee;
  --accent: #d93a5c;
  --accent-hover: #b82e4d;
  --accent-active: #9c2640;
  --accent-disabled: #e8a3b3;
  --navy: #141b2d;
  --focus: #2563eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(20, 27, 45, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --max: 1120px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  left: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover,
.brand:active {
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--muted);
}

.nav-toggle:active {
  background: var(--bg);
}

.nav-toggle[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-toggle-lines {
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  padding: 16px;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  border-top: 1px solid var(--line);
  overflow-y: auto;
}

.site-nav.is-open {
  transform: translateX(0);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
}

.nav-cta {
  margin-top: 12px;
}

.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:disabled {
  background: var(--accent-disabled);
  color: #fff;
  cursor: not-allowed;
  opacity: 0.85;
}

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

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

.btn-primary:active {
  background: var(--accent-active);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.btn-secondary:active {
  opacity: 0.92;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

main {
  min-height: 40vh;
}

.hero {
  position: relative;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 27, 45, 0.92) 0%,
    rgba(20, 27, 45, 0.55) 55%,
    rgba(20, 27, 45, 0.35) 100%
  );
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 16px 56px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  max-width: 16ch;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  max-width: 36ch;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero .btn-primary {
  box-shadow: 0 4px 20px rgba(217, 58, 92, 0.35);
}

.hero .btn-secondary {
  border-color: #fff;
  color: #fff;
}

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

.section {
  padding: 48px 16px;
}

.section-alt {
  background: var(--surface);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.about-teaser {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.steps {
  display: grid;
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(217, 58, 92, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}

.proof-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.stars {
  color: #f5a524;
  letter-spacing: 2px;
}

.reviews-grid {
  display: grid;
  gap: 16px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
}

.review-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d3a55, #d93a5c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.review-meta {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-cards {
  display: grid;
  gap: 20px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card time {
  font-size: 0.8125rem;
  color: var(--muted);
}

.blog-card h3 {
  margin: 0;
  font-size: 1.125rem;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--accent);
}

.blog-card--horizontal {
  flex-direction: column;
}

.blog-card--horizontal figure {
  max-width: none;
}

@media (min-width: 768px) {
  .blog-card--horizontal {
    flex-direction: row;
  }

  .blog-card--horizontal figure {
    max-width: 280px;
  }
}

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

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

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

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

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted);
}

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

.faq-item .faq-body {
  padding: 0 18px 16px;
  color: var(--muted);
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 16px;
  margin-top: 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badges a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.store-badges a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.social-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-row a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.page-article {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.article-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.article-meta {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.author-box {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 32px 0;
}

.author-box .avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2d3a55, #d93a5c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.toc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.toc a {
  color: var(--text);
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

.prose p,
.prose ul {
  color: var(--muted);
}

.related-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.form-styled {
  display: grid;
  gap: 14px;
  max-width: 480px;
}

.form-styled label {
  font-weight: 600;
  font-size: 0.875rem;
}

.form-styled input,
.form-styled textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
}

.form-styled input:disabled,
.form-styled textarea:disabled {
  background: var(--bg);
  color: var(--muted);
}

.infographic {
  margin: 24px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.infographic-steps {
  display: grid;
  gap: 12px;
}

.infographic-steps li {
  margin: 0;
}

.team-grid {
  display: grid;
  gap: 20px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.team-card .photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d4f6f, #d93a5c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none;
    border: none;
    padding: 0;
    overflow: visible;
    background: transparent;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .site-nav a {
    padding: 8px 12px;
    font-size: 0.9375rem;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 8px;
  }

  .header-inner {
    padding: 0 24px;
  }

  .hero-inner {
    padding: 72px 24px 80px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .section {
    padding: 64px 24px;
  }

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

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

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

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

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

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

  .about-teaser {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (min-width: 1280px) {
  .header-inner,
  .hero-inner,
  .section-inner,
  .footer-inner,
  .page-article {
    max-width: 1200px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
