/* ============================================================
   Planner123 Landing Page — style.css
   Standalone. No framework. No build step.
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:             #0f0f0f;
  --bg-surface:     #1a1a1a;
  --bg-elevated:    #242424;
  --text:           #e8e8e8;
  --text-muted:     #888888;
  --accent-rust:    #CE422B;
  --accent-rust-dim:#a8351f;
  --accent-emerald: #10b981;
  --accent-emerald-dim: #059669;
  --border:         #2a2a2a;
  --font-mono:      'JetBrains Mono', monospace;
  --font-body:      'Space Grotesk', sans-serif;
  --max-width:      960px;

  /* Psychedelic gradient — the blend of the two brand colors */
  --grad-e:         #10b981;   /* emerald */
  --grad-r:         #CE422B;   /* rust */

  /* Mesh radial layers — used as background-image stacks */
  --mesh-blob-e:    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  --mesh-blob-r:    radial-gradient(ellipse 60% 70% at 80% 70%, rgba(206,  66,  43, 0.20) 0%, transparent 70%);
  --mesh-blob-e2:   radial-gradient(ellipse 40% 40% at 75% 20%, rgba(16, 185, 129, 0.12) 0%, transparent 65%);
  --mesh-blob-r2:   radial-gradient(ellipse 45% 45% at 15% 80%, rgba(206,  66,  43, 0.12) 0%, transparent 65%);

  /* Linear spectrum — two-stop emerald → rust (browser interpolates through orange) */
  --grad-linear:    linear-gradient(135deg, var(--grad-e) 0%, var(--grad-r) 100%);
  --grad-linear-rev:linear-gradient(135deg, var(--grad-r) 0%, var(--grad-e) 100%);
  --grad-h:         linear-gradient(90deg,  var(--grad-e) 0%, var(--grad-r) 100%);

  /* Shadow scale (from Planner123 app tokens) */
  --shadow-sm:      0 1px 2px rgba(0,0,0,0.25);
  --shadow-base:    0 1px 3px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md:      0 4px 6px rgba(0,0,0,0.4);
  --shadow-lg:      0 10px 15px rgba(0,0,0,0.4);
  --shadow-emerald: 0 4px 20px rgba(16, 185, 129, 0.25);
  --shadow-rust:    0 4px 20px rgba(206, 66, 43, 0.20);
  --shadow-psyche:  0 4px 24px rgba(16, 185, 129, 0.18), 0 4px 24px rgba(206, 66, 43, 0.14);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    /* Major grid — 80px squares */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.03) 79px,
      rgba(255, 255, 255, 0.03) 80px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(255, 255, 255, 0.03) 79px,
      rgba(255, 255, 255, 0.03) 80px
    ),
    /* Minor grid — 16px subdivisions */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 15px,
      rgba(255, 255, 255, 0.012) 15px,
      rgba(255, 255, 255, 0.012) 16px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 15px,
      rgba(255, 255, 255, 0.012) 15px,
      rgba(255, 255, 255, 0.012) 16px
    ),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--accent-emerald);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-emerald-dim);
}

::selection {
  background: var(--accent-rust);
  color: #fff;
}

/* --- Layout --- */
.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 7rem 0;
}

/* --- Section reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Gradient divider lines between sections --- */
section + section {
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--bg), var(--bg)),
                    var(--grad-h);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-image: var(--grad-h) 1;
}

@supports not (border-image: linear-gradient(red, red) 1) {
  section + section {
    border-top: 1px solid var(--border);
  }
}

/* --- Section numbering (Swiss typographic grid) --- */
.section-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section-num span {
  color: rgba(136, 136, 136, 0.5);
}

/* --- Section headings — left-aligned (Swiss) --- */
.section__heading {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
  text-align: left;
  letter-spacing: -0.01em;
}


/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Psychedelic mesh background — multiple radial blobs */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    var(--mesh-blob-e),
    var(--mesh-blob-r),
    var(--mesh-blob-e2),
    var(--mesh-blob-r2);
  animation: mesh-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes mesh-drift {
  0%   { opacity: 1;    filter: blur(0px); }
  33%  { opacity: 0.85; filter: blur(2px); }
  66%  { opacity: 1;    filter: blur(0px); }
  100% { opacity: 0.9;  filter: blur(1px); }
}

/* Gradient-border band at very top of hero — like app's header bar */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-h);
  z-index: 1;
}

.hero .wrapper {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;

  /* Gradient text — the hero gets the full psychedelic treatment */
  background: var(--grad-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback */
  color: #fff;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

.hero__chevron {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  z-index: 2;
}

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

.hero__chevron-arrow {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  line-height: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}


/* ============================================================
   2. PERFORMANCE
   ============================================================ */
.perf__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.perf__stat {
  padding: 2rem 1rem;
  border-radius: 6px;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.perf__stat:hover {
  background: var(--bg-surface);
  transform: translateY(-3px);
  box-shadow: var(--shadow-psyche);
}

.perf__number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;

  /* Gradient text on numbers */
  background: var(--grad-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent-emerald); /* fallback */
}

.perf__label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}


/* ============================================================
   3. THE SIMPLE PART — two-column constraint copy + features
   ============================================================ */
.simple__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.simple__headline {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: var(--grad-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent-emerald); /* fallback */
}

.simple__text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.simple__punch {
  color: var(--text) !important;
  font-weight: 500;
  font-size: 1rem !important;
}

.simple__video {
  text-align: center;
}

@media (max-width: 640px) {
  .simple__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ============================================================
   3b. SCREENSHOTS — Stage Manager layout
   ============================================================ */

/* Stage: side pile left, main window right */
.stage {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  user-select: none;
}

/* ── Side pile ── */
.stage__side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
  width: 22%;
}

.stage__thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  /* slight upward tilt — like stacked windows */
}

.stage__thumb:first-child {
  transform: rotate(-1.5deg) translateY(-2px);
}
.stage__thumb:last-child {
  transform: rotate(1deg) translateY(2px);
}

.stage__thumb:hover {
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-emerald);
  transform: rotate(0deg) translateY(-3px) scale(1.03) !important;
}

.stage__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  pointer-events: none;
  /* dim thumbnails so main pops */
  filter: brightness(0.65) saturate(0.7);
  transition: filter 0.2s ease;
}

.stage__thumb:hover img {
  filter: brightness(0.85) saturate(1);
}

.stage__thumb-label {
  position: absolute;
  bottom: 0.4rem;
  left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  pointer-events: none;
}

/* ── Main window ── */
.stage__main {
  position: relative;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-psyche);
  transition: box-shadow 0.4s ease;
}

.stage__main img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
  transition: opacity 0.25s ease;
}

.stage__main-label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  pointer-events: none;
}

/* Swap animation */
.stage__main img.stage--swapping {
  opacity: 0;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
  .stage {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .stage__side {
    width: 100%;
    flex-direction: row;
  }

  .stage__thumb {
    flex: 1;
  }

  .stage__thumb:first-child,
  .stage__thumb:last-child {
    transform: none;
  }
}


/* ============================================================
   3b. SHOWCASE — annotated screenshot pairs (37signals-style)
   ============================================================ */
.showcase {
  margin-top: 5rem;
}

.showcase__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.showcase__pair:last-child {
  margin-bottom: 0;
}

.showcase__item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.showcase__frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-base);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.showcase__item:hover .showcase__frame {
  border-color: var(--accent-emerald);
  box-shadow: var(--shadow-psyche);
  transform: translateY(-3px);
}

.showcase__frame img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* ── Callout label — positioned over the screenshot ── */
.showcase__callout {
  position: absolute;
  max-width: 220px;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 1;
  /* Subtle entry animation */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

/* Callout connector dot */
.showcase__callout::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

/* Show callout when parent is visible (scroll-reveal) */
.visible .showcase__callout,
.showcase__item:hover .showcase__callout {
  opacity: 1;
  transform: translateY(0);
}

/* ── Caption below the screenshot ── */
.showcase__caption {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.75rem 0.25rem 0;
}

.showcase__badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  white-space: nowrap;
  flex-shrink: 0;
}

.showcase__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Showcase responsive ── */
@media (max-width: 640px) {
  .showcase__pair {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .showcase__callout {
    max-width: 180px;
    font-size: 0.6rem;
    padding: 0.35rem 0.6rem;
  }
}


/* ============================================================
   3c. LIGHTBOX — full-resolution image overlay
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.lightbox--open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 94vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 60px rgba(16, 185, 129, 0.15), 0 0 60px rgba(206, 66, 43, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox--open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 1;
}

.lightbox__close:hover {
  color: #fff;
}


/* ============================================================
   4. VIDEO
   ============================================================ */
.video {
  text-align: center;
}

.video__label {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.video__container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 */
  background: var(--bg-surface);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);

  /* Gradient border via outline trick */
  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--bg-surface), var(--bg-surface)),
    var(--grad-h);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-image: var(--grad-h) 1;
  transition: box-shadow 0.3s;
}

.video__container:hover {
  box-shadow: var(--shadow-psyche);
}

.video__container iframe,
.video__container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Placeholder state (when no video ID yet) */
.video__placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 1rem;
}

.video__placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--bg-surface), var(--bg-surface)),
    var(--grad-linear);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-image: var(--grad-linear) 1;
  /* border-image doesn't work on border-radius; use outline instead */
  outline: 2px solid;
  outline-color: transparent;
  /* Fallback gradient ring via box-shadow */
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5), 0 0 0 2px rgba(206, 66, 43, 0.3);
  border: 2px solid #444;
}

.video__placeholder-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--text-muted);
  margin-left: 4px;
}


/* ============================================================
   4a. HONEST MANIFESTO
   ============================================================ */
.honest__manifesto {
  max-width: 560px;
  margin-bottom: 4rem;
}

.honest__manifesto p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.honest__manifesto p strong {
  color: var(--text);
  font-weight: 500;
}

.honest__manifesto p em {
  color: var(--accent-rust);
  font-style: normal;
}

.honest__manifesto a {
  color: var(--accent-emerald);
  font-weight: 500;
}

.honest__manifesto a:hover {
  color: var(--accent-emerald-dim);
}


/* ============================================================
   4b. PRICING
   ============================================================ */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing__card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.pricing__card:hover {
  border-color: #3a3a3a;
  background: var(--bg-elevated);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* FREE tier — the ironic one: gets the full psychedelic gradient treatment */
.pricing__card--highlight {
  /* Gradient border — three-stop spectrum top stripe */
  border: 1px solid transparent;
  border-top: 3px solid transparent;
  background-image:
    linear-gradient(var(--bg-surface), var(--bg-surface)),
    var(--grad-h);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-image: var(--grad-h) 1;
  position: relative;
}

.pricing__card--highlight:hover {
  background-image:
    linear-gradient(var(--bg-elevated), var(--bg-elevated)),
    var(--grad-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-psyche);
}

.pricing__tier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Gradient text on the highlighted card's tier label */
.pricing__card--highlight .pricing__tier {
  background: var(--grad-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent-emerald); /* fallback */
}

.pricing__soon {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-rust);
  border: 1px solid var(--accent-rust-dim);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.pricing__card--highlight .pricing__soon {
  background: var(--grad-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-color: var(--accent-emerald-dim);
}

.pricing__price {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  line-height: 1.1;
}

.pricing__once {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-rust);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  min-height: 1rem;
}

.pricing__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 2rem;
}

.pricing__btn {
  display: inline-block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.pricing__btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pricing__btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.pricing__btn--solid {
  background: var(--accent-rust);
  color: #fff;
  border: 1px solid var(--accent-rust);
}

.pricing__btn--solid:hover {
  background: var(--accent-rust-dim);
  border-color: var(--accent-rust-dim);
  box-shadow: var(--shadow-rust);
  transform: translateY(-1px);
  color: #fff;
}

/* The "Buy" button inside the gradient card gets the full gradient */
.pricing__card--highlight .pricing__btn--solid {
  background: var(--grad-linear);
  border: 1px solid transparent;
  color: #fff;
}

.pricing__card--highlight .pricing__btn--solid:hover {
  background: var(--grad-linear-rev);
  box-shadow: var(--shadow-psyche);
  transform: translateY(-1px);
  color: #fff;
}

/* Disabled state — greyed out, ready to re-enable */
.pricing__btn--disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
  filter: grayscale(1);
}

.pricing__footnote {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}


/* ============================================================
   5. FEATURES
   ============================================================ */
.features__list {
  list-style: none;
  max-width: 480px;
}

.features__list li {
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

.features__list li:hover {
  color: #fff;
  padding-left: 0.5rem;
}

/* Gradient em-dash marker */
.features__list li::before {
  content: '\2014\00a0'; /* em dash + nbsp */
  font-family: var(--font-mono);
  /* Fake gradient on pseudo-element via background-clip */
  background: var(--grad-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--text-muted); /* fallback */
}

.features__list li:last-child {
  border-bottom: none;
}


/* ============================================================
   6. ENGINE
   ============================================================ */
.engine__text {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.engine__text strong {
  color: var(--text);
  font-weight: 600;
}

.engine__punchline {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  margin-top: 1.5rem;
  letter-spacing: -0.01em;
}

.engine__punchline .engine__open {
  color: var(--accent-emerald);
}

/* "Planner123" in the engine punchline gets the gradient */
.engine__punchline .engine__product {
  background: var(--grad-linear);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--accent-rust); /* fallback */
}

.engine__punchline .engine__freedom {
  color: var(--accent-rust);
}

/* ============================================================
   7. FOOTER
   ============================================================ */
.footer {
  padding: 3rem 0;
  position: relative;
}

/* Gradient line at footer top */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-h);
}

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

.footer__links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}


/* ============================================================
   SUPREMATIST GEOMETRY — background composition elements
   Malevich / El Lissitzky floating primitives.
   All shapes: position absolute, pointer-events none, low opacity.
   ============================================================ */

/* Every section with shapes needs positioning context */
.perf,
.simple,
.screens,
.pricing,
.engine {
  position: relative;
  overflow: hidden;
}

/* ── Perf: tilted rust square (top-right) ── */
.perf::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  top: -40px;
  right: -30px;
  background: var(--accent-rust);
  opacity: 0.08;
  transform: rotate(35deg);
  pointer-events: none;
  z-index: 0;
}

/* ── Perf: small emerald circle (bottom-left) ── */
.perf::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  bottom: 30px;
  left: 5%;
  border-radius: 50%;
  background: var(--accent-emerald);
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* ── Simple: thin diagonal line ── */
.simple::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 1px;
  top: 35%;
  left: -50%;
  background: var(--accent-rust);
  opacity: 0.12;
  transform: rotate(-12deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 0;
}

/* ── Simple: small tilted rectangle ── */
.simple::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 40px;
  bottom: 15%;
  right: 3%;
  border: 1px solid var(--accent-emerald);
  opacity: 0.12;
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 0;
}

/* ── Screens: large emerald ring (right) ── */
.screens::before {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  top: 50%;
  right: -80px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid var(--accent-emerald);
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* ── Screens: tiny rust square ── */
.screens::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  top: 20%;
  left: 8%;
  background: var(--accent-rust);
  opacity: 0.12;
  transform: rotate(15deg);
  pointer-events: none;
  z-index: 0;
}

/* ── Pricing: large tilted ghost rectangle ── */
.pricing::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 160px;
  top: 10%;
  left: -60px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: rotate(6deg);
  pointer-events: none;
  z-index: 0;
}

/* ── Pricing: small filled rust square ── */
.pricing::after {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  bottom: 12%;
  right: 10%;
  background: var(--accent-rust);
  opacity: 0.08;
  transform: rotate(-20deg);
  pointer-events: none;
  z-index: 0;
}

/* ── Engine: diagonal cross ── */
.engine::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 1px;
  top: 40%;
  right: 5%;
  background: var(--accent-emerald);
  opacity: 0.12;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 0;
}

.engine::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 1px;
  top: 40%;
  right: 5%;
  background: var(--accent-emerald);
  opacity: 0.12;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .perf__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Highlight card spans full width on 2-col */
  .pricing__card--highlight {
    grid-column: 1 / -1;
    max-width: 400px;
    justify-self: center;
  }
}

/* Mobile */
@media (max-width: 640px) {
  section {
    padding: 5rem 0;
  }

  .wrapper {
    padding: 0 1.25rem;
  }

  .hero {
    min-height: 85vh;
    padding: 3rem 1.25rem;
  }

  .perf__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .perf__stat {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  .perf__stat:last-child {
    border-bottom: none;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .pricing__card--highlight {
    max-width: none;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  /* Hide suprematist shapes on small screens */
  .perf::before, .perf::after,
  .simple::before, .simple::after,
  .screens::before, .screens::after,
  .pricing::before, .pricing::after,
  .engine::before, .engine::after {
    display: none;
  }
}
