﻿/* 
   YTDownload.us  Complete Stylesheet v2
   Red theme, polished modern UI, fully responsive
    */

:root {
  --bg-a: #fff1f1;
  --bg-b: #ffe0e0;
  --bg-c: #ffd1d1;
  --ink: #c40000;
  --ink-dark: #9b0000;
  --ink-light: #ff2d2d;
  --accent: #c40000;
  --white: #ffffff;
  --off-white: #fff7f7;
  --shadow: rgba(196, 0, 0, 0.15);
  --shadow-lg: rgba(196, 0, 0, 0.25);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/*  RESET  */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

::selection {
  background: var(--ink);
  color: var(--white);
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg-a);
  background-image:
    radial-gradient(ellipse at 10% 0%, var(--bg-b) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 5%, var(--bg-c) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, var(--bg-b) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
ul { list-style: none; }

/*  TYPOGRAPHY  */
h1, h2, h3, h4 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

/*  FOCUS VISIBLE  */
:focus-visible {
  outline: 3px solid var(--ink-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/*  NAVBAR  */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 241, 241, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--ink);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
  font-size: 14px;
}
.nav-name { letter-spacing: 0.04em; }
.nav-tld { opacity: 0.55; }
.nav-links {
  display: flex;
  gap: 6px;
}
.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a:hover {
  background: var(--ink);
  color: var(--white);
}

/* Nav toggle  isolated from generic button styles */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 1.4rem;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: none;
  transform: none;
  font-family: inherit;
}
.nav-toggle:hover,
.nav-toggle:focus {
  background: var(--bg-b);
  transform: none;
  box-shadow: none;
  color: var(--ink);
}

/*  PAGE WRAPPER  */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/*  HERO  */
.hero {
  position: relative;
  padding: 60px 36px 50px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 60px var(--shadow-lg);
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -60px;
  background: repeating-linear-gradient(
    120deg,
    rgba(196,0,0,0.06) 0, rgba(196,0,0,0.06) 14px,
    transparent 14px, transparent 28px
  );
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.badge {
  display: inline-block;
  padding: 6px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--white);
  font-size: 0.85rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  margin: 20px 0 16px;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto 28px;
  opacity: 0.85;
  line-height: 1.5;
}
.hero-sub strong {
  font-weight: 700;
  color: var(--ink);
  opacity: 1;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/*  BUTTONS  */
.btn-primary,
.btn-secondary,
button:not(.nav-toggle) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), opacity var(--transition);
}
.btn-primary,
button:not(.nav-toggle) {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover,
button:not(.nav-toggle):hover:not(:disabled) {
  background: var(--ink-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--shadow-lg);
}
.btn-secondary {
  background: var(--white);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--shadow-lg);
}
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/*  AD CONTAINERS  */
.ad-container {
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  min-height: 1px;
}

/*  PROMO BANNERS (Smartlink)  */
.promo-banner {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.promo-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--shadow-lg);
}
.promo-link {
  display: block;
  text-decoration: none;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%);
  color: var(--white);
  padding: 24px 32px;
  border: 2px solid var(--ink-dark);
  border-radius: var(--radius);
}
.promo-link,
.promo-link:visited,
.promo-link:active {
  color: var(--white);
}
.promo-alt .promo-link {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, var(--ink-dark) 100%);
  border-color: #1a1a2e;
}
.promo-wide .promo-link {
  background: linear-gradient(135deg, var(--ink-dark) 0%, #2d0000 100%);
  border-color: var(--ink-dark);
}
.promo-bottom .promo-link {
  background: linear-gradient(135deg, #0d0d0d 0%, var(--ink-dark) 100%);
  border-color: #0d0d0d;
}
.promo-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.promo-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  color: var(--white);
}
.promo-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--white);
  line-height: 1.2;
}
.promo-desc {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0;
  color: var(--white);
}
.promo-cta-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  color: var(--white);
  transition: background var(--transition);
}
.promo-link:hover .promo-cta-btn {
  background: rgba(255,255,255,0.25);
}

/*  PANEL (URL INPUT)  */
.panel {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 20px 50px var(--shadow);
}
.panel-copy h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0 0 8px;
}
.panel-hint {
  font-size: 0.9rem;
  opacity: 0.7;
  font-weight: 500;
}
.download-form {
  display: grid;
  gap: 12px;
}
.download-form label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.85rem;
}
input[type="url"],
input[type="text"],
select {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--ink);
  font-size: 1rem;
  background: var(--white);
  font-family: inherit;
  color: var(--ink);
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: box-shadow var(--transition), border-color var(--transition);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c40000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
input:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196,0,0,0.2);
  border-color: var(--ink-light);
}
input::placeholder {
  color: rgba(196,0,0,0.35);
}

/*  PREVIEW  */
.preview {
  display: grid;
  gap: 28px;
  grid-template-columns: 360px 1fr;
  align-items: start;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 20px 50px var(--shadow);
  animation: rise 0.5s ease both;
}
.preview-thumb {
  width: 100%;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  object-fit: cover;
  aspect-ratio: 16/9;
  background: var(--bg-b);
}
.preview-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin: 0;
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: break-word;
}
.preview-author {
  margin: 0;
  font-size: 1rem;
  opacity: 0.7;
  font-weight: 500;
}
.preview-duration {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.55;
  font-weight: 500;
}
.format-label {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.format-select {
  width: 100%;
}
.dl-sponsor-link {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%);
  color: var(--white);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition);
}
.dl-sponsor-link,
.dl-sponsor-link:visited,
.dl-sponsor-link:active,
.dl-sponsor-link:hover {
  color: var(--white);
}
.dl-sponsor-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--shadow);
}
.dl-btn {
  margin-top: 4px;
}

/*  PROGRESS  */
.progress-wrap {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  padding: 20px;
  box-shadow: 0 12px 30px var(--shadow);
  animation: rise 0.4s ease both;
}
.progress-bar {
  height: 16px;
  background: linear-gradient(90deg, var(--ink-light), var(--ink), var(--ink-dark));
  background-size: 200% 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 0.35s ease;
  box-shadow: 0 2px 8px var(--shadow);
  animation: shimmer 1.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.progress-text {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

/*  SECTION TITLES  */
.section-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  text-align: center;
  margin: 0 0 8px;
}
.section-title strong {
  font-weight: inherit;
  color: var(--ink-light);
}
.section-sub {
  text-align: center;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  opacity: 0.7;
  font-weight: 500;
  max-width: 650px;
  margin: 0 auto 32px;
}

/*  FEATURES GRID  */
.features-section, .formats-section, .how-to-section, .faq-section, .about-section {
  padding: 20px 0 0;
}
.features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 28px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px var(--shadow-lg);
}
.card-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  line-height: 1;
}
.feature-card h3 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.5;
  font-weight: 500;
}

/*  HOW-TO STEPS  */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 28px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px var(--shadow-lg);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.step-card p {
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.5;
  font-weight: 500;
}
.how-to-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/*  FORMATS  */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.format-card {
  padding: 28px 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 28px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.format-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px var(--shadow-lg);
}
.format-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1;
}
.format-card h3 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}
.format-card p {
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 12px;
  font-weight: 500;
}
.format-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.format-list li {
  padding: 6px 12px;
  background: var(--bg-b);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

/*  FAQ  */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.faq-item {
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.9);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: 0 8px 24px var(--shadow);
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background var(--transition);
  user-select: none;
  -webkit-user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ""; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-b);
  transition: transform var(--transition), background var(--transition);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--white);
}
.faq-item[open] summary {
  background: var(--bg-b);
}
.faq-answer {
  padding: 0 20px 16px;
}
.faq-answer p {
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.6;
  font-weight: 500;
  margin-top: 8px;
}

/*  ABOUT  */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-block {
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 28px var(--shadow);
}
.about-block h3 {
  font-size: 1.5rem;
  margin: 0 0 12px;
  line-height: 1.2;
}
.about-block p {
  font-size: 0.92rem;
  opacity: 0.8;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 10px;
}
.about-block p:last-child { margin-bottom: 0; }

/*  BOTTOM CTA  */
.bottom-cta {
  text-align: center;
  padding: 48px 32px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, var(--bg-b) 100%);
  box-shadow: 0 20px 50px var(--shadow);
  position: relative;
  overflow: hidden;
}
.bottom-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    120deg,
    rgba(196,0,0,0.04) 0, rgba(196,0,0,0.04) 14px,
    transparent 14px, transparent 28px
  );
  pointer-events: none;
}
.bottom-cta h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0 0 12px;
  position: relative;
}
.bottom-cta p {
  font-size: 1.05rem;
  opacity: 0.75;
  font-weight: 500;
  margin-bottom: 24px;
  position: relative;
}
.bottom-cta .hero-btns {
  position: relative;
}

/*  FOOTER  */
.footer {
  background: var(--ink);
  color: var(--white);
  padding: 48px 24px 32px;
  margin-top: 20px;
}
.footer a,
.footer a:visited {
  color: var(--white);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  font-size: 16px;
}
.footer-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.footer-tld { opacity: 0.55; }
.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-left: auto;
  color: var(--white);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--white);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-col a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.75;
  transition: opacity var(--transition);
  font-weight: 500;
}
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 8px;
  color: var(--white);
  font-weight: 500;
}
.footer-seo {
  font-size: 0.75rem;
  opacity: 0.4;
  color: var(--white);
}

/*  TOAST  */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  max-width: 420px;
  padding: 14px 20px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px var(--shadow-lg);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/*  SCREEN READER ONLY  */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* 
   RESPONSIVE
    */

@media (max-width: 960px) {
  .features-grid, .steps-grid, .formats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-content {
    grid-template-columns: 1fr;
  }
  .panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body { background-attachment: scroll; }
  .page { padding: 20px 16px 40px; gap: 24px; }
  .hero { padding: 40px 20px 36px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .panel { grid-template-columns: 1fr; padding: 24px; }
  .preview { grid-template-columns: 1fr; padding: 20px; }
  .features-grid, .steps-grid, .formats-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { flex-direction: column; align-items: flex-start; }
  .footer-tagline { margin-left: 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-a);
    border-bottom: 2px solid var(--ink);
    padding: 16px 24px;
    gap: 4px;
    z-index: 999;
    box-shadow: 0 12px 30px var(--shadow);
  }
  .nav-links.open a {
    padding: 12px 16px;
    font-size: 1rem;
  }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .promo-link { padding: 20px 24px; }
  .bottom-cta { padding: 36px 24px; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* 
   ANIMATIONS
    */

@media (prefers-reduced-motion: no-preference) {
  .hero, .panel, .feature-card, .step-card, .format-card, .about-block, .promo-banner, .bottom-cta {
    animation: rise 0.6s ease both;
  }
  .panel { animation-delay: 0.08s; }
  .feature-card:nth-child(2) { animation-delay: 0.12s; }
  .feature-card:nth-child(3) { animation-delay: 0.18s; }
  .feature-card:nth-child(4) { animation-delay: 0.24s; }
  .feature-card:nth-child(5) { animation-delay: 0.3s; }
  .feature-card:nth-child(6) { animation-delay: 0.36s; }
  .feature-card:nth-child(7) { animation-delay: 0.42s; }
  .feature-card:nth-child(8) { animation-delay: 0.48s; }
  .feature-card:nth-child(9) { animation-delay: 0.54s; }
  .step-card:nth-child(2) { animation-delay: 0.12s; }
  .step-card:nth-child(3) { animation-delay: 0.18s; }
  .format-card:nth-child(2) { animation-delay: 0.12s; }
  .format-card:nth-child(3) { animation-delay: 0.18s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
