/* ----------------------------------------------------------------------
   Cullstack — landing page styles
   Palette pulled from the app icon: sunset orange, mountain purple,
   cull-checkmark green, on charcoal.
---------------------------------------------------------------------- */

:root {
  --bg:           #0f1419;
  --bg-surface:   #161c24;
  --bg-elevated:  #1f2832;
  --bg-card:      #232d39;
  --border:       #2d3640;
  --border-soft:  #232b35;

  --text:         #f3f4f6;
  --text-soft:    #b8bfc7;
  --text-muted:   #7a838f;

  --accent:       #f4a050;       /* sunset orange */
  --accent-hot:   #ff8c3a;
  --purple:       #8b5fbf;       /* mountain purple */
  --green:        #52c873;       /* cull approval */
  --green-soft:   rgba(82,200,115,0.15);

  --radius:       14px;
  --radius-sm:    8px;
  --shadow-lg:    0 20px 60px -20px rgba(0,0,0,0.6);
  --shadow-md:    0 8px 24px -8px rgba(0,0,0,0.4);

  --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI",
                  "Inter", "Helvetica Neue", Roboto, sans-serif;
  --font-mono:    "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hot); }

img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
}

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

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 500;
}

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

/* Buttons living inside .nav-links inherit .nav-links a's light-grey
   colour by specificity, which makes the white-ish text on the orange
   pill (Download Trial) hard to read. Restore the intended dark fill
   from .btn-primary explicitly so the contrast meets WCAG AA. Mirrors
   the same fix in the parent site's styles.css. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #1a1106;
}

.nav-parent {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  padding-left: 18px;
  border-left: 1px solid var(--border-soft);
}

.nav-parent:hover { color: var(--accent) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-sm  { padding: 8px 16px;  font-size: 14px; }
.btn-lg  { padding: 14px 28px; font-size: 16px; }

.btn-primary {
  background: var(--accent);
  color: #1a1106;
}
.btn-primary:hover {
  background: var(--accent-hot);
  color: #1a1106;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--text-soft);
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(ellipse at 75% 0%, rgba(244,160,80,0.12), transparent 60%),
    radial-gradient(ellipse at 0% 50%, rgba(139,95,191,0.08), transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hero-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* Hero screenshot mockup (CSS-only — replace with real screenshot later) */
.hero-screenshot {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.screenshot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-soft);
}

.screenshot-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.screenshot-bar span:nth-child(1) { background: #ff5f57; }
.screenshot-bar span:nth-child(2) { background: #febc2e; }
.screenshot-bar span:nth-child(3) { background: #28c840; }

.screenshot-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  height: calc(100% - 36px);
}

.screenshot-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-soft);
  padding: 12px 8px;
  font-size: 11px;
  overflow: hidden;
}

.sb-section {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 8px 4px;
  font-weight: 600;
}

.sb-item {
  padding: 5px 8px;
  color: var(--text-soft);
  border-radius: 4px;
  font-size: 11px;
}

.sb-item:hover { background: var(--bg-elevated); }

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  background: var(--bg);
}

.thumb {
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-soft);
}

.thumb-1 { background: linear-gradient(135deg, #f4a050, #d96e2c); }
.thumb-2 { background: linear-gradient(135deg, #8b5fbf, #4a2d6f); }
.thumb-3 { background: linear-gradient(135deg, #f4d96b, #d99c2e); border: 2px solid var(--green); }
.thumb-4 { background: linear-gradient(135deg, #2c4a6f, #1a2c44); }
.thumb-5 { background: linear-gradient(135deg, #c8745a, #8b4a32); }
.thumb-6 { background: linear-gradient(135deg, #6e3a8c, #3a2657); border: 2px solid var(--green); }
.thumb-7 { background: linear-gradient(135deg, #5a8c6e, #3a6a4a); }
.thumb-8 { background: linear-gradient(135deg, #d4a26b, #8b6a3e); }
.thumb-9 { background: linear-gradient(135deg, #4a3a6f, #2a1f44); }

/* ---------- Storage stack section ---------- */

.storage-stack {
  padding: 60px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  margin: 0 0 28px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 980px;
  margin: 0 auto 24px;
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-soft);
}

.stack-icon { font-size: 22px; }

.stack-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Sections ---------- */

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 48px;
  line-height: 1.15;
}

/* ---------- Features ---------- */

.features { padding: 80px 0; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}

.feature-row.reverse > .feature-text { order: 2; }
.feature-row.reverse > .feature-visual { order: 1; }

.feature-text h3 {
  font-size: 28px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.feature-text p {
  font-size: 17px;
  color: var(--text-soft);
  margin: 0;
  max-width: 540px;
}

.feature-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.feature-visual::after {
  content: "Screenshot";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-visual-storage {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(244,160,80,0.25), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(139,95,191,0.25), transparent 50%),
    var(--bg-surface);
}
.feature-visual-video {
  background:
    linear-gradient(135deg, rgba(82,200,115,0.15), transparent 50%),
    var(--bg-surface);
}
.feature-visual-stability {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(244,160,80,0.18), transparent 60%),
    var(--bg-surface);
}
.feature-visual-privacy {
  background:
    linear-gradient(135deg, rgba(139,95,191,0.2), rgba(82,200,115,0.1)),
    var(--bg-surface);
}
.feature-visual-platforms {
  background:
    linear-gradient(135deg, rgba(244,160,80,0.15), rgba(139,95,191,0.15)),
    var(--bg-surface);
}

/* ---------- Comparison table ---------- */

.compare {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  font-size: 15px;
}

.compare-table thead {
  background: var(--bg-card);
}

.compare-table th, .compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}

/* Per-app columns center-aligned so ✓ / — / Partial line up cleanly
   across the 7-column grid. First column (row label) stays left. */
.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
}

.compare-table th {
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

.compare-table .col-us {
  background: rgba(244,160,80,0.06);
  color: var(--text);
  font-weight: 600;
}

.compare-table th.col-us {
  color: var(--accent);
}

.compare-table .yes { color: var(--green); font-weight: 600; }
.compare-table .no { color: var(--text-muted); }
.compare-table .partial { color: var(--text-soft); font-size: 14px; }

.table-footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  max-width: 720px;
  margin: 24px auto 0;
}

/* ---------- Pricing ---------- */

.pricing { padding: 80px 0; }

.section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card-featured {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), var(--shadow-md);
}

.price-card-banner {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-blurb {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Early Access ---------- */

/* Pill next to the wordmark in the header. Small, accent-tinted, low
   weight — sets the framing before the visitor even scrolls without
   shouting it. */
.ea-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-left: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1.4;
}

/* Callout above the pricing grid. Two-line explanation of the EA
   situation in plain language. Card style mirrors the price-cards
   below so it reads as part of the section, not a separate banner. */
.ea-banner {
  max-width: 720px;
  margin: 14px auto 36px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
}
.ea-banner strong { color: var(--text); }

/* Small "Early Access" eyebrow shown next to the tier name. */
.price-card-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid var(--accent);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Strikethrough-old-price line under the headline number. */
.price-was {
  margin: 4px 0 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.price-was s { color: var(--text-soft); }

.price-footnote {
  text-align: center;
  max-width: 720px;
  margin: 32px auto 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Tier comparison table ---------- */

.tier-compare {
  margin: 80px auto 0;
  max-width: 1100px;
}

.tier-compare-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tier-table th,
.tier-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.tier-table th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tier-table th:not(:first-child),
.tier-table td:not(:first-child) {
  text-align: center;
  width: 14%;
}

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

.tier-table tr.tier-section td {
  background: var(--bg-surface);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.tier-table .yes {
  color: var(--green);
  font-weight: 600;
}

.tier-table .no {
  color: var(--text-muted);
  opacity: 0.5;
}

.tier-table .partial {
  color: #d4a017;
  font-weight: 500;
  font-size: 13px;
}

.price-card-head h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price-tag {
  margin: 0 0 24px;
}

.price-amount {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.price-suffix {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.price-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  /* Cards in the 3-up grid have variable feature-list lengths; flex:1
     here pushes the CTA row to the bottom so all three buttons align
     horizontally regardless of how many bullets each tier shows. */
  flex: 1;
}

.price-features li {
  padding-left: 28px;
  position: relative;
  color: var(--text-soft);
  font-size: 15px;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Download ---------- */

.download {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.download-lead {
  text-align: center;
  color: var(--text-soft);
  font-size: 17px;
  margin: -32px 0 40px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: var(--text);
  transition: border-color 0.15s, transform 0.06s;
}

.download-card:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.dl-icon { font-size: 40px; margin-bottom: 12px; }
.dl-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.dl-meta { color: var(--text-muted); font-size: 13px; }

.download-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 24px 0 0;
}

/* ---------- FAQ ---------- */

.faq { padding: 80px 0; }

.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
  cursor: pointer;
}

.faq-item summary {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding-right: 32px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  color: var(--text-soft);
  margin: 16px 0 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 60px 0 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-name { font-size: 18px; font-weight: 700; }
.footer-tagline { color: var(--text-muted); font-size: 13px; }

.footer-links h4 {
  margin: 0 0 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
  padding: 4px 0;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero h1 { font-size: 40px; }
  .section-title { font-size: 28px; margin-bottom: 32px; }
  .feature-text h3 { font-size: 22px; }

  .hero-grid,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row.reverse > .feature-text { order: 1; }
  .feature-row.reverse > .feature-visual { order: 2; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-toggle { display: block; }

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

  .price-card { padding: 28px 20px; }
  .price-amount { font-size: 44px; }

  /* Pricing cards stack on tablet — Pro highlighted card moves to top
     so it leads visually, Free settles at the bottom for "scan first,
     then narrow down" reading flow. */
  .price-grid { grid-template-columns: 1fr; max-width: 520px; gap: 28px; }
  .price-card-featured { order: -1; }

  /* Tier-comparison table: smaller text + tighter padding so the
     four-column grid still fits comfortably on iPad-class screens. */
  .tier-table { font-size: 13px; }
  .tier-table th,
  .tier-table td { padding: 10px 12px; }
}

@media (max-width: 540px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .price-card { padding: 24px 16px; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Tier table: at phone widths, the 4-col matrix is unreadable in
     landscape — let it scroll horizontally rather than crush. */
  .tier-compare .table-wrap { overflow-x: auto; }
  .tier-table { min-width: 540px; }
}
