/* FoundersDesk public site
   Colours: teal #0E6B5B, ink #14201D, warm background #F6F5F0
   Fonts: Bricolage Grotesque (headings), Figtree (body) */

:root {
  --teal: #0E6B5B;
  --teal-dark: #0A5447;
  --teal-tint: #E2F0EC;
  --teal-light: #7FD1BC;      /* on ink background only */
  --ink: #14201D;
  --ink-soft: #3E4A46;        /* body text on light backgrounds */
  --muted: #5A6562;
  --warm: #F6F5F0;
  --white: #FFFFFF;
  --line: #E6E3DA;
  --amber: #D9A441;
  --amber-tint: #F7E7C2;
  --amber-ink: #6B4A0B;
  --grey-tint: #E6E4DE;
  --grey-line: #C8C2B4;
  --blue-tint: #DCE8F5;
  --blue-ink: #1F4870;

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 8vw, 96px);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--warm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: inherit;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--teal); }

/* ---------- Focus & skip link ---------- */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-ink :focus-visible,
.section-teal :focus-visible { outline-color: #FFFFFF; }
main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(1160px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow { max-width: calc(860px + 2 * var(--gutter)); }

.section { padding: var(--section-y) 0; }
.section-white {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-ink { background: var(--ink); color: #E8ECEA; }
.section-teal { background: var(--teal); color: #fff; }
.section-teal:focus { outline: none; }

.section-intro { max-width: 620px; margin-bottom: 36px; }
.section-intro h2 { max-width: 18ch; }
.section-intro p { margin-top: 12px; color: var(--ink-soft); }
#who .section-intro { max-width: 720px; }
#plans .section-intro { max-width: 760px; }
#plans .section-intro h2 { max-width: none; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--teal-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  font-family: var(--font-body);
  letter-spacing: 0;
}
.pill-teal  { background: var(--teal-tint);  color: var(--teal-dark); }
.pill-grey  { background: var(--grey-tint);  color: #3F4441; }
.pill-amber { background: var(--amber-tint); color: var(--amber-ink); }
.pill-blue  { background: var(--blue-tint);  color: var(--blue-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 240, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--teal);
  flex: none;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
}
.site-nav a:not(.btn):hover { color: var(--teal); text-decoration: underline; text-underline-offset: 6px; }
.nav-cta-mobile { display: none; }

.site-nav { margin-right: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  font: 600 0.95rem var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { margin-right: 0; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--warm);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 32, 29, 0.08);
    padding: 8px var(--gutter) 20px;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta-mobile { display: flex; margin-top: 16px; }
  /* Without JavaScript the nav simply wraps below the header row. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
  html:not(.js) .site-nav a:not(.btn) { border: 0; padding: 6px 0; }
  html:not(.js) .nav-cta-mobile { display: none; }
}
@media (max-width: 519px) {
  .header-cta { display: none; }
  html:not(.js) .header-cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { max-width: 11ch; }
.lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.fine-print { margin-top: 24px; font-size: 0.85rem; color: var(--muted); }

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 64px; }
}

.preview-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(20, 32, 29, 0.08), 0 2px 6px rgba(20, 32, 29, 0.04);
  width: 100%;
  max-width: 460px;
  justify-self: center;
}
@media (min-width: 960px) { .preview-card { justify-self: end; } }

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.preview-title { font-weight: 700; }
.preview-note { font-size: 0.75rem; color: var(--muted); }
.preview-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.preview-stats > div {
  background: var(--warm);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.preview-stats dt { font-size: 0.75rem; color: var(--muted); }
.preview-stats dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.preview-list { list-style: none; }
.preview-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.preview-list strong { color: var(--ink); font-weight: 700; margin-right: 4px; }

/* ---------- Modules ---------- */
.module-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px)  { .module-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .module-grid { grid-template-columns: repeat(4, 1fr); } }

.module {
  background: var(--warm);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}
.module-optional { border-top-color: var(--amber); }
.module-planned  { border-top-color: var(--grey-line); }
.module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.module-head h3 { font-size: 1.2rem; }
.module > p { color: var(--ink-soft); font-size: 0.95rem; }

.bullets {
  list-style: none;
  margin-top: 14px;
  font-size: 0.9rem;
}
.bullets li {
  position: relative;
  padding-left: 16px;
  margin-top: 6px;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Trust points ---------- */
.trust-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.trust-copy h2 { color: #fff; max-width: 16ch; }
.trust-copy p:last-child { margin-top: 18px; max-width: 36em; color: #C9D1CE; }
.trust-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 28px;
}
.trust-points li {
  border-left: 3px solid var(--amber);
  padding-left: 14px;
}
.trust-points h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.trust-points p { color: #C9D1CE; font-size: 0.92rem; }
@media (min-width: 560px) { .trust-points { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust-inner { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }

/* ---------- Cards (who it is for, plans) ---------- */
.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.card h3 { margin-bottom: 12px; }
.card > p { color: var(--ink-soft); font-size: 0.95rem; }
.card .switch-on {
  margin-top: 10px;
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------- How it works ---------- */
#how h2 { margin-bottom: 36px; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step-number {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 10px; }
.steps p { color: var(--ink-soft); }

/* ---------- Plans ---------- */
.plan {
  display: flex;
  flex-direction: column;
}
.plan-featured { border: 2px solid var(--teal); }
.plan h3 { margin-bottom: 16px; }
.price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink) !important;
  margin-bottom: 14px;
}
.plan .bullets { margin-bottom: 24px; }
.plan .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
#faq-title { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  margin-top: 0.42em;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--ink);
  transition: transform .15s;
}
.faq details[open] > summary::before { transform: rotate(90deg); }
.faq summary:hover { color: var(--teal); }
.faq summary:hover::before { border-left-color: var(--teal); }
.faq details p {
  padding: 0 0 18px 20px;
  color: var(--ink-soft);
  max-width: 44em;
}

/* ---------- Contact ---------- */
.section-teal.section { padding: clamp(48px, 6vw, 64px) 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.contact-inner h2 { color: #fff; }
.contact-inner p { margin-top: 12px; color: #E3F1ED; }
@media (min-width: 900px) { .contact-inner { grid-template-columns: auto 1fr; gap: 32px; } }

.contact-list { margin: 0; display: grid; gap: 16px; }
.contact-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #CDE6DF;
}
.contact-list dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}
.contact-list a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { padding: 24px 0 32px; font-size: 0.85rem; color: var(--muted); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
}
.footer-links a:hover { color: var(--teal); text-decoration: underline; }
