/* Penpot AI Wizard — landing page styles */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #fafafa;
  --text: #1a1a1e;
  --text-muted: #6b6b73;
  --accent: #5b4dd4;
  --accent-soft: rgba(91, 77, 212, 0.12);
  --accent-hover: #6d5ee6;
  --border: #e5e5ea;
  --radius: 10px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Experimental plugin warning */
.warning-banner {
  background: #fef3c7;
  color: #92400e;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  z-index: 101;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.warning-banner-text {
  display: inline-block;
}

.warning-banner-btn {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  background: rgba(146, 64, 14, 0.15);
  border: 1px solid #b45309;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.warning-banner-btn:hover {
  background: rgba(146, 64, 14, 0.25);
  border-color: #92400e;
}

/* Floating decoration bubbles */
.bg-bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-soft);
  animation: bg-bubble-float 6s ease-in-out infinite;
}

.bg-bubble-1 { width: 120px; height: 120px; top: 8%; left: 5%; animation-delay: 0s; animation-duration: 5s; }
.bg-bubble-2 { width: 80px; height: 80px; top: 25%; right: 12%; animation-delay: 0.8s; animation-duration: 7s; }
.bg-bubble-3 { width: 160px; height: 160px; bottom: 20%; left: 8%; animation-delay: 1.5s; animation-duration: 6s; }
.bg-bubble-4 { width: 60px; height: 60px; bottom: 35%; right: 20%; animation-delay: 0.3s; animation-duration: 5.5s; }
.bg-bubble-5 { width: 100px; height: 100px; top: 50%; left: 15%; animation-delay: 2s; animation-duration: 6.5s; }
.bg-bubble-6 { width: 70px; height: 70px; top: 70%; right: 8%; animation-delay: 1s; animation-duration: 5s; }
.bg-bubble-7 { width: 90px; height: 90px; top: 15%; left: 40%; animation-delay: 2.2s; animation-duration: 7s; }
.bg-bubble-8 { width: 50px; height: 50px; bottom: 10%; right: 35%; animation-delay: 0.5s; animation-duration: 6s; }

@keyframes bg-bubble-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(8px, -12px) scale(1.02);
    opacity: 0.8;
  }
  50% {
    transform: translate(-6px, 8px) scale(0.98);
    opacity: 0.65;
  }
  75% {
    transform: translate(10px, 5px) scale(1.01);
    opacity: 0.75;
  }
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.logo-icon {
  color: var(--accent);
  font-size: 1.25rem;
}

.logo-icon-wizard {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.header-beta {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 4px;
  vertical-align: middle;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.nav .btn-primary {
  color: #fff;
}

.nav .btn-primary:hover {
  color: #fff;
  background: var(--accent-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  border: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-lead {
  max-width: 42ch;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.section-lead a {
  color: var(--accent);
  text-decoration: none;
}

.section-lead a:hover {
  text-decoration: underline;
}

.section-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Quotation block */
.quotation {
  margin: 1.5rem 0 0;
  padding: 2rem 2.25rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.quotation p {
  margin: 0 0 1rem;
}

.quotation p:last-of-type {
  margin-bottom: 0;
}

.quotation-footer {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.quotation-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.quotation-footer p:last-child {
  margin-bottom: 0;
}

.quotation-links {
  margin-top: 0.75rem;
}

.quotation-links a {
  color: var(--accent);
  text-decoration: none;
}

.quotation-links a:hover {
  text-decoration: underline;
}

.quotation-links-sep {
  margin: 0 0.5rem;
  color: var(--border);
  font-weight: 400;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

@media (max-width: 540px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.feature-icon {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: var(--accent);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.2s;
}

.gallery-trigger:hover img,
.gallery-trigger:focus img {
  opacity: 0.9;
}

@media (max-width: 540px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery modal (lightbox) */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gallery-modal.gallery-modal-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.gallery-modal-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  animation: gallery-modal-zoom 0.3s ease;
}

.gallery-modal-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.gallery-modal-close:hover {
  background: var(--border);
  color: var(--text);
}

@keyframes gallery-modal-zoom {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Install */
.install-steps {
  margin: 1rem 0 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.install-steps li {
  margin-bottom: 0.5rem;
}

.install-steps a {
  color: var(--accent);
  text-decoration: none;
}

.install-steps a:hover {
  text-decoration: underline;
}

.install-manifest {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.install-manifest code {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text);
  word-break: break-all;
}

.install-manifest code a {
  color: var(--accent);
  text-decoration: none;
}

.install-manifest code a:hover {
  text-decoration: underline;
}

.copy-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  background: rgba(91, 77, 212, 0.2);
  border-color: var(--accent);
}

.copy-btn.copied {
  color: #15803d;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
}

.install-note {
  margin: 0;
}

.install-privacy {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Install page (standalone) */
.install-page {
  padding: 4rem 0 5rem;
}

.install-intro {
  margin-bottom: 1.5rem;
}

.install-choose {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.install-choose-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.install-choose-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.install-choose-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.install-choose-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.install-choose-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.install-choose-desc code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1rem 0.25rem;
  background: var(--bg-alt);
  border-radius: 4px;
}

.install-options {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.install-option {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.install-option:first-child {
  border-top: none;
  padding-top: 0;
}

.install-option-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.install-option-desc {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.install-option-desc code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15rem 0.35rem;
  background: var(--surface);
  border-radius: 4px;
}

.install-option-link {
  margin: 0;
}

.container-narrow {
  max-width: 560px;
}

.install-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.install-back {
  margin: 2rem 0 0;
}

.authors-page {
  padding: 4rem 0 5rem;
}

.authors-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.authors-title {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.authors-lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Feedback page */
.feedback-page {
  padding: 4rem 0 5rem;
}

.feedback-title {
  margin: 0 0 1.5rem;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feedback-intro {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

.feedback-heading {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.feedback-list {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.feedback-out {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.feedback-links {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.feedback-links a {
  color: var(--accent);
  text-decoration: none;
}

.feedback-links a:hover {
  text-decoration: underline;
}

.feedback-cta {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.feedback-reddit {
  margin: 0 0 2rem;
}

.authors-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.author-card {
  margin: 0;
}

.author-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.author-card-inner:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.author-card-photo-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.author-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.author-card-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.author-card-name a {
  color: var(--text);
  text-decoration: none;
}

.author-card-name a:hover {
  color: var(--accent);
}

.author-card-bio {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 28ch;
}

.author-card-link {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.author-card-link:hover {
  text-decoration: underline;
}

.authors-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.past-collaborators-title {
  margin: 3rem 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: -0.02em;
}

.past-collaborators-grid {
  margin-bottom: 2.5rem;
  opacity: 0.92;
}

.install-screenshot {
  margin: 2rem 0;
  padding: 0;
}

.install-screenshot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.install-screenshot figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Authors */
.authors-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
}

.authors-list li {
  margin: 0;
}

.author-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.author-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.author-name {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.author-name:hover {
  color: var(--accent);
}

.author-bio {
  margin: 0;
  max-width: 22ch;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* CTA */
.cta {
  text-align: center;
}

.cta .section-lead {
  margin: 0 auto 1.5rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer .footer-sponsor {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}
