/* CustomGrowthOS — free-download homepage + popup
   Self-hosted assets only. Brand tokens match the workshop page. */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --ink: #07080a;
  --ink-2: #17181c;
  --ink-3: #2a2c33;
  --paper: #ffffff;
  --paper-2: #f1f1f1;
  --cream: #fbf8f1;
  --body: #3d4048;
  --muted: #5c636e;
  --faint: #8f95a0;
  --blue: #0b6cf0;
  --blue-hi: #48a6ff;
  --sky: #7cc2ff;
  --violet: #a855f7;
  --display: "Poppins", "Inter Tight", -apple-system, sans-serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1160px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; }
a { color: var(--blue); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- buttons ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  color: #fff; background: linear-gradient(96deg, var(--blue) 0%, var(--blue-hi) 100%);
  border: 0; cursor: pointer; text-decoration: none;
  padding: 17px 30px; border-radius: 12px;
  box-shadow: 0 14px 30px -12px rgba(11, 108, 240, .65);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.04); }
.cta:active { transform: translateY(0); }
.cta--wide { width: 100%; max-width: 460px; font-size: 18px; }
.cta--light { background: #fff; color: var(--ink); box-shadow: 0 14px 34px -14px rgba(0,0,0,.55); }
.cta--sm { padding: 13px 22px; font-size: 15px; }
.cta--block { width: 100%; }
.cta-note { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.cta-note--light { color: var(--faint); }

/* ---------- topbar ---------- */
.topbar { background: var(--ink); color: #c3c7d0; font-size: 14px; }
.topbar-in { max-width: var(--wrap); margin: 0 auto; padding: 10px 24px; }
.tb-live { display: flex; align-items: center; gap: 9px; }
.tb-live b { color: #fff; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(61,220,138,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,138,.55); } 70% { box-shadow: 0 0 0 8px rgba(61,220,138,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,138,0); } }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--ink); color: #fff; text-align: center;
  padding: clamp(52px, 7vw, 88px) 24px clamp(34px, 4vw, 56px); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(72,166,255,.28) 0%, rgba(72,166,255,0) 60%),
    radial-gradient(50% 50% at 90% 10%, rgba(168,85,247,.22) 0%, rgba(168,85,247,0) 60%),
    var(--ink);
}
.hero > * { position: relative; z-index: 1; }
.hero-pill {
  display: inline-block; font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--sky); background: rgba(72,166,255,.1); border: 1px solid rgba(72,166,255,.28);
  padding: 7px 15px; border-radius: 100px; margin: 0 0 24px;
}
.hero h1 {
  color: #fff; font-size: clamp(38px, 6.4vw, 74px); line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance; margin: 0 auto; max-width: 1000px;
}
.hero h1 .accent {
  background: linear-gradient(96deg, #8fd0ff 0%, var(--blue-hi) 38%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { max-width: 720px; margin: 22px auto 0; color: #c3c7d0; font-size: clamp(16px, 1.7vw, 20px); }
.hero-sub--body { font-size: 16.5px; color: #9aa1ae; max-width: 640px; }
.hero-sub b, .hero-sub strong { color: #fff; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 32px 0 0; }
.hero-see { color: #9fd3ff; font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(159,211,255,.35); padding-bottom: 2px; }
.hero-see:hover { color: #fff; border-color: #fff; }
.hero-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin: 34px auto 0;
  color: #b9c2cf; font-size: 14.5px; max-width: 820px;
}
.hero-trust b { color: #fff; font-weight: 700; font-size: 16px; }
.hero-stack { max-width: 1060px; margin: 44px auto 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.hero-stack img { width: 100%; }

/* ---------- sections ---------- */
.sec { padding: clamp(56px, 7vw, 96px) 24px; }
.sec--paper { background: var(--paper); }
.sec--dark { background: var(--ink); color: #c3c7d0; }
.sec--grey { background: var(--paper-2); }
.sec--cream { background: var(--cream); }
.sec--story { background: var(--paper); }
.sec--story .col--story { max-width: 760px; }
.col { max-width: var(--wrap); margin: 0 auto; }
.col--narrow { max-width: 760px; }
.col--story { max-width: 760px; }

.kicker {
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 18px;
}
.kicker--light { color: var(--sky); }
.h-lg { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 22px; }
.h-xl { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px; }
.h-lg .accent { color: var(--blue); }
.on-dark { color: #c3c7d0; }
.on-dark h3 { color: #fff; }
.sec--dark h2 { color: #fff; }
.sec--dark .h-lg, .sec--dark .h-xl { color: #fff; }
.lede { font-size: 19px; color: var(--ink); margin: 0 0 30px; }
.sec--dark .lede { color: #c3c7d0; }
.first { margin-top: 0; }
p { margin: 0 0 18px; }
p strong, p b { color: var(--ink); }
.sec--dark p strong, .sec--dark p b { color: #fff; }
.col > .cta, .col--narrow > .cta, .col--story > .cta { margin-top: 12px; }

/* ---------- os list ---------- */
.os-list { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 14px; }
.os-list li { display: flex; gap: 18px; align-items: flex-start; }
.os-n {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; font-family: var(--display); font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-hi)); font-size: 16px;
}
.os-list h3 { color: #fff; font-size: 19px; margin-bottom: 3px; }
.os-list p { color: #aeb4bf; margin: 0; font-size: 16px; }
.sec-fig { margin: 34px 0 30px; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
.sec-fig img { width: 100%; }

/* ---------- inside grid ---------- */
.inside-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 30px 0 26px; }
.inside { background: var(--paper); border: 1px solid #e7e8eb; border-radius: var(--radius); padding: 22px; }
.inside h3 { font-size: 17px; margin-bottom: 8px; }
.inside p { font-size: 15px; color: var(--body); margin: 0; }
.inside-note { font-size: 16px; color: var(--ink); background: var(--cream); border: 1px solid #ece7d8;
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 26px; }

/* ---------- screen tour ---------- */
.sec--tour { background: var(--paper-2); }
.tour { display: grid; gap: 14px; margin: 28px 0 28px; }
.tour-item {
  background: #fff; border: 1px solid #e7e8eb; border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 24px 26px;
}
.tour-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.tour-n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 13px; color: #fff;
  background: var(--ink);
}
.tour-head h3 { font-size: 22px; letter-spacing: -0.02em; }
.tour-tag {
  font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--blue);
  background: rgba(11,108,240,.08); border: 1px solid rgba(11,108,240,.22);
  padding: 5px 12px; border-radius: 100px;
}
.tour-item p { margin: 0 0 12px; font-size: 16px; }
.tour-benefit {
  background: var(--cream); border: 1px solid #ece7d8; border-radius: 10px;
  padding: 12px 16px; font-size: 15px; margin: 0 !important;
}
.tour-benefit b { color: var(--green); }


/* ---------- fail list ---------- */
.fail-list { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 16px; }
.fail-list li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid #e7e8eb;
  border-radius: var(--radius); padding: 22px; }
.fail-n { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: var(--blue); background: rgba(11,108,240,.1); font-size: 17px; }
.fail-list h3 { font-size: 18px; margin-bottom: 6px; }
.fail-list p { margin: 0; font-size: 15.5px; }
.fail-close { font-size: 19px; margin: 6px 0 4px; }
.fail-close--b { margin-bottom: 22px; }

/* ---------- brief / proof ---------- */
.brief-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 30px 0 20px; }
.brief { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 22px; }
.brief h3 { color: var(--sky); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.brief-res { color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.brief p { color: #aeb4bf; font-size: 14.5px; margin: 0; }
.disclaimer { font-size: 13px; color: var(--faint); margin: 0 0 24px; }

/* ---------- why list ---------- */
.why-list { margin: 8px 0 22px; padding: 0; list-style: none; display: grid; gap: 16px; }
.why-list li { background: var(--cream); border: 1px solid #ece7d8; border-radius: var(--radius); padding: 20px 22px; }
.why-list li strong { color: var(--ink); }

/* ---------- story / advertorial ---------- */
.story-eyebrow { font-family: var(--display); font-weight: 800; letter-spacing: .14em; color: var(--blue);
  font-size: 13px; margin: 0 0 16px; }
.h-sub { font-size: clamp(22px, 3vw, 30px); line-height: 1.15; margin: 44px 0 16px; }
.sec--story p { color: #2c2f36; }
.sec--story .cta { margin: 26px 0 8px; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 30px 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-n { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: #fff; background: var(--ink); font-size: 19px; }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { margin: 0; font-size: 16px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; margin-top: 26px; }
.faq details { border: 1px solid #e7e8eb; border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 20px; font-family: var(--display); font-weight: 600; color: var(--ink);
  font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); font-weight: 600; }
.faq details[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 20px 20px; }
.faq-a p { font-size: 15.5px; margin: 0; }

/* ---------- close ---------- */
.close { text-align: center; }
.close .col--narrow { display: flex; flex-direction: column; align-items: center; }
.close p.on-dark { max-width: 640px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #8f95a0; padding: 46px 24px 34px; }
.footer-in { max-width: var(--wrap); margin: 0 auto; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
  padding-bottom: 24px; border-bottom: 1px solid var(--ink-3); margin-bottom: 22px; }
.footer-brand { color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; text-decoration: none; }
.footer-brand span { display: block; font-family: var(--sans); font-weight: 400; font-size: 12.5px; color: #6f7683; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14.5px; }
.footer-links a { color: #c3c7d0; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal { font-size: 12.5px; line-height: 1.6; color: #6f7683; max-width: 900px; margin-bottom: 16px; }
.footer-legal a { color: #8f95a0; }
.footer-copy { font-size: 13px; color: #5c636e; margin: 0; }

/* ---------- sticky download bar ---------- */
.dlbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink);
  box-shadow: 0 -12px 40px rgba(0,0,0,.4); transform: translateY(0); }
.dlbar-in { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; }
.dlbar-t { color: #fff; margin: 0; font-size: 15px; display: flex; flex-direction: column; }
.dlbar-t b { font-family: var(--display); font-weight: 700; }
.dlbar-s { color: #8f95a0; font-size: 12.5px; }
.dlbar-cta { flex: 0 0 auto; }
body.popup-open .dlbar { z-index: 40; }

/* ---------- popup (Typeform-style) ---------- */
.popup { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.popup[hidden] { display: none; }
.popup-backdrop { position: absolute; inset: 0; background: rgba(5,6,8,.72); backdrop-filter: blur(4px); }
.popup-panel {
  position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 20px;
  padding: 34px 32px 30px; box-shadow: 0 60px 140px -30px rgba(0,0,0,.6); max-height: 92vh; overflow: auto;
  animation: pop .18s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.popup-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: #f1f1f1; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.popup-x:hover { background: #e6e6e6; }
.popup-progress { height: 4px; background: #eef0f3; border-radius: 4px; margin-bottom: 22px; overflow: hidden; }
.popup-progress-fill { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, var(--blue), var(--blue-hi));
  border-radius: 4px; transition: width .25s ease; }
.popup-eyebrow { font-family: var(--display); font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: 12px; color: var(--blue); margin: 0 0 10px; }
.popup-title { font-size: clamp(26px, 5vw, 32px); line-height: 1.1; margin-bottom: 12px; }
.popup-sub { color: var(--muted); font-size: 15.5px; margin: 0 0 22px; }
.popup-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field span { font-family: var(--display); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.field input {
  font-family: var(--sans); font-size: 16px; color: var(--ink); padding: 13px 15px;
  border: 1px solid #d7d9de; border-radius: 10px; background: #fff; width: 100%;
}
.field input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.popup-fine { font-size: 12.5px; color: var(--faint); text-align: center; margin: 2px 0 0; }
.popup-choice { display: grid; gap: 9px; }
.choice {
  font-family: var(--sans); font-size: 15.5px; color: var(--ink); text-align: left; padding: 14px 16px;
  background: #fff; border: 1px solid #d7d9de; border-radius: 10px; cursor: pointer; transition: all .12s ease;
}
.choice:hover { border-color: var(--blue); }
.choice.is-selected { border-color: var(--blue); background: rgba(11,108,240,.06); box-shadow: 0 0 0 1px var(--blue); font-weight: 600; }
.popup-skip { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 14px;
  cursor: pointer; padding: 6px; }
.popup-next { display: inline-block; text-align: center; color: var(--blue); margin-top: 14px; font-weight: 600; text-decoration: none; }
.popup-status { font-size: 13.5px; color: var(--red); min-height: 0; margin-top: 12px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .dlbar-in { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
  .dlbar-t { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .hero-trust { gap: 10px 18px; }
  .popup-panel { padding: 28px 22px 24px; }
}
