/* CapzView — PeekViewer-inspired marketing layout */
:root {
  --bg: #0b0e14;
  --bg-2: #131620;
  --bg-card: #181c27;
  --ink: #ffffff;
  --muted: #a8b0c0;
  --line: #2a3142;
  --blue: #005ee8;
  --blue-h: #0067ff;
  --blue-d: #0049b5;
  --max: 1120px;
  --font: "Poppins", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* NAV — Peekviewer style */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(19, 22, 32, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #ffffff08;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.95rem 0;
}
.logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 600; font-size: 1.05rem;
}
.logo-img {
  width: 32px; height: 32px; border-radius: 8px; display: block; object-fit: cover;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue); display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem;
}
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav-links > li > a, .nav-drop > .drop-toggle {
  display: block; color: #fff; font-size: 0.95rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: 8px; cursor: pointer;
  background: transparent; border: 0; font: inherit;
}
.nav-links > li > a:hover, .nav-drop > .drop-toggle:hover,
.nav-drop.open > .drop-toggle { background: #ffffff10; }
.nav-drop { position: relative; }
.nav-drop .caret {
  display: inline-block;
  width: 0; height: 0; margin-left: 0.4rem; vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #fff;
  opacity: 0.85;
}
.nav-drop.open .caret { transform: rotate(180deg); }
.drop {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 280px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.5rem; box-shadow: 0 20px 50px #00000088;
  z-index: 120;
}
.nav-drop.open .drop, .drop:not([hidden]) { display: block; }
.drop[hidden] { display: none !important; }
.drop a {
  display: block; padding: 0.7rem 0.85rem; border-radius: 10px;
  font-size: 0.9rem; color: var(--muted);
}
.drop a strong { display: block; color: #fff; font-size: 0.88rem; margin-bottom: 0.15rem; }
.drop a:hover { background: #ffffff0a; color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.35rem; border-radius: 10px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--blue-h); }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1rem; border-radius: 12px; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 10px; font-weight: 500;
}
.btn-ghost:hover { border-color: var(--blue); }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* HERO */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(700px 360px at 70% 20%, rgba(0, 94, 232, 0.22), transparent 60%),
    linear-gradient(180deg, #131620 0%, #0b0e14 100%);
  text-align: center;
}
.hero-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600; color: #9ec0ff;
  background: #005ee822; border: 1px solid #005ee855; padding: 0.35rem 0.85rem;
  border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.15;
  max-width: 16ch; margin: 0 auto 1rem; letter-spacing: -0.02em;
}
.hero h1 span { color: #6ea8ff; }
.hero-lead {
  color: var(--muted); font-size: 1.08rem; max-width: 560px; margin: 0 auto 1.8rem; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.trust {
  display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.8rem; color: var(--muted); font-size: 0.85rem;
}
.trust span { color: #4ade80; }

/* SECTIONS */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--bg-2); }
.section-h {
  text-align: center; max-width: 680px; margin: 0 auto 2.5rem;
}
.section-h .label {
  color: #6ea8ff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.section-h h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.2; margin-bottom: 0.8rem;
}
.section-h p { color: var(--muted); font-size: 1rem; }

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem; transition: border-color .2s;
}
.card:hover { border-color: #005ee866; }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; background: #005ee822;
  display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.2rem;
}
.card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.card .more {
  display: inline-block; margin-top: 1rem; color: #6ea8ff; font-weight: 600; font-size: 0.88rem;
}

/* Feature rows like Peekviewer */
.feat-row {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.feat-row:last-child { border-bottom: 0; }
.feat-row.reverse { direction: rtl; }
.feat-row.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .feat-row, .feat-row.reverse { grid-template-columns: 1fr; direction: ltr; }
}
.feat-copy h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.feat-copy p { color: var(--muted); margin-bottom: 1rem; }
.feat-copy ul { color: var(--muted); padding-left: 1.1rem; margin-bottom: 1.1rem; font-size: 0.92rem; }
.feat-visual {
  background: linear-gradient(145deg, #1a2233, #121722);
  border: 1px solid var(--line); border-radius: 18px; min-height: 200px;
  display: grid; place-items: center; color: #6ea8ff; font-weight: 600;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem;
}
.step .n {
  width: 32px; height: 32px; border-radius: 8px; background: var(--blue);
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.8rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.88rem; }

/* Reviews */
.review {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 1.35rem;
}
.review p { color: #d5dae6; font-size: 0.92rem; margin-bottom: 1rem; }
.review .who { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* FAQ */
.faq details {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.15rem; margin-bottom: 0.6rem;
}
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--muted); margin-top: 0.55rem; font-size: 0.92rem; }

/* Blog teasers */
.blog-card {
  display: block; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.25rem; transition: border-color .2s;
}
.blog-card:hover { border-color: var(--blue); }
.blog-card .date { color: var(--muted); font-size: 0.78rem; margin-bottom: 0.45rem; }
.blog-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.blog-card p { color: var(--muted); font-size: 0.88rem; }

/* CTA band */
.cta-band {
  text-align: center; padding: 3.5rem 1.5rem; border-radius: 20px;
  background: linear-gradient(135deg, #005ee8 0%, #003d99 100%);
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.6rem; }
.cta-band p { color: #d6e6ff; margin-bottom: 1.3rem; }
.cta-band .btn { background: #fff; color: #003d99; }
.cta-band .btn:hover { background: #eef4ff; }

/* FOOTER */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: #7a8499; margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { color: #c5ccd9; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.foot-about { color: var(--muted); font-size: 0.88rem; margin-top: 0.7rem; max-width: 32ch; }
.copy {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  color: #7a8499; font-size: 0.8rem; text-align: center;
}

/* Inner page hero */
.page-hero {
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, #131620, #0b0e14);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.page-hero p { color: var(--muted); max-width: 52ch; }

.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin: 1.6rem 0 0.6rem; }
.prose p { color: var(--muted); margin-bottom: 0.9rem; }
.prose a { color: #6ea8ff; }

/* ===== Viewer tool page (kept separate) ===== */
.viewer-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem; margin: 1.5rem 0 2rem;
}
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-bottom: 1rem; }
.mode-btn {
  text-align: left; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.95rem 1rem; color: #fff; cursor: pointer;
}
.mode-btn strong { display: block; margin-bottom: 0.2rem; }
.mode-btn span { color: var(--muted); font-size: 0.82rem; }
.mode-btn.active { border-color: var(--blue); background: #005ee818; }
.mode-btn[data-mode="private"].active { border-color: #f59e0b; background: #f59e0b14; }
.search-row { display: flex; gap: 0.6rem; }
.search-row input {
  flex: 1; background: #0f131c; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.9rem 1rem; color: #fff; outline: none;
}
.search-row input:focus { border-color: var(--blue); }
.search-row button {
  background: var(--blue); color: #fff; border: 0; border-radius: 10px;
  padding: 0.9rem 1.25rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.search-row button:hover { background: var(--blue-h); }
.hint { margin-top: 0.65rem; color: var(--muted); font-size: 0.82rem; }
.eyebrow {
  color: #6ea8ff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.55rem;
}
.lock-cta .box button, #unlock-btn {
  background: var(--blue); color: #fff; border: 0; border-radius: 10px;
  padding: 0.7rem 1.2rem; font-weight: 600; cursor: pointer;
}
.state { display: none; margin-top: 1.2rem; }
.state.show { display: block; }
.loading, .empty, .error-box {
  text-align: center; padding: 2rem 1rem; border: 1px dashed var(--line); border-radius: 14px;
}
.spinner {
  width: 40px; height: 40px; margin: 0 auto 0.8rem; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--blue);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { border-color: #ef444466; background: #ef444415; }

.profile {
  display: grid; grid-template-columns: 88px 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem; background: #121722; border: 1px solid var(--line); border-radius: 14px;
}
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 2px solid var(--blue); }
.avatar-fallback {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); font-size: 1.8rem; font-weight: 700;
}
.profile h2 { font-size: 1.2rem; }
.handle { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.4rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.badge { font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.5rem; border-radius: 999px; }
.badge.public { background: #22c55e22; color: #4ade80; }
.badge.private { background: #f59e0b22; color: #fbbf24; }
.badge.ok { background: #005ee833; color: #93c5fd; }
.counts { display: flex; gap: 1rem; font-size: 0.9rem; }
.bio { grid-column: 1 / -1; color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.grid-posts {
  margin-top: 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
}
.grid-posts a { aspect-ratio: 1; background: #1a2233; display: block; overflow: hidden; }
.grid-posts img { width: 100%; height: 100%; object-fit: cover; }

.lock-panel {
  margin-top: 1rem; position: relative; border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; background: #121722;
}
.lock-panel .blurred {
  filter: blur(10px); opacity: 0.45; pointer-events: none;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; padding: 0.5rem;
}
.lock-panel .ph { aspect-ratio: 1; background: linear-gradient(135deg, #2a3142, #1a2233); }
.lock-cta { position: absolute; inset: 0; display: grid; place-items: center; padding: 1rem; }
.lock-cta .box {
  background: #0b0e14; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.2rem; max-width: 320px; text-align: center;
}
.lock-cta .box p { color: var(--muted); font-size: 0.88rem; margin: 0.45rem 0 0.9rem; }

.unlock-card {
  background: #0a1018; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem;
}
.unlock-head { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.unlock-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.progress-track { height: 8px; background: #1a2233; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #60a5fa); transition: width .35s; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.78rem; margin: 0.4rem 0 0.8rem; }
.terminal {
  background: #05080e; border-radius: 10px; padding: 0.85rem 1rem; margin-top: 0.9rem;
  font-family: ui-monospace, Menlo, monospace; font-size: 0.78rem; line-height: 1.7;
  max-height: 220px; overflow: auto; color: #cbd5e1;
}
.t-ok { color: #4ade80; } .t-info { color: #60a5fa; } .t-data { color: #fbbf24; }
.redirect {
  display: none; position: fixed; inset: 0; z-index: 200; background: #000;
  flex-direction: column; align-items: center; justify-content: center; gap: 0.8rem;
}
.redirect.show { display: flex; }

.cv-loader {
  text-align: center;
  padding: 1.6rem 1rem 1.4rem;
  background: #070b12;
  border: 1px solid #1c2433;
  border-radius: 16px;
}
.cv-loader-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #7dd3fc;
  font-size: 0.92rem;
  min-height: 1.4em;
  margin-bottom: 1.1rem;
  word-break: break-word;
}
.cv-ring-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 0 auto;
}
.cv-ring { width: 168px; height: 168px; transform: rotate(-90deg); }
.cv-ring-track { fill: none; stroke: #1e293b; stroke-width: 8; }
.cv-ring-bar {
  fill: none;
  stroke: #005ee8;
  stroke-width: 8;
  stroke-linecap: round;
}
.cv-percent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  font-weight: 700;
  color: #f8fafc;
}
.cv-sub { margin-top: 0.95rem; color: #94a3b8; font-size: 0.92rem; }
.cv-user { margin-top: 0.35rem; font-weight: 650; color: #e2e8f0; }
.cv-user span { color: #60a5fa; }
.cv-live {
  margin-top: 1.15rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.82rem;
}
.cv-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: cv-pulse 1.6s infinite;
}
@keyframes cv-pulse {
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.cv-fetch {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #05080e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.cv-fetch-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #005ee8;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
}
.cv-fetch-text { color: #e2e8f0; font-size: 1.15rem; font-weight: 600; }
.cv-dots { display: flex; gap: 0.4rem; }
.cv-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #005ee8;
  animation: cv-dot 1s infinite ease-in-out;
}
.cv-dots span:nth-child(2) { animation-delay: 0.15s; }
.cv-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cv-dot {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.cards .card h3 { margin-bottom: 0.45rem; }
.cards .card p { color: var(--muted); font-size: 0.9rem; }

/* —— Professional homepage additions —— */
.label {
  color: #6ea8ff; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.center-cta { text-align: center; margin-top: 2rem; }
.text-link { color: #6ea8ff; font-weight: 600; font-size: 0.92rem; }
.text-link:hover { color: #93c5fd; }

.icon-svg {
  width: 44px; height: 44px; border-radius: 12px; background: #005ee822;
  display: grid; place-items: center; margin-bottom: 1rem; color: #6ea8ff;
}
.icon-svg svg { width: 22px; height: 22px; }

.stats-bar {
  border-block: 1px solid var(--line);
  background: #10141e;
  padding: 1.4rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: center;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat strong { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.2rem; }
.stat span { color: var(--muted); font-size: 0.82rem; }

.rich-section .lead {
  color: #c5ccd9; font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem;
}
.rich-split {
  display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 2rem; align-items: start;
  margin-bottom: 2.2rem;
}
@media (max-width: 860px) { .rich-split { grid-template-columns: 1fr; } }
.rich-main h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 1rem;
}
.rich-main p { color: var(--muted); margin-bottom: 0.9rem; line-height: 1.7; }
.rich-main a { color: #6ea8ff; }
.rich-aside {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.4rem;
}
.rich-aside h3 { font-size: 1rem; margin-bottom: 0.9rem; }
.rich-aside .btn { margin-top: 1rem; width: 100%; }

.check-list {
  list-style: none; display: grid; gap: 0.55rem;
}
.check-list li {
  position: relative; padding-left: 1.5rem; color: var(--muted); font-size: 0.9rem; line-height: 1.45;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: #005ee8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M2.5 6l2.5 2.5 4.5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}

.use-cases {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
@media (max-width: 900px) { .use-cases { grid-template-columns: 1fr; } }
.use-card {
  background: #121722; border: 1px solid var(--line); border-radius: 16px; padding: 1.35rem;
}
.use-card h3 { font-size: 1.05rem; margin-bottom: 0.55rem; }
.use-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; margin-bottom: 0.9rem; }

.audience-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
@media (max-width: 960px) { .audience-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.35rem;
  background: linear-gradient(180deg, #181c27, #131722);
}
.audience-card h3 {
  font-size: 1rem; margin-bottom: 0.5rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.audience-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; }

.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }
.compare-col {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem;
}
.compare-col.accent {
  border-color: #005ee888;
  background: linear-gradient(160deg, #152038, #181c27);
}
.compare-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; margin-bottom: 0.85rem;
}
.compare-badge.public { background: #22c55e22; color: #4ade80; }
.compare-badge.private { background: #005ee833; color: #93c5fd; }
.compare-col h3 { font-size: 1.25rem; margin-bottom: 0.55rem; }
.compare-col > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; line-height: 1.65; }
.compare-col .check-list { margin-bottom: 1.2rem; }

.stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 0.55rem; }

.cta-points {
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
  margin: -0.4rem 0 1.4rem; color: #d6e6ff; font-size: 0.88rem; font-weight: 500;
}

.rich-narrow { max-width: 760px; }
.rich-narrow h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 1rem;
}
.prose-block p {
  color: var(--muted); margin-bottom: 1rem; line-height: 1.75; font-size: 0.98rem;
}
.prose-block a { color: #6ea8ff; }
.prose-block strong { color: #e8ecf5; }

.tips-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
}
@media (max-width: 700px) { .tips-grid { grid-template-columns: 1fr; } }
.tips-grid article {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 1.35rem;
}
.tips-grid h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.tips-grid p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

.final-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.8rem 2rem;
}
.final-cta h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.final-cta p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 700px) {
  .final-cta { flex-direction: column; text-align: center; }
}

/* Feature mock UIs */
.feat-visual { padding: 1.25rem; }
.mock-ui {
  width: 100%; max-width: 280px; background: #0c1018; border: 1px solid var(--line);
  border-radius: 14px; padding: 0.9rem; margin: 0 auto;
}
.mock-bar {
  height: 8px; width: 40%; border-radius: 99px; background: #2a3142; margin-bottom: 0.9rem;
}
.mock-row { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.9rem; }
.mock-av {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #60a5fa); flex-shrink: 0;
}
.mock-lines { flex: 1; display: grid; gap: 0.35rem; }
.mock-lines i {
  display: block; height: 8px; border-radius: 99px; background: #2a3142;
}
.mock-lines i:last-child { width: 60%; }
.mock-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.mock-grid i {
  aspect-ratio: 1; border-radius: 4px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
}
.mock-ui.story { text-align: center; }
.mock-rings {
  display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 0.8rem;
}
.mock-rings i {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--blue); background: #1a2233;
}
.mock-story-frame {
  height: 140px; border-radius: 12px;
  background: linear-gradient(180deg, #1e3a5f, #0f172a);
}
.mock-ui.lock { text-align: center; padding: 2rem 1rem; }
.mock-lock {
  width: 48px; height: 48px; margin: 0 auto 0.7rem; border-radius: 12px;
  background: #005ee833; border: 1px solid #005ee866;
  position: relative;
}
.mock-lock::before {
  content: ""; position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 16px; height: 12px; border: 2px solid #6ea8ff; border-bottom: 0; border-radius: 8px 8px 0 0;
}
.mock-lock::after {
  content: ""; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  width: 22px; height: 16px; background: #6ea8ff; border-radius: 4px;
}
.mock-ui.lock p { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.mock-ui.api {
  display: grid; gap: 0.55rem; font-family: ui-monospace, Menlo, monospace;
}
.mock-ui.api code {
  display: block; background: #05080e; color: #93c5fd; font-size: 0.72rem;
  padding: 0.65rem 0.75rem; border-radius: 8px; border: 1px solid var(--line);
}
.mock-ui.followers .mock-row { margin-bottom: 0.65rem; }
.mock-ui.followers .mock-av {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #334155, #60a5fa);
}

.site-nav { border-bottom: 1px solid #ffffff08; }
.hero { padding: 5.5rem 0 4rem; text-align: left; }
.section { padding: 5rem 0; }

.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas, .trust { justify-content: center; }
  .hero h1 { margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
}
.hero-media {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 94, 232, 0.18);
}
.hero-media img, .hero-media picture, .feat-visual img, .feat-visual picture,
.article-hero img, .article-hero picture, .legal-hero img, .legal-hero picture {
  width: 100%; height: auto; display: block;
}
.feat-visual {
  padding: 0; overflow: hidden; min-height: auto;
  background: transparent; border: 1px solid var(--line);
}
.feat-visual img { width: 100%; height: auto; display: block; }

/* Articles & legal */
.article { padding: 2.5rem 0 4rem; max-width: 780px; }
.article .crumb { color: #6ea8ff; font-weight: 600; font-size: 0.9rem; }
.article h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2;
  margin: 0.8rem 0 0.5rem;
}
.article-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.2rem; }
.article-hero {
  margin: 0 0 1.8rem; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
}
.article-hero img { width: 100%; height: auto; display: block; }
.article h2 {
  font-size: 1.35rem; margin: 2rem 0 0.75rem; line-height: 1.3;
}
.article h3 { font-size: 1.05rem; margin: 1.3rem 0 0.5rem; }
.article p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; font-size: 1rem; }
.article a { color: #6ea8ff; }
.article strong { color: #e8ecf5; }
.related-list { padding-left: 1.1rem; color: var(--muted); display: grid; gap: 0.45rem; margin-bottom: 1.5rem; }
.article-cta {
  margin-top: 2rem; padding: 1.5rem; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--line); text-align: center;
}
.article-cta h3 { margin-bottom: 0.35rem; }
.article-cta p { margin-bottom: 1rem; }

.legal { max-width: 820px; }
.legal-hero {
  margin: 0 0 2rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
}
.legal-hero img { width: 100%; height: auto; display: block; }
.legal h2 { font-size: 1.35rem; margin: 1.8rem 0 0.7rem; }
.legal h3 { font-size: 1.05rem; margin: 1.2rem 0 0.5rem; }
.legal p { color: var(--muted); margin-bottom: 0.9rem; line-height: 1.75; }
.legal ul { color: var(--muted); padding-left: 1.2rem; margin-bottom: 1rem; display: grid; gap: 0.4rem; }
.legal a { color: #6ea8ff; }
.legal strong { color: #e8ecf5; }

.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.blog-card img {
  width: 100%; height: auto; border-radius: 10px; margin-bottom: 0.85rem;
  border: 1px solid var(--line);
}

.internal-box {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.internal-box h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.internal-box p { color: var(--muted); margin-bottom: 0.75rem; }
.hub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
@media (max-width: 800px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-grid h3 {
  font-size: 0.95rem; margin-bottom: 0.8rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}
.hub-grid a { color: #6ea8ff; }
.article ol.steps-list {
  color: var(--muted); padding-left: 1.2rem; margin: 0 0 1rem;
  display: grid; gap: 0.45rem; line-height: 1.65;
}
.article ol.steps-list strong { color: #e8ecf5; }

.info-block { padding: 4rem 0; }
.info-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center;
}
.info-grid.reverse { direction: rtl; }
.info-grid.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .info-grid, .info-grid.reverse { grid-template-columns: 1fr; direction: ltr; }
}
.info-media {
  margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
}
.info-media img, .info-media picture { width: 100%; height: auto; display: block; }
.info-copy .label { margin-bottom: 0.5rem; }
.info-copy h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0.8rem; }
.info-copy h3 { font-size: 1.05rem; margin: 1.1rem 0 0.5rem; }

/* ===== MOBILE OPTIMIZATION ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, video, canvas, svg { max-width: 100%; height: auto; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }

/* Prevent iOS zoom on focus */
.search-row input,
input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  font-size: 16px;
}

.burger {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  place-items: center;
  position: relative;
  z-index: 110;
}
.burger-lines,
.burger-lines::before,
.burger-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: transform .2s, opacity .2s;
}
.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger-lines::before { top: -6px; }
.burger-lines::after { top: 6px; }
.burger[aria-expanded="true"] .burger-lines { background: transparent; }
.burger[aria-expanded="true"] .burger-lines::before {
  top: 0; transform: rotate(45deg);
}
.burger[aria-expanded="true"] .burger-lines::after {
  top: 0; transform: rotate(-45deg);
}

body.nav-open { overflow: hidden; }

@media (max-width: 920px) {
  .burger { display: grid; }
  .site-nav .wrap { position: relative; }
  .nav-inner { padding: 0.65rem 0; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: #0f131c;
    padding: 0.75rem 0 1rem;
    border-bottom: 1px solid var(--line);
    max-height: min(80vh, 640px);
    overflow-y: auto;
    box-shadow: 0 18px 40px #000000aa;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a,
  .nav-drop > .drop-toggle {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 10px;
  }
  .nav-cta-item { padding: 0.35rem 0.5rem 0.15rem; }
  .nav-cta-btn {
    width: 100%;
    margin-left: 0 !important;
    justify-content: center;
  }
  .drop {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0.35rem 0.35rem 0.75rem;
    margin: 0;
  }
  .drop a { padding: 0.75rem 0.85rem; }
}

@media (max-width: 900px) {
  .wrap { width: min(100% - 1.25rem, var(--max)); }
  .hero { padding: 2.75rem 0 2.25rem !important; }
  .section { padding: 2.75rem 0 !important; }
  .page-hero { padding: 2rem 0 1.1rem; }
  .page-hero h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
    word-break: break-word;
  }
  .page-hero p { font-size: 0.95rem; max-width: none; }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }
  .hero-lead { font-size: 0.98rem; max-width: 36ch; }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-ctas .btn,
  .hero-ctas .btn-ghost { width: 100%; }
  .trust { gap: 0.65rem 1rem; font-size: 0.8rem; }
  .stats-grid { gap: 0.75rem; }
  .stat strong { font-size: 1rem; }

  .viewer-card {
    padding: 1rem;
    margin: 1rem 0 1.5rem;
    border-radius: 14px;
  }
  .mode-switch {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .mode-btn { padding: 0.85rem 0.9rem; }
  .mode-btn span { font-size: 0.8rem; line-height: 1.4; }

  .search-row {
    flex-direction: column;
    align-items: stretch;
  }
  .search-row input {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  .search-row button {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  .profile {
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    padding: 0.9rem;
  }
  .avatar,
  .avatar-fallback {
    width: 64px;
    height: 64px;
    font-size: 1.35rem;
  }
  .profile h2 {
    font-size: 1.05rem;
    word-break: break-word;
  }
  .counts {
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }
  .bio {
    font-size: 0.85rem;
    overflow-wrap: anywhere;
  }

  .lock-cta { padding: 0.75rem; }
  .lock-cta .box {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border-radius: 12px;
  }
  .lock-cta .box button,
  #unlock-btn {
    width: 100%;
    min-height: 46px;
  }

  .grid-3,
  .cards,
  .use-cases,
  .compare,
  .tips-grid,
  .hub-grid,
  .contact-grid,
  .audience-grid,
  .steps,
  .foot-grid,
  .rich-split {
    grid-template-columns: 1fr !important;
  }
  .info-grid,
  .info-grid.reverse {
    grid-template-columns: 1fr !important;
    direction: ltr;
    gap: 1.25rem;
  }
  .feat-row,
  .feat-row.reverse {
    grid-template-columns: 1fr !important;
    direction: ltr;
    gap: 1.1rem;
    padding: 1.4rem 0;
  }

  .article {
    padding: 1.5rem 0 2.5rem;
    width: min(100% - 1.25rem, 780px);
  }
  .article h1 { font-size: clamp(1.45rem, 7vw, 2rem); }
  .article h2 { font-size: 1.2rem; }
  .article p,
  .legal p {
    font-size: 0.95rem;
    overflow-wrap: anywhere;
  }
  .internal-box,
  .article-cta,
  .cta-band,
  .final-cta { padding: 1.15rem; }
  .final-cta {
    flex-direction: column;
    text-align: center;
  }
  .final-cta .btn { width: 100%; }

  .btn,
  .btn-lg,
  .btn-ghost { min-height: 44px; }
  .cta-points {
    gap: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }

  .terminal {
    font-size: 0.72rem;
    max-height: 180px;
  }
  .redirect {
    padding: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 1rem, var(--max)); }
  .hero-badge { font-size: 0.72rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .mode-btn strong { font-size: 0.95rem; }
  .grid-posts { gap: 2px; border-radius: 8px; }
  .card,
  .review,
  .blog-card,
  .step,
  .compare-col {
    padding: 1.05rem;
    border-radius: 12px;
  }
  .site-footer { padding: 2rem 0 1.25rem; }
}

@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ===== INSTAGRAM CONTINUE + TABLET ===== */

/* —— Instagram-style continue page (dark) —— */
.continue-page {
  background: #000;
}
.ig-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 1.25rem 1rem 2.5rem;
}
.ig-phone {
  width: min(100%, 470px);
  background: #121212;
  color: #f5f5f5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #262626;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ig-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #262626;
  background: #121212;
  position: sticky;
  top: 0;
  z-index: 5;
}
.ig-back,
.ig-more {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #f5f5f5;
  font-size: 1.25rem;
  text-decoration: none;
  cursor: pointer;
}
.ig-top-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: #f5f5f5;
}
.ig-chevron { width: 12px; height: 12px; color: #f5f5f5; }

.ig-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1rem 1rem 0.4rem;
}
.ig-avatar-wrap {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  font: inherit;
  display: block;
}
.ig-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #121212;
  background: #262626;
  display: block;
}
.ig-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 0.25rem;
}
button.ig-stat {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.ig-stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f5f5f5;
}
.ig-stat span {
  font-size: 0.8rem;
  color: #a8a8a8;
}

.ig-meta { padding: 0.35rem 1rem 0.75rem; }
.ig-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.15rem; color: #f5f5f5; }
.ig-bio {
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #f5f5f5;
}

.ig-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.45rem;
  padding: 0 1rem 0.85rem;
}
.ig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #f5f5f5;
}
.ig-btn-primary {
  background: #0095f6;
  color: #fff;
}
.ig-btn-primary:hover { background: #1877f2; }
.ig-btn-secondary {
  background: #363636;
  color: #f5f5f5;
}
.ig-btn-icon {
  width: 36px;
  background: #363636;
  color: #f5f5f5;
}

.ig-highlights {
  display: flex;
  gap: 0.9rem;
  padding: 0.35rem 1rem 0.9rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ig-hl {
  flex: 0 0 auto;
  width: 66px;
  text-align: center;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.ig-hl-ring {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 0.3rem;
  border-radius: 50%;
  border: 1px solid #363636;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  position: relative;
}
.ig-hl-ring.plus::before,
.ig-hl-ring.plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #f5f5f5;
  transform: translate(-50%, -50%);
}
.ig-hl-ring.plus::before { width: 16px; height: 2px; }
.ig-hl-ring.plus::after { width: 2px; height: 16px; }
.ig-hl small {
  display: block;
  font-size: 0.72rem;
  color: #f5f5f5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ig-sheet {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  place-items: end center;
  padding: 0;
}
.ig-sheet[hidden] { display: none; }
.ig-sheet-card {
  width: min(100%, 470px);
  max-height: min(78vh, 640px);
  background: #1c1c1c;
  color: #f5f5f5;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ig-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #2e2e2e;
}
.ig-sheet-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.ig-sheet-close,
.ig-story-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #f5f5f5;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.ig-sheet-note,
.ig-sheet-empty {
  margin: 0;
  padding: 0.75rem 1rem;
  color: #a8a8a8;
  font-size: 0.82rem;
}
.ig-sheet-list {
  overflow-y: auto;
  max-height: min(62vh, 520px);
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.ig-person {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 1rem;
  color: #f5f5f5;
  text-decoration: none;
}
.ig-person img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2a2a;
}
.ig-person strong { display: block; font-size: 0.92rem; }
.ig-person small { display: block; color: #a8a8a8; font-size: 0.8rem; }

.ig-story {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: #000;
  display: grid;
  place-items: center;
}
.ig-story[hidden] { display: none; }
.ig-story img {
  max-width: min(100%, 470px);
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.ig-story-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 470px);
  padding: 0.7rem 0.8rem 0;
  z-index: 2;
}
.ig-story-bars {
  display: flex;
  gap: 4px;
}
.ig-story-bars span {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}
.ig-story-bars span.on { background: #fff; }
.ig-story-user {
  margin-top: 0.55rem;
  font-weight: 650;
  font-size: 0.9rem;
}
.ig-story-close {
  position: absolute;
  top: 1.6rem;
  right: max(0.6rem, calc(50% - 220px));
  z-index: 3;
}
.ig-story-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}
.ig-story-nav.prev { left: 0; }
.ig-story-nav.next { right: 0; }

.ig-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #262626;
}
.ig-tab {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: #a8a8a8;
  border-top: 1px solid transparent;
  margin-top: -1px;
  cursor: default;
}
.ig-tab.active {
  color: #f5f5f5;
  border-top-color: #f5f5f5;
}

.ig-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 2px;
  background: #000;
  width: 100%;
}
.ig-cell {
  display: block !important;
  width: 100%;
  height: 0;
  padding-top: 100%;
  background-color: #2a2a2a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ig-note {
  margin: 0;
  padding: 0.85rem 1rem 1.1rem;
  font-size: 0.78rem;
  color: #a8a8a8;
  background: #0a0a0a;
  border-top: 1px solid #262626;
}
.ig-note code {
  font-size: 0.72rem;
  color: #f5f5f5;
}

/* —— Tablet (768–1024) —— */
@media (min-width: 768px) and (max-width: 1024px) {
  .wrap { width: min(100% - 1.75rem, var(--max)); }
  .hero { padding: 3.5rem 0 3rem !important; }
  .section { padding: 3.25rem 0 !important; }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }
  .hero-ctas, .trust { justify-content: center; }
  .hero h1, .hero-lead { margin-inline: auto; }
  .hero-media { max-width: 560px; margin-inline: auto; }

  .grid-3,
  .cards,
  .use-cases {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .audience-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .compare {
    grid-template-columns: 1fr 1fr !important;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .feat-row,
  .feat-row.reverse,
  .info-grid,
  .info-grid.reverse,
  .rich-split {
    grid-template-columns: 1fr 1fr !important;
    direction: ltr;
    gap: 1.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mode-switch {
    grid-template-columns: 1fr 1fr;
  }
  .search-row {
    flex-direction: row;
    align-items: stretch;
  }
  .search-row input { min-width: 0; }
  .search-row button {
    width: auto;
    min-width: 140px;
  }
  .viewer-card {
    padding: 1.25rem;
    max-width: 720px;
    margin-inline: auto;
  }
  .ig-phone { width: min(100%, 430px); }
  .ig-avatar-wrap { width: 92px; height: 92px; }
}

/* Nav: keep hamburger through tablet landscape phones / small tablets */
@media (max-width: 1024px) {
  .burger { display: grid; }
  .site-nav .wrap { position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: #0f131c;
    padding: 0.75rem 0 1rem;
    border-bottom: 1px solid var(--line);
    max-height: min(80vh, 640px);
    overflow-y: auto;
    box-shadow: 0 18px 40px #000000aa;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a,
  .nav-drop > .drop-toggle {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
  .nav-cta-item { padding: 0.35rem 0.5rem 0.15rem; }
  .nav-cta-btn {
    width: 100%;
    margin-left: 0 !important;
    justify-content: center;
  }
  .drop {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0.35rem 0.35rem 0.75rem;
  }
}

@media (min-width: 1025px) {
  .burger { display: none !important; }
  .nav-links {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
  }
  .nav-cta-btn { width: auto; }
  .drop {
    position: absolute;
    min-width: 280px;
  }
}

@media (max-width: 767px) {
  .ig-shell { padding: 0.75rem 0.5rem 1.5rem; align-items: start; }
  .ig-phone {
    width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }
  .ig-header {
    grid-template-columns: 78px 1fr;
    gap: 0.85rem;
    padding: 0.85rem 0.85rem 0.3rem;
  }
  .ig-avatar-wrap { width: 78px; height: 78px; }
  .ig-meta,
  .ig-actions { padding-left: 0.85rem; padding-right: 0.85rem; }
  .ig-highlights { padding-left: 0.85rem; padding-right: 0.85rem; }
  .ig-stat strong { font-size: 0.95rem; }
  .ig-stat span { font-size: 0.74rem; }
}

