/* SocialClipSaver — site styles */

:root {
  --mint: #a5e4dc;
  --mint-deep: #7fd3c8;
  --mint-soft: #d7f1ed;
  --lavender: #d8e0fb;
  --black: #1a1b1f;
  --ink: #24262c;
  --text: #14161a;
  --text-soft: #5a606a;
  --text-mute: #8b8f97;
  --bg: #f6f8fa;
  --card: #ffffff;
  --border: #eaedf0;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Outfit", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--mint-deep); }

img { display: block; max-width: 100%; height: auto; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 248, 250, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15px; color: var(--text);
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 14px; color: var(--text-soft); }
.nav-links a:hover { color: var(--text); }
.btn-cta {
  display: inline-block;
  background: var(--black);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.btn-cta:hover { background: var(--ink); color: #fff !important; }

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(216, 224, 251, 0.45), transparent),
    radial-gradient(700px 350px at -10% 30%, rgba(165, 228, 220, 0.4), transparent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint-soft); color: var(--ink);
  padding: 6px 14px; border-radius: 999px;
  font-weight: 700; font-size: 12px; letter-spacing: 0.3px;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--mint-deep); border-radius: 50%; }
.h1 {
  font-size: 58px; line-height: 1.05; letter-spacing: -1.5px;
  font-weight: 800; margin: 18px 0 18px;
}
.h1 .grad {
  background: linear-gradient(90deg, var(--mint-deep), #9aa6e3);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  font-size: 18px; color: var(--text-soft); max-width: 540px;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--black); color: #fff;
  padding: 16px 26px; border-radius: 14px;
  font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 12px 28px rgba(26,27,31,0.15);
}
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text);
  padding: 16px 22px; border-radius: 14px;
  font-weight: 700; font-size: 15px;
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); }
.hero-art {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-art img {
  width: min(380px, 100%); border-radius: 36px;
  box-shadow:
    0 30px 80px rgba(127, 211, 200, 0.4),
    0 8px 30px rgba(26,27,31,0.08);
}

/* ── Sections ── */
section { padding: 80px 0; }
.section-title {
  text-align: center; margin-bottom: 56px;
}
.section-title .label {
  color: var(--mint-deep); font-weight: 700; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.section-title h2 {
  font-size: 40px; letter-spacing: -0.8px; line-height: 1.15;
  margin: 8px auto 12px; max-width: 720px; font-weight: 800;
}
.section-title p {
  color: var(--text-soft); font-size: 17px; max-width: 600px; margin: 0 auto;
}

/* ── Steps ── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 28px;
}
.step .num {
  width: 36px; height: 36px;
  background: var(--mint); color: var(--black);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.step h3 { font-size: 18px; margin: 18px 0 6px; font-weight: 800; }
.step p { color: var(--text-soft); font-size: 14.5px; }

/* ── Features grid ── */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 26px;
}
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--mint-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
}
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--text-soft); }

/* ── Platforms strip ── */
.platforms {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 24px; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.platforms span { font-weight: 700; color: var(--text-soft); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.platform-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
.chip.tiktok { background: #111; }
.chip.ig { background: #e1306c; }
.chip.x { background: #14171a; }
.chip.fb { background: #1877f2; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  padding: 22px 0; cursor: pointer;
  font-weight: 700; font-size: 17px;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-weight: 600; font-size: 22px; color: var(--mint-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--text-soft); font-size: 15px; padding-bottom: 22px; padding-right: 30px;
}

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--mint), var(--lavender));
  border-radius: 32px; padding: 60px 40px; text-align: center;
}
.cta-banner h2 {
  font-size: 38px; letter-spacing: -0.6px; font-weight: 800; color: var(--black);
  margin-bottom: 8px;
}
.cta-banner p { color: var(--ink); font-size: 16px; margin-bottom: 24px; }

/* ── Footer ── */
footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  color: var(--text-soft); font-size: 14px;
}
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.foot a { color: var(--text-soft); }
.foot a:hover { color: var(--text); }
.foot .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ── Doc page ── */
.doc {
  padding: 60px 0;
  max-width: 760px;
  margin: 0 auto;
}
.doc h1 {
  font-size: 42px; letter-spacing: -0.7px; font-weight: 800; margin-bottom: 6px;
}
.doc .updated { color: var(--text-mute); font-size: 14px; margin-bottom: 36px; }
.doc h2 {
  font-size: 22px; font-weight: 800; margin-top: 36px; margin-bottom: 10px;
}
.doc h3 { font-size: 17px; font-weight: 700; margin-top: 24px; margin-bottom: 6px; }
.doc p, .doc li { color: var(--text-soft); font-size: 15.5px; line-height: 1.65; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 12px; }
.doc strong { color: var(--text); }
.doc a { color: var(--mint-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ── Responsive ── */
@media (max-width: 880px) {
  .h1 { font-size: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(220px, 60%); }
  .steps, .features { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 30px; }
  .cta-banner h2 { font-size: 28px; }
  .nav-links a:not(.btn-cta) { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0 40px; }
}

/* ───────────────────── Landing page additions ───────────────────── */

.paste-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 18px;
  display: flex;
  gap: 10px;
  box-shadow: 0 24px 60px rgba(127, 211, 200, 0.18);
  max-width: 620px;
  margin: 28px 0 0;
}
.paste-card input {
  flex: 1;
  border: 0; background: var(--bg);
  padding: 18px 20px;
  font-size: 16px;
  border-radius: 16px;
  color: var(--text);
  font-family: inherit;
}
.paste-card input:focus { outline: 2px solid var(--mint-deep); outline-offset: 0; }
.paste-card button {
  background: var(--black); color: #fff;
  border: 0; padding: 0 24px;
  border-radius: 16px;
  font-weight: 800; font-size: 15px;
  cursor: pointer;
}
.paste-card button:hover { background: var(--ink); }

.trust-strip {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 22px;
  color: var(--text-soft); font-size: 14px;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip span::before {
  content: "✓"; color: var(--mint-deep); font-weight: 800;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.value-row {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px 24px;
  display: flex; align-items: flex-start; gap: 14px;
}
.value-row .icon {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--mint-soft); color: var(--mint-deep);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.value-row h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.value-row p { font-size: 14px; color: var(--text-soft); line-height: 1.5; margin: 0; }

.steps-detailed {
  display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 780px; margin: 0 auto;
}
.step-detailed {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; padding: 24px 26px;
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: flex-start;
}
.step-detailed .badge {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--mint), var(--lavender));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; color: var(--black);
}
.step-detailed h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.step-detailed p { color: var(--text-soft); font-size: 15px; line-height: 1.6; margin: 0; }
.step-detailed code {
  background: var(--mint-soft); color: var(--ink);
  padding: 2px 8px; border-radius: 6px; font-size: 13px; font-family: ui-monospace, monospace;
}

.use-case-list {
  max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.use-case {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px 22px;
  display: flex; align-items: flex-start; gap: 14px;
}
.use-case .marker {
  flex-shrink: 0; width: 28px; height: 28px;
  background: var(--mint); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.use-case strong { color: var(--text); }
.use-case p { color: var(--text-soft); font-size: 14.5px; margin: 4px 0 0; line-height: 1.5; }

.compare-table {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; overflow: hidden;
  max-width: 780px; margin: 0 auto;
}
.compare-table .row {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.compare-table .row:last-child { border-bottom: 0; }
.compare-table .row.head {
  background: var(--mint-soft);
  font-weight: 800; color: var(--ink); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.compare-table .yes { color: var(--mint-deep); font-weight: 700; }
.compare-table .no { color: var(--text-mute); }

.crosslinks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 16px;
}
.crosslink {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
  text-align: center; transition: transform 0.15s ease;
}
.crosslink:hover { transform: translateY(-2px); border-color: var(--mint-deep); }
.crosslink h4 { color: var(--text); margin-bottom: 4px; font-size: 16px; font-weight: 800; }
.crosslink p { font-size: 13px; color: var(--text-soft); margin: 0; }

@media (max-width: 880px) {
  .value-grid { grid-template-columns: 1fr; }
  .crosslinks { grid-template-columns: 1fr; }
  .compare-table .row { grid-template-columns: 1.6fr 1fr 1fr; padding: 14px 16px; font-size: 13px; }
  .paste-card { flex-direction: column; padding: 14px; }
  .paste-card button { padding: 16px; }
}

/* ───────── Downloader result panel ───────── */

.scs-result { max-width: 620px; margin: 18px 0 0; }
.scs-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; padding: 20px;
  display: flex; gap: 18px; align-items: flex-start;
  box-shadow: 0 14px 40px rgba(127, 211, 200, 0.18);
}

.scs-loading { align-items: center; }
.scs-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--mint-soft);
  border-top-color: var(--mint-deep);
  border-radius: 50%;
  animation: scs-spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes scs-spin { to { transform: rotate(360deg); } }
.scs-loading-text { font-weight: 700; color: var(--text-soft); font-size: 14px; }

.scs-error { background: #fff6f6; border-color: #ffd1d6; align-items: center; }
.scs-error h4 { color: #c2333d; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.scs-error p { color: var(--text-soft); font-size: 13.5px; margin: 0; }
.scs-error-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: #ffe0e3; color: #c2333d;
  border-radius: 12px; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}

.scs-fallback { background: var(--mint-soft); border-color: var(--mint); }
.scs-fallback h4 { color: var(--accent-black, var(--text)); font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.scs-fallback p { color: var(--text-soft); font-size: 13.5px; margin: 0; }

.scs-thumb {
  width: 110px; height: 150px; flex-shrink: 0;
  object-fit: cover; border-radius: 14px;
  background: var(--mint-soft);
}
.scs-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--mint-deep); font-size: 38px;
}

.scs-meta { flex: 1; min-width: 0; }
.scs-platform {
  font-weight: 800; font-size: 11px; letter-spacing: 0.8px;
  color: var(--mint-deep); margin-bottom: 6px;
}
.scs-meta h4 {
  font-size: 16px; font-weight: 800; color: var(--text);
  line-height: 1.35; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.scs-author { color: var(--text-soft); font-size: 13px; margin-bottom: 12px; }
.scs-downloads { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.scs-dl {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--black); color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700; font-size: 14px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.scs-dl:hover { background: var(--ink); transform: translateY(-1px); color: #fff; }
.scs-dl:nth-child(2) { background: var(--mint-deep); color: var(--black); }
.scs-dl:nth-child(2):hover { background: var(--mint); color: var(--black); }
.scs-dl:nth-child(3) { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.scs-dl:nth-child(3):hover { border-color: var(--ink); color: var(--text); }
.scs-dl-arrow { font-size: 18px; font-weight: 800; }

@media (max-width: 640px) {
  .scs-card { flex-direction: column; }
  .scs-thumb { width: 100%; height: 200px; }
}
