/* style.css — ZipPixel (FULL RAMBO, premium + tight) */

/* =========================
   Design tokens
========================= */
:root{
  --bg: #f5f7fb;
  --paper: #ffffff;
  --text: #0b1220;
  --muted: #4b5563;
  --muted2: #6b7280;

  --border: rgba(2, 6, 23, .12);
  --border2: rgba(2, 6, 23, .20);

  --primary: #2563eb;
  --primaryHover: #1d4ed8;

  --soft: rgba(37,99,235,.08);

  /* RAMBO geometry */
  --r: 12px;
  --r2: 16px;

  /* RAMBO shadows (less “floaty”, more “real”) */
  --shadow: 0 22px 70px rgba(2, 6, 23, .08);
  --shadow2: 0 12px 28px rgba(2, 6, 23, .06);

  /* layout rhythm */
  --container: 1140px;
  --g: 16px;
}

/* =========================
   Base
========================= */
*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  line-height: 1.35;

  /* premium, not “template gradient” */
  background:
    radial-gradient(900px 420px at 70% -10%, rgba(37,99,235,.10), transparent 62%),
    radial-gradient(700px 380px at 10% -5%, rgba(2,6,23,.06), transparent 60%),
    var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .92; }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Focus = crisp, consistent */
:focus-visible{
  outline: 3px solid rgba(37,99,235,.25);
  outline-offset: 2px;
  border-radius: 10px;
}

/* =========================
   Top bar
========================= */
.top{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245,247,251,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}
.brand__logo{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 6px 18px rgba(2,6,23,.06);
}
.brand__logo img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.brand__text{
  display:flex;
  flex-direction:column;
  line-height: 1.05;
}
.brand__name{
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand__sub{
  font-size: 12px;
  color: var(--muted2);
  margin-top: 3px;
}

.nav{
  display:flex;
  gap: 6px;
  align-items:center;
  justify-content:center;
  flex: 1;
}
.nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(2, 6, 23, .04);
}

.top__cta{ display:flex; align-items:center; gap: 10px; }

/* =========================
   Buttons (RAMBO)
========================= */
.btn{
  appearance:none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor:pointer;
  transition:
    transform .06s ease,
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}
.btn:hover{
  border-color: var(--border2);
  box-shadow: 0 10px 18px rgba(2,6,23,.06);
}
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity:.45; cursor:not-allowed; box-shadow:none; }

.btn--primary{
  background: var(--primary);
  border-color: rgba(37,99,235,.45);
  color: #fff;
  box-shadow: 0 14px 26px rgba(37,99,235,.18);
}
.btn--primary:hover{
  background: var(--primaryHover);
  box-shadow: 0 16px 34px rgba(37,99,235,.20);
}

.btn--soft{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.22);
  color: #0b2a7a;
  box-shadow: none;
}
.btn--soft:hover{
  background: rgba(37,99,235,.14);
  border-color: rgba(37,99,235,.30);
  box-shadow: none;
}

.btn--ghost{
  background: transparent;
  box-shadow: none;
}
.btn--ghost:hover{ background: rgba(2,6,23,.04); box-shadow:none; }

.btn--lg{ padding: 12px 16px; border-radius: 12px; }
.btn--block{ width: 100%; }
.btn--sm{
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 900;
}

/* =========================
   Hero (tight, premium)
========================= */
.hero{ padding: 36px 0 18px; }
.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
  align-items:start;
}

h1{
  margin: 0 0 10px;
  font-size: clamp(36px, 4.3vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}
.lead{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
}
.muted{ color: var(--muted2); margin-left: 6px; }
.microLine{
  margin-top: 12px;
  color: var(--muted2);
  font-size: 13px;
  max-width: 64ch;
}

/* =========================
   Tool card (make it THE product)
========================= */
.toolCard{
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  padding: 14px;
  position: relative;
  overflow:hidden;
}
.toolCard::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(650px 220px at 85% 0%, rgba(37,99,235,.12), transparent 60%),
    radial-gradient(520px 240px at 15% -10%, rgba(2,6,23,.08), transparent 60%);
  opacity:.65;
  pointer-events:none;
  mask: linear-gradient(#000, transparent 78%);
}
.toolCard > *{ position: relative; }

.toolCard__top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 10px;
  border-bottom: 1px solid rgba(2,6,23,.06);
  margin-bottom: 12px;
}

.statusBlock{ min-width: 240px; }
.label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted2);
}
.statusRow{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 6px;
}
.status{
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.02em;
}
.statusHint{
  margin-top: 6px;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.35;
}
.toolCard__cta{ display:flex; justify-content:flex-end; }

/* Spinner */
.spinner{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(37,99,235,.25);
  border-top-color: rgba(37,99,235,.95);
  display:none;
  animation: spin .8s linear infinite;
}
.spinner.isOn{ display:inline-block; }
@keyframes spin{ to { transform: rotate(360deg); } }

/* =========================
   Dropzone (crisper, less “bubble”)
========================= */
.dropzone{
  position: relative;
  border-radius: 14px;
  border: 1px dashed rgba(2, 6, 23, .22);
  background: rgba(2, 6, 23, .02);
  padding: 14px;
  overflow:hidden;
  transition: background .15s ease, border-color .15s ease, transform .06s ease;
}
.dropzone input[type="file"]{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.dropzone__inner{
  display:flex;
  gap: 12px;
  align-items:center;
  pointer-events:none;
}
.dzIcon{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  color: #1d4ed8;
}
.dzTitle{ font-weight: 950; letter-spacing:-0.015em; }
.dzSub{ color: var(--muted2); font-size: 13px; margin-top: 2px; }

.dropzone.isDrag{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.45);
  transform: translateY(-1px);
}

/* =========================
   File list (tighter, more “app”)
========================= */
.fileMeta{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(2,6,23,.08);
}
.fileSummary{ color: var(--muted); font-size: 13px; margin-bottom: 10px; }

.fileList{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 8px;
}
.fileList li{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.70);
}
.fileLeft{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.fileName{
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
  font-weight: 900;
}
.fileSize{ color: var(--muted2); font-size: 12px; white-space: nowrap; }

.iconBtn{
  border: 1px solid rgba(2,6,23,.12);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 950;
  font-size: 12px;
  transition: border-color .15s ease, background .15s ease, transform .06s ease;
}
.iconBtn:hover{ border-color: rgba(2,6,23,.22); background: rgba(2,6,23,.02); }
.iconBtn:active{ transform: translateY(1px); }

.fileActions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}

/* =========================
   Progress (less bubbly)
========================= */
.progressWrap{
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(2, 6, 23, .015);
  border-radius: 14px;
}
.progressTop{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 8px;
}
.progressLabel{ font-weight: 950; }
.progressPct{ color: var(--muted2); font-weight: 950; }
.progressBar{
  height: 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .07);
  overflow:hidden;
  border: 1px solid rgba(2,6,23,.10);
}
.progressFill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,235,1), rgba(29,78,216,1));
  transition: width .15s ease;
}
.progressMeta{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted2);
}

/* =========================
   Steps (make them feel “real”)
========================= */
.steps{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.step{
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.70);
  display:grid;
  gap: 10px;
}
.step__k{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  font-weight: 950;
  background: rgba(2, 6, 23, .04);
  border: 1px solid rgba(2,6,23,.10);
}
.step__t{ font-weight: 950; }
.step__d{ margin-top: 2px; color: var(--muted2); font-size: 13px; }

.fineprint{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(2,6,23,.08);
  font-size: 12px;
  color: var(--muted2);
}

/* =========================
   Sections (kill the massive gaps)
========================= */
.section{ padding: 30px 0; }
.sectionHead{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
}
.sectionHead h2{
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.sectionHead p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid3{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.grid2{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.card{
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(2,6,23,.10);
  background: var(--paper);
  box-shadow: var(--shadow2);
}
.card .k{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  font-weight: 950;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  color: #1d4ed8;
  margin-bottom: 10px;
}
.card .t{ font-weight: 950; letter-spacing:-0.01em; }
.card .d{ margin-top: 6px; color: var(--muted); font-size: 13px; }

.card--flat{
  box-shadow: none;
  background: rgba(255,255,255,.55);
}

/* =========================
   FAQ (less chunky)
========================= */
.faq{
  margin-top: 12px;
  display:grid;
  gap: 10px;
}
details{
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.78);
  border-radius: 14px;
  padding: 12px 14px;
}
summary{
  cursor:pointer;
  font-weight: 950;
  list-style:none;
}
summary::-webkit-details-marker{ display:none; }
details p{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   Footer (tidy)
========================= */
.footer{
  padding: 22px 0 34px;
  border-top: 1px solid rgba(2,6,23,.10);
  background: rgba(2,6,23,.01);
}
.footer__inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  color: var(--muted2);
  font-size: 13px;
}
.footer__links{ display:flex; gap: 12px; }
.footer__links a{ color: var(--muted2); }
.footer__links a:hover{ color: var(--text); }

/* =========================
   Responsive
========================= */
@media (max-width: 980px){
  .hero{ padding: 26px 0 14px; }
  .hero__grid{ grid-template-columns: 1fr; gap: 14px; }
  .nav{ display:none; }
  .steps{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .sectionHead{ flex-direction:column; align-items:flex-start; }
}

/* =========================
   Legal pages (kept, but tightened)
========================= */
.legal{
  width: min(900px, 100%);
  margin: 0 auto;
}
.legal__head{ margin-bottom: 12px; }
.legal__title{
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.legal__meta{
  margin: 8px 0 0;
  color: var(--muted2);
  font-size: 13px;
}
.legal__card{
  background: var(--paper);
  border: 1px solid rgba(2,6,23,.10);
  border-radius: var(--r2);
  box-shadow: var(--shadow2);
  padding: 18px;
}
.legal__card h2{
  margin: 18px 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.legal__card p{
  margin: 10px 0;
  color: var(--muted);
}
.legal__card ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.legal__card li{ margin: 6px 0; }
.legal__actions{
  margin-top: 16px;
  display:flex;
  gap: 10px;
}

/* =========================
   Success UI (tightened)
========================= */
.successBox{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.70);
}
.successIcon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  font-size: 18px;
}
.successTitle{
  font-weight: 950;
  letter-spacing: -0.01em;
}
.successDesc{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.successActions{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
