@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

/* ==========================================================================
   Reset — nothing is loaded before this file on lp-standalone templates.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg, video, iframe { display: block; max-width: 100%; }
img, svg, video { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
strong, b { font-weight: 600; }

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --brand:        #4A35F0;
  --brand-hover:  #3826C0;
  --brand-tint:   #EEEBFE;
  --green:        #16A34A;

  --ink:          #17103F;
  --text:         #4C4A63;
  --muted:        #6C6A85;
  --faint:        #8D8BA3;
  --nav:          #3D4761;
  --on-dark:      #CFC7F2;

  --line:         #EAE8F5;
  --line-soft:    #E8E5F6;
  --line-pill:    #DFDAF5;
  --line-btn:     #D8D3F0;

  --wash:         #F7F6FD;
  --wash-2:       #FAF9FF;
  --white:        #ffffff;

  --shadow-card:  0 1px 2px rgba(10, 22, 51, .04);
  --shadow-pill:  0 1px 2px rgba(10, 22, 51, .05);
  --shadow-cta:   0 6px 18px rgba(74, 53, 240, .28);
  --shadow-lift:  0 10px 40px rgba(23, 16, 63, .10);

  --gutter:       40px;
  --wrap:         1080px;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
  background: var(--white);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }

.wrap { max-width: var(--wrap); margin: 0 auto; }

/* ==========================================================================
   Header
   ========================================================================== */
.lp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.lp-brand img { height: 30px; width: auto; }
.lp-brand-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.lp-brand-name span { color: var(--muted); font-weight: 400; }

.lp-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--nav); }
.lp-nav a { color: var(--nav); }
.lp-nav a:hover { color: var(--ink); }
.lp-nav .is-current { color: var(--brand); font-weight: 500; }
.lp-nav .is-current:hover { color: var(--brand-hover); }
.lp-nav a.lp-signin {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--white);
  font-weight: 500;
}
.lp-nav a.lp-signin:hover { background: var(--brand-hover); color: var(--white); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 15px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--brand-hover); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-btn);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.btn-sm { padding: 13px 22px; font-size: 15px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Shared bits
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.tag {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--brand-tint);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
}
.check { color: var(--green); font-weight: 700; flex: none; }
.footnote { font-size: 13px; color: var(--faint); }

@keyframes prestonPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.8); }
}
@keyframes prestonRise { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.lp-footer {
  padding: 56px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  background: var(--wash-2);
}
.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.lp-footer-logo { display: inline-flex; }
.lp-footer-logo img { height: 44px; width: auto; }
.lp-footer-blurb {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.lp-footer h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.lp-footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.lp-footer-links a { color: var(--muted); }
.lp-footer-links a:hover { color: var(--brand); }
.lp-footer-links a.is-strong { color: var(--brand); font-weight: 600; }
.lp-footer-bottom {
  max-width: var(--wrap);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

/* ==========================================================================
   Shared section furniture
   ========================================================================== */
.section-title { margin: 14px 0 0; font-size: 40px; line-height: 1.1; }
.section-lede { margin: 10px 0 0; font-size: 18px; color: var(--muted); }

.card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.card-stack { display: flex; flex-direction: column; gap: 12px; }
.card-topline { border-color: var(--line-soft); border-top: 3px solid var(--brand); }

.mini-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 80px var(--gutter) 64px;
  background: linear-gradient(180deg, var(--wash) 0%, var(--white) 100%);
}
.hero h1 {
  max-width: 20ch;
  margin: 0;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 span { color: var(--brand); }
.hero-lede {
  max-width: 70ch;
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  text-wrap: pretty;
}
.hero-sub {
  max-width: 70ch;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-ctas { margin-top: 30px; }
.hero-ctas .btn { padding: 14px 24px; }

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--wash-2);
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { padding: 0 var(--gutter) 72px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-num { font-size: 38px; font-weight: 700; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.stat-note { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text); }
.stats-source { margin: 16px 0 0; }

/* ==========================================================================
   Argument + pull quote
   ========================================================================== */
.argument { padding: 0 var(--gutter) 80px; }
.argument-body {
  max-width: 80ch;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  text-wrap: pretty;
}
.pull-quote {
  max-width: 80ch;
  margin: 22px 0 0;
  padding: 6px 0 6px 20px;
  border-left: 3px solid var(--brand);
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
  color: var(--text);
}

/* ==========================================================================
   Cadence
   ========================================================================== */
.cadence {
  padding: 80px var(--gutter);
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cadence .section-title { font-size: 42px; }
.cadence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.cadence-grid .card { padding: 28px; }
.cadence-grid h3 { font-size: 21px; letter-spacing: -.02em; }
.cadence-grid p { font-size: 15px; line-height: 1.6; color: var(--text); text-wrap: pretty; }

/* ==========================================================================
   Numbered deliverables
   ========================================================================== */
.delivers { padding: 80px var(--gutter); }
.numbered-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 34px; }
.numbered-index {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--faint);
}
.numbered h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.numbered p { font-size: 15px; line-height: 1.55; color: var(--muted); }


/* ==========================================================================
   Product demo videos
   ========================================================================== */
.demos { padding: 0 var(--gutter) 80px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.demo-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.demo-frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-label {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: pretty;
}

/* ==========================================================================
   Activity feed
   ========================================================================== */
.feed-section { padding: 0 var(--gutter) 80px; }
.feed-lede { max-width: 70ch; line-height: 1.6; text-wrap: pretty; }
.feed {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.feed-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}
.feed-light { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.feed-light.is-red   { background: #ff5f57; }
.feed-light.is-amber { background: #febc2e; }
.feed-light.is-green { background: #28c840; }
.feed-title { margin-left: 8px; font-size: 13px; color: var(--faint); }
.feed-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
}
.feed-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: prestonPulse 1.6s ease-in-out infinite;
}
.feed-body { padding: 18px 22px 24px; font-size: 15px; }
.feed-row {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  opacity: 0;
  transform: translateY(6px);
  animation: prestonRise .5s ease forwards;
}
.feed-row-1 { animation-delay: .2s; }
.feed-row-2 { animation-delay: 1.4s; }
.feed-row-3 { animation-delay: 2.8s; }
.feed-row-4 { animation-delay: 4.4s; }
.feed-row-5 { animation-delay: 6s; }
.feed-row-6 { animation-delay: 7.4s; }
.feed-row-7 { animation-delay: 8.8s; }
.feed-time { min-width: 64px; font-size: 13px; color: var(--faint); padding-top: 2px; flex: none; }
.feed-text { color: var(--text); }
.feed-text strong { color: var(--ink); }
.feed-text.is-brand { color: var(--brand); }
.feed-disclaimer { margin: 16px 0 0; max-width: 60ch; }

@media (prefers-reduced-motion: reduce) {
  .feed-row { opacity: 1; transform: none; animation: none; }
  .feed-live-dot { animation: none; }
}

/* ==========================================================================
   Compounding loop
   ========================================================================== */
.loop {
  padding: 80px var(--gutter);
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.loop-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: start;
  margin-top: 26px;
}
.loop-body { font-size: 18px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.loop-list { display: flex; flex-direction: column; gap: 14px; }
.mini-card {
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--white);
}
.mini-card p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ==========================================================================
   Core difference
   ========================================================================== */
.difference { padding: 80px var(--gutter); }
.difference-lede { max-width: 75ch; line-height: 1.6; text-wrap: pretty; }
.difference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.wash-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash-2);
}
.wash-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--text); }

/* ==========================================================================
   Workflow steps
   ========================================================================== */
.workflow { padding: 0 var(--gutter) 80px; }
.workflow .section-title { margin: 0; }
.workflow-lede { max-width: 75ch; line-height: 1.6; text-wrap: pretty; }
.steps { display: flex; flex-direction: column; margin-top: 26px; }
.step { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-arrow { color: var(--brand); font-weight: 700; width: 20px; flex: none; }
.step h4 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.01em; }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   What makes Preston different
   ========================================================================== */
.different {
  padding: 80px var(--gutter);
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.different .section-title { margin: 0; }
.different-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.different-grid .card { padding: 24px; border-color: var(--line-soft); box-shadow: none; }
.different-grid h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.different-grid p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.kicker {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   Split — visibility + trust
   ========================================================================== */
.split { padding: 80px var(--gutter); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.split-title { font-size: 34px; }
.split-body { margin: 12px 0 0; font-size: 17px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.trust-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.trust { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--text); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing {
  padding: 80px var(--gutter);
  background: var(--wash);
  border-top: 1px solid var(--line);
}
.pricing-lede { max-width: 60ch; font-size: 17px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.plan {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--white);
}
.plan.is-featured {
  border-color: var(--brand);
  box-shadow: 0 10px 40px rgba(74, 53, 240, .10);
}
.plan-flag {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.plan-name { font-size: 14px; color: var(--muted); }
.plan-price { margin-top: 6px; font-size: 38px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--faint); }
.plan-price .plan-from {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.plan-body { margin: 16px 0 22px; font-size: 15px; line-height: 1.6; color: var(--text); }
.pricing-ctas { margin-top: 28px; }
.pricing-note { margin: 18px 0 0; font-size: 14px; color: var(--faint); }

/* ==========================================================================
   Closer
   ========================================================================== */
.closer {
  padding: 88px var(--gutter);
  text-align: center;
  background: var(--ink);
  color: var(--white);
}
.closer-inner { max-width: 760px; margin: 0 auto; }
.closer h2 { font-size: 40px; line-height: 1.12; text-wrap: balance; }
.closer p {
  margin: 16px auto 0;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-dark);
  text-wrap: pretty;
}
.closer-ctas { justify-content: center; margin-top: 30px; }
.closer-ctas .btn { padding: 14px 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --gutter: 28px; }
  .hero h1 { font-size: 52px; }
  .numbered-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .lp-header { padding: 14px 20px; }
  .lp-nav { gap: 18px; font-size: 13px; }
  .hero { padding: 60px var(--gutter) 52px; }
  .hero h1 { font-size: 42px; max-width: 24ch; }
  .hero-lede { font-size: 17px; }
  .section-title, .cadence .section-title { font-size: 32px; }
  .split-title { font-size: 28px; }
  .closer h2 { font-size: 32px; }
  .stats-grid,
  .cadence-grid,
  .difference-grid,
  .different-grid,
  .demo-grid { grid-template-columns: 1fr; }
  .loop-grid, .split-grid, .plan-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { padding: 0 var(--gutter) 56px; }
  .argument { padding: 0 var(--gutter) 56px; }
  .cadence, .delivers, .difference, .different, .split, .pricing, .loop { padding: 56px var(--gutter); }
  .workflow, .feed-section, .demos { padding: 0 var(--gutter) 56px; }
  .closer { padding: 64px var(--gutter); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .lp-header { flex-wrap: wrap; gap: 12px; }
  .lp-brand-name span { display: none; }
  .hero { padding: 44px var(--gutter) 40px; }
  .hero h1 { font-size: 32px; letter-spacing: -.025em; }
  .hero-lede { font-size: 16px; }
  .hero-sub { font-size: 15px; }
  .btn { padding: 14px 20px; font-size: 15px; }
  .hero-ctas .btn, .closer-ctas .btn { flex: 1 1 100%; }
  .section-title, .cadence .section-title { font-size: 26px; }
  .section-lede { font-size: 16px; }
  .argument-body, .loop-body { font-size: 16px; }
  .pull-quote { font-size: 16px; }
  .numbered-grid { grid-template-columns: 1fr; gap: 18px; }
  .feed-body { padding: 14px 16px 20px; font-size: 14px; }
  .feed-row { flex-direction: column; gap: 2px; padding: 10px 0; }
  .feed-title { display: none; }
  .card, .wash-card, .plan { padding: 22px 20px; }
  .cadence-grid .card { padding: 22px 20px; }
  .kicker { font-size: 19px; margin-top: 32px; }
  .split-title { font-size: 25px; }
  .closer h2 { font-size: 26px; }
  .closer p { font-size: 16px; }
  .lp-footer { padding: 44px var(--gutter) 28px; }
  .lp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
