@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #f4efea;
  --surface: #ffffff;
  --surface-subtle: #fbf8f5;
  --text: #000000;
  --text-muted: #52525b;
  --border: #000000;
  --radius: 5px;
  --shadow: -3px 3px 0px 0px var(--border);
  --shadow-sm: -2px 2px 0px 0px var(--border);
  --shadow-lg: -5px 5px 0px 0px var(--border);
  --main: #ff6678;
  --main-hover: #ff4d61;
  --accent-yellow: #facc00;
  --accent-purple: #7a83ff;
  --accent-green: #00d696;
  --accent-blue: #5294ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  font-weight: 500;
  background-color: var(--bg);
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  white-space: nowrap;
}

.badge.yellow { background: var(--accent-yellow); color: #000; }
.badge.pink { background: var(--main); color: #000; }
.badge.green { background: var(--accent-green); color: #000; }
.badge.purple { background: var(--accent-purple); color: #fff; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  background: var(--main);
  color: #000;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  user-select: none;
  text-align: center;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: -5px 5px 0px 0px var(--border);
}

.button:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px var(--border);
}

.button.secondary {
  background: var(--surface);
}

.button.yellow {
  background: var(--accent-yellow);
}

.button.small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}

.button.small:hover {
  transform: translate(-1px, -1px);
  box-shadow: -3px 3px 0px 0px var(--border);
}

.button.small:active {
  transform: translate(1px, 1px);
  box-shadow: 0px 0px 0px 0px var(--border);
}

/* Navigation Header */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 239, 234, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border);
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

/* The Blooply app icon, used both in the nav and the footer. */
.brand-logo {
  width: 30px;
  height: 30px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--main);
  color: #000;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 15px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.nav nav a {
  padding: 6px 8px;
  border-radius: var(--radius);
  transition: background-color 0.15s;
}

.nav nav a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.1s;
  white-space: nowrap;
}

.lang:hover {
  transform: translate(-1px, -1px);
  box-shadow: -3px 3px 0px 0px var(--border);
}

/* Hero Section */
.intro {
  padding: 64px 0 40px;
  text-align: center;
}

.intro-copy {
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.intro h1 {
  font-size: clamp(28px, 5.2vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 20px;
  word-break: break-word;
}

.hero-body {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Window Frame Product Preview */
.product-shot {
  padding-bottom: 80px;
}

.window-box {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-subtle);
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  gap: 10px;
}

.window-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
}

.window-dot.red { background: var(--main); }
.window-dot.yellow { background: var(--accent-yellow); }
.window-dot.green { background: var(--accent-green); }

.shot-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
}

/* Workflow Gallery (Inside Blooply) */
.workflow {
  padding: 20px 0 90px;
}

.section-lead {
  margin-bottom: 30px;
  text-align: center;
}

.section-lead h2 {
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

.section-lead p:last-child {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 580px;
  margin: 0 auto;
}

.gallery-shell {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-viewport {
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  background: #000;
  width: 100%;
  touch-action: pan-y pinch-zoom;
}

.gallery-track {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  background: #000;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-slide figcaption {
  display: none;
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  gap: 12px;
}

.gallery-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.1s;
  flex-shrink: 0;
}

.gallery-arrow:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: -3px 3px 0px 0px var(--border);
}

.gallery-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-center-info {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.gallery-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gallery-dots button {
  width: 10px;
  height: 10px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--surface-subtle);
  padding: 0;
}

.gallery-dots button.active {
  background: var(--main);
}

/* Features Grid */
.features {
  padding: 20px 0 90px;
}

.feature-lead {
  text-align: center;
  margin-bottom: 30px;
}

.feature-lead h2 {
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Comparison Section */
.comparison-section {
  padding: 20px 0 90px;
}

.mobile-scroll-hint {
  display: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.table-wrapper {
  margin-top: 28px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comp-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comp-table th, .comp-table td {
  padding: 14px 18px;
  border-bottom: 2px solid var(--border);
}

.comp-table th {
  background: var(--surface-subtle);
  font-weight: 700;
  font-size: 15px;
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table td:first-child {
  font-weight: 700;
}

.comp-table td.highlight {
  background: rgba(255, 102, 120, 0.12);
  font-weight: 700;
}

/* FAQ Section */
.faq-section {
  padding: 20px 0 80px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

/* With an odd number of cards the last one would sit alone in a half-empty
   row; letting it span the full width reads as deliberate instead. */
.faq-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.faq-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.faq-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Buy CTA Section */
.buy {
  margin-bottom: 60px;
}

.buy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--main);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.buy-card h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #000;
  margin-bottom: 10px;
}

.buy-card p {
  font-size: 15px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
  max-width: 580px;
}

/* The licence terms line: present, but quieter than the pitch above it. */
.buy-card p.muted {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(0, 0, 0, 0.62);
}

.buy-card .button {
  background: var(--accent-yellow);
  white-space: nowrap;
  font-size: 15px;
  padding: 12px 24px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 2px solid var(--border);
  padding: 28px 0 40px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

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

.footer .brand {
  font-size: 16px;
}

/* Responsive Rules for Tablet & Mobile */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .nav nav {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .buy-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 28px 20px;
  }
  .buy-card .button {
    width: 100%;
  }
  .mobile-scroll-hint {
    display: block;
  }
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .nav {
    height: 60px;
  }
  .brand {
    font-size: 17px;
    gap: 6px;
  }
  .brand-logo,
  .brand-mark {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  .nav-actions {
    gap: 6px;
  }
  .lang {
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }
  .nav-actions .button.small {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 11px;
  }
  .intro {
    padding: 36px 0 24px;
  }
  .intro h1 {
    font-size: clamp(24px, 6.8vw, 32px);
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .hero-body {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
  }
  .stat-item {
    font-size: 11px;
    padding: 6px 8px;
    justify-content: center;
    text-align: center;
  }
  .window-bar {
    padding: 8px 10px;
  }
  .shot-note span:not(:first-child) {
    display: none;
  }
  .window-bar .badge {
    display: none;
  }
  .gallery-center-info {
    font-size: 12px;
    gap: 6px;
  }
  .gallery-arrow {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
}
