/* Happy Sprout Workplaces — shared styles for every page.
   Colours and fonts live in the :root block below; change them there and every page follows. */

:root {
  --ink: #1C1724;
  --ink-2: #4F4958;
  --muted: #6E6878;
  --ground: #F5F4F2;
  --white: #FFFFFF;
  --line: #ECE8EF;
  --line-2: #E2DDE7;
  --purple: #4B2E83;
  --purple-dark: #2F1B57;
  --purple-soft: #EEE9F7;
  --purple-light: #C9B6F0;
  --orange: #F27A1A;
  --orange-text: #C25A00;
  --orange-soft: #FDEBDC;
  --night: #1C1724;
  --night-2: #2B2236;
  --night-line: #3D3348;
  --night-text: #CFC7DA;
  --night-label: #BDB3CC;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Figtree, 'Segoe UI', system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.serif { font-family: var(--serif); font-weight: 400; }
.accent { color: var(--purple); font-style: italic; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; }

/* ---------- Headings ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.h1 { font-size: clamp(48px, 7vw, 84px); line-height: 0.98; letter-spacing: -0.015em; }
.h1-sub { font-size: clamp(44px, 6.4vw, 80px); line-height: 0.98; }
.h2 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.02; }
.h2-s { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.02; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kicker { font-size: 15px; font-weight: 700; letter-spacing: 0.16em; color: var(--purple); text-transform: uppercase; }
.lead { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 540px; }

/* ---------- Buttons and pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { color: var(--white); background: #000; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { color: var(--ink); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { color: var(--ink); }
.btn-ghost { border-color: #D9D3DF; color: var(--ink); font-weight: 500; background: transparent; }
.btn-ghost:hover { color: var(--ink); }
.btn-ghost-dark { border-color: rgba(255,255,255,.35); color: var(--white); font-weight: 500; }
.btn-ghost-dark:hover { color: var(--white); }
.btn-link { padding: 15px 10px; color: var(--ink); font-weight: 500; text-decoration: none; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.pill { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line-2); font-size: 14px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 5px 12px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,244,242,.88); backdrop-filter: blur(10px); }
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--serif); font-size: 28px; line-height: 1; }
.nav { margin-left: auto; display: flex; gap: 2px; background: #ECE9EF; padding: 4px; border-radius: 999px; }
.nav a { padding: 8px 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.nav a[aria-current="page"] { background: var(--white); color: var(--ink); font-weight: 600; }
.header-cta { padding: 11px 22px; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer .wrap { padding-top: 8px; padding-bottom: 48px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; }
.site-footer .serif { font-size: 24px; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--purple); }

/* ---------- Sections ---------- */
.section { padding-top: 104px; padding-bottom: 104px; }
.section-tight { padding-top: 32px; padding-bottom: 104px; }
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--night); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 40px; }
.split { display: flex; gap: 64px; flex-wrap: wrap; }
.split > * { flex: 1 1 420px; min-width: 0; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card strong { font-size: 19px; }
.card .muted { font-size: 15px; }
.card-soft { background: #F7F5F9; border: 0; }
.card-purple { background: var(--purple-soft); border: 0; }
.card-orange { background: var(--orange-soft); border: 0; }
.card-dark { background: var(--night-2); border: 1px solid var(--night-line); color: var(--white); }
.card-dark .muted { color: var(--night-text); }
.big-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--purple); }

.lift { transition: transform .3s ease, box-shadow .3s ease; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(28,23,36,.35); }

/* ---------- Home: hero ---------- */
.hero { padding-top: 72px; padding-bottom: 80px; display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid #E6E2EA; font-size: 14px; color: var(--ink-2); }
.hero-side { flex: 1 1 460px; min-width: 0; display: flex; justify-content: flex-end; }

.finder-card { width: 100%; max-width: 440px; background: var(--white); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 40px 90px -40px rgba(28,23,36,.45); border: 1px solid var(--line); }
.finder-card .title { font-family: var(--serif); font-size: 36px; line-height: 1.05; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.35; }
.steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.steps strong { display: block; font-size: 16px; }
.steps span.s { font-size: 14px; color: var(--muted); }
.example { background: #F7F5F9; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.example .amt { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-link { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: 14px; }
.chip-link:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Home: marquee ---------- */
.marquee { border-top: 1px solid #E6E2EA; border-bottom: 1px solid #E6E2EA; background: var(--white); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 40px; width: max-content; font-family: var(--serif); font-size: 26px; color: var(--ink-2); white-space: nowrap; animation: marquee 40s linear infinite; }
.marquee-track .star { color: var(--orange); }

/* ---------- Home: solutions ---------- */
.sol-card { text-decoration: none; color: var(--ink); background: var(--white); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.sol-card:hover { color: var(--ink); }
.sol-card .code { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: var(--purple); }
.sol-card .name { font-family: var(--serif); font-size: 36px; line-height: 1.02; }
.sol-card .desc { color: var(--muted); font-size: 15px; }
.sol-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-2); }
.arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.sol-card.bespoke { background: var(--night-2); border: 1px solid #4A3F57; color: var(--white); }
.sol-card.bespoke:hover { color: var(--white); }
.sol-card.bespoke .code { color: #F9A35C; }
.sol-card.bespoke .desc, .sol-card.bespoke .foot { color: var(--night-text); }
.sol-card.bespoke .arrow { background: var(--white); color: var(--ink); }

/* ---------- Timeline (How it works / design process) ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: #D9D3DF; }
.timeline > div { position: relative; display: flex; flex-direction: column; gap: 12px; }
.timeline .n { width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 1px solid #D9D3DF; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.timeline > div:first-child .n { background: var(--ink); color: var(--white); border-color: var(--ink); }
.timeline strong { font-size: 20px; }
.timeline .muted { font-size: 15px; }

/* ---------- Testimonials, insights, about ---------- */
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.quote figcaption { display: flex; gap: 12px; align-items: center; margin-top: auto; font-size: 14px; line-height: 1.3; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #E7E2EC; flex: none; }
.insight { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; border-radius: 28px; }
.insight:hover { color: var(--ink); }
.insight .thumb { width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; object-fit: cover; }
.insight strong { font-size: 20px; }
.stats { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.stats .v { display: block; font-family: var(--serif); font-size: 48px; line-height: 1; }
.stats .l { color: var(--muted); font-size: 14px; }

/* ---------- Call-to-action panels ---------- */
.cta-panel { background: var(--night); color: var(--white); border-radius: 40px; padding: 72px 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-panel.center { flex-direction: column; text-align: center; padding: 88px 48px; }
.cta-panel .float-dot { position: absolute; border-radius: 50%; }

/* ---------- Programme pages ---------- */
.p-hero { padding-top: 56px; padding-bottom: 88px; display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.p-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.p-hero-media { flex: 1 1 440px; min-width: 0; position: relative; padding-left: 24px; }
.p-hero-media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 36px; }
.float-card { position: absolute; left: 0; bottom: 56px; background: var(--white); border-radius: 18px; padding: 16px 18px; box-shadow: 0 24px 50px -24px rgba(28,23,36,.35); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; max-width: 280px; }
.float-card .muted { font-size: 13px; }
.back { font-size: 14px; text-decoration: none; color: var(--muted); }
.fit { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.fit strong { font-size: 20px; }
.outcomes { list-style: none; margin: 0; padding: 0; }
.outcomes li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.outcomes li:last-child { border-bottom: 0; }
.outcomes .n { font-family: var(--serif); font-size: 26px; color: var(--purple); min-width: 36px; line-height: 1.2; }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.faq summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.letter { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--purple); }

/* ---------- Challenge Finder ---------- */
.finder-head .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; gap: 16px; }
.progress { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.progress i { width: 28px; height: 4px; border-radius: 2px; background: #D9D4DF; }
.progress i.on { background: var(--ink); }
.progress span { font-size: 14px; color: var(--muted); margin-left: 6px; }
.close { padding: 8px 16px; border-radius: 999px; border: 1px solid #DCD6E2; color: var(--ink); text-decoration: none; font-size: 14px; }
.finder-main { max-width: 1100px; margin: 0 auto; padding: 40px var(--gutter) 80px; display: flex; flex-direction: column; gap: 36px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 70px -40px rgba(28,23,36,.25); min-width: 0; }
.panels { display: flex; gap: 24px; flex-wrap: wrap; align-items: stretch; }
.panels > .wide { flex: 1 1 520px; }
.panels > .narrow { flex: 1 1 360px; }
.choice { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--white); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.choice:hover { border-color: var(--ink); }
.choice[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: #FAF9FB; color: var(--ink); width: 100%; }
.field textarea { border-radius: 16px; resize: vertical; }
.fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hint { font-size: 13px; color: var(--muted); }
.error { color: #B3261E; font-size: 14px; }
.cost-line { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.cost-line strong { white-space: nowrap; }
.big-cost { font-family: var(--serif); font-size: clamp(52px, 7vw, 72px); line-height: 1; }
.rec { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.rec-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rec-head strong { letter-spacing: 0.06em; color: var(--purple); }
.rec-head a { margin-left: auto; font-size: 14px; text-decoration: none; }
.badge { padding: 5px 12px; border-radius: 999px; background: var(--orange-soft); color: #A24F0B; font-size: 13px; font-weight: 600; }
.next-step { background: var(--purple-soft); border-radius: 22px; padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
[hidden] { display: none !important; }

/* ---------- Motion ---------- */
@keyframes up { from { opacity: .15; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.up { animation: up .9s cubic-bezier(.2,.7,.2,1) both; }
.up-2 { animation: up .9s .15s cubic-bezier(.2,.7,.2,1) both; }
.up-3 { animation: up .9s .3s cubic-bezier(.2,.7,.2,1) both; }
.float { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 7s 1.2s ease-in-out infinite; }
.pulse { animation: pulse 3s ease-in-out infinite; }
/* Only hidden once site.js is running, so content never stays invisible if scripts fail. */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .up, .up-2, .up-3, .float, .float-2, .pulse, .marquee-track { animation: none; }
  .lift, .btn { transition: none; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .g4, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline::before { display: none; }
  .hero-side { justify-content: flex-start; }
  .finder-card { max-width: 560px; }
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .header-cta { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 16px; right: 16px; background: var(--white); border-radius: 24px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(28,23,36,.35); }
  .nav.open a { padding: 12px 16px; font-size: 17px; }
  .nav.open .nav-cta { display: block; background: var(--ink); color: var(--white); text-align: center; font-weight: 600; margin-top: 6px; }
}
.nav .nav-cta { display: none; }

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section-tight { padding-bottom: 72px; }
  .g3, .g4, .g5, .timeline, .fields-2 { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 32px; padding-bottom: 56px; gap: 40px; }
  .hero-side { justify-content: stretch; }
  .finder-card { max-width: none; padding: 22px; }
  .split { gap: 28px; }
  .split > * { flex-basis: 100%; }
  .sol-card { min-height: 0; }
  .p-hero { padding-top: 24px; padding-bottom: 56px; }
  .p-hero-media { padding-left: 0; }
  .float-card { left: 12px; bottom: 16px; }
  .cta-panel, .cta-panel.center { padding: 48px 24px; border-radius: 28px; }
  .panel { padding: 22px; }
  .brand span { font-size: 24px; white-space: nowrap; }
  .finder-head .wrap { gap: 10px; }
  .progress i { display: none; }
  .progress span { white-space: nowrap; margin-left: 0; }
  .stats { gap: 28px; }
}
