:root {
  --pink: #ec2f7b;
  --orange: #ff7a4d;
  --bg: #fff6f9;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #f3d6e3;
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: var(--card);
}
.site-header .wrap { display: flex; align-items: baseline; gap: 10px; }
.logo, .grab-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
}
.logo-accent { color: var(--pink); }
.tagline { color: var(--muted); font-size: 13px; }

/* Hero */
.hero {
  padding: 48px 0 32px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #ffe3ee 0%, var(--bg) 60%);
}
.badge {
  display: inline-block;
  background: #ffe3ee;
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.25;
}
.gradient-text {
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* Grab card */
.grab-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  max-width: 440px;
  margin: 0 auto;
  box-shadow: 0 20px 50px -20px rgba(236,47,123,0.25);
  border: 1px solid var(--border);
  text-align: left;
}
.grab-card-header { text-align: center; margin-bottom: 20px; }
.grab-card-header p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdf2f6;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 4px 4px 14px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.input-wrap:focus-within { border-color: var(--pink); }
#reelUrl {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
}
#reelUrl:focus { outline: none; }
.paste-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
}

#grabBtn {
  width: 100%;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 15px;
  cursor: pointer;
  box-shadow: 0 10px 25px -8px rgba(236,47,123,0.55);
  transition: transform 0.1s, opacity 0.15s;
}
#grabBtn:hover { opacity: 0.94; }
#grabBtn:active { transform: scale(0.98); }
#grabBtn:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-spinner {
  display: none;
  width: 14px; height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: middle;
  animation: spin 0.7s linear infinite;
}
#grabBtn.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.status-msg {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}
.status-msg.error { color: #e0246e; }
.status-msg.loading { color: var(--pink); }

/* Result card */
.result-card {
  display: flex;
  gap: 14px;
  background: #fdf2f6;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-top: 16px;
  animation: fadeUp 0.35s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-card.hidden { display: none; }
.result-card img {
  width: 84px; height: 84px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
}
.result-info { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.result-caption { color: var(--muted); font-size: 12px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-btn {
  display: inline-flex;
  width: fit-content;
  background: var(--pink);
  color: white;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
}

/* Feature pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.pill {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--pink);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

/* Ad slots */
.ad-slot { margin: 24px auto; min-height: 0; max-width: 440px; }

/* Why section */
.why-section {
  background: #fbeef4;
  padding: 48px 0;
  text-align: center;
}
.section-badge {
  display: inline-block;
  border: 1px solid var(--pink);
  color: var(--pink);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.why-section h2, .steps-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  margin: 0 0 20px;
}
.why-section p {
  color: var(--muted);
  font-size: 14px;
  max-width: 620px;
  margin: 0 auto 14px;
  text-align: left;
}
.why-section strong { color: var(--text); }

/* Steps */
.steps-section { padding: 48px 0; text-align: center; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}
.step-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 15px; margin: 0 0 6px; }
.step-card p { color: var(--muted); font-size: 13px; margin: 0; }

/* FAQ */
.faq-section { padding: 20px 0 60px; }
.faq-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  margin: 0 0 16px;
}
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details p { color: var(--muted); margin: 10px 0 0; font-size: 13px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--card);
}

@media (max-width: 560px) {
  h1 { font-size: 27px; }
  .steps-grid { grid-template-columns: 1fr; }
  .grab-card { padding: 22px 18px; }
}
