/* infiniqr — design system taken from PeekIG (same palette, type, cards, rings, FAQ, footer). */

:root {
  --ig-pink: #E1306C;
  --ig-purple: #833AB4;
  --ig-orange: #F77737;
  --ig-yellow: #FCAF45;
  --ig-gradient: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
  --ig-gradient-h: linear-gradient(90deg, #833AB4, #E1306C, #F77737, #FCAF45);

  /* Deep navy base — not pure black */
  --bg-primary: #0c0c16;
  --bg-secondary: #11111f;
  --bg-card: #181828;
  --bg-elevated: #20203a;
  --bg-card-hover: #20203a;
  --bg-input: #181828;

  /* Glass-style borders */
  --border: rgba(255,255,255,0.09);
  --border-light: rgba(255,255,255,0.18);

  --text-primary: #f0f0f8;
  --text-secondary: #9090b0;
  --text-muted: #52527a;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 8px;

  --shadow-glow: 0 0 80px rgba(131,58,180,0.25);
  --shadow-card: 0 8px 50px rgba(0,0,0,0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 18px; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Fixed-position gradient overlay — always covers full viewport on all devices (incl. iOS) */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 180% 85% at 50% -15%, rgba(131,58,180,0.40) 0%, transparent 68%),
    radial-gradient(ellipse 110% 60% at 105% 110%, rgba(225,48,108,0.20) 0%, transparent 55%);
}

a { color: var(--ig-pink); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--ig-orange); }

::selection { background: rgba(225,48,108,0.3); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.22); }

/* === ANIMATED GRADIENT BORDER === */
.gradient-border { position: relative; }
.gradient-border::before {
  content: ''; position: absolute; inset: -2px;
  background: var(--ig-gradient-h); border-radius: inherit;
  z-index: -1; opacity: 0; transition: opacity 0.4s;
}
.gradient-border:hover::before { opacity: 1; }

/* === NAVBAR === */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,12,22,0.75); backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.navbar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  background: var(--ig-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 0.5rem;
}
.navbar-logo svg { width: 28px; height: 28px; }
.navbar-links { display: flex; gap: 2rem; align-items: center; }
.navbar-links a {
  color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
  transition: var(--transition); position: relative;
}
.navbar-links a:hover { color: var(--text-primary); }
.navbar-links a.active { color: var(--text-primary); }
.navbar-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--ig-gradient); border-radius: 1px;
}
.nav-badge {
  background: var(--ig-gradient); color: #fff; font-size: 0.65rem;
  padding: 0.15rem 0.5rem; border-radius: 20px; font-weight: 700; letter-spacing: 0.5px;
}

/* === HERO === */
.hero {
  position: relative; text-align: center;
  padding: 5rem 2rem 2.25rem;
  overflow: hidden;
  transition: padding 0.5s cubic-bezier(0.4,0,0.2,1);
}
/* Collapsed hero — after a search is done */
.hero.collapsed { padding: 1.5rem 2rem; }
.hero.collapsed .hero-badge,
.hero.collapsed h1,
.hero.collapsed > p,
.hero.collapsed .search-hint {
  opacity: 0; max-height: 0; margin: 0; overflow: hidden;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(225,48,108,0.1); border: 1px solid rgba(225,48,108,0.2);
  padding: 0.4rem 1rem; border-radius: 30px; font-size: 0.78rem; color: var(--ig-pink);
  font-weight: 600; margin-bottom: 1.25rem; overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease, margin 0.4s ease;
  max-height: 50px;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--ig-pink); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 1rem;
  letter-spacing: -0.03em; overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease, margin 0.4s ease;
  max-height: 260px; /* was 100px — clipped the 3-line title ("…Story Viewer") on phones */
}
.hero h1 .gradient-text {
  background: var(--ig-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero > p {
  color: var(--text-secondary); font-size: 1rem; max-width: 500px;
  margin: 0 auto 2rem; line-height: 1.7; overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease, margin 0.4s ease;
  max-height: 90px;
}

/* === SEARCH BAR === */
.search-container { max-width: 600px; margin: 0 auto; position: relative; }
.search-bar {
  display: flex; align-items: center;
  background: rgba(24,24,40,0.9); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 60px; padding: 0.4rem;
  transition: var(--transition);
  box-shadow: 0 4px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
}
.search-bar:focus-within {
  border-color: rgba(225,48,108,0.45);
  box-shadow: 0 0 0 3px rgba(225,48,108,0.12), 0 4px 40px rgba(0,0,0,0.35);
}
.search-bar .icon { padding: 0 0.75rem 0 1.25rem; color: var(--text-muted); display: flex; }
.search-bar input {
  flex: 1; background: none; border: none; color: var(--text-primary);
  font-size: 1rem; font-family: inherit; padding: 0.8rem 0; outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar .search-btn {
  background: var(--ig-gradient); border: none; color: #fff;
  padding: 0.8rem 2rem; border-radius: 50px; font-weight: 700;
  font-size: 0.9rem; cursor: pointer; font-family: inherit;
  transition: var(--transition); white-space: nowrap;
}
.search-bar .search-btn:hover { transform: scale(1.04); filter: brightness(1.12); }

.search-hint {
  margin-top: 0.85rem; font-size: 0.82rem; color: var(--text-muted);
  overflow: hidden; max-height: 40px;
  transition: opacity 0.25s ease, max-height 0.35s ease, margin 0.35s ease;
}
/* Stagger collapse so elements fade out sequentially, not all at once */
.hero.collapsed .hero-badge   { transition-delay: 0s; }
.hero.collapsed h1             { transition-delay: 0.04s; }
.hero.collapsed > p            { transition-delay: 0.07s; }
.hero.collapsed .search-hint   { transition-delay: 0.07s; }

/* === FEATURES === */
.features { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: linear-gradient(145deg, #1d1d32 0%, #181828 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius); padding: 2.25rem;
  transition: var(--transition); position: relative; overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}
.feature-card:hover {
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-4px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.5), 0 0 30px rgba(131,58,180,0.1);
}
.feature-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.87rem; line-height: 1.65; }

/* === CONTENT TABS === */
.content-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.content-tab {
  flex: 1; padding: 1rem; text-align: center; cursor: pointer;
  color: var(--text-muted); font-weight: 600; font-size: 0.85rem;
  border-bottom: 2px solid transparent; transition: var(--transition);
  text-transform: uppercase; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}
.content-tab:hover { color: var(--text-secondary); }
.content-tab.active { color: var(--text-primary); border-bottom-color: var(--ig-pink); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; border-radius: 12px;
  font-weight: 600; font-size: 0.9rem; border: none;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.btn-gradient { background: var(--ig-gradient); color: #fff; }
.btn-gradient:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(255,255,255,0.08); color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.22); }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.8rem; border-radius: 9px; }

/* === HOW IT WORKS === */
.how-section { max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; }
.how-section h2 {
  font-family: 'Space Grotesk'; font-size: 2rem; text-align: center; margin-bottom: 0.5rem;
}
.how-section .subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 3rem; }
.how-steps { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.how-step {
  flex: 1; min-width: 220px; max-width: 300px; text-align: center;
  padding: 2.25rem 2rem;
  background: linear-gradient(145deg, #1d1d32 0%, #181828 100%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius); transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.how-step:hover {
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-5px);
  box-shadow: 0 14px 50px rgba(0,0,0,0.5);
}
.how-step .step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ig-gradient); display: inline-flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}
.how-step h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.how-step p { color: var(--text-secondary); font-size: 0.85rem; }

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(255,255,255,0.07); padding: 3.5rem 2rem 2rem;
  color: var(--text-muted); font-size: 0.8rem; margin-top: 3rem;
  background: linear-gradient(180deg, transparent 0%, rgba(131,58,180,0.04) 100%);
}
.footer-links { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.85rem; }
.footer-grid {
  max-width: 1100px; margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; text-align: left;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.35rem;
  background: var(--ig-gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; display: inline-block; margin-bottom: 0.75rem;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; max-width: 300px; }
.footer-col h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-primary); margin-bottom: 0.9rem; font-weight: 700;
}
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.85rem; padding: 0.3rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  max-width: 1100px; margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { line-height: 1.6; }
.footer-bottom p span { font-size: 0.72rem; }
.footer-lang { display: flex; gap: 1.25rem; }
.footer-lang a { color: var(--text-secondary); font-size: 0.82rem; }
.footer-lang a:hover { color: var(--text-primary); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* === SHARED SECTION HEADINGS === */
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: var(--text-secondary); margin: 0 auto 3rem; max-width: 560px; }
.section-eyebrow {
  display: block; text-align: center; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ig-pink); margin-bottom: 0.6rem;
}
.feature-card .icon svg { width: 24px; height: 24px; }

/* === TOAST === */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: #1e1e38; border: 1px solid rgba(255,255,255,0.12);
  color: #fff; padding: 0.8rem 1.5rem;
  border-radius: 12px; font-weight: 600; font-size: 0.85rem;
  transform: translateY(100px); opacity: 0; transition: var(--transition);
  z-index: 1100; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== Animated FAQ accordion (click chevron + smooth expand) ===== */
:root { interpolate-size: allow-keywords; }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.9rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--ig-pink) 45%, var(--border)); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ig-pink); }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--ig-pink);
  border-bottom: 2px solid var(--ig-pink);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.28s ease;
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item p { margin: 0; padding: 0 1.15rem 1rem; color: var(--text-secondary); font-size: 0.85rem; line-height: 1.7; }
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  content-visibility: hidden;
  transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; content-visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content, .faq-item summary::after { transition: none; }
}

/* ============================================================
   POPULAR PROFILES — Instagram-style story circles under the search
   ============================================================ */
/* Vertical rhythm under the search: form →~40px→ label →~16px→ circles →~28px→ trust strip.
   The label sits close to its circles (they're one group) and well clear of the search bar. */
.hero .search-hint { margin: 2.25rem 0 0.9rem; }
.pop-circles { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin: 0 auto; max-width: 560px; }
.pc { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0; width: 76px; transition: var(--transition); }
.pc-ring { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: var(--ig-gradient-h); display: flex; box-shadow: 0 4px 16px rgba(131,58,180,0.22); }
.pc-av { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--bg-card); border: 2px solid var(--bg-primary); display: flex; align-items: center; justify-content: center; }
.pc-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-ini { font-weight: 800; font-size: 1.4rem; color: var(--text-primary); }
.pc-name { font-size: 0.78rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 76px; }
.pc:hover { transform: translateY(-4px); }
.pc:hover .pc-ring { box-shadow: 0 8px 26px rgba(225,48,108,0.4); }
.pc:hover .pc-name { color: var(--text-primary); }
/* Phones: one swipeable row like Instagram's story tray (no orphan circle on a 2nd line) */
@media (max-width: 480px) {
  .pop-circles {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0.6rem;
    margin-top: 1.9rem; padding: 2px 0.25rem 6px; scrollbar-width: none; scroll-snap-type: x mandatory;
  }
  .pop-circles::-webkit-scrollbar { display: none; }
  .pc { width: 62px; flex-shrink: 0; scroll-snap-align: start; }
  .pop-circles > :first-child { margin-left: auto; }
  .pop-circles > :last-child { margin-right: auto; }
  .pc-ring { width: 56px; height: 56px; }
  .pc-ini { font-size: 1.2rem; }
  .pc-name { font-size: 0.68rem; max-width: 62px; }
}
@media (prefers-reduced-motion: reduce) { .pc { transition: none; } }

/* Hero extras collapse with the rest of the hero after a search */
.pop-circles, .trust-strip { transition: opacity 0.3s ease, max-height 0.4s ease, margin 0.4s ease; max-height: 260px; }
.hero.collapsed .pop-circles,
.hero.collapsed .trust-strip { opacity: 0; max-height: 0; margin: 0; overflow: hidden; pointer-events: none; }

/* ============================================================
   TRUST STRIP — small reassurance row under the hero
   ============================================================ */
.trust-strip {
  list-style: none; padding: 0; margin: 1.55rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.4rem;
}
/* Phones: tidy 2×2 grid instead of a ragged 3+1 wrap */
@media (max-width: 480px) {
  .trust-strip { display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 0.55rem 1.4rem; margin-top: 1.2rem; }
}
.trust-strip li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--text-secondary); }
.trust-strip svg { width: 15px; height: 15px; fill: none; stroke: #3fb950; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   LIVE EXAMPLE — analytics showcase in a browser frame
   ============================================================ */
.demo-section { max-width: 1100px; margin: 0 auto; padding: 2.75rem 2rem 1rem; }
.demo-frame {
  max-width: 820px; margin: 0 auto; border-radius: var(--radius);
  border: 1px solid var(--border-light); overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 60px rgba(131,58,180,0.15);
}
.demo-bar {
  display: flex; align-items: center; gap: 6px; padding: 0.7rem 1rem;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
}
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.demo-bar i:first-child { background: #ff5f57; } .demo-bar i:nth-child(2) { background: #febc2e; } .demo-bar i:nth-child(3) { background: #28c840; }
.demo-bar em {
  font-style: normal; margin-left: 0.8rem; font-size: 0.75rem; color: var(--text-muted);
  background: var(--bg-card); padding: 0.25rem 0.8rem; border-radius: 6px; flex: 1; max-width: 320px;
}
.demo-body { padding: 1.6rem; }
.demo-profile { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.4rem; }
.demo-avatar {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  padding: 3px; background: var(--ig-gradient-h);
}
.demo-user { font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 0.35rem; }
.demo-name { color: var(--text-secondary); font-size: 0.88rem; margin: 0.15rem 0 0.5rem; }
.demo-stats { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-secondary); }
.demo-stats b { color: var(--text-primary); }
.demo-grid { margin-bottom: 1rem; }
.demo-chart .an-bars { height: 70px; }
.demo-cta { text-align: center; margin-top: 2rem; }
.demo-btn { padding: 0.95rem 1.8rem; font-size: 1rem; border: none; cursor: pointer; border-radius: 50px; font-weight: 700; }
@media (max-width: 640px) {
  .demo-section { padding: 2.25rem 1.25rem 0.5rem; }
  .demo-body { padding: 1.1rem; }
  .demo-avatar { width: 60px; height: 60px; }
}
/* ============================================================
   SCROLL REVEAL — sections fade up as they enter the viewport (JS adds/removes .sr)
   ============================================================ */
.sr { opacity: 0 !important; transform: translateY(22px) !important; transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.22,1,.36,1) !important; }
.sr.sr-in { opacity: 1 !important; transform: none !important; }

/* ============================================================
   infiniqr studio — generator, bulk and scanner (PeekIG card language)
   ============================================================ */
.navbar-logo { color: var(--text-primary); }
.navbar-logo svg { width: 30px; height: 30px; }
.nav-cta { margin-left: auto; flex-shrink: 0; font-size: .8rem; font-weight: 700; color: #fff !important; background: var(--ig-gradient); padding: .42rem 1rem; border-radius: 50px; box-shadow: 0 4px 14px rgba(225,48,108,.3); }
.navbar-links + .nav-cta { margin-left: 1.5rem; }
@media (max-width: 768px) { .navbar-links + .nav-cta { margin-left: auto; } }
.navbar-inner { gap: 1rem; }

.hero { padding-bottom: 1.5rem; }
.hero > p { max-width: 620px; max-height: none; }
.studio { max-width: 1120px; margin: 0 auto; text-align: left; }
.studio-tabs { max-width: 560px; margin: 0 auto 1.6rem; }
.studio-tabs .content-tab svg { width: 16px; height: 16px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; align-items: start; }
.st-left { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.st-card {
  background: linear-gradient(145deg, #1d1d32 0%, #181828 100%);
  border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: 0 2px 20px rgba(0,0,0,0.3); position: relative;
}
.st-right { position: sticky; top: 84px; }

/* type picker = PeekIG story rings */
.types { display: flex; gap: .9rem .5rem; flex-wrap: wrap; justify-content: center; }
.types .pc { width: 74px; }
.types .pc-ring { background: rgba(255,255,255,0.12); box-shadow: none; transition: var(--transition); }
.types .pc-av { color: var(--text-secondary); }
.types .pc-av svg { width: 26px; height: 26px; }
.types .pc.on .pc-ring { background: var(--ig-gradient-h); box-shadow: 0 4px 16px rgba(131,58,180,0.35); }
.types .pc.on .pc-av { color: var(--text-primary); }
.types .pc.on .pc-name { color: var(--text-primary); font-weight: 600; }
.types .pc:focus-visible { outline: 2px solid var(--ig-pink); outline-offset: 4px; border-radius: 12px; }

/* form */
.form-head h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; margin-bottom: .2rem; }
.form-head p { color: var(--text-secondary); font-size: .82rem; margin-bottom: 1rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.fld { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.fld.full { grid-column: 1 / -1; }
.fld.more { display: none; }
.fields.show-more .fld.more { display: flex; }
.fld label, .ctl-l { font-size: .74rem; font-weight: 600; color: var(--text-secondary); letter-spacing: .02em; display: flex; justify-content: space-between; gap: .5rem; }
.fld input, .fld textarea, .fld select, .ctl select, .ctl input[type=text] {
  width: 100%; background: rgba(12,12,22,.65); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  color: var(--text-primary); font: inherit; font-size: .92rem; padding: .7rem .85rem; outline: none; transition: var(--transition);
}
.fld textarea { resize: vertical; min-height: 84px; }
.fld input:focus, .fld textarea:focus, .fld select:focus, .ctl select:focus, .ctl input[type=text]:focus { border-color: rgba(225,48,108,.5); box-shadow: 0 0 0 3px rgba(225,48,108,.12); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--text-muted); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #9090b0 50%), linear-gradient(135deg, #9090b0 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem !important; }
.chk { flex-direction: row !important; align-items: center; gap: .55rem !important; cursor: pointer; font-size: .85rem; color: var(--text-secondary); }
.chk input { width: 18px; height: 18px; accent-color: var(--ig-pink); }
.more-btn { background: none; border: 0; color: var(--ig-pink); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; margin-top: .8rem; padding: 0; }
.more-btn:hover { color: var(--ig-orange); }

/* design accordion (re-uses .faq-item) */
.design { display: flex; flex-direction: column; gap: .6rem; }
.dsec { background: linear-gradient(145deg, #1d1d32 0%, #181828 100%); }
.dsec summary { font-size: .92rem; }
.dsec-body { padding: 0 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .9rem; }
.ctl { display: flex; flex-direction: column; gap: .4rem; }
.row2 { display: flex; gap: .8rem 1rem; flex-wrap: wrap; align-items: flex-end; }
.row2 > * { flex: 1 1 140px; }
.row2 > .btn { flex: 0 0 auto; }
.col { cursor: pointer; }
.col-in { display: flex; align-items: center; gap: .6rem; background: rgba(12,12,22,.65); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: .4rem .6rem; }
.col-in input[type=color] { width: 34px; height: 30px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; }
.col-in input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.col-in input[type=color]::-webkit-color-swatch { border: 1px solid rgba(255,255,255,.2); border-radius: 8px; }
.col-in code { font-size: .8rem; color: var(--text-secondary); }
.rng input { width: 100%; accent-color: var(--ig-pink); }
.rng output { color: var(--text-primary); font-weight: 700; }
.shape-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.shape { width: 48px; height: 48px; padding: 8px; border-radius: 12px; background: #f4f4fa; border: 2px solid transparent; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; color: #1d1d32; }
.shape svg { width: 100%; height: 100%; }
.shape:hover { transform: translateY(-2px); }
.shape.on { border-color: var(--ig-pink); box-shadow: 0 0 0 3px rgba(225,48,108,.25); }
.shape.wide { width: auto; height: auto; padding: .5rem .9rem; background: rgba(12,12,22,.65); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.1); font: inherit; font-size: .82rem; font-weight: 600; }
.shape.wide.on { color: var(--text-primary); border-color: var(--ig-pink); background: rgba(225,48,108,.1); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.preset { background: #fff; border: 2px solid transparent; border-radius: 14px; padding: .45rem .45rem .35rem; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.preset svg { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.preset span { font-size: .66rem; font-weight: 700; color: #1d1d32; }
.preset:hover { transform: translateY(-3px); border-color: var(--ig-pink); }
.saved { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.chip { display: inline-flex; align-items: center; border: 1px solid var(--border-light); border-radius: 999px; overflow: hidden; }
.chip button { background: none; border: 0; color: var(--text-secondary); font: inherit; font-size: .8rem; padding: .3rem .7rem; cursor: pointer; }
.chip button:hover { color: var(--text-primary); }
.chip .x { padding: .3rem .55rem; border-left: 1px solid var(--border); }
.logo-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.logo-prev { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.logo-icons { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.logo-icons .ctl-l { width: 100%; }
.logo-icons .shape { width: 40px; height: 40px; padding: 7px; }
.note { color: var(--text-muted); font-size: .76rem; line-height: 1.55; }

/* preview */
.preview-card { display: flex; flex-direction: column; gap: .9rem; }
.qr-box { background: #fff; border-radius: 16px; padding: 14px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; transition: opacity .2s; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.qr-box.sample svg { opacity: .4; }
.qr-box.checker { background: repeating-conic-gradient(#e9e9f0 0% 25%, #fff 0% 50%) 50% / 20px 20px; }
.qr-state { display: flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; padding: .55rem .8rem; border-radius: 12px; }
.qr-state::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.qr-state.ok { color: #3fb950; background: rgba(63,185,80,.1); }
.qr-state.warn { color: #FCAF45; background: rgba(252,175,69,.1); }
.qr-state.bad { color: #ff6b81; background: rgba(255,107,129,.1); }
.qr-state.wait { color: var(--text-secondary); background: rgba(255,255,255,.05); }
.qr-meta { font-size: .74rem; color: var(--text-muted); text-align: center; }
.qr-content { font-size: .72rem; color: var(--text-muted); white-space: pre-wrap; word-break: break-all; max-height: 4.6em; overflow: auto; background: rgba(12,12,22,.5); border-radius: 10px; padding: .45rem .6rem; font-family: ui-monospace, Menlo, monospace; }
.qr-content:empty { display: none; }
.dl-main { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.dl-main .btn-gradient { border-radius: 50px; padding: .85rem 1rem; font-weight: 700; font-size: .95rem; }
.dl-main select { background-color: rgba(12,12,22,.65); border: 1px solid rgba(255,255,255,0.1); border-radius: 50px; color: var(--text-primary); font: inherit; font-size: .82rem; padding: 0 1rem; }
.dl-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.dl-more .btn { padding: .6rem .4rem; font-size: .8rem; border-radius: 12px; }
.dl-btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; filter: none !important; }
.dl-print { display: flex; gap: .5rem; align-items: center; font-size: .76rem; color: var(--text-muted); flex-wrap: wrap; }
.dl-print select { background-color: rgba(12,12,22,.65); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: var(--text-primary); font: inherit; font-size: .78rem; padding: .3rem .6rem; }
.forever { display: flex; gap: .55rem; align-items: flex-start; font-size: .76rem; color: var(--text-secondary); line-height: 1.5; border-top: 1px solid var(--border); padding-top: .85rem; }
.forever svg { width: 18px; height: 18px; flex-shrink: 0; stroke: #3fb950; fill: none; stroke-width: 2.2; margin-top: 1px; }

/* bulk + scan panes */
.pane { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.pane h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; }
.pane p { color: var(--text-secondary); font-size: .88rem; }
.pane textarea { width: 100%; min-height: 200px; background: rgba(12,12,22,.65); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; color: var(--text-primary); font: .85rem ui-monospace, Menlo, monospace; padding: .9rem; resize: vertical; outline: none; }
.pane textarea:focus { border-color: rgba(225,48,108,.5); }
.pane .row2 select { background-color: rgba(12,12,22,.65); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: var(--text-primary); font: inherit; padding: .6rem .9rem; }
.bulk-out { font-size: .85rem; color: var(--text-secondary); min-height: 1.3em; }
.drop { border: 2px dashed rgba(255,255,255,.16); border-radius: var(--radius); padding: 2rem 1rem; text-align: center; display: flex; flex-direction: column; gap: .8rem; align-items: center; transition: var(--transition); }
.drop.over { border-color: var(--ig-pink); background: rgba(225,48,108,.06); }
.drop .row2 { justify-content: center; }
.drop .row2 > * { flex: 0 0 auto; }
#scanVideo { width: 100%; max-height: 420px; border-radius: 16px; background: #000; object-fit: cover; }
.scan-res pre { white-space: pre-wrap; word-break: break-all; background: rgba(12,12,22,.65); border: 1px solid var(--border); border-radius: 12px; padding: .8rem; font-size: .85rem; margin: .4rem 0 .8rem; }

/* use-case cards */
.uses { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem 1rem; }
.uses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.use-card { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); background: linear-gradient(145deg, #1d1d32 0%, #181828 100%); border: 1px solid rgba(255,255,255,0.09); color: var(--text-primary); transition: var(--transition); }
.use-card:hover { color: var(--text-primary); transform: translateY(-3px); border-color: rgba(255,255,255,.18); box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.use-card .pc-ring { width: 46px; height: 46px; flex-shrink: 0; }
.use-card .pc-av svg { width: 20px; height: 20px; color: var(--text-primary); }
.use-card b { display: block; font-size: .92rem; }
.use-card small { color: var(--text-secondary); font-size: .76rem; line-height: 1.4; display: block; }

/* comparison table */
.cmp { max-width: 900px; margin: 0 auto; padding: 4rem 2rem 1rem; }
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-light); background: var(--bg-card); box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 60px rgba(131,58,180,0.12); }
.cmp table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 520px; }
.cmp th, .cmp td { padding: .8rem 1rem; text-align: center; border-bottom: 1px solid var(--border); }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--text-secondary); }
.cmp thead th { font-family: 'Space Grotesk', sans-serif; background: var(--bg-elevated); font-size: .9rem; }
.cmp thead th.us { background: linear-gradient(135deg, rgba(131,58,180,.35), rgba(225,48,108,.3)); }
.cmp td.us { background: rgba(225,48,108,.06); font-weight: 700; }
.cmp .y { color: #3fb950; font-weight: 700; } .cmp .n { color: #ff6b81; } .cmp .m { color: #FCAF45; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp-note { text-align: center; color: var(--text-muted); font-size: .74rem; margin-top: .9rem; }

/* SEO text block + FAQ */
.seo { max-width: 860px; margin: 0 auto; padding: 3rem 2rem 1rem; }
.seo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; }
.seo-card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.45rem; margin-bottom: .9rem; }
.seo-card h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; color: var(--ig-pink); }
.seo-card p, .seo-card li { color: var(--text-secondary); font-size: .9rem; margin-bottom: .8rem; }
.seo-card ul { padding-left: 1.2rem; }
.legal { max-width: 760px; margin: 0 auto; padding: 4rem 2rem 2rem; }
.legal h1 { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; margin-bottom: 1.2rem; }
.legal p { color: var(--text-secondary); margin-bottom: 1rem; font-size: .95rem; }
.crumbs { font-size: .78rem; color: var(--text-muted); margin-bottom: 1rem; }
.crumbs a { color: var(--text-secondary); }

.toast { left: 50%; right: auto; transform: translate(-50%, 100px); max-width: 92vw; }
.toast.show { transform: translate(-50%, 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 2000; background: var(--bg-card); padding: .5rem 1rem; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--ig-pink); outline-offset: 2px; }

@media (max-width: 960px) {
  .studio-grid { grid-template-columns: 1fr; }
  .st-right { position: static; order: 3; }
  .st-left { display: contents; }
  .st-types { order: 1; } #form { order: 2; } .design { order: 4; }
  .preview-card { max-width: 380px; margin: 0 auto; width: 100%; }
}
@media (max-width: 768px) {
  .hero { padding: 2.6rem 1.1rem 1rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 3rem); }
  .studio-tabs .content-tab { font-size: .72rem; padding: .85rem .4rem; }
  .uses, .cmp, .seo { padding-left: 1.1rem; padding-right: 1.1rem; }
  .seo-card { padding: 1.4rem; }
}
@media (max-width: 560px) {
  .types { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding: 2px .25rem 6px; scroll-snap-type: x proximity; gap: .4rem; margin: 0 -1.1rem; padding-left: 1.1rem; padding-right: 1.1rem; }
  .types::-webkit-scrollbar { display: none; }
  .types .pc { width: 64px; flex-shrink: 0; scroll-snap-align: start; }
  .types .pc-ring { width: 54px; height: 54px; }
  .types .pc-av svg { width: 22px; height: 22px; }
  .fields { grid-template-columns: 1fr; }
  .st-card { padding: 1.1rem; }
  .presets { grid-template-columns: repeat(4, 1fr); gap: .4rem; }
  .preset span { font-size: .58rem; }
  .dsec-body { padding: 0 .9rem 1rem; }
}
[hidden] { display: none !important; }
@media (max-width: 768px) {
  html { font-size: 16px; }
  .navbar-links { display: none; }
  .navbar-inner { height: 58px; padding: 0 1rem; }
  .hero-badge { font-size: .72rem; }
  .features { padding: 3rem 1.25rem; }
  .how-section { padding: 3rem 1.25rem; }
}
@media (max-width: 480px) {
  html { font-size: 15px; }
  .features-grid { grid-template-columns: 1fr; }
  .how-steps { flex-direction: column; align-items: center; }
}
.features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 1000px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.uses-grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
#studio { scroll-margin-top: 76px; }
.hero { overflow: visible; overflow-x: clip; }
.dsec-body .note { padding: 0; margin: 0; }

/* ============================================================
   v2 EDITOR — preview always in view, controls in short tabs
   ============================================================ */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
.ed-ctl { order: 1; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.ed-prev { order: 2; position: sticky; top: 84px; z-index: 6; }
.pv-card { background: linear-gradient(145deg, #1d1d32 0%, #181828 100%); border: 1px solid rgba(255,255,255,0.09); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.pv-card .qr-box { width: min(100%, calc(100vh - 330px)); min-width: 200px; margin-inline: auto; position: relative; }
.qr-box::after { content: ''; position: absolute; inset: -5px; border-radius: 20px; border: 3px solid #E1306C; opacity: 0; pointer-events: none; }
.qr-box.pulse svg { animation: qpop .42s cubic-bezier(.2,.9,.3,1.3); }
.qr-box.pulse::after { animation: qring .45s ease-out; }
@keyframes qpop { 0% { transform: scale(.965); } 100% { transform: scale(1); } }
@keyframes qring { 0% { opacity: .85; transform: scale(.985); } 100% { opacity: 0; transform: scale(1.035); } }
.pv-info { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.pv-size { font-size: .78rem; color: var(--text-secondary); text-align: center; }
.pv-size:empty { display: none; }
.pv-dl { display: grid; grid-template-columns: 1fr auto auto auto; gap: .45rem; }
.pv-dl .btn { padding: .7rem .8rem; border-radius: 12px; font-size: .84rem; min-height: 44px; }
.pv-dl .btn-gradient { border-radius: 50px; font-weight: 700; }
.seg { display: flex; gap: .3rem; background: rgba(12,12,22,.82); border: 1px solid var(--border); border-radius: 16px; padding: .3rem; position: sticky; top: 76px; z-index: 5; }
.seg button { flex: 1; min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; border: 0; background: none; color: var(--text-secondary); font: inherit; font-size: .74rem; font-weight: 600; border-radius: 12px; cursor: pointer; transition: background .2s, color .2s; padding: .3rem .2rem; min-width: 0; }
.seg button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.seg button svg { width: 19px; height: 19px; }
.seg button:hover { color: var(--text-primary); }
.seg button.on { background: var(--ig-gradient); color: #fff; box-shadow: 0 4px 14px rgba(225,48,108,.3); }
.seg-p[hidden] { display: none !important; }
.seg-p[data-p="content"] { display: flex; flex-direction: column; gap: 1rem; }
.blk { display: flex; flex-direction: column; gap: .85rem; }
.blk + .blk { border-top: 1px solid var(--border); padding-top: 1.1rem; margin-top: 1.1rem; }
.blk-h { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-secondary); font-weight: 700; }
.btns { align-items: center; }
.btns > * { flex: 0 0 auto; }
.presets { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 1200px) { .presets { grid-template-columns: repeat(4, 1fr); } }
.dl-bar { display: none; }
.size-adv { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: var(--text-secondary); }
.size-adv b { color: var(--text-primary); font-size: .95rem; }
.size-adv .warn, .note.warn { color: #FCAF45; }
.size-adv .okc { color: #3fb950; }
.ctl input[type=url] { width: 100%; background: rgba(12,12,22,.65); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: var(--text-primary); font: inherit; font-size: .92rem; padding: .7rem .85rem; outline: none; }
#tplGo { align-self: flex-start; }

/* dynamic box */
.dyn:empty { display: none; }
.dyn { display: flex; flex-direction: column; gap: .8rem; }
.dyn-sw { display: flex; align-items: center; gap: .8rem; cursor: pointer; min-height: 44px; }
.dyn-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dyn-sw .sw { width: 46px; height: 26px; border-radius: 26px; background: rgba(255,255,255,.14); position: relative; flex: none; transition: background .2s; }
.dyn-sw .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.dyn-sw input:checked + .sw { background: var(--ig-gradient); }
.dyn-sw input:checked + .sw::after { transform: translateX(20px); }
.dyn-sw input:focus-visible + .sw { outline: 2px solid var(--ig-pink); outline-offset: 2px; }
.dyn-sw b { display: block; font-size: .95rem; }
.dyn-sw small { display: block; font-size: .74rem; color: #3fb950; font-weight: 600; }
.dyn-on { display: flex; flex-direction: column; gap: .7rem; border: 1px solid rgba(225,48,108,.35); background: rgba(225,48,108,.06); border-radius: var(--radius-sm); padding: .9rem; }
.dyn-row { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.dyn-row code { font-size: .82rem; color: var(--text-primary); word-break: break-all; }
.dyn .btn-gradient { align-self: flex-start; }

/* rescue */
.rescue { margin-top: 1rem; border: 1px solid rgba(252,175,69,.35); background: rgba(252,175,69,.06); border-radius: var(--radius-sm); padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.rescue p { color: var(--text-secondary); font-size: .88rem; }
.rescue p b { color: var(--text-primary); }
.rescue .btn { align-self: flex-start; }
.rs-out pre { white-space: pre-wrap; word-break: break-all; background: rgba(12,12,22,.65); border-radius: 10px; padding: .6rem; font-size: .82rem; }

/* "only on infiniqr" */
.uq { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem 1rem; }
.uq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.uq-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem 1.4rem 1.3rem; border-radius: var(--radius); color: var(--text-primary); background: linear-gradient(145deg, rgba(131,58,180,.22), rgba(225,48,108,.08) 60%, #181828); border: 1px solid rgba(225,48,108,.28); transition: var(--transition); }
.uq-card:hover { color: var(--text-primary); transform: translateY(-4px); border-color: rgba(225,48,108,.55); box-shadow: 0 16px 50px rgba(0,0,0,.45), 0 0 30px rgba(131,58,180,.15); }
.uq-ic { font-size: 1.6rem; }
.uq-card h3 { font-size: 1.02rem; }
.uq-card p { color: var(--text-secondary); font-size: .85rem; line-height: 1.6; }
.uq-go { position: absolute; top: 1.2rem; right: 1.3rem; color: var(--ig-pink); font-weight: 800; }

/* manage page */
.mg { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.5rem 3rem; }
.mg-wrap { display: flex; flex-direction: column; gap: 1.1rem; }
.mg h1 { font-family: 'Space Grotesk', sans-serif; font-size: 1.9rem; }
.mg h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; margin-top: 1rem; }
.mg-top { display: grid; grid-template-columns: 260px 1fr; gap: 1.1rem; align-items: start; }
.mg-qr { display: flex; flex-direction: column; gap: .6rem; }
.mg-side { display: flex; flex-direction: column; gap: .8rem; }
.mg-status { font-size: .8rem; font-weight: 700; }
.mg-status.active { color: #3fb950; } .mg-status.paused { color: #FCAF45; }
.mg-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.mg-chart { width: 100%; height: auto; display: block; margin-top: .6rem; }
.mg-range { justify-content: space-between; align-items: center; }
.mg-range > * { flex: 0 0 auto; }
.mg-range span { display: flex; gap: .3rem; }
.mg-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.mg-bars { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.mg-bars li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; font-size: .84rem; color: var(--text-secondary); }
.mg-bars li b { color: var(--text-primary); }
.mg-bars li i { grid-column: 1 / -1; height: 5px; border-radius: 4px; background: rgba(255,255,255,.07); position: relative; overflow: hidden; }
.mg-bars li i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ig-gradient); border-radius: 4px; }
.mg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.mg-list small { word-break: break-all; }
.danger { color: #ff6b81 !important; align-self: flex-start; }
.rep-form { display: flex; flex-direction: column; gap: .9rem; margin-top: 1rem; }
.rep-form textarea, .rep-form input { width: 100%; background: rgba(12,12,22,.65); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: var(--text-primary); font: inherit; padding: .7rem .85rem; }
.rep-form .btn { align-self: flex-start; }

/* ---------- phones & small tablets: pinned preview + bottom download bar ---------- */
@media (max-width: 959px) {
  .ed { grid-template-columns: 1fr; gap: .7rem; --pv: clamp(140px, 31vh, 290px); }
  .ed.compact { --pv: clamp(110px, 22vh, 210px); }
  .ed-prev { order: 0; position: sticky; top: 58px; z-index: 20; margin: 0 -1.1rem; padding: .55rem 1.1rem .6rem; background: #0e0e1a; border-bottom: 1px solid var(--border); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
  .pv-card { background: none; border: 0; box-shadow: none; padding: 0; gap: .45rem; align-items: center; }
  .pv-card .qr-box { width: var(--pv); height: var(--pv); min-width: 0; padding: 8px; border-radius: 14px; transition: width .25s ease, height .25s ease; }
  .pv-info { width: 100%; align-items: center; }
  .pv-info .qr-state { font-size: .74rem; padding: .3rem .7rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; border-radius: 999px; }
  .pv-info .qr-state::before { display: inline-block; margin-right: .4rem; vertical-align: middle; }
  .pv-size { font-size: .72rem; }
  .ed.compact .pv-size { display: none; }
  .pv-dl { display: none; }
  .seg { top: calc(58px + var(--pvh, 0px)); border-radius: 14px; }
  .seg button { font-size: .66rem; min-height: 48px; }
  .ed-ctl { gap: .7rem; }
  .st-card, .seg-p.st-card { padding: 1rem; }
  .dl-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: .5rem; padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom)); background: #0e0e1a; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
  .dl-bar .btn { min-height: 48px; border-radius: 14px; font-weight: 700; }
  .dl-bar .btn-gradient { flex: 1; }
  body:has(.ed) { padding-bottom: 76px; }
  .btn, .btn-sm, .fld input, .fld select, .ctl select, .ctl input[type=text], .ctl input[type=url], .chip button { min-height: 44px; }
  .chk input { width: 22px; height: 22px; }
  .presets { display: flex; overflow-x: auto; gap: .5rem; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem 4px; scroll-snap-type: x proximity; }
  .presets::-webkit-scrollbar { display: none; }
  .preset { flex: 0 0 76px; scroll-snap-align: start; }
  .types { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; gap: .35rem; margin: 0 -1.1rem; padding: 2px 1.1rem 4px; }
  .types::-webkit-scrollbar { display: none; }
  .types .pc { width: 62px; flex-shrink: 0; }
  .types .pc-ring { width: 52px; height: 52px; }
  .mg-top { grid-template-columns: 1fr; }
  .mg-qr { max-width: 280px; }
  .mg-kpis { grid-template-columns: repeat(2, 1fr); }
  .mg-cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding-top: 1.1rem; }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); margin-bottom: .7rem; }
  .hero > p, .hero-badge { display: none; }
  .studio-tabs { margin-bottom: .55rem; }
  .studio-tabs .content-tab { padding: .7rem .3rem; min-height: 44px; }
  .uq { padding: 3rem 1.1rem 1rem; }
}
@media (max-width: 380px) {
  .seg button svg { width: 17px; height: 17px; }
  .seg button { font-size: .62rem; }
}

/* graphics tiers (shared with bgnix / pdfmoo): only the nav keeps backdrop-filter; low tier drops motion */
.fx-mid .uq-card:hover, .fx-low .uq-card:hover, .fx-low .feature-card:hover, .fx-low .how-step:hover { transform: none; }
.fx-low .sr { opacity: 1 !important; transform: none !important; transition: none !important; }
.fx-low .qr-box.pulse svg, .fx-low .qr-box.pulse::after, .fx-low .hero-badge .dot { animation: none; }
@media (prefers-reduced-motion: reduce) { .qr-box.pulse svg, .qr-box.pulse::after { animation: none; } }
.seg-p > * { order: 0 !important; }
.seg { background: #12121f; }
@media (max-width: 959px) { .seg { margin: 0 -1.1rem; border-radius: 0; border-left: 0; border-right: 0; padding: .3rem .6rem; box-shadow: 0 8px 18px rgba(0,0,0,.35); } }
@media (max-width: 959px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
html { overflow-x: clip; } .qr-box::after { inset: 0; }
.an-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 14px; text-align: center; }
.an-val { font-size: 1.6rem; font-weight: 800; line-height: 1.1; background: var(--ig-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.an-label { margin-top: 6px; font-size: .74rem; color: var(--text-secondary); }

/* ============================================================
   v3 LANDING — hero with CTA + live phone, gallery, how-it-works
   ============================================================ */
.hero-land { padding: 4.5rem 2rem 2.5rem; text-align: left; }
.hero-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-land h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.hero-land .hero-copy > p { margin: 0 0 1.8rem; max-width: 560px; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.cta-big { padding: 1rem 2rem; font-size: 1.05rem; border-radius: 50px; font-weight: 800; box-shadow: 0 12px 34px rgba(225,48,108,.38); min-height: 52px; }
.cta-2 { padding: 1rem 1.4rem; border-radius: 50px; min-height: 52px; }
.hero-land .trust-strip { justify-content: flex-start; margin-top: 0; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-phone { position: relative; z-index: 1; width: min(300px, 80vw); aspect-ratio: 9 / 17; border-radius: 42px; padding: 52px 26px 30px; background: linear-gradient(160deg, #23233c, #12121f); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 80px rgba(131,58,180,.25); display: flex; flex-direction: column; align-items: center; gap: 1rem; transform: rotate(-3deg); }
.hp-notch { position: absolute; top: 16px; left: 50%; width: 92px; height: 22px; margin-left: -46px; border-radius: 20px; background: #0a0a12; }
.hp-qr { width: 100%; aspect-ratio: 1; background: #fff; border-radius: 22px; padding: 14px; }
.hp-qr svg { width: 100%; height: 100%; display: block; }
.hp-qr.in { animation: hpIn .55s cubic-bezier(.2,.9,.3,1.2); }
@keyframes hpIn { from { opacity: 0; transform: scale(.92) rotate(-2deg); } to { opacity: 1; transform: none; } }
.hp-cap { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text-primary); text-align: center; }
.hp-ok { position: absolute; right: -14px; top: 38%; width: 46px; height: 46px; border-radius: 50%; background: #3fb950; color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: 0 8px 24px rgba(63,185,80,.45); }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb.o1 { width: 260px; height: 260px; right: -30px; top: -20px; background: radial-gradient(circle, rgba(225,48,108,.35), transparent 65%); animation: orb 9s ease-in-out infinite alternate; }
.hero-orb.o2 { width: 220px; height: 220px; left: 0; bottom: -10px; background: radial-gradient(circle, rgba(131,58,180,.4), transparent 65%); animation: orb 11s ease-in-out infinite alternate-reverse; }
@keyframes orb { to { transform: translate3d(-24px, 18px, 0) scale(1.08); } }

.gx { max-width: 1200px; margin: 0 auto; padding: 3.5rem 2rem 1rem; }
.gx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.gx-card { position: relative; display: flex; flex-direction: column; gap: .7rem; text-align: left; padding: 1rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); background: linear-gradient(160deg, #1f1f35, #161626); color: var(--text-primary); cursor: pointer; font: inherit; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.gx-card:hover { transform: translateY(-6px) rotate(-.6deg); border-color: rgba(225,48,108,.5); }
.gx-qr { display: block; background: #fff; border-radius: 16px; padding: 12px; aspect-ratio: 1; }
.gx-qr svg { width: 100%; height: 100%; display: block; }
.gx-txt b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; }
.gx-txt small { color: var(--text-secondary); font-size: .78rem; }
.gx-foot { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; }
.gx-ok { color: #3fb950; font-weight: 700; }
.gx-ok.bad { color: #ff6b81; }
.gx-use { color: var(--ig-pink); font-weight: 700; }
/* each example dressed as the real thing */
.gx-menu .gx-qr { border-radius: 16px 16px 4px 4px; box-shadow: 0 10px 0 -4px #2a1f14, 0 18px 0 -8px #3b2c1d; }
.gx-wifi { background: linear-gradient(160deg, #13294f, #12121f); }
.gx-card.gx-card { }
.gx-insta { background: linear-gradient(160deg, rgba(131,58,180,.45), rgba(247,119,55,.2) 70%, #161626); }
.gx-event { background: linear-gradient(160deg, #3b2a12, #161626); }
.gx-event .gx-qr { border-radius: 12px; outline: 2px dashed rgba(255,255,255,.25); outline-offset: 4px; }
.gx-label .gx-qr { border-radius: 30px 30px 30px 6px; padding: 14px; }
.gx-pay { background: linear-gradient(160deg, #0d2a5c, #161626); }
.gx-chat { background: linear-gradient(160deg, #0b3b33, #161626); }

.hw { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem 1rem; }
.hw-demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: center; }
.hw-steps { display: flex; flex-direction: column; gap: .8rem; }
.hw-step { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-weight: 600; }
.hw-step b { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--text-primary); }
.hw-screen { position: relative; border-radius: var(--radius); border: 1px solid var(--border-light); background: var(--bg-card); padding: 1.3rem; display: grid; grid-template-columns: 1fr 180px; grid-template-rows: auto auto 1fr; gap: .9rem; box-shadow: 0 30px 80px rgba(0,0,0,.5); min-height: 260px; }
.hw-field { grid-column: 1; background: rgba(12,12,22,.7); border: 1px solid var(--border); border-radius: 12px; padding: .7rem .8rem; font: .82rem ui-monospace, Menlo, monospace; color: var(--text-primary); display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.hw-type { display: inline-block; overflow: hidden; clip-path: inset(0 100% 0 0); }
.hw-caret { width: 2px; height: 1em; background: var(--ig-pink); margin-left: 2px; }
.hw-chips { grid-column: 1; display: flex; gap: .5rem; }
.hw-chips i { width: 44px; height: 44px; border-radius: 12px; background: #f4f4fa; opacity: .35; }
.hw-qr { grid-column: 2; grid-row: 1 / 4; background: #fff; border-radius: 16px; padding: 10px; align-self: start; aspect-ratio: 1; }
.hw-qr svg { width: 100%; height: 100%; display: block; }
.hw-dl { grid-column: 1; align-self: end; justify-self: start; padding: .7rem 1.2rem; border-radius: 50px; background: var(--ig-gradient); color: #fff; font-weight: 800; font-size: .85rem; }
/* the loop only runs while the demo is on screen (.run, added by IntersectionObserver) */
.hw-demo.run .hw-type { animation: hwType 6s steps(26) infinite; }
.hw-demo.run .hw-chips i { animation: hwChip 6s ease infinite; }
.hw-demo.run .hw-chips i:nth-child(2) { animation-delay: .15s; } .hw-demo.run .hw-chips i:nth-child(3) { animation-delay: .3s; } .hw-demo.run .hw-chips i:nth-child(4) { animation-delay: .45s; }
.hw-demo.run .hw-qr { animation: hwStyle 6s ease infinite; }
.hw-demo.run .hw-dl { animation: hwDl 6s ease infinite; }
.hw-demo.run .s1 { animation: hwS1 6s infinite; } .hw-demo.run .s2 { animation: hwS2 6s infinite; } .hw-demo.run .s3 { animation: hwS3 6s infinite; }
@keyframes hwType { 0% { clip-path: inset(0 100% 0 0); } 30%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes hwChip { 0%, 33% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-4px); } 50%, 100% { opacity: .55; transform: none; } }
@keyframes hwStyle { 0%, 34% { transform: scale(.96); opacity: .7; } 42%, 100% { transform: none; opacity: 1; } }
@keyframes hwDl { 0%, 62% { transform: scale(.94); opacity: .5; } 70% { transform: scale(1.06); opacity: 1; } 78%, 100% { transform: none; opacity: 1; } }
@keyframes hwS1 { 0%, 30% { color: var(--text-primary); border-color: rgba(225,48,108,.6); } 34%, 100% { color: var(--text-secondary); border-color: var(--border); } }
@keyframes hwS2 { 0%, 33% { color: var(--text-secondary); border-color: var(--border); } 36%, 63% { color: var(--text-primary); border-color: rgba(225,48,108,.6); } 66%, 100% { color: var(--text-secondary); border-color: var(--border); } }
@keyframes hwS3 { 0%, 64% { color: var(--text-secondary); border-color: var(--border); } 68%, 98% { color: var(--text-primary); border-color: rgba(225,48,108,.6); } 100% { color: var(--text-secondary); } }

/* scroll-driven reveals (CSS view timeline) with IntersectionObserver fallback (.sr) */
@supports (animation-timeline: view()) {
  .fx-high .reveal, .fx-mid .reveal { animation: rvIn linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .fx-high .gx-card.reveal:nth-child(2n), .fx-mid .gx-card.reveal:nth-child(2n) { animation-range: entry 6% cover 32%; }
}
@keyframes rvIn { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   WORKSPACE — full-screen editor, no page scroll
   ============================================================ */
body.editing { overflow: hidden; }
.ws { position: fixed; inset: 0; z-index: 60; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg-primary); overflow: clip; }
.ws::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 120% 70% at 50% -20%, rgba(131,58,180,.28), transparent 65%); }
.ws-top { flex: none; height: 58px; display: flex; align-items: center; gap: .7rem; padding: 0 .9rem; border-bottom: 1px solid var(--border); background: #0e0e1a; }
.ws-logo { font-size: 1.2rem; }
.ws-logo svg { width: 26px; height: 26px; }
.ws-btn { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: var(--text-primary); display: grid; place-items: center; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.05rem; }
.ws-btn svg { width: 22px; height: 22px; }
.ws-btn:hover { border-color: var(--ig-pink); }
.ws-tabs-slot { flex: 1; display: flex; justify-content: center; min-width: 0; }
.ws-tabs-slot .studio-tabs { margin: 0; border: 0; max-width: 460px; width: 100%; }
.ws-tabs-slot .content-tab { padding: .6rem .4rem; font-size: .76rem; min-height: 44px; }
.ws .studio { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: none; width: 100%; }
.ws .ed { flex: 1; min-height: 0; width: 100%; max-width: 1320px; margin: 0 auto; padding: 1rem 1.2rem; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); grid-template-rows: minmax(0, 1fr); }
.ws .ed[hidden] { display: none; }
.ws .ed-ctl { min-height: 0; height: 100%; gap: .8rem; }
.ws .seg { position: static; flex: none; }
.ws .seg-p { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.ws .seg-p[data-p="content"] { padding-right: 2px; }
.ws .ed-prev { position: static; min-height: 0; height: 100%; display: flex; }
.ws .pv-card { flex: 1; min-height: 0; justify-content: center; }
.ws .pv-card .qr-box { width: min(100%, calc(100dvh - 300px)); min-width: 0; }
.ws .pane { flex: 1; min-height: 0; overflow: auto; margin: 1rem auto; width: min(820px, calc(100% - 2rem)); }
.ws .dl-bar { position: static; }
.ws .trust-strip, .ws .forever { }
/* tour */
.tour-spot { position: fixed; z-index: 80; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(5,5,12,.66); border: 2px solid var(--ig-pink); pointer-events: none; transition: left .25s, top .25s, width .25s, height .25s; }
.tour { position: fixed; z-index: 81; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 18px; padding: 1rem 1.1rem; box-shadow: 0 24px 60px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: .45rem; animation: tourIn .3s ease; }
.tour small { color: var(--ig-pink); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.tour b { font-size: 1rem; }
.tour p { color: var(--text-secondary); font-size: .86rem; line-height: 1.55; }
.tour-btns { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .3rem; }
@keyframes tourIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) { .gx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 959px) {
  .hero-land { padding: 2.2rem 1.1rem 1.5rem; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-land .hero-copy > p { margin-inline: auto; }
  .hero-cta, .hero-land .trust-strip { justify-content: center; }
  .hero-phone { width: min(240px, 66vw); }
  .hw-demo { grid-template-columns: 1fr; }
  .gx, .hw { padding-left: 1.1rem; padding-right: 1.1rem; }
  .gx-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .8rem; margin: 0 -1.1rem; padding: 0 1.1rem 8px; scrollbar-width: none; }
  .gx-grid::-webkit-scrollbar { display: none; }
  .gx-card { flex: 0 0 70%; scroll-snap-align: center; }
  /* workspace on phones: preview on top, one pane below, download bar at the bottom */
  .ws-top { height: 54px; padding: 0 .5rem; gap: .4rem; }
  .ws-logo span { display: none; }
  .ws-tabs-slot .content-tab { font-size: .64rem; letter-spacing: .3px; gap: .25rem; }
  .ws-tabs-slot .content-tab svg { width: 14px; height: 14px; }
  .ws .ed { display: flex; flex-direction: column; padding: 0; gap: 0; --pv: min(30dvh, 290px); }
  .ws .ed-prev { flex: none; height: auto; position: static; margin: 0; padding: .5rem 1rem .45rem; top: auto; }
  .ws .pv-card .qr-box { width: var(--pv); height: var(--pv); }
  .ws .ed-ctl { flex: 1; min-height: 0; gap: 0; }
  .ws .seg { margin: 0; }
  .ws .seg-p { padding: .8rem 1rem 1rem; border-radius: 0; border: 0; background: none; box-shadow: none; }
  .ws .seg-p .st-card { padding: .9rem; }
  .ws .dl-bar { flex: none; }
  .ws .pane { margin: .6rem; width: auto; }
  body:has(.ed) { padding-bottom: 0; }
}
@media (max-width: 959px) and (max-height: 700px) {
  .ws .pv-size { display: none; }
  .ws .ed { --pv: min(28dvh, 240px); }
  .ws .seg button { min-height: 44px; padding: .2rem; }
  .ws .seg button svg { width: 16px; height: 16px; }
}
@media (max-width: 600px) {
  .hero-land .hero-badge, .hero-land .hero-copy > p { display: block; }
  .hero-land .hero-badge { display: inline-flex; }
  .hero-land h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .cta-big { width: 100%; justify-content: center; }
}
.fx-low .hero-orb, .fx-low .hw-demo.run * { animation: none !important; }
.fx-low .hw-type { clip-path: none; }
@media (prefers-reduced-motion: reduce) { .hero-orb, .hw-demo.run *, .hp-qr.in { animation: none !important; } .hw-type { clip-path: none; } }
.ws { z-index: 200; }
.tour-spot { z-index: 300; } .tour { z-index: 301; }
.toast { z-index: 400; }
body.editing > :not(.ws):not(script):not(.toast):not(.tour):not(.tour-spot) { display: none !important; }
/* compact panes (no page scroll in the workspace) */
.subseg { display: flex; gap: .35rem; margin-bottom: .9rem; }
.subseg button { flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background: rgba(12,12,22,.6); color: var(--text-secondary); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.subseg button.on { color: var(--text-primary); border-color: var(--ig-pink); background: rgba(225,48,108,.12); }
[data-subp][hidden] { display: none !important; }
.more-opts { border: 1px solid var(--border); border-radius: 12px; }
.more-opts > summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 .9rem; font-size: .82rem; font-weight: 700; color: var(--text-secondary); }
.more-opts > summary::-webkit-details-marker { display: none; }
.more-opts > summary::after { content: '+'; font-size: 1.1rem; color: var(--ig-pink); }
.more-opts[open] > summary::after { content: '−'; }
.more-body { padding: 0 .9rem .9rem; display: flex; flex-direction: column; gap: .8rem; }
.ws .blk { gap: .6rem; }
.ws .blk + .blk, .ws .blk + .more-opts, .ws .more-opts { margin-top: .7rem; }
.ws .blk + .blk { padding-top: .7rem; }
.ws .ctl { gap: .25rem; }
.ws .form-head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.ws .form-head p { margin-bottom: .6rem; font-size: .76rem; }
.ws .shape-row { gap: .4rem; }
.ws .shape { width: 44px; height: 44px; padding: 7px; }
.ws .logo-icons .shape { width: 44px; height: 44px; }
.ws .shape.wide { min-height: 44px; padding: .4rem .75rem; }
.ws .btn-sm, .ws .dl-print select, .ws .dl-main select, .ws .dl-more .btn { min-height: 44px; }
.ws .presets { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .45rem; }
.ws .preset { padding: .3rem .3rem .25rem; border-radius: 12px; }
.ws .preset span { font-size: .6rem; }
.ws .fld textarea { min-height: 64px; }
.ws .fields { gap: .6rem .8rem; }
.ws .dyn-on { padding: .7rem; gap: .5rem; }
.ws .dl-more { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 959px) {
  .ws .form-head p { display: none; }
  .ws .seg-p[data-p="content"] { gap: .6rem; }
  .ws .types .pc { width: 56px; }
  .ws .types .pc-ring { width: 46px; height: 46px; }
  .ws .types .pc-av svg { width: 20px; height: 20px; }
  .ws .types .pc-name { font-size: .64rem; }
  .ws .blk-h { display: none; }
  .ws .blk + .blk { border-top: 0; padding-top: 0; }
  .ws .dl-more { grid-template-columns: repeat(2, 1fr); }
  .ws .ed { --pv: min(28dvh, 270px); }
  .ws .pv-size { font-size: .68rem; }
  .ws .dyn-sw b { font-size: .88rem; }
  .ws .row2 { gap: .5rem .7rem; }
  .ws .col-in { padding: .3rem .5rem; }
  .ws .presets { display: flex; }
  .ws .preset { flex: 0 0 64px; }
}
@media (max-width: 959px) and (max-height: 700px) { .ws .ed { --pv: min(25dvh, 200px); } .ws .types .pc-name { display: none; } }
.ws .seg-p[data-p="content"] > * { flex: none; }
@media (max-width: 959px) { .ws [data-subp="files"] .qr-content, .ws [data-subp="files"] .forever { display: none; } }
@media (max-width: 959px) and (max-height: 700px) { .ws .preset span { display: none; } .ws .preset { flex-basis: 54px; } .ws .ctl-l { font-size: .68rem; } }
.ws .ed > * { min-width: 0; max-width: 100%; }
.ws .ed-ctl, .ws .seg, .ws .seg-p { width: 100%; min-width: 0; }
.ws .seg-p { overflow-x: hidden; }
.ws .pv-dl .btn { white-space: nowrap; font-size: .8rem; }
