/* ==========================================================================
   Sweet! — Marketing page theme
   Brings static content pages (contact, features, use-cases, about, privacy,
   terms) in line with the redesigned index.html / billing.html.
   Loaded AFTER shared-styles.min.css so it overrides the legacy grayscale look.
   Design tokens (--bg, --text, --accent, etc.) come from shared-styles.css.
   ========================================================================== */

body {
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Floating pill nav (matches index.html) ── */
.nav-wrap {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: calc(100% - 32px); max-width: 860px;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: background 0.3s, border-color 0.3s;
}
.nav-wrap:hover { background: rgba(10, 10, 11, 0.82); border-color: rgba(255, 255, 255, 0.12); }
.nav-inner {
  padding: 0 24px; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 17px;
  text-decoration: none;
  background: linear-gradient(90deg, #ff2d55, #ff9500, #ffd60a, #34c759, #32ade6, #5856d6, #ff2d55);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rainbowShift 8s linear infinite;
}
@keyframes rainbowShift { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 13px; font-weight: 500; transition: color 0.2s; text-decoration: none; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.current { color: var(--text); font-weight: 600; }
.nav-cta {
  background: var(--text) !important; color: var(--bg) !important;
  padding: 6px 16px; border-radius: 100px; font-weight: 600 !important; font-size: 12px !important;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.88; }

/* ── Page shell — clear the fixed nav, tighten width ── */
.container {
  max-width: 1000px;
  padding: 132px 24px 48px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  max-width: 760px; margin: 0 auto var(--space-2xl);
  position: relative;
}
.hero::before {
  content: ''; position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 320px; max-width: 90vw; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(232, 168, 48, 0.10), transparent 70%);
  filter: blur(20px);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 16px;
}
.hero-subtitle {
  font-size: 17px; color: var(--text-muted);
  max-width: 600px; margin: 0 auto; line-height: 1.65;
}

/* ── Content prose ── */
.content-section {
  max-width: 820px; margin: 0 auto;
}
.content-section h2 {
  font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em;
  margin: 40px 0 14px; line-height: 1.2;
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 { font-size: 19px; font-weight: 600; margin: 24px 0 10px; }
.content-section p {
  color: var(--text-dim); font-size: 16px; line-height: 1.7; margin: 0 0 18px;
}
.content-section p strong { color: var(--text); font-weight: 600; }
.content-section ul, .content-section ol {
  color: var(--text-dim); font-size: 16px; line-height: 1.7;
  margin: 0 0 18px; padding-left: 22px;
}
.content-section li { margin-bottom: 8px; }
.content-section a { color: var(--accent); text-decoration: none; }
.content-section a:hover { text-decoration: underline; }

/* ── Card grids (features + use-cases + about values) ── */
.features-grid,
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1000px; margin: 28px auto var(--space-2xl);
}
.feature-card,
.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover,
.use-case-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px rgba(232, 168, 48, 0.05), 0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}
.feature-icon, .use-case-icon { font-size: 30px; line-height: 1; margin-bottom: 14px; }
.feature-card h3, .use-case-card h3 {
  font-size: 18px; font-weight: 600; margin: 0 0 8px; color: var(--text);
}
.feature-card p, .use-case-card p {
  color: var(--text-dim); font-size: 14px; line-height: 1.55; margin: 0 0 14px;
}
.feature-details ul, .use-case-details ul {
  margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 13px; line-height: 1.5;
}
.feature-details li, .use-case-details li { margin-bottom: 6px; }

/* ── Workflow / steps section (use-cases) ── */
.workflow-section { max-width: 1000px; margin: var(--space-2xl) auto; }
.workflow-section h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; text-align: center; margin: 0 0 28px; }
.workflow-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
}
.workflow-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; display: flex; gap: 14px; align-items: flex-start;
}
.step-number {
  width: 34px; height: 34px; border-radius: 999px; flex: 0 0 auto;
  background: rgba(232, 168, 48, 0.14); border: 1px solid var(--accent-dim);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: "JetBrains Mono", monospace;
}
.workflow-step h3 { margin: 0 0 6px; font-size: 17px; }
.workflow-step p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ── Social proof badges (features hero) ── */
.social-proof-badges {
  display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; margin: 22px 0 0;
}
.social-proof-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim);
}
.social-proof-badge-icon { color: var(--green); font-weight: 700; }

/* ── CTA section ── */
.cta-section {
  max-width: 760px; margin: var(--space-2xl) auto 0;
  padding: 44px 32px; text-align: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(232, 168, 48, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
}
.cta-section h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.cta-section p { margin: 0 0 24px; color: var(--text-dim); font-size: 16px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Primary / secondary buttons on marketing pages */
.cta-buttons .btn,
.content-section .btn {
  background: var(--text); color: var(--bg);
  border: none; border-radius: 8px; padding: 12px 26px;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  display: inline-block; transition: opacity 0.2s, box-shadow 0.3s;
  box-shadow: 0 0 20px rgba(232, 232, 236, 0.08);
}
.cta-buttons .btn:hover,
.content-section .btn:hover { opacity: 0.92; box-shadow: 0 0 32px rgba(232, 232, 236, 0.15); }
.cta-buttons .btn.btn-secondary,
.content-section .btn.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); font-weight: 500; box-shadow: none;
}
.cta-buttons .btn.btn-secondary:hover,
.content-section .btn.btn-secondary:hover { border-color: var(--text-dim); opacity: 1; }

/* ── Footer (matches index.html) ── */
footer {
  position: relative; max-width: 1000px; margin: 64px auto 0; padding: 12px 24px 36px;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
}
footer .footer-grid {
  border-top: none; margin-top: 36px; padding-top: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px;
}
footer .footer-section h4 { font-size: 14px; font-weight: 600; margin: 0 0 12px; color: var(--text); }
footer .footer-section p { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0; }
footer .footer-section ul { list-style: none; margin: 0; padding: 0; }
footer .footer-section li { margin-bottom: 8px; }
footer .footer-section a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
footer .footer-section a:hover { color: var(--text); text-decoration: none; }
footer .copyright {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border);
  text-align: center; font-size: 13px; color: var(--text-muted);
}
footer .copyright .text-xs, footer .copyright .subtext { font-size: 11px; margin-top: 6px; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 104px 18px 40px; }
  .features-grid, .use-cases-grid, .workflow-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-wrap { top: 10px; width: calc(100% - 24px); }
  .nav-inner { padding: 0 16px; height: 44px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero h1 { font-size: clamp(26px, 8vw, 36px); }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { text-align: center; }
}
