/* Spiggle Material Theme — product landing */
:root {
  --bg: #f7f2fa;
  --bg-2: #ffffff;
  --ink: #1d1b20;
  --muted: #49454f;
  --line: #e7e0ec;
  --accent: #6750a4;
  --accent-2: #4f378b;
  --accent-soft: #eaddff;
  --dark: #1d1b20;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px rgba(29, 27, 32, 0.1);
  --max: 1100px;
  --font: "Roboto", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
  background: #f3edf7;
  padding: 2px 6px;
  border-radius: 6px;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #7c4dff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.logo span { color: var(--muted); font-weight: 500; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: rgba(103, 80, 164, 0.08); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 27, 32, 0.18);
}
.btn-primary:hover { color: #fff; background: #000; }
.btn-accent {
  background: linear-gradient(135deg, #7c4dff, var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(103, 80, 164, 0.32);
}
.btn-accent:hover { color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: #cfc4dc; color: var(--ink); }

.hero {
  padding: 72px 0 48px;
  text-align: center;
}
.hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 auto 16px;
  max-width: 18ch;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.hero-lead {
  margin: 0 auto 28px;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.125rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.hero-shot {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0f0f12;
  width: 100%;
}
.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
}
#list-view .hero-shot {
  margin-top: 8px;
}

section { padding: 72px 0; }
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-desc {
  margin: 0 0 36px;
  color: var(--muted);
  max-width: 38rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.also-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.also-chip {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}
.shot {
  margin: 0;
  background: #0f0f12;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(29, 27, 32, 0.06);
}
.shot img {
  width: 100%;
  height: auto;
  display: block;
}
.shot figcaption {
  background: var(--bg-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.shot-wide { grid-column: 1 / -1; }

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}
.phone {
  margin: 0 auto;
  width: min(100%, 280px);
  background: #1d1b20;
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone img {
  width: 100%;
  border-radius: 18px;
  display: block;
}
.phone figcaption {
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 10px 8px 4px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pricing-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 40px;
}
.pricing-head .section-desc { margin-inline: auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
.pricing-grid-single {
  max-width: 380px;
  margin-inline: auto;
}
.plan {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.plan.popular {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
  box-shadow: var(--shadow);
  position: relative;
}
.plan-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.plan.popular .plan-tag { color: #9ca3af; }
.plan h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.plan-price {
  margin: 16px 0 6px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.plan.popular .plan-price small { color: #9ca3af; }
.plan-note {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
}
.plan.popular .plan-note { color: #d1d5db; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.plan li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.plan.popular li { border-top-color: rgba(255,255,255,0.1); }
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan .btn { width: 100%; }
.plan.popular .btn-accent { margin-top: auto; }
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.faq {
  max-width: 680px;
  margin: 0 auto;
}
.faq details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plugins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.plugins-4 {
  grid-template-columns: repeat(2, 1fr);
}
.plugin-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.plugin-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.plugin-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.95rem; }

.custom-cta-wrap { padding-top: 8px; }
.custom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(124, 77, 255, 0.28), transparent 55%),
    var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
}
.custom-cta-copy { max-width: 640px; }
.custom-cta h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.custom-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}
.custom-cta-btn { flex-shrink: 0; white-space: nowrap; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .plugins,
  .plugins-4,
  .workflow,
  .gallery-grid,
  .pricing-grid,
  .phones { grid-template-columns: 1fr; }
  .custom-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
  .nav .hide-mobile { display: none; }
  section { padding: 56px 0; }
  .hero { padding-top: 48px; }
  .phones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .phones { grid-template-columns: 1fr; }
  .phone { width: min(100%, 320px); }
}
