/* PostFlow — Landing Page CSS — v2 (Linear/Resend/Stripe patterns) */

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

:root {
  --bg:        #07090f;
  --bg-1:      #0b0e18;
  --bg-card:   #0f1420;
  --border:    rgba(255,255,255,.07);
  --border-h:  rgba(255,255,255,.13);
  --accent:    #5c72f0;
  --accent-d:  #4a5edb;
  --accent-gl: rgba(92,114,240,.12);
  --text-1:    #eef0f8;
  --text-2:    #9aa3bf;
  --text-3:    #52596e;
  --success:   #22c55e;
  --amber:     #fab83c;
  --radius:    10px;
  --radius-lg: 16px;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }


/* ── Navbar ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 60px;
  background: rgba(7,9,15,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

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

.nav-link {
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: color .15s;
}
.nav-link:hover { color: var(--text-1); }

.btn-nav {
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  transition: background .15s;
}
.btn-nav:hover { background: var(--accent-d); }


/* ── Hero ── */

.hero {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 40px) 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  overflow: hidden;
}

/* Linear-style grid dots — CSS only */
.hero-grid-dots {
  position: absolute;
  inset: -40px;
  background-image:
    radial-gradient(circle, rgba(92,114,240,.18) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(92,114,240,.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Kicker — monospace label */
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--text-3);
}

.kicker-dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s infinite;
}
.kicker-text {}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 66px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -.05em;
  color: var(--text-1);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #a0b4ff 0%, #5c72f0 55%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(92,114,240,.3);
}
.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(92,114,240,.45);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--text-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.btn-ghost:hover {
  color: var(--text-1);
  border-color: var(--border-h);
}

.hero-fine {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
}
.fine-sep { opacity: .4; }
.fine-item {}

.hero-activity {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 6px 12px;
  width: fit-content;
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.18);
  border-radius: 20px;
}
.activity-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(34,197,94,.5);
  animation: pulse-ring 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.activity-text {
  font-size: 11.5px;
  color: rgba(34,197,94,.8);
  font-weight: 500;
  letter-spacing: .01em;
}


/* ── Hero — browser frame ── */

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 32px 80px rgba(0,0,0,.7),
    0 4px 16px rgba(92,114,240,.15);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--border);
}

.frame-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.frame-dot-r { background: #ff5f57; }
.frame-dot-y { background: #febc2e; }
.frame-dot-g { background: #28c840; }

.frame-url {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .02em;
}

.frame-body img {
  width: 100%;
  display: block;
}


/* ── Proof strip ── */

.proof-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.018);
  overflow: hidden;
}

.proof-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .03em;
}

.proof-num {
  color: var(--accent);
  font-weight: 700;
}

.proof-sep {
  opacity: .35;
}

.proof-item {}


/* ── Sections ── */

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 40px);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 14px;
  letter-spacing: .02em;
}

.mono {
  font-family: var(--font-mono);
  color: var(--accent);
}

.section-title {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--text-1);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.65;
}


/* ── Bento grid (features) ── */

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  margin-top: 48px;
}

/* Big card: tweet — spans 2 rows right */
.bento-main {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}

/* Small cards: left column */
.bento-small {
  grid-column: 1;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s;
  position: relative;
  overflow: hidden;
}
.bento-card:hover { border-color: var(--border-h); }

/* Thin top accent line on hover */
.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .25s;
}
.bento-card:hover::after { opacity: 1; }

.card-header {
  margin-bottom: 20px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: var(--accent-gl);
  border: 1px solid rgba(92,114,240,.2);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #8fa0f8;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.card-badge-new {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(250,185,60,.1);
  border-color: rgba(250,185,60,.25);
  color: var(--amber);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card-icon {
  font-size: 22px;
  line-height: 1;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-1);
}

.bento-small .card-icon {
  font-size: 20px;
  margin-bottom: 10px;
  display: block;
}

.bento-small .card-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-1);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

.card-visual {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.card-visual-main {
  margin-top: 24px;
  flex: 1;
}

.card-visual img { width: 100%; display: block; }


/* ── Steps (How it works) ── */

.section-steps {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-top: 48px;
}

.step-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  margin: 0 32px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-n {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .05em;
  padding-top: 3px;
  flex-shrink: 0;
}

.step-body {}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
  letter-spacing: -.02em;
}

.step-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}


/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
  align-items: start;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.plan-card.plan-pro {
  border-color: rgba(92,114,240,.3);
  background: linear-gradient(160deg, rgba(92,114,240,.07) 0%, var(--bg-card) 60%);
}

.plan-card.plan-founder {
  border-color: rgba(250,185,60,.15);
  background: linear-gradient(160deg, rgba(250,185,60,.04) 0%, var(--bg-card) 60%);
}

.plan-popular {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
}

.plan-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.plan-pro .plan-name  { color: var(--accent); }
.plan-founder .plan-name { color: var(--amber); }

.plan-price {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--text-1);
  line-height: 1;
  margin-bottom: 4px;
}
.plan-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0;
}

.plan-desc {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
  margin-top: 6px;
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.plan-features li .check {
  color: var(--success);
  font-size: 13px;
  line-height: 1.5;
  flex-shrink: 0;
}
.plan-features li .cross {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.5;
  flex-shrink: 0;
}
.plan-features li.feat-muted { color: var(--text-3); }

.plan-btn {
  display: block;
  width: 100%;
  padding: 11px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-2);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
}
.plan-btn:hover { border-color: var(--border-h); color: var(--text-1); }

.plan-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(92,114,240,.25);
}
.plan-btn-primary:hover {
  background: var(--accent-d);
  color: #fff;
  box-shadow: 0 6px 24px rgba(92,114,240,.4);
  transform: translateY(-1px);
}

.plan-btn-founder {
  background: rgba(250,185,60,.08);
  color: var(--amber);
  border-color: rgba(250,185,60,.2);
}
.plan-btn-founder:hover {
  background: rgba(250,185,60,.15);
  transform: translateY(-1px);
}


/* ── CTA Final ── */

.cta-final {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.cta-final-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 40px);
  text-align: center;
}

.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cta-final h2 {
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1.05;
  color: var(--text-1);
  margin-bottom: 32px;
}

.cta-final-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.cta-note {
  font-size: 12px;
  color: var(--text-3);
}


/* ── Footer ── */

.footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text-2); }

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}


/* ── Responsive ── */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }
  .hero-grid-dots {
    mask-image: radial-gradient(ellipse 80% 60% at 50% 100%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 100%, black 20%, transparent 100%);
  }
  .hero-glow { display: none; }
  .hero-sub      { margin-left: auto; margin-right: auto; }
  .hero-ctas     { justify-content: center; }
  .hero-fine     { justify-content: center; }
  .hero-activity { margin-left: auto; margin-right: auto; }
  .hero-visual   { max-width: 420px; margin: 0 auto; }

  .bento {
    grid-template-columns: 1fr;
  }
  .bento-main { grid-column: 1; grid-row: auto; }
  .bento-small { grid-column: 1; }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .step-divider { display: none; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .footer { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  .nav-link { display: none; }
  .proof-inner { justify-content: center; }
}
