/* ==========================================================================
   Porchivo — shared stylesheet for the 4-step marketing page series
   Brand spec (2026-09-19): navy #0a0f1e · surface #121b31 · border #1e2a45
   text #f4f7fd · muted #9aa7c4 · emerald #34d399/#10b981 · red #f87171
   amber #fbbf24 · info blue #38bdf8 · system font stack
   ========================================================================== */

:root{
  --bg:#0a0f1e;
  --bg-2:#0c1424;
  --card:#121b31;
  --card-border:#1e2a45;
  --text:#f4f7fd;
  --muted:#9aa7c4;
  --accent:#34d399;
  --accent-strong:#10b981;
  --accent-soft:rgba(52,211,153,.12);
  --amber:#fbbf24;
  --red:#f87171;
  --blue:#38bdf8;
  --radius:16px;

  /* Defaults — each page overrides its own accent via inline :root block */
  --grad-from:#38bdf8;
  --grad-to:var(--accent);
  --edge-1:rgba(52,211,153,.35);
  --edge-2:rgba(56,189,248,.25);
  --eyebrow-bg:rgba(52,211,153,.12);
  --eyebrow-border:rgba(52,211,153,.3);
  --eyebrow-color:var(--accent);
  --eyebrow-glow:var(--accent);
  --badge-bg:rgba(52,211,153,.12);
  --badge-border:rgba(52,211,153,.3);
  --badge-color:var(--accent);
  --hero-glow-1:rgba(56,189,248,.12);
  --hero-glow-2:rgba(52,211,153,.1);
  --hero-glow-x:50%;
  --card-hover-border:rgba(52,211,153,.45);
  --icon-bg:rgba(52,211,153,.12);
  --icon-border:rgba(52,211,153,.3);
  --icon-stroke:var(--accent);
  --stat-color:var(--accent);
  --cta-glow:rgba(52,211,153,.16);
  --line:rgba(30,42,69,.7);
  --nav-bg:rgba(10,15,30,.82);
  --sheen-1:rgba(30,42,69,.35);
  --sheen-2:rgba(18,27,49,0);
  --card-shadow:0 24px 60px rgba(0,0,0,.35);
  --factor-track:#1a2440;
}

/* Light theme — story pages follow the OS dark/light setting. Dark stays the
   default look; these overrides only apply when the system prefers light. */
@media (prefers-color-scheme: light){
  :root{
    --bg:#f2f5fa;
    --bg-2:#ffffff;
    --card:#ffffff;
    --card-border:#dce6f2;
    --text:#1a2b4a;
    --muted:#5a6b8c;
    --accent:#0ea371;
    --accent-strong:#0b8a5e;
    --accent-soft:rgba(14,163,113,.10);
    --amber:#d97706;
    --red:#e5484d;
    --blue:#0284c7;
    --grad-from:#0284c7;
    --line:rgba(26,43,74,.14);
    --nav-bg:rgba(245,247,250,.88);
    --sheen-1:rgba(58,123,213,.07);
    --sheen-2:rgba(58,123,213,0);
    --card-shadow:0 24px 60px rgba(26,43,74,.10);
    --factor-track:#e3eaf4;
  }
}

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

html{
  scroll-behavior:smooth;
  scroll-padding-top:84px;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  overflow-x:hidden;
}

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

::selection{background:rgba(52,211,153,.3);color:#fff;}

/* ---------- Layout ---------- */
.container{
  max-width:1120px;
  margin:0 auto;
  padding:0 22px;
}

section{padding:76px 0;position:relative;}

/* ---------- Nav ---------- */
nav{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--nav-bg);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:68px;
  gap:18px;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:1.15rem;
  letter-spacing:-.01em;
  color:var(--text);
  flex-shrink:0;
}

.logo-mark{
  width:34px;
  height:34px;
  border-radius:9px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.logo-mark img{width:100%;height:100%;object-fit:cover;}

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

.nav-links a{
  font-size:.88rem;
  font-weight:600;
  color:var(--muted);
  transition:color .18s ease;
  white-space:nowrap;
}

.nav-links a:hover{color:var(--text);}
.nav-links a.btn{color:var(--accent-strong);}
.nav-links a.btn:hover{color:#04121c;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 26px;
  border-radius:12px;
  font-weight:700;
  font-size:.95rem;
  line-height:1.2;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .15s ease,box-shadow .18s ease,filter .18s ease,border-color .18s ease,background .18s ease;
}

.btn:active{transform:scale(.97);}

.btn-primary{
  background:linear-gradient(135deg,#34d399,#10b981);
  color:#04121c;
  box-shadow:0 8px 28px var(--cta-glow),0 2px 8px rgba(16,185,129,.25);
}

.btn-primary:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
  box-shadow:0 12px 34px var(--cta-glow),0 4px 12px rgba(16,185,129,.3);
}

.btn-ghost{
  background:rgba(18,27,49,.6);
  border-color:var(--card-border);
  color:var(--text);
}

.btn-ghost:hover{border-color:#2a3a5f;background:rgba(24,35,63,.75);}

.nav-cta{
  padding:10px 18px;
  font-size:.88rem;
  border-radius:10px;
}

/* ---------- Hero ---------- */
.hero{
  padding:84px 0 64px;
  position:relative;
  overflow:hidden;
}

.hero::before,
.hero::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  filter:blur(10px);
}

.hero::before{
  width:640px;height:640px;
  left:var(--hero-glow-x);
  top:-280px;
  transform:translateX(-50%);
  background:radial-gradient(circle,var(--hero-glow-1),transparent 65%);
}

.hero::after{
  width:560px;height:560px;
  right:-180px;
  bottom:-260px;
  background:radial-gradient(circle,var(--hero-glow-2),transparent 65%);
}

.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
  position:relative;
  z-index:1;
}

.hero h1{
  font-size:clamp(2.1rem,4.6vw,3.1rem);
  font-weight:800;
  line-height:1.08;
  letter-spacing:-.02em;
  margin:18px 0 0;
}

.grad{
  background:linear-gradient(90deg,var(--grad-from),var(--grad-to));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 14px;
  border-radius:999px;
  background:var(--eyebrow-bg);
  border:1px solid var(--eyebrow-border);
  color:var(--eyebrow-color);
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.eyebrow .dot{
  width:7px;height:7px;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 10px var(--eyebrow-glow);
}

.hero-sub{
  font-size:1.05rem;
  color:var(--muted);
  line-height:1.7;
  margin:18px 0 26px;
  max-width:560px;
}

.hero-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.hero-proof{
  display:flex;
  flex-wrap:wrap;
  gap:12px 22px;
  margin-top:26px;
}

.proof-item{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:.84rem;
  font-weight:600;
  color:#c7d2e8;
}

.proof-item svg{flex-shrink:0;}

/* ---------- Hero card ---------- */
.hero-card{
  background:linear-gradient(180deg,var(--sheen-1),var(--sheen-2) 55%),var(--card);
  border:1px solid var(--card-border);
  border-radius:20px;
  padding:20px;
  position:relative;
  overflow:hidden;
  box-shadow:var(--card-shadow);
}

.hero-card::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:2px;
  background:linear-gradient(90deg,var(--edge-1),var(--edge-2));
  opacity:.85;
}

.hc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

.hc-title{
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#c7d2e8;
}

.hc-badge{
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.08em;
  padding:5px 10px;
  border-radius:999px;
  background:var(--badge-bg);
  border:1px solid var(--badge-border);
  color:var(--badge-color);
  white-space:nowrap;
}

.hero-shot{
  width:100%;
  height:180px;
  object-fit:cover;
  object-position:center;
  border-radius:12px;
  border:1px solid var(--card-border);
  margin-bottom:14px;
  background:#0b1120;
}

.hero-shot:not(.photo){
  height:210px;
  object-position:top;
}

/* ---------- Stats band ---------- */
.stats{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--bg-2);
  padding:34px 0;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
}

.stat-num{
  font-size:2.2rem;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--stat-color,var(--accent));
  line-height:1.1;
}

.stat-label{
  font-size:.85rem;
  color:var(--muted);
  line-height:1.55;
  margin-top:6px;
}

/* ---------- Section heads ---------- */
.section-head{
  max-width:660px;
  margin:0 auto 44px;
  text-align:center;
}

.section-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 13px;
  border-radius:999px;
  background:rgba(52,211,153,.1);
  border:1px solid rgba(52,211,153,.28);
  color:#34d399;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
}

h2{
  font-size:clamp(1.6rem,3vw,2.15rem);
  font-weight:800;
  letter-spacing:-.02em;
  line-height:1.15;
  margin-top:14px;
}

.section-sub{
  font-size:1rem;
  color:var(--muted);
  line-height:1.65;
  margin-top:12px;
}

/* ---------- Cards ---------- */
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:var(--radius);
  padding:26px;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.card:hover{
  border-color:var(--card-hover-border);
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(0,0,0,.28);
}

.card-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  background:var(--icon-bg);
  border:1px solid var(--icon-border);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--icon-stroke);
}

.card-icon svg{flex-shrink:0;}

.card h3{
  font-size:1.05rem;
  font-weight:700;
  margin:16px 0 8px;
}

.card p{
  font-size:.9rem;
  color:var(--muted);
  line-height:1.65;
}

/* ---------- Split (text + visual) ---------- */
.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:52px;
  align-items:center;
}

.split h2{margin-bottom:14px;}

.split p{
  font-size:.95rem;
  color:var(--muted);
  line-height:1.7;
  margin-bottom:12px;
}

.split p strong{color:var(--text);}

.split .section-tag{margin-bottom:16px;}

/* ---------- Checklist ---------- */
.checklist{
  list-style:none;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 28px;
  max-width:880px;
  margin:0 auto;
}

.checklist li{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.92rem;
  font-weight:500;
  color:#d7deee;
  line-height:1.5;
}

.ck{
  width:22px;
  height:22px;
  border-radius:7px;
  background:var(--accent-soft);
  border:1px solid rgba(52,211,153,.3);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

/* ---------- Final CTA ---------- */
.final-cta{
  padding:90px 0;
  text-align:center;
  border-top:1px solid var(--line);
  background:radial-gradient(620px 320px at 50% 38%,var(--cta-glow),transparent 70%);
}

.final-cta h2{
  max-width:640px;
  margin-left:auto;
  margin-right:auto;
}

.final-cta .section-sub{
  max-width:560px;
  margin-left:auto;
  margin-right:auto;
}

.final-cta .btn{margin-top:28px;}

.fineprint{
  margin-top:22px;
  font-size:.82rem;
  color:var(--muted);
}

.fineprint a{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px;
}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--line);
  padding:26px 0;
  background:var(--bg);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
}

.footer-inner p{
  font-size:.8rem;
  color:var(--muted);
}

/* ---------- Responsive ---------- */
@media(max-width:980px){
  .hero{padding:64px 0 52px;}
  .hero-grid{grid-template-columns:1fr;gap:40px;}
  .split{grid-template-columns:1fr;gap:36px;}
  .cards{grid-template-columns:1fr;}
}

@media(max-width:860px){
  .nav-links a:not(.nav-cta){display:none;}
}

@media(max-width:760px){
  section{padding:60px 0;}
  .stats-grid{grid-template-columns:1fr;gap:24px;}
  .checklist{grid-template-columns:1fr;}
  .hero h1{font-size:2rem;}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{
    animation:none!important;
    transition:none!important;
  }
}
