/* ==========================================================================
   DocsDown — home.css v1
   Hanya untuk: /index.html (hero, platform, howto, FAQ, artikel SEO, trust).
   Prasyarat: base.css
   ========================================================================== */

/* --- Image converter top promo --- */
.img-top {
  background:
    radial-gradient(700px 220px at 12% -40%, rgba(56,189,248,0.16), transparent 60%),
    linear-gradient(140deg, #071022 0%, #0c1f3d 60%, #123763 100%);
  color: #fff;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.img-top-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.img-top-pill {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  color: #bfe0ff; padding: 0.24rem 0.7rem; border-radius: 999px; margin-bottom: 0.5rem;
}
.img-top h2 { font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.img-top p { color: rgba(255,255,255,0.78); font-size: 0.9rem; max-width: 560px; margin: 0 0 0.75rem; }
.img-top-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.img-top-chips a {
  font-size: 0.74rem; font-weight: 700; color: #dbeafe; text-decoration: none;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  padding: 0.26rem 0.65rem; border-radius: 999px; transition: background 0.15s, transform 0.12s;
}
.img-top-chips a:hover { background: rgba(255,255,255,0.16); transform: translateY(-1px); }
.img-top-cta {
  display: inline-block; text-decoration: none;
  background: linear-gradient(135deg, #38bdf8, #1a73e8);
  color: #fff; font-weight: 800; font-size: 0.9rem;
  padding: 0.7rem 1.35rem; border-radius: 11px;
  box-shadow: 0 8px 22px rgba(26,115,232,0.35);
  transition: box-shadow 0.2s, transform 0.12s;
}
.img-top-cta:hover { box-shadow: 0 12px 28px rgba(26,115,232,0.5); transform: translateY(-1px); }
.img-top-visual { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 190px; }
.itv-file {
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px; padding: 0.45rem 0.8rem; font-size: 0.8rem; font-weight: 700; color: #e2eefc;
}
.itv-arrow { color: #7dd3fc; font-size: 0.95rem; }
.itv-out { display: flex; flex-direction: column; gap: 0.3rem; width: 100%; }
.itv-row {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 0.3rem 0.65rem; font-size: 0.75rem;
}
.itv-row b { color: #fff; }
.itv-row span { color: #7dd3fc; font-weight: 700; }
@media (max-width: 760px) {
  .img-top-inner { grid-template-columns: 1fr; }
  .img-top-visual { display: none; }
}

/* --- Free tools strip --- */
.tools-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 1.75rem 0; content-visibility: auto; contain-intrinsic-size: auto 320px; }
.tools-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.tools-strip-head h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.tools-strip-head a { font-size: 0.86rem; font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; }
.tools-strip-head a:hover { text-decoration: underline; }
.tools-strip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.55rem; }
.tools-strip-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.8rem; border: 1px solid #e6ecf5; border-radius: 11px;
  text-decoration: none; color: #16233a; font-weight: 600; font-size: 0.85rem;
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.tools-strip-item:hover { border-color: var(--primary); box-shadow: 0 6px 16px rgba(26,115,232,0.12); transform: translateY(-2px); }
.tools-strip-item span { font-size: 1.05rem; line-height: 1; }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2847 25%, #1a3a6b 50%, #0d4a8a 75%, #1a73e8 100%);
  color: #fff;
  padding: 5.5rem 1rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 1rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.download-form {
  background: #ffffff;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  gap: 0.5rem;
  max-width: 760px;
  margin: 0 auto;
  flex-wrap: wrap;
  border: 1px solid rgba(0,0,0,0.04);
}
.download-form input[type="url"] {
  flex: 1;
  min-width: 250px;
  padding: 1.1rem 1.25rem;
  border: 1px solid transparent;
  background: #f8f9fa;
  border-radius: 12px;
  font-size: 1.05rem;
  outline: none;
  transition: all 0.2s;
}
.download-form input[type="url"]:focus { 
  background: #fff;
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}
.download-form input.shake { animation: shake 0.4s; border-color: var(--danger); background: #fff; }
.download-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 1.1rem 2rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.1s;
}
.download-form button:hover { background: var(--primary-dark); }
.download-form button:active { transform: scale(0.98); }
.download-form button:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Mobile: form jadi 2 baris (input & tombol full-width, nyaman disentuh) --- */
@media (max-width: 640px) {
  .download-form {
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.85rem;
    border-radius: 18px;
  }
  .download-form input[type="url"] {
    min-width: 0;
    width: 100%;
    /* 16px+ mencegah zoom otomatis di iOS saat fokus */
    font-size: 1rem;
    padding: 1.05rem 1.15rem;
  }
  .download-form button {
    width: 100%;
    justify-content: center;
    padding: 1.05rem 1.25rem;
    font-size: 1.05rem;
    min-height: 52px;
  }
}
@media (max-width: 380px) {
  .download-form input[type="url"],
  .download-form button { font-size: 0.95rem; padding: 0.95rem 1rem; }
}
.form-note { color: #5f6368; font-size: 0.9rem; text-align: center; margin-top: 1.25rem; }
.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

/* --- Platform grid --- */
.platforms { background: #fff; padding: 3rem 0; border-bottom: 1px solid var(--border); content-visibility: auto; contain-intrinsic-size: auto 700px; }
.platforms h2 { text-align: center; font-size: 1.6rem; margin-bottom: 0.5rem; }
.platforms .sub { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.platform-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
a.platform-item {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.75rem;
  text-align: center;
  font-weight: 600;
  color: #444;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
a.platform-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.12);
}
.platform-item .ico { font-size: 1.75rem; display: block; margin-bottom: 0.4rem; }
.platform-item small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-top: 0.25rem; }

/* --- Feature categories (SEO + internal links) --- */
.categories { padding: 3rem 0; content-visibility: auto; contain-intrinsic-size: auto 420px; }
.categories h2 { text-align: center; font-size: 1.6rem; margin-bottom: 0.5rem; }
.categories .sub { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
a.cat-card {
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  padding: 1.15rem 0.75rem;
  text-align: center;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  background: #fff;
}
a.cat-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.12);
}
.cat-card .cat-ico { font-size: 1.6rem; display: block; margin-bottom: 0.35rem; }
.cat-card .cat-name { display: block; font-size: 0.9rem; }

/* --- How-to steps --- */
.howto { padding: 3rem 0; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.howto h2 { text-align: center; font-size: 1.6rem; margin-bottom: 2rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* --- FAQ --- */
.faq { padding: 3rem 0 4rem; max-width: 800px; margin: 0 auto; content-visibility: auto; contain-intrinsic-size: auto 600px; }
.faq h2 { text-align: center; font-size: 1.6rem; margin-bottom: 1.5rem; }
.faq-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q:after { content: "+"; font-size: 1.3rem; color: var(--primary); }
.faq-item.open .faq-q:after { content: "−"; }
.faq-a { display: none; padding: 0 1.25rem 1rem; color: var(--muted); font-size: 0.95rem; }
.faq-item.open .faq-a { display: block; }

/* --- Artikel SEO + trust --- */
.seo-articles { background: #fff; padding: 3rem 0; border-top: 1px solid var(--border); content-visibility: auto; contain-intrinsic-size: auto 700px; }
.seo-articles h2 { text-align: center; font-size: 1.6rem; margin-bottom: 0.5rem; }
.seo-articles .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.article-card {
  padding: 1.5rem;
  border: 1px solid #eee;
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 0.92rem;
}
.article-card h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 0.5rem; }
.article-card a { color: var(--primary); }
.trust { padding: 2.5rem 0; text-align: center; color: var(--muted); font-size: 0.92rem; }
.trust a { color: var(--primary); }

/* --- Tap targets ramah sentuh (mobile-friendly) --- */
@media (pointer: coarse) {
  .nav-btn { min-height: 44px; }
  .mobile-toggle { min-width: 44px; min-height: 44px; }
  .tools-strip-item { min-height: 44px; }
  .img-top-chips a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-col a { min-height: 44px; }
  .faq-q { min-height: 44px; }
  .uc-home-card { min-height: 44px; }
  .mega-card { min-height: 44px; }
}
