/*
  Global styles for the Stacksona landing page.  The palette is lifted
  directly from the React design provided in the canvas: purples and
  blues for accents against a soft neutral background.  Elements use
  generous padding and rounded corners to create a modern, friendly
  feel.  The fade‑up animation is driven via IntersectionObserver; see
  script.js for implementation details.  Cards in horizontal rows are
  animated in a cascade by setting the --delay custom property.
*/

/* Colour variables derived from the canvas design */
:root {
  --primary: #5d56c8;
  --secondary: #7e73db;
  --soft: #a395dd;
  --line: #d8d3f0;
  --blue: #7484d5;
  --bg: #f6f5f2;
  --text-dark: #111111;
  --text-muted: #666666;
  --card-bg: #faf9ff;
  --border: #ddd8f3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* Use a clean, neutral sans-serif stack similar to the canvas design.  The
     order here matches system UI fonts on most platforms and falls back to
     standard sans-serif faces if unavailable. */
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container helper */
.container {
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Fade‑up animation base */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.product-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.company-name {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Navigation links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover {
  background-color: #ffffff;
  color: var(--text-dark);
}
.btn-nav {
  background-color: var(--primary);
  color: #fff;
  border-radius: 0.5rem;
}
.btn-nav:hover {
  opacity: 0.95;
}

/* Show nav on medium+ screens */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 4rem 0 6rem;
}
.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}
.hero-content {
  max-width: 40rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: #faf9ff;
  color: var(--primary);
}
.badge .dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--secondary);
}
.hero h1 {
  /* Larger headline sizes on small and large screens more closely match the
     original canvas design.  The negative tracking in the React code is
     simulated here by tightening the letter‑spacing slightly. */
  font-size: 3.25rem;
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin: 1rem 0 1.25rem;
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;
    line-height: 0.96;
    letter-spacing: -0.05em;
  }
}
.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 35rem;
}
.bullets {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background-color: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.95;
}
.btn-secondary {
  border: 1px solid var(--line);
  background-color: #ffffff;
  color: var(--text-muted);
}
.btn-secondary:hover {
  background-color: #faf9ff;
  color: var(--text-dark);
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}
.pattern {
  position: absolute;
  inset: 0;
  border-radius: 2.75rem;
  background-image: linear-gradient(to right, rgba(93, 86, 200, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(93, 86, 200, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.7;
  z-index: 0;
}
.screenshot-wrapper {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 2.125rem;
  background-color: #ffffff;
  padding: 0.75rem;
  box-shadow: 0 20px 60px rgba(93, 86, 200, 0.12);
  overflow: hidden;
  z-index: 1;
}

/* Thread card overlay for inner thread preview
   This card floats over the screenshot on the right side to give visitors
   a glimpse of the content within an individual thread.  It mirrors the
   styling of the callout card with rounded corners, a light background and
   soft drop shadow.  The card uses absolute positioning within the
   hero-image container so it appears on top of the screenshot. */
.thread-card {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  /* Fixed width ensures the card remains visible regardless of image aspect ratio.  */
  width: 14rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background-color: #faf9ff;
  box-shadow: 0 14px 36px rgba(93, 86, 200, 0.14);
  overflow: hidden;
  z-index: 2;
}
.thread-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.screenshot-wrapper img {
  display: block;
  width: 100%;
  border-radius: 1.5rem;
}
.callout {
  position: absolute;
  left: 1.5rem;
  bottom: -2rem;
  max-width: 17.5rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background-color: #faf9ff;
  padding: 1.25rem;
  box-shadow: 0 14px 36px rgba(93, 86, 200, 0.14);
  z-index: 2;
}
.callout-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #888888;
}
.callout-text {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Product pillars */
.product {
  padding: 4rem 0;
}
.product-row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .product-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(93, 86, 200, 0.05);
}
.product-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--text-dark);
}
.product-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* How it works */
.how {
  padding: 4rem 0;
}
.how-header .small-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.how-header h2 {
  margin-top: 0.75rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
  max-width: 45rem;
}
@media (min-width: 768px) {
  .how-header h2 {
    font-size: 2.5rem;
  }
}
.steps {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
.step-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(93, 86, 200, 0.05);
}
.step-number {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.step-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}
.step-card p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Layout for the how-it-works section.  On smaller screens the image and
   steps stack vertically; on larger screens they sit side by side. */
.how-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Wrapper for the thread detail image used in the how-it-works section.  It
   echoes the styling of the hero screenshot with a border, rounded
   corners and subtle shadow. */
.how-image-wrapper {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 2.125rem;
  background-color: #ffffff;
  padding: 0.75rem;
  box-shadow: 0 20px 60px rgba(93, 86, 200, 0.12);
  overflow: hidden;
  max-width: 32rem;
  margin: 0 auto;
}
.how-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

/* Availability */
.availability {
  padding: 4rem 0;
}
.availability-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 2.25rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(93, 86, 200, 0.05);
}
.availability-card .small-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.availability-card h2 {
  margin-top: 0.75rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
}
.availability-card p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 40rem;
}

/* Extra features */
.features-extra {
  padding: 4rem 0;
}
.feature-row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feature-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(93, 86, 200, 0.05);
}
.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--text-dark);
}
.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Notify section */
.notify {
  padding: 4rem 0 6rem;
}
.notify-inner {
  background: linear-gradient(135deg, var(--soft) 0%, var(--primary) 55%, var(--blue) 100%);
  border-radius: 2.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: #ffffff;
}
@media (min-width: 768px) {
  .notify-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3rem;
  }
}
.notify-copy h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}
.notify-copy p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 32rem;
}
.notify-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 28rem;
}
.notify-form input {
  flex: 1 1 auto;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.95);
  color: #222;
  outline: none;
}
.notify-form input::placeholder {
  color: #888;
}
.btn-notify {
  background-color: #0b0b0b;
  color: #fff;
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-notify:hover {
  background-color: #000;
}
.message {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #ffffff;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
  padding: 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-dark);
  z-index: 1000;
}
.cookie-banner.hidden {
  display: none;
}
.cookie-message {
  flex: 1 1 auto;
  margin-right: 1rem;
}
.cookie-buttons {
  display: flex;
  gap: 0.5rem;
}
.btn-consent {
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-consent.btn-light {
  background-color: #f2f2f2;
  color: var(--text-dark);
}
.btn-consent.btn-light:hover {
  background-color: #e6e6e6;
}
.btn-consent:not(.btn-light) {
  background-color: var(--primary);
  color: #ffffff;
}
.btn-consent:not(.btn-light):hover {
  opacity: 0.95;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  font-size: 0.875rem;
  color: #888;
}

.btn-nav, .btn-nav:visited, .btn-nav:hover, .btn-nav:active {
  color: #ffffff !important;
}
.tally-embed-wrap {
  width: 100%;
  max-width: 460px;
}
.tally-embed-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: transparent;
}
@media (max-width: 767px) {
  .hero-image {
    max-width: 100%;
  }
  .callout, .thread-card {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
    width: 100%;
  }
  .notify-inner {
    padding: 2rem 1.25rem;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


.section-intro,
.trust-copy {
  max-width: 48rem;
}
.section-intro .small-title,
.trust .small-title,
.how-header .small-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-intro h2,
.trust-copy h2 {
  margin: 0.75rem 0 0;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
}
.section-intro p,
.trust-copy p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  max-width: 42rem;
}
.audience {
  padding: 4rem 0;
}
.audience-row {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .audience-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.audience-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(93, 86, 200, 0.05);
}
.audience-card h3,
.trust-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}
.audience-card p,
.trust-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.trust {
  padding: 4rem 0;
}
.trust-panel {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(93, 86, 200, 0.08);
}
.trust-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .trust-points {
    grid-template-columns: repeat(3, 1fr);
  }
}
.trust-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
}
.trust-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}


.marketplace-links {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .marketplace-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.marketplace-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1rem 1.125rem;
  background: #f8f8fc;
}
.marketplace-link.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
}
.marketplace-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}
.marketplace-status {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}


.rules-tools {
  padding: 4rem 0;
}
.rules-row {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .rules-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rules-card {
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(93, 86, 200, 0.05);
}
.rules-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}
.rules-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
