/* ============================================================
   Easy PPL · Landing design system
   Shared chrome: tokens, base, nav, buttons, sections, footer
   ============================================================ */

:root {
  --deep:   #1a2a3d;
  --dusty:  #4a6b88;
  --mist:   #c5d3e0;
  --haze:   #e4ecf3;
  --paper:  #f6f9fc;
  --line:   #d9e1ea;
  --flare:  #e88a4a;
  --flare-deep: #c7713a;
  --ink:    #0f1a26;
  --success: #2f8a5a;
  --success-bg: #e0f1e7;

  --f-display: 'Space Grotesk', sans-serif;
  --f-body:    'Space Grotesk', sans-serif;
  --f-mono:    'Roboto Mono', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------------- Layout primitives ---------------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 56px; }
.mono-label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--dusty); text-transform: uppercase;
}
.sec-num {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--dusty); text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.sec-num::before { content:''; width: 24px; height: 1px; background: var(--dusty); opacity: 0.5; }
.lead { font-size: 17px; color: var(--dusty); max-width: 540px; line-height: 1.55; margin: 0; }

h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(56px, 8vw, 96px); line-height: 0.92; letter-spacing: -0.04em;
  margin: 0; color: var(--deep);
}
h1 .accent { color: var(--flare); }
h2 {
  font-family: var(--f-display); font-weight: 600;
  font-size: 56px; line-height: 1; letter-spacing: -0.035em;
  margin: 0; color: var(--deep);
}
h2 .accent { color: var(--flare); }
h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.015em; line-height: 1.2;
  margin: 0 0 10px; color: var(--deep);
}

/* ---------------- Top nav ---------------- */
.nav {
  position: sticky; top: 16px; z-index: 50;
  margin: 16px auto 0; max-width: 1280px;
  padding: 0 24px;
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 30px -12px rgba(20,40,60,0.18);
  border-radius: 14px;
  padding: 10px 14px;
}
.nav-inner.dark {
  background: rgba(14,22,34,0.55);
  border-color: rgba(255,255,255,0.12);
  color: white;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-mark {
  width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--deep);
}
.nav-inner.dark .nav-mark { color: white; }
.nav-mark svg { display: block; }
.nav-word {
  font-family: var(--f-display); font-weight: 600; font-size: 19px;
  letter-spacing: -0.022em; color: var(--deep); white-space: nowrap;
}
.nav-inner.dark .nav-word { color: white; }
.nav-div {
  width: 1px; height: 18px;
  background: rgba(26,42,61,0.18);
  display: inline-block;
}
.nav-inner.dark .nav-div { background: rgba(255,255,255,0.25); }
.nav-tag {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.22em;
  color: var(--dusty); text-transform: uppercase; white-space: nowrap;
}
.nav-inner.dark .nav-tag { color: rgba(255,255,255,0.75); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  font-size: 13px; padding: 8px 12px; border-radius: 999px;
  color: var(--deep);
}
.nav-inner.dark .nav-links a { color: rgba(255,255,255,0.85); }
.nav-links a:hover { background: rgba(26,42,61,0.06); }
.nav-inner.dark .nav-links a:hover { background: rgba(255,255,255,0.1); }
.nav-links a.on { background: rgba(26,42,61,0.06); font-weight: 600; }
.nav-inner.dark .nav-links a.on { background: rgba(255,255,255,0.12); color: white; }
.nav-cta {
  font-family: var(--f-display); font-weight: 500; font-size: 13px;
  background: var(--deep); color: white; padding: 9px 14px 9px 16px;
  border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
}
.nav-inner.dark .nav-cta { background: white; color: var(--deep); }
.nav-cta .arr { width: 18px; height: 18px; border-radius: 50%; background: var(--flare); display: grid; place-items: center; }
.nav-cta .arr svg { display: block; }

/* ---------------- Buttons ---------------- */
.btn {
  font-family: var(--f-display); font-weight: 500; font-size: 14px;
  padding: 14px 18px 14px 20px; border-radius: 12px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px; line-height: 1;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(.22,.61,.36,1), background 160ms;
}
.btn:hover { transform: translateY(-1px); }
.btn .arr {
  width: 22px; height: 22px; border-radius: 50%; background: var(--flare);
  display: grid; place-items: center;
}
.btn-primary { background: var(--deep); color: white; }
.btn-primary:hover { background: var(--ink); }
.btn-flare { background: var(--flare); color: white; }
.btn-flare:hover { background: var(--flare-deep); }
.btn-flare .arr { background: white; }
.btn-flare .arr svg { stroke: var(--flare); }
.btn-ghost { background: transparent; color: var(--deep); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--haze); border-color: var(--mist); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }
.btn-light { background: white; color: var(--deep); }
.btn-light:hover { background: var(--haze); }
.btn-sm { padding: 10px 14px; font-size: 13px; }
.btn-lg { padding: 16px 22px; font-size: 15px; }

/* ---------------- Section base ---------------- */
section.s { padding: 120px 0; border-top: 1px solid var(--line); }
section.s:first-of-type { border-top: 0; }
section.s.haze { background: var(--haze); }
.s-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.s-head h2 { margin-top: 14px; }
.s-head .right { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

/* ---------------- Page header (inner pages) ---------------- */
.pagehead {
  position: relative;
  margin: -76px 0 0;
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--haze) 0%, var(--mist) 100%);
  overflow: hidden;
}
.pagehead::before {
  content:''; position: absolute; left: -10%; top: 30%;
  width: 60%; height: 50%; background: white; opacity: 0.5; filter: blur(80px);
}
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead h1 {
  font-size: clamp(56px, 8vw, 104px);
  margin: 28px 0 0;
  text-wrap: balance;
}
.pagehead p.lead {
  margin-top: 22px; font-size: 18px; max-width: 620px;
}
.pagehead .ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* ---------------- Generic card ---------------- */
.card {
  background: white; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms cubic-bezier(.2,.8,.2,1), border-color 220ms;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(20,40,60,0.18); }
.card .ix, .card .subj {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--flare-deep); text-transform: uppercase;
}
.card h3 { font-size: 22px; letter-spacing: -0.02em; margin: 4px 0 0; }
.card p, .card .desc { color: var(--dusty); font-size: 14px; line-height: 1.55; margin: 0; flex: 1; }
.card .foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px;
}
.card .price, .card .price-tag {
  font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--deep); letter-spacing: -0.01em;
}
.card .meta {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--dusty); text-transform: uppercase;
}
.card .link {
  font-family: var(--f-display); font-weight: 500; font-size: 13px; color: var(--flare-deep);
}
.card .link:hover { color: var(--deep); }

/* ---------------- Grids ---------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------------- Final CTA band ---------------- */
.cta-final {
  position: relative;
  margin: 0; padding: 140px 0; overflow: hidden;
  background: linear-gradient(180deg, var(--haze) 0%, var(--mist) 100%);
  text-align: center;
}
.cta-final::before { content:''; position: absolute; inset: -10%; background: radial-gradient(ellipse at 50% 100%, rgba(232,138,74,0.18), transparent 60%); }
.cta-final h2 { position: relative; font-size: clamp(56px, 8vw, 112px); letter-spacing: -0.04em; line-height: 0.92; }
.cta-final p { position: relative; max-width: 540px; margin: 24px auto 0; color: var(--dusty); font-size: 17px; line-height: 1.55; }
.cta-final .ctas { position: relative; display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
footer.foot {
  background: var(--deep); color: var(--mist); padding: 64px 0 36px;
  font-size: 13px;
}
footer.foot .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer.foot .col h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--mist); text-transform: uppercase; margin: 0 0 18px; font-weight: 500; }
footer.foot .col a { display: block; color: rgba(255,255,255,0.85); padding: 6px 0; }
footer.foot .col a:hover { color: var(--flare); }
footer.foot .brand-col p { color: var(--mist); margin: 16px 0 0; max-width: 280px; }
footer.foot .legal {
  padding-top: 28px; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--mist); text-transform: uppercase;
  flex-wrap: wrap;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .wrap { padding: 0 28px; }
  .s-head { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  footer.foot .grid { grid-template-columns: 1fr 1fr; }
  section.s { padding: 80px 0; }
  .pagehead { padding: 130px 0 60px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  h2 { font-size: 40px; }
}
