/* ============================================
   FileFort
   ============================================ */

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

:root {
  /* Palette — cool neutrals */
  --bg:             oklch(0.985 0.003 240);
  --bg-elevated:    oklch(0.995 0.002 240);
  --surface:        #ffffff;
  --border:         oklch(0.915 0.008 240);
  --border-soft:    oklch(0.945 0.006 240);

  --ink:            oklch(0.24 0.018 255);
  --ink-soft:       oklch(0.44 0.018 250);
  --ink-mute:       oklch(0.60 0.014 245);
  --ink-faint:      oklch(0.74 0.010 240);

  /* Accent — rose */
  --accent:         #EF2328;
  --accent-soft:    oklch(0.95 0.035 15);
  --accent-deep:    #D73C40;

  /* Geometry */
  --width:          920px;
  --r-sm:           10px;
  --r-md:           16px;
  --r-lg:           22px;
  --r-xl:           28px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg:             oklch(0.19 0.014 250);
  --bg-elevated:    oklch(0.23 0.016 250);
  --surface:        oklch(0.25 0.016 250);
  --border:         oklch(0.31 0.014 250);
  --border-soft:    oklch(0.27 0.012 250);

  --ink:            oklch(0.96 0.006 240);
  --ink-soft:       oklch(0.80 0.012 245);
  --ink-mute:       oklch(0.64 0.014 245);
  --ink-faint:      oklch(0.48 0.012 245);

  --accent-soft:    oklch(0.35 0.08 15);
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────────── */
html {
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }

::selection {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

/* ── Container ─────────────────────────────────── */
.container {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ── Nav ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border-soft); }

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

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav-logo-mark {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--ink); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.005em;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: color-mix(in oklch, var(--ink) 88%, var(--accent));
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 20px color-mix(in oklch, var(--accent) 28%, transparent);
}
.btn-accent:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: color-mix(in oklch, var(--border) 60%, var(--ink-mute));
}

.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  padding: 50px 0 50px;
  text-align: center;
}

.hero-icon {
  width: 180px;
  margin: 0 auto 0;
  display: block;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch;
  margin: -16px auto 48px;
}

.hero h2 {
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 22ch;
  margin: 0 auto 16px;
  color: var(--ink);
}

.hero h2 em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 auto 36px;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--ink-mute);
  letter-spacing: -0.005em;
}
.hero-note .dot { color: var(--ink-faint); margin: 0 6px; }

/* ── Hero preview (product shot placeholder) ──── */
.hero-preview {
  margin: 56px auto 0;
  max-width: 1080px;
  padding: 0 32px;
}
.hero-preview-img {
  display: block;
  width: 100%;
}
.hero-preview-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 30px 60px -20px rgba(30, 20, 10, 0.18),
    0 10px 30px -15px rgba(30, 20, 10, 0.10);
  overflow: hidden;
}
.hero-preview-frame::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 12px,
      oklch(0.93 0.01 245) 12px 13px
    );
  opacity: .6;
}
.hero-preview-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.hero-preview-chrome {
  position: absolute;
  top: 14px; left: 18px;
  display: flex; gap: 6px;
}
.hero-preview-chrome span {
  width: 11px; height: 11px; border-radius: 50%;
  background: oklch(0.86 0.01 250);
}

/* ── Section scaffold ─────────────────────────── */
.section {
  padding: 100px 0;
}
.section--tight { padding: 80px 0; }

.section-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  text-align: center;
}
.section-title {
  
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 22ch;
  margin: 0 auto 16px;
  color: var(--ink);
}
.section-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 56px;
}

.section-divider {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 32px;
}
.section-divider::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--border);
}

/* ── Value props (two cards) ──────────────────── */
.pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pitch-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  position: relative;
}
.pitch-card-glyph {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-grid;
  place-items: center;
  margin-bottom: 20px;
}
.pitch-card-glyph svg { width: 18px; height: 18px; }

.pitch-card h3 {
  
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}
.pitch-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}

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

/* ── Use cases ────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 28px;
  counter-increment: step;
  position: relative;
}
.step-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: color-mix(in oklch, var(--ink-faint) 18%, transparent);
  padding: 4px 9px;
  border-radius: 999px;
}
.step-num {
  display: inline-flex;
  
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h4 {
  
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.step p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Feature rows ─────────────────────────────── */
.features { display: flex; flex-direction: column; gap: 16px; }

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 64px 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
}
.feature-row--reverse { grid-template-columns: 1fr 1.05fr; }
.feature-row--reverse .feature-text { order: 2; }
.feature-row--reverse .feature-art { order: 1; }

.feature-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-text h3 {
  
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.feature-text p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 42ch;
}

/* Placeholder product art */
.feature-art {
  aspect-ratio: 4 / 3.2;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
}
.feature-art::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 10px,
      color-mix(in oklch, var(--border) 60%, transparent) 10px 11px
    );
  opacity: .7;
}
.feature-art::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 16px;
  text-align: center;
}

@media (max-width: 820px) {
  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 28px;
  }
  .feature-row--reverse .feature-text,
  .feature-row--reverse .feature-art { order: initial; }
}

/* ── Pricing ──────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;
}
.tier {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tier--paid {
  background: var(--surface);
  border-color: color-mix(in oklch, var(--accent) 35%, var(--border));
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 24px 48px -20px color-mix(in oklch, var(--accent) 24%, transparent),
    0 8px 20px -10px rgba(20, 24, 40, 0.10);
}
.tier--paid::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent-soft), transparent 70%);
  opacity: .55;
  pointer-events: none;
}
.tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.tier-name {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tier-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 9px;
  border-radius: 999px;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 4px;
}
.tier-price-amount {
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.tier-price-amount sup {
  font-size: 22px;
  vertical-align: top;
  margin-right: 2px;
  color: var(--ink-soft);
  top: 8px;
  position: relative;
  font-weight: 600;
}
.tier-price-suffix {
  font-size: 13px;
  color: var(--ink-mute);
}
.tier-tagline {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 22px;
  min-height: 42px;
}
.tier-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 0 0 20px;
}
.tier-featlabel {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.tier-list {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 0 0 24px;
  flex: 1;
}
.tier-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  align-items: flex-start;
}
.tier-check {
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-grid;
  place-items: center;
  margin-top: 2px;
}
.tier-check svg { width: 9px; height: 9px; }
.tier--free .tier-check {
  background: color-mix(in oklch, var(--ink-faint) 22%, transparent);
  color: var(--ink-mute);
}
.tier-cta { margin-top: auto; }

.tier--coming {
  grid-column: 1 / -1;
  background: transparent;
  border-style: dashed;
  border-color: var(--border);
  padding: 32px 36px;
}
.tier-coming-headline {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.tier-coming-intro {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.tier-coming-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.tier-coming-plan {
  min-width: 0;
}
.tier-coming-plan strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.tier-coming-plan p {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.5;
}

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .tier-coming-plans { grid-template-columns: 1fr; }
}

/* Legacy rule no-ops kept to avoid regressions */

/* ── FAQ ──────────────────────────────────────── */
.faq {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 24px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
}
.faq-chevron {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: transform .25s ease, background .2s ease, border-color .2s ease;
  color: var(--ink-mute);
}
.faq-chevron svg { width: 12px; height: 12px; transition: transform .25s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  padding: 0 4px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.faq-item.is-open .faq-a {
  max-height: 400px;
  padding: 0 4px 24px;
}

/* ── Final CTA ────────────────────────────────── */
.final-cta {
  text-align: center;
  padding: 100px 0 120px;
  position: relative;
}
.final-cta-title {
  
  font-weight: 800;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch;
  margin: 0 auto 18px;
}
.final-cta-title em { font-style: normal; color: var(--accent); }
.final-cta-sub {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  background: var(--bg-elevated);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  color: var(--ink-mute);
}
.footer-links a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  width: 100%;
  text-align: left;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

/* ── Release notes ────────────────────────────── */
.release-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.release-version {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.release-date {
  font-size: 13px;
  color: var(--ink-mute);
}
.release-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.release-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-left: 0;
}
.release-list li {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.release-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink-faint);
}

/* ── Focus ────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Tweaks panel ─────────────────────────────── */
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 30px 60px -20px rgba(30,20,10,.25), 0 10px 20px -10px rgba(30,20,10,.10);
  font-size: 13px;
  display: none;
}
.tweaks-panel.is-active { display: block; }
.tweaks-panel h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 12px;
  font-weight: 600;
}
.tweak-row { margin-bottom: 14px; }
.tweak-row:last-child { margin-bottom: 0; }
.tweak-row label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.tweak-swatches {
  display: flex;
  gap: 8px;
}
.tweak-swatch {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .15s ease;
}
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.is-active { border-color: var(--ink); }
.tweak-segmented {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.tweak-segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink-soft);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.tweak-segmented button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}