/* Anonimo Stories - main stylesheet (moved out of header.php so browsers can cache it) */
:root{
  --ink:#0B1B33;
  --ink-soft:#4A5A78;
  --blue:#1259E8;
  --blue-deep:#0B3FAE;
  --blue-2:#3DB9FF;
  --cloud:#F2F7FF;
  --cloud-2:#E7F1FF;
  --line:#DCE8FB;
  --white:#FFFFFF;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 20px 45px -20px rgba(18,89,232,0.35);
  --shadow-sm:0 8px 20px -10px rgba(18,89,232,0.28);
  --ease:cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:"Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4{
  font-family:"Sora", "Inter", sans-serif;
  margin:0 0 .5em;
  line-height:1.15;
  letter-spacing:-0.01em;
}

p{ margin:0 0 1em; color:var(--ink-soft); line-height:1.7; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.container{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--blue);
  background:var(--cloud-2);
  border:1px solid var(--line);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}

.section{ padding:96px 0; scroll-margin-top:110px; }
.hero{ scroll-margin-top:110px; }
.section-head{ max-width:640px; margin:0 auto 56px; text-align:center; }
.section-head h2{ font-size:clamp(28px,4vw,40px); }
.section-head p{ font-size:17px; }
.bg-cloud{ background:var(--cloud); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 28px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  border:none;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(135deg,var(--blue-deep),var(--blue));
  color:var(--white);
  box-shadow:var(--shadow-sm);
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.btn-ghost{
  background:var(--white);
  color:var(--blue);
  border:1.5px solid var(--line);
}
.btn-ghost:hover{ border-color:var(--blue); background:var(--cloud-2); transform:translateY(-2px); }

/* ---------- Header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.75);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled{
  border-bottom-color:var(--line);
  box-shadow:0 8px 24px -18px rgba(18,89,232,.4);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 24px;
}
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:"Sora",sans-serif;
  font-weight:700;
  font-size:24px;
  color:var(--ink);
}
.logo-mark{
  width:48px;height:48px;
  border-radius:14px;
  background:conic-gradient(from 220deg,var(--blue),var(--blue-2),var(--blue));
  display:flex;align-items:center;justify-content:center;
  position:relative;
  animation:spin-slow 8s linear infinite;
}
.logo-mark::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:11px;
  background:var(--white);
}
.logo-mark span{
  position:relative;
  z-index:1;
  font-size:19px;
  font-weight:800;
  color:var(--blue);
}
@keyframes spin-slow{ to{ transform:rotate(360deg); } }
.logo b{ color:var(--blue); }

.main-nav ul{ display:flex; align-items:center; gap:32px; }
.main-nav a{
  font-size:16px;
  font-weight:500;
  color:var(--ink-soft);
  position:relative;
  padding:4px 0;
  transition:color .25s;
}
.main-nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:-2px;
  width:0; height:2px;
  background:linear-gradient(90deg,var(--blue),var(--blue-2));
  transition:width .3s var(--ease);
}
.main-nav a:hover{ color:var(--blue); }
.main-nav a:hover::after{ width:100%; }

/* "Tool" dropdown trigger — text only, no link, opens a small menu */
.nav-dropdown{ position:relative; display:flex; align-items:center; }
.nav-dropdown-trigger{
  display:flex; align-items:center; gap:5px;
  font-size:16px; font-weight:500; color:var(--ink-soft);
  padding:4px 0; background:none; border:none; cursor:pointer;
  font-family:inherit; transition:color .25s;
  line-height:1;
}
.nav-dropdown-trigger:hover{ color:var(--blue); }
.nav-dropdown-trigger svg{ transition:transform .25s var(--ease); }
.nav-dropdown.open .nav-dropdown-trigger svg{ transform:rotate(180deg); }
.nav-dropdown-menu{
  position:absolute; top:calc(100% + 14px); left:50%;
  transform:translateX(-50%) translateY(-8px);
  background:var(--white);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:var(--shadow);
  padding:8px;
  min-width:220px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:.25s var(--ease);
  z-index:105;
}
.nav-dropdown.open .nav-dropdown-menu{
  opacity:1; visibility:visible; pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}
.nav-dropdown-menu a{
  display:block; padding:10px 12px; border-radius:8px;
  font-size:14.5px; font-weight:500; color:var(--ink);
}
.nav-dropdown-menu a:hover{ background:var(--cloud); color:var(--blue); }
.nav-dropdown-menu a::after{ display:none; }
@media (max-width:900px){
  .nav-dropdown-menu{
    position:static; transform:none !important;
    box-shadow:none; border:none; padding:0 0 0 12px;
    opacity:1; visibility:visible; pointer-events:auto;
    max-height:0; overflow:hidden; min-width:0;
    transition:max-height .3s var(--ease);
  }
  .nav-dropdown.open .nav-dropdown-menu{ max-height:200px; }
  .nav-dropdown-trigger{ width:100%; justify-content:space-between; padding:14px 12px; font-size:16px; border-radius:8px; }
  .nav-dropdown-trigger:hover{ background:var(--cloud); }
}

.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding:8px;
}
.hamburger span{ width:24px; height:2px; background:var(--ink); border-radius:2px; transition:.3s; }

@media (max-width:900px){
  .header-inner{ padding:16px 20px; }
  .logo{ font-size:20px; gap:10px; }
  .logo-mark{ width:42px; height:42px; border-radius:12px; }
  .logo-mark span{ font-size:16px; }
  .main-nav{
    position:fixed; inset:70px 16px auto 16px;
    background:var(--white);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:16px;
    transform:translateY(-12px);
    opacity:0;
    pointer-events:none;
    transition:.3s var(--ease);
    z-index:99;
  }
  .main-nav.open{ transform:translateY(0); opacity:1; pointer-events:auto; }
  .main-nav ul{ flex-direction:column; align-items:stretch; gap:4px; }
  .main-nav a{ display:block; padding:14px 12px; font-size:16px; border-radius:8px; }
  .main-nav a:hover{ background:var(--cloud); }
  .nav-dropdown{ display:block; }
  .hamburger{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:88px 0 60px;
  overflow:hidden;
}
.hero::before,
.hero::after{
  content:"";
  position:absolute;
  border-radius:50%;
  filter:blur(60px);
  opacity:.35;
  z-index:0;
  animation:float-blob 14s ease-in-out infinite;
}
.hero::before{
  width:420px;height:420px;
  background:var(--blue-2);
  top:-160px; right:-120px;
}
.hero::after{
  width:340px;height:340px;
  background:var(--blue);
  bottom:-140px; left:-100px;
  animation-delay:-6s;
}
@keyframes float-blob{
  0%,100%{ transform:translate(0,0) scale(1); }
  50%{ transform:translate(20px,-30px) scale(1.08); }
}
.hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
}
.hero-copy, .hero-visual{ min-width:0; }
.hero-copy h1{
  font-size:clamp(34px,5vw,54px);
  margin-bottom:20px;
}
.hero-copy h1 em{
  font-style:normal;
  background:linear-gradient(135deg,var(--blue-deep),var(--blue));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-copy > p{ font-size:18px; max-width:520px; }

/* Search / Tool box */
.tool-box{
  margin-top:26px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:10px;
  display:flex;
  gap:8px;
  box-shadow:var(--shadow-sm);
}
.tool-box input{
  flex:1;
  border:none;
  outline:none;
  padding:14px 16px;
  font-size:16px;
  font-family:inherit;
  border-radius:var(--radius-sm);
  background:var(--cloud);
  color:var(--ink);
}
.tool-box input::placeholder{ color:var(--ink-soft); opacity:1; }
.tool-box input:focus{ box-shadow:0 0 0 2px var(--blue-2) inset; }
.tool-note{ font-size:13px; color:var(--ink-soft); margin-top:10px; display:flex; align-items:flex-start; gap:6px; overflow-wrap:anywhere; min-width:0; }
.tool-note svg{ flex:none; margin-top:2px; }

/* Phone mockup */
.hero-visual{ position:relative; display:flex; justify-content:center; }
.phone{
  width:290px;
  height:560px;
  background:var(--ink);
  border-radius:38px;
  padding:12px;
  box-shadow:var(--shadow);
  position:relative;
  z-index:1;
}
.phone-screen{
  width:100%;height:100%;
  border-radius:28px;
  overflow:hidden;
  position:relative;
}

/* ---- Instagram-style profile card (dark) ---- */
.ig-profile{
  background:#101625;
  color:#fff;
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  font-size:12px;
}
.ig-fixed-top{ flex:none; }
.ig-topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px 10px;
  color:#fff;
  flex:none;
}
.ig-topbar-user{ display:flex; align-items:center; gap:5px; min-width:0; }
.ig-topbar-user b{
  font-family:"Sora",sans-serif; font-size:13px; font-weight:700;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:160px;
}
.ig-head{ display:flex; align-items:center; gap:14px; padding:6px 16px 12px; flex:none; }
.ig-avatar-wrap{ position:relative; flex:none; }
.ig-avatar{
  width:58px; height:58px; flex:none;
  border-radius:50%; padding:2.5px;
  background:rgba(255,255,255,.18);
  transition:background .3s;
  cursor:pointer;
}
.ig-avatar.has-story{
  background:conic-gradient(from 0deg,var(--blue-2),var(--blue),#8ED8FF,var(--blue-2));
  animation:spin-slow 4.5s linear infinite;
}
.ig-avatar i{
  display:block; width:100%; height:100%;
  border-radius:50%;
  background:#2b3346 center/cover no-repeat;
  border:2.5px solid #101625;
}
.ig-avatar-menu{
  position:absolute; top:calc(100% + 8px); left:0;
  background:#1a2138;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  box-shadow:0 14px 30px -10px rgba(0,0,0,.55);
  overflow:hidden;
  z-index:10;
  min-width:168px;
}
.ig-avatar-menu button{
  display:flex; align-items:center; gap:9px;
  width:100%; padding:11px 14px;
  background:none; border:none;
  color:#fff; font-size:12.5px; font-weight:600;
  text-align:left;
  transition:background .2s;
}
.ig-avatar-menu button:hover{ background:rgba(255,255,255,.08); }
.ig-avatar-menu button + button{ border-top:1px solid rgba(255,255,255,.08); }
.ig-avatar-menu button svg{ flex:none; color:#3DB9FF; }
.ig-stats{ display:flex; flex:1; justify-content:space-around; min-width:0; }
.ig-stats div{ text-align:center; min-width:0; padding:0 3px; }
.ig-stats strong{
  display:block; font-family:"Sora",sans-serif; font-size:12.5px;
  letter-spacing:-0.01em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.ig-stats span{ font-size:10px; color:#93a4c8; }

.ig-name{
  font-family:"Sora",sans-serif; font-size:12.5px; font-weight:700;
  display:block; padding:0 16px 6px;
}

.ig-scroll-area{
  flex:1;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  overscroll-behavior:contain;
  display:flex;
  flex-direction:column;
}
.ig-scroll-area::-webkit-scrollbar{ width:4px; }
.ig-scroll-area::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.18); border-radius:4px; }

.ig-bio{ padding:0 16px 12px; flex:none; }
.ig-bio p{ font-size:11.5px; color:#93a4c8; margin:0; line-height:1.4; word-break:break-word; white-space:pre-line; }
.ig-bio p a{ color:#3DB9FF; font-weight:600; text-decoration:none; }
.ig-bio p a:hover{ text-decoration:underline; }
.ig-bio-links{ margin-top:6px; }

/* Compact "View Links" pill under the bio — matches Instagram's own
   link-in-bio affordance. Tapping it opens the full list in the shared
   userListModal, styled like Instagram's Links popup (icon + title + url). */
.ig-bio-links-trigger{
  display:inline-flex; align-items:center; gap:5px;
  font-size:11.5px; font-weight:700; color:#3DB9FF;
  background:rgba(61,185,255,.12);
  border:1px solid rgba(61,185,255,.25);
  padding:5px 11px; border-radius:999px;
  font-family:inherit; cursor:pointer;
  transition:background .2s;
}
.ig-bio-links-trigger:hover{ background:rgba(61,185,255,.2); }
.ig-bio-links-trigger svg{ flex:none; }

/* Rows inside the Links modal (userListModal) */
.ig-link-row{
  display:flex; align-items:center; gap:12px;
  padding:12px 4px; border-bottom:1px solid rgba(255,255,255,.06);
  text-decoration:none; cursor:pointer;
}
.ig-link-row:last-child{ border-bottom:none; }
.ig-link-icon{
  width:34px; height:34px; border-radius:50%; flex:none;
  background:rgba(61,185,255,.15); color:#3DB9FF;
  display:flex; align-items:center; justify-content:center;
}
.ig-link-text{ min-width:0; flex:1; }
.ig-link-title{ display:block; font-size:13px; font-weight:700; color:#fff; margin-bottom:2px; word-break:break-word; }
.ig-link-url{ display:block; font-size:11.5px; color:#8FA1C7; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ig-actions{ display:flex; gap:8px; padding:0 16px 12px; flex:none; }
.ig-btn-follow,.ig-btn-msg{
  flex:1; border:none; padding:7px 0; border-radius:8px;
  font-weight:700; font-size:12px; font-family:inherit;
}
.ig-btn-follow{ background:linear-gradient(135deg,var(--blue-deep),var(--blue)); color:#fff; }
.ig-btn-msg{ background:rgba(255,255,255,.08); color:#fff; }
.ig-btn-icon{
  width:34px; flex:none; border:none; border-radius:8px;
  background:rgba(255,255,255,.08); color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.ig-tabs{
  display:flex; border-top:1px solid rgba(255,255,255,.08); flex:none;
  position:sticky; top:0; z-index:2; background:#101625;
}
.ig-tabs span{
  flex:1; display:flex; align-items:center; justify-content:center;
  padding:9px 0; color:#697794;
  cursor:pointer;
}
.ig-tabs span.active{ color:#fff; border-bottom:2px solid var(--blue-2); }

/* Photo/reel grid */
.ig-grid{
  flex:none;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  grid-auto-rows:min-content;
  gap:2px;
  padding:2px 2px 10px;
  align-content:start;
}
.ig-grid-item{
  position:relative;
  overflow:hidden;
  cursor:pointer;
  background:linear-gradient(135deg,#1c2333,#2c3550);
  border:none;
  padding:0;
  display:block;
  width:100%;
}
.ig-grid-item img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .3s var(--ease), opacity .3s;
  position:absolute; inset:0;
}
.ig-grid-item:hover img{ transform:scale(1.06); }
.ig-grid-item.is-video::after{
  content:"";
  position:absolute; top:6px; right:6px;
  width:0; height:0;
  border-style:solid;
  border-width:6px 0 6px 10px;
  border-color:transparent transparent transparent #fff;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.ig-grid-item.skeleton{ position:relative; overflow:hidden; aspect-ratio:1/1; }
.ig-grid-item.skeleton::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);
  transform:translateX(-100%);
  animation:shimmer 1.6s infinite;
}
@keyframes shimmer{ to{ transform:translateX(100%); } }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; z-index:300;
  background:rgba(6,12,24,.92);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:20px; padding:26px;
  opacity:0; visibility:hidden;
  transition:.3s var(--ease);
}
.lightbox.show{ opacity:1; visibility:visible; }
.lightbox img,
.lightbox video{
  max-width:min(90vw,420px);
  max-height:65vh;
  border-radius:18px;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.6);
  background:#000;
}
.lightbox-close{
  position:absolute;
  top:calc(env(safe-area-inset-top, 0px) + 22px);
  right:calc(env(safe-area-inset-right, 0px) + 22px);
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.1); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center;
  transition:.25s var(--ease);
  z-index:2;
}
.lightbox-close:hover{ background:rgba(255,255,255,.2); transform:rotate(90deg); }
@media (max-width:640px){
  .lightbox{ padding:18px; gap:16px; }
  .lightbox-close{ top:calc(env(safe-area-inset-top, 0px) + 16px); right:calc(env(safe-area-inset-right, 0px) + 16px); }
}

.lightbox-nav-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:100%;
  max-width:min(90vw,420px);
}
.lightbox-nav-row button{
  flex:none;
  width:40px; height:40px; border-radius:50%;
  background:rgba(255,255,255,.1);
  border:1.5px solid rgba(255,255,255,.25);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  transition:.25s var(--ease);
}
.lightbox-nav-row button:hover{ background:rgba(255,255,255,.2); border-color:#fff; }
.lightbox-nav-row button:active{ transform:scale(0.92); }

.lightbox-stats{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  justify-content:center;
  color:#fff;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  padding:10px 18px;
  border-radius:999px;
  flex:1;
  min-width:0;
}
.lightbox-stats span{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13.5px;
  font-weight:600;
}
.lightbox-stats span svg{ opacity:.85; flex:none; }
.lightbox-stats span b{ font-family:"Sora",sans-serif; font-weight:700; }
.lightbox-comments-trigger{ cursor:pointer; }
.lightbox-comments-trigger:hover{ opacity:.8; }

@media (max-width:480px){
  .lightbox-stats{ gap:12px; padding:9px 14px; }
  .lightbox-stats span{ font-size:12px; }
}

.lightbox-actions-row{
  display:flex; gap:8px; align-items:center; justify-content:center;
  width:100%; max-width:min(90vw,420px);
}
.lightbox-actions-row .btn{ flex:1; padding:12px 10px; font-size:13.5px; gap:6px; }
.lightbox-actions-row .btn-ghost{
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1.5px solid rgba(255,255,255,.18);
}
.lightbox-actions-row .btn-ghost:hover{ background:rgba(255,255,255,.15); }
@media (max-width:400px){
  .lightbox-actions-row{ flex-wrap:wrap; }
  .lightbox-actions-row .btn{ flex:1 1 45%; }
}

/* Comments panel */
.comments-panel{
  position:fixed; left:0; right:0; bottom:0;
  max-height:70vh;
  background:#12182b;
  border-top:1px solid rgba(255,255,255,.12);
  border-radius:20px 20px 0 0;
  box-shadow:0 -20px 50px -20px rgba(0,0,0,.6);
  transform:translateY(100%);
  transition:transform .3s var(--ease);
  z-index:310;
  display:flex;
  flex-direction:column;
}
.comments-panel.show{ transform:translateY(0); }
.comments-panel-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  flex:none;
}
.comments-panel-head b{ color:#fff; font-family:"Sora",sans-serif; font-size:15px; }
.comments-panel-head button{
  width:32px; height:32px; border-radius:50%;
  background:rgba(255,255,255,.08); border:none; color:#fff;
  display:flex; align-items:center; justify-content:center;
}
.comments-panel-head button:hover{ background:rgba(255,255,255,.18); }
.comments-panel-body{
  overflow-y:auto;
  padding:8px 18px 24px;
  -webkit-overflow-scrolling:touch;
}
.comments-empty{ color:#8FA1C7; font-size:13.5px; text-align:center; padding:30px 0; }
.comment-row{
  display:flex; gap:10px;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.comment-row:last-child{ border-bottom:none; }
.comment-avatar{
  width:32px; height:32px; border-radius:50%; flex:none;
  background:#2b3346 center/cover no-repeat;
}
.comment-body{ min-width:0; }
.comment-body b{ color:#fff; font-size:13px; font-weight:700; }
.comment-body p{ color:#B9C6E3; font-size:13px; margin:2px 0 0; line-height:1.45; word-break:break-word; }
.comment-body span{ color:#96A6C9; font-size:11.5px; }

/* Trust strip */
.trust-strip{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:22px 0;
}
.trust-strip .container{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px 32px;
}
.trust-strip span{ font-size:13px; color:var(--ink-soft); font-weight:600; letter-spacing:.03em; white-space:nowrap; }

@media (max-width:640px){
  .trust-strip .container{
    display:grid;
    grid-template-columns:1fr 1fr;
    justify-items:center;
    gap:14px 10px;
  }
  .trust-strip span{ text-align:center; }
  .trust-strip span:last-child{ grid-column:1 / -1; }
}

/* ---------- Steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.step-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:32px 26px;
  position:relative;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.step-card:hover{ transform:translateY(-8px); box-shadow:var(--shadow); border-color:transparent; }
.step-num{
  width:44px;height:44px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--blue-deep),var(--blue));
  color:var(--white);
  display:flex;align-items:center;justify-content:center;
  font-family:"Sora",sans-serif;
  font-weight:700;
  margin-bottom:18px;
}
.step-card h3{ font-size:19px; margin-bottom:8px; }
.step-card p{ font-size:14.5px; margin:0; }

/* ---------- Features ---------- */
.features-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.feature-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px 22px;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-sm); }
.feature-icon{
  width:46px;height:46px;
  border-radius:12px;
  background:var(--cloud-2);
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
}
.feature-card h3{ font-size:16.5px; margin-bottom:6px; }
.feature-card p{ font-size:14px; margin:0; }

/* ---------- Reviews ---------- */
.reviews-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.review-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.review-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-sm); }
.review-stars{ color:#F5A623; font-size:15px; margin-bottom:10px; letter-spacing:2px; }
.review-card p{ font-size:14.5px; margin-bottom:16px; }
.review-user{ display:flex; align-items:center; gap:10px; }
.review-avatar{
  width:38px;height:38px;border-radius:50%;
  background:linear-gradient(135deg,var(--blue-deep),var(--blue));
  display:flex;align-items:center;justify-content:center;
  color:var(--white); font-weight:700; font-size:13px;
}
.review-user b{ font-size:13.5px; display:block; }
.review-user span{ font-size:12px; color:var(--ink-soft); }
.note-card h3{ font-size:16px; margin-bottom:8px; line-height:1.35; }
.note-card p{ margin-bottom:0; }

/* ---------- FAQ ---------- */
.faq-list{ width:100%; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%;
  background:none;
  border:none;
  text-align:left;
  padding:20px 4px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-family:"Sora",sans-serif;
  font-size:16px;
  font-weight:600;
  color:var(--ink);
}
.faq-q .plus{ width:22px;height:22px; flex:none; position:relative; }
.faq-q .plus::before,.faq-q .plus::after{
  content:"";
  position:absolute;
  background:var(--blue);
  border-radius:2px;
  transition:transform .3s var(--ease);
}
.faq-q .plus::before{ top:50%; left:0; width:100%; height:2px; transform:translateY(-50%); }
.faq-q .plus::after{ left:50%; top:0; height:100%; width:2px; transform:translateX(-50%); }
.faq-item.open .faq-q .plus::after{ transform:translateX(-50%) rotate(90deg); opacity:0; }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.faq-a p{ padding:0 4px 20px; font-size:14.5px; }

/* ---------- Legal / info pages ---------- */
.legal-page{ padding:64px 0 96px; }
.legal-hero{ margin:0 0 40px; }
.legal-hero h1{ font-size:clamp(28px,4.2vw,42px); }
.legal-hero p{ font-size:17px; margin-top:12px; }
.legal-updated{ font-size:13px; color:var(--ink-soft); margin-bottom:0; }
.legal-body{ margin:0; }
.legal-body h2{ font-size:22px; margin-top:40px; margin-bottom:12px; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body p{ font-size:15.5px; }
.legal-body ul,.legal-body ol{ margin:0 0 1em; padding-left:22px; list-style:disc; }
.legal-body ol{ list-style:decimal; }
.legal-body li{ font-size:15.5px; color:var(--ink-soft); line-height:1.7; margin-bottom:6px; }
.legal-body a{ color:var(--blue); text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:2px; }
.legal-body a:hover{ text-decoration-color:var(--blue); }
.legal-body strong{ color:var(--ink); }
.legal-contact-box{
  background:var(--cloud);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px 24px;
  margin:28px 0;
}
.legal-contact-box p{ margin:0; font-size:15px; }

.legal-card{
  background:var(--cloud);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px 22px;
  margin:24px 0;
}
.legal-card p{ margin:0; font-size:15px; }

.contact-form{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  margin:36px 0;
  box-shadow:var(--shadow-sm);
}
.contact-form h2{ margin-top:0; }
.contact-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.contact-form label{
  display:block;
  font-size:13.5px;
  font-weight:600;
  color:var(--ink);
  margin-bottom:6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  border:1px solid var(--line);
  background:var(--cloud);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  font-family:inherit;
  font-size:15px;
  color:var(--ink);
  margin-bottom:16px;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder{ color:var(--ink-soft); opacity:1; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{ outline:none; box-shadow:0 0 0 2px var(--blue-2) inset; }
.contact-form textarea{ resize:vertical; min-height:130px; }
.contact-form-honeypot{ position:absolute; left:-9999px; top:-9999px; width:1px; height:1px; overflow:hidden; }
.contact-form-status{
  font-size:14px;
  padding:12px 16px;
  border-radius:var(--radius-sm);
  margin-bottom:16px;
  display:none;
}
.contact-form-status.show{ display:block; }
.contact-form-status.success{ background:#E7F8EE; color:#166534; border:1px solid #B7EBC6; }
.contact-form-status.error{ background:#FDECEC; color:#B42318; border:1px solid #F5B5B0; }
@media (max-width:640px){
  .contact-form{ padding:20px; }
  .contact-form-row{ grid-template-columns:1fr; gap:0; }
}

.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin:28px 0 36px;
}
.contact-card{
  display:flex;
  align-items:flex-start;
  gap:14px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.contact-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-sm); border-color:transparent; }
.contact-card .icon{
  width:44px; height:44px; flex:none;
  border-radius:12px;
  background:var(--cloud-2);
  color:var(--blue);
  display:flex; align-items:center; justify-content:center;
}
.contact-card h3{ font-size:15.5px; margin:0 0 4px; }
.contact-card p{ margin:0; font-size:14.5px; }
.contact-card p a{
  color:var(--blue);
  font-weight:600;
  text-decoration:none;
  word-break:break-word;
}
.contact-card p a:hover{ text-decoration:underline; }
@media (max-width:640px){
  .contact-grid{ grid-template-columns:1fr; gap:14px; margin:22px 0 28px; }
  .contact-card{ padding:18px; }
}
@media (max-width:640px){
  .legal-page{ padding:44px 0 64px; }
  .legal-body h2{ font-size:19px; margin-top:32px; }
}

.cta{
  background:linear-gradient(135deg,var(--blue-deep),var(--blue));
  border-radius:28px;
  padding:64px 40px;
  text-align:center;
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.cta h2{ color:var(--white); font-size:clamp(26px,4vw,36px); }
.cta p{ color:rgba(255,255,255,.92); max-width:480px; margin:0 auto 26px; }
.cta .btn-primary{ background:var(--white); color:var(--blue-deep); }
.cta .btn-primary:hover{ box-shadow:0 20px 40px -18px rgba(0,0,0,.35); }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view{ opacity:1; transform:translateY(0); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:#B9C6E3; padding:64px 0 0; }
.footer-top{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-brand .logo{ color:var(--white); }
.footer-brand p{ color:#8FA1C7; font-size:14px; max-width:280px; margin-top:14px; }
.footer-col h3{ color:var(--white); font-size:14.5px; font-family:"Sora","Inter",sans-serif; font-weight:700; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col a{ font-size:14px; color:#B9C6E3; transition:color .25s, padding-left .25s; }
.footer-col a:hover{ color:var(--blue-2); padding-left:4px; }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{
  width:38px;height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.06);
  display:flex;align-items:center;justify-content:center;
  transition:.3s var(--ease);
}
.footer-social a:hover{ background:var(--blue-2); transform:translateY(-4px); color:var(--ink); }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 0 30px;
  font-size:13px;
  color:#96A6C9;
  flex-wrap:wrap;
  gap:10px;
}
.footer-bottom a{ color:#B9C6E3; }
.footer-bottom a:hover{ color:var(--blue-2); }

/* ---------- Back to top ---------- */
.to-top{
  position:fixed;
  right:22px; bottom:22px;
  width:48px;height:48px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--blue),var(--blue-2));
  color:var(--white);
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-sm);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:.35s var(--ease);
  z-index:90;
  border:none;
}
.to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top:hover{ transform:translateY(-4px); }

/* ---------- Toast ---------- */
.toast{
  position:fixed;
  left:50%; bottom:26px;
  transform:translate(-50%,20px);
  background:var(--ink);
  color:var(--white);
  padding:14px 22px;
  border-radius:12px;
  font-size:14px;
  max-width:min(90vw,480px);
  max-height:60vh;
  overflow-y:auto;
  white-space:normal;
  word-break:break-word;
  line-height:1.5;
  box-shadow:var(--shadow);
  opacity:0; visibility:hidden;
  transition:.35s var(--ease);
  z-index:200;
}
.toast.show{ opacity:1; visibility:visible; transform:translate(-50%,0); }

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .hero-inner{ grid-template-columns:1fr; }
  .hero-copy{ order:1 !important; }
  .hero-visual{ order:2 !important; margin-top:36px; }
  .features-grid{ grid-template-columns:repeat(2,1fr); }
  .reviews-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-top{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .section{ padding:64px 0; }
  .hero{ padding:36px 0 44px; }
  .hero::before{ width:220px; height:220px; top:-90px; right:-70px; }
  .hero::after{ width:180px; height:180px; bottom:-70px; left:-60px; }
  .eyebrow{ font-size:11px; padding:5px 11px; margin-bottom:14px; }
  .hero-copy h1{ font-size:32px; margin-bottom:14px; }
  .hero-copy > p{ font-size:15.5px; line-height:1.55; }
  .tool-box{ padding:8px; gap:8px; margin-top:22px; border-radius:14px; }
  .tool-box input{ padding:13px 14px; }
  .tool-box .btn{ padding:13px 16px; }
  .tool-note{ font-size:12px; margin-top:12px; }
  .steps{ grid-template-columns:1fr; }
  .features-grid{ grid-template-columns:1fr; }
  .reviews-grid{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; }
  .tool-box{ flex-direction:column; }
  .tool-box .btn{ width:100%; }
  .phone{ width:min(280px, calc(100vw - 64px)); aspect-ratio:280/520; height:auto; }
  .ig-head{ gap:10px; padding:6px 12px 10px; }
  .ig-avatar{ width:50px; height:50px; }
  .ig-stats div{ padding:0 1px; }
  .ig-stats strong{ font-size:11px; letter-spacing:-0.02em; }
  .ig-stats span{ font-size:9px; }
  .hero-copy{ order:1 !important; }
  .hero-visual{ order:2 !important; margin-top:36px; }
}
@media (max-width:400px){
  .hero-copy h1{ font-size:28px; }
  .phone{ width:calc(100vw - 56px); }
}

/* ---------- Tool Card v2 — gradient-bordered download tool box,
   used on the single-link video-download pages (Instagram/Facebook/
   Snapchat/TikTok). Same blue palette as the rest of the site. ---------- */
.tool-card{
  max-width:900px;
  margin:32px auto 0;
  padding:6px;
  border-radius:27px;
  background:linear-gradient(120deg,var(--blue-deep),var(--blue),var(--blue-2));
  box-shadow:var(--shadow);
}
.tool-form{
  background:var(--white);
  border-radius:22px;
  padding:28px;
  display:flex;
  flex-direction:column;
  gap:19px;
}
.tool-input-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  border:1.5px solid var(--line);
  border-radius:16px;
  padding:19px 22px;
  background:var(--cloud);
}
.tool-input-wrap:focus-within{ box-shadow:0 0 0 2px var(--blue-2) inset; }
.tool-input-wrap .tool-input-icon{ flex:none; color:var(--ink-soft); width:20px; height:20px; }
.tool-input-wrap input{
  flex:1;
  min-width:0;
  border:none;
  outline:none;
  background:transparent;
  font-size:17px;
  font-family:inherit;
  color:var(--ink);
}
.tool-input-wrap input::placeholder{ color:var(--ink-soft); opacity:1; }
.tool-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.tool-btn-paste,.tool-btn-clear{
  flex:none;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:16px 24px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  font-family:inherit;
  border:1.5px solid var(--line);
  background:var(--cloud-2);
  color:var(--blue);
  cursor:pointer;
  transition:transform .25s var(--ease), background .25s;
  white-space:nowrap;
}
.tool-btn-paste:hover,.tool-btn-clear:hover{ transform:translateY(-2px); }
.tool-btn-clear{ background:var(--white); color:var(--ink-soft); }
.tool-btn-submit{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:17px 24px;
  border-radius:999px;
  font-weight:700;
  font-size:16.5px;
  font-family:inherit;
  border:none;
  color:var(--white);
  background:linear-gradient(135deg,var(--blue-deep),var(--blue),var(--blue-2));
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space:nowrap;
}
.tool-btn-submit:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.tool-btn-submit:disabled{ opacity:.7; cursor:default; transform:none; }

@media (max-width:640px){
  .tool-card{ margin-top:22px; border-radius:20px; padding:4px; }
  .tool-form{ padding:14px; border-radius:16px; gap:10px; }
  .tool-input-wrap{ padding:13px 14px; }
  .tool-actions{ flex-wrap:wrap; }
  .tool-btn-submit{ flex-basis:100%; order:3; }
  .tool-btn-paste,.tool-btn-clear{ flex:1 1 auto; justify-content:center; }
}

/* ---------- About / explainer card grid ---------- */
.about-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.about-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px 26px;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.about-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-sm); }
.about-card-icon{
  width:46px;height:46px;
  border-radius:12px;
  background:var(--cloud-2);
  color:var(--blue);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:16px;
}
.about-card h3{ font-size:17px; margin-bottom:8px; }
.about-card p{ font-size:14.5px; margin:0; }
@media (max-width:768px){
  .about-grid{ grid-template-columns:1fr; }
}


/* ---------- Language switcher (uses the same .nav-dropdown styles) ---------- */
.lang-dropdown .nav-dropdown-trigger{ gap:6px; }
.lang-dropdown .lang-code{ font-weight:700; letter-spacing:.02em; }
.lang-dropdown .nav-dropdown-menu a.is-current{ color:var(--blue); font-weight:700; }
.lang-dropdown .nav-dropdown-menu a{ white-space:nowrap; }
@media (min-width:901px){
  .lang-dropdown .nav-dropdown-menu{ left:auto; right:0; min-width:170px; transform:translateY(-8px); }
  .lang-dropdown.open .nav-dropdown-menu{ transform:translateY(0); }
}
/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] .logo{ direction:ltr; }
[dir="rtl"] input[type="text"], [dir="rtl"] input[type="url"]{ unicode-bidi:plaintext; }
@media (min-width:901px){
  [dir="rtl"] .lang-dropdown .nav-dropdown-menu{ right:auto; left:0; }
}
@media (max-width:900px){
  .lang-dropdown .lang-code{ flex:1; text-align:left; }
  .lang-dropdown.open .nav-dropdown-menu{ max-height:520px; }
  [dir="rtl"] .lang-dropdown .lang-code{ text-align:right; }
}
