/* /assets/site.css */

/* Base */
* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

ul,
ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
  color: #374151;
}

li {
  margin-bottom: 0.5rem;
}

.site-main {
  min-height: 70vh;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  /* align-items: center; */
  gap: 5px;
  text-decoration: none;
  color: #111827;
  line-height: 1.05;
}

.brand-main {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
}
.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.sparkle-logo {
  display: block;
  margin: 12px 0 14px;
  width: 160px;
  max-width: 100%;
}

.sparkle-logo-small {
  display: block;
  margin: 12px auto;
  max-width: 180px;
  opacity: 0.9;
}

.founders-photo {
  display: block;
  margin: 16px 0 18px;
  width: 180px;
  max-width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: #374151;
  font-weight: 700;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #111827;
}

.site-nav .button-primary,
.site-nav .button-primary:hover {
  color: #ffffff;
}

.button-small {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.button-row.center {
  justify-content: center;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: auto;
  }

  .site-nav {
    gap: 14px;
  }

  .brand-sub {
    display: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 56px;
  padding: 28px 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: #6b7280;
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-bottom: 14px;
  margin-top: 0;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #374151;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-intro {
  max-width: none;
  margin: 0 auto;
  text-align: center;
}

.section-intro p {
  max-width: 360px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.section-intro h2 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.section-intro.center {
  text-align: center;
}

.section-tight {
  padding: 28px 0;
}

/* Page Intro */
.page-intro {
  max-width: 760px;
}

.page-intro .lead {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.page-intro .muted {
  font-size: 0.9rem;
}

.text-link {
  display: inline-block;
  margin-top: 4px;
  color: #262feb;
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover {
  color: #1f25c9;
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: 40px 0 24px;
}

.hero-shell {
  background:
    radial-gradient(circle at top left, rgba(38, 47, 235, 0.08), transparent 34%),
    linear-gradient(to bottom, #f8faff, #ffffff);
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(38, 47, 235, 0.08);
  color: #262feb;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-copy {
  max-width: 760px;
}

.lead {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 700px;
  margin-bottom: 0;
}

.hero-banner {
  text-align: center;
  margin-top: 36px;
}

.hero-banner img {
  width: 100%;
  max-width: 920px;
  border-radius: 20px;
  border: 1px solid #dbe3f3;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.12);
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 36px;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  max-width: 12ch;
  margin-bottom: 20px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.hero-banner {
  text-align: center;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-shell {
    padding: 24px;
    border-radius: 22px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-visual {
    justify-content: center;
  }
}

/* Buttons */
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 0;
}

.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  color: inherit; /* ← key fix */
}

.button-primary {
  background: #262feb;
  color: #ffffff;
  border-color: #262feb;
}

.button-primary:hover {
  background: #1f25c9;
  border-color: #1f25c9;
}

.button-secondary {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.button-secondary:hover {
  background: #f9fafb;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.card {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.card p {
  margin-bottom: 0;
}
.feature-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(to bottom, #ffffff, #fbfcff);
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(38, 47, 235, 0.22);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(38, 47, 235, 0.08);
  color: #262feb;
  font-size: 1.2rem;
  line-height: 1;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  color: #4b5563;
}

/* State Requirements */
.state-highlight {
  border: 1px solid rgba(38, 47, 235, 0.15);
  background: linear-gradient(to right, rgba(38, 47, 235, 0.06), rgba(38, 47, 235, 0.02));
  border-radius: 18px;
  padding: 20px 22px;
}

.state-highlight-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.state-highlight-text h3 {
  margin-bottom: 6px;
}

.state-highlight-text p {
  margin-bottom: 0;
  color: #4b5563;
}

/* Featured screenshot */
.screenshot-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screenshot-feature .screenshot-caption {
  max-width: 200px; /* match image width */
}

.screenshot-feature img {
  max-width: 200px;
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
}

.screenshot-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Smaller supporting images */
.screenshot-item img {
  max-width: 150px;
}

/* Caption */
.screenshot-caption {
  max-width: 150px;
  text-align: center;
  font-size: 0.95rem;
  color: #4b5563;
  margin-top: 8px;
  font-weight: 600;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.1);
}

/* Callout */
.callout {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #d1fae5;
  background: #ecfdf5;
  color: #065f46;
}

/* Utilities */
.muted {
  color: #6b7280;
}

.center {
  text-align: center;
}

.section-divider {
  width: 50%;
  height: 1px;
  background: #e5e7eb;
  margin: 0 auto 28px;
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  .header-inner {
    align-items: flex-start;
  }
}

/* Phone Mockups */
.phone-mock {
  display: inline-block;
  transform: rotate(4deg);
  padding: 10px;
  border-radius: 28px;
  background: #111827;
  box-shadow:
    0 20px 40px rgba(17, 24, 39, 0.25),
    0 8px 16px rgba(17, 24, 39, 0.15);
}

.phone-mock img {
  display: block;
  width: 100%;
  max-width: 260px;
  border-radius: 20px;
}

/* Get The App */
.cta-app {
  text-align: center;
  padding: 40px 20px;
  border-radius: 24px;
  background: linear-gradient(to bottom, rgba(38, 47, 235, 0.06), rgba(38, 47, 235, 0.02));
  border: 1px solid rgba(38, 47, 235, 0.15);
}

.cta-app h2 {
  margin-bottom: 12px;
}

.cta-app p {
  color: #4b5563;
  margin-bottom: 22px;
}
.cta-section {
  background: linear-gradient(to bottom, rgba(38, 47, 235, 0.04), rgba(38, 47, 235, 0.01));
  border: 1px solid rgba(38, 47, 235, 0.12);
  border-radius: 20px;
  padding: 32px 24px;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-button img {
  height: 52px;
  display: block;
  transition: transform 0.15s ease;
}

.store-button:hover img {
  transform: translateY(-2px);
}

.cta-note {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-availability {
  margin-top: 20px; /* space above "Available now..." */
}

/* File Export Examples */
.example-exports {
  margin-top: 8px;
}

.export-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.export-card {
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(to bottom, #ffffff, #fbfcff);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.export-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.export-card h3 {
  margin-bottom: 10px;
}

.export-card p {
  color: #4b5563;
  margin-bottom: 12px;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: linear-gradient(to bottom, #ffffff, #fbfcff);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: #111827;
  position: relative;
  padding-right: 54px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  line-height: 1;
  color: #262feb;
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background: rgba(38, 47, 235, 0.03);
}

.faq-answer {
  padding: 0 22px 20px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}
