/* ==========================================================================
   THE FUTURE COUNCIL · DESIGN SYSTEM & SHARED STYLES
   World 1: The Line (Cold office grey-green)
   World 2: The Builder World (Warm cream, night ink, TFC orange, forest green)
   ========================================================================== */

:root {
  color-scheme: light;
  /* World 1 · The Line */
  --office: #D6DCD3;
  --office-2: #C6CDC2;
  --office-ink: #1E2124;
  --office-soft: #4E555A;
  --ballpoint: #2C4A9A;
  --slip: #F7F6EF;
  --slip-line: #DCDAD0;

  /* World 2 · The Builder World */
  --warm: #FFF4E8;
  --warm-2: #FBE6D4;
  --orange: #E2542A;
  --orange-deep: #AE3D18;
  --ink: #1B1712;
  --ink-soft: #5A4E44;
  --line: #EAD7C6;
  --forest: #1F5A45;
  --forest-soft: #E8F1ED;

  /* Typography */
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, -apple-system, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--warm);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: var(--gut);
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--warm) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.nav.office-mode {
  background: color-mix(in srgb, var(--office) 90%, transparent);
  border-bottom-color: var(--office-2);
}
.nav.night-mode {
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  border-bottom-color: #332B24;
  color: var(--warm);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand img, .brand-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  display: inline-block;
  flex-shrink: 0;
}
.brand i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  box-shadow: 0 0 10px rgba(226, 84, 42, 0.4);
}
.nav ul.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  font-size: 14.5px;
  font-weight: 500;
  align-items: center;
}
.nav ul.nav-links a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.nav ul.nav-links a:hover,
.nav ul.nav-links a.active {
  opacity: 1;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--warm);
  z-index: 49;
  padding: 24px var(--gut);
  overflow-y: auto;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid var(--line);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu a.active {
  color: var(--orange);
}

@media (max-width: 860px) {
  .nav ul.nav-links { display: none; }
  .nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 480px) {
  .nav .wrap {
    gap: 8px;
    padding-inline: 12px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand img, .brand-logo {
    width: 22px;
    height: 22px;
  }
  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .nav-actions .btn {
    padding: 6px 11px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .nav-toggle {
    padding: 6px 9px;
    font-size: 17px;
  }
}
@media (max-width: 340px) {
  .nav-actions .btn {
    display: none;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 20px;
  border: 1.5px solid currentColor;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn.solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff !important;
}
.btn.solid:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
}
.btn.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--warm) !important;
}
.btn.dark:hover {
  background: #2E2721;
}
.btn.forest {
  background: var(--forest);
  border: 1px solid var(--forest);
  color: #fff !important;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  max-width: calc(100% - 2px);
  box-sizing: border-box;
}
.btn.forest:hover {
  background: #153F30;
}
.btn.sm {
  padding: 7px 15px;
  font-size: 13.5px;
}
.btn.lg {
  padding: 14px 28px;
  font-size: 17px;
}

/* ==========================================================================
   REUSABLE HERO & SECTION HEADERS
   ========================================================================== */
.sec-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.sec-head.stacked {
  display: block;
  max-width: 720px;
}
.sec-head h2 {
  font-size: clamp(34px, 5vw, 64px);
  margin-top: 10px;
}
.sec-head p.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  margin-top: 12px;
  line-height: 1.5;
}
.kick {
  color: var(--orange-deep);
  font-weight: 600;
}
@media (max-width: 820px) {
  .sec-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   RECURRING OBJECT: THE TOKEN SLIP
   ========================================================================== */
.token {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  background: var(--slip);
  border: 1px dashed #A9AFA4;
  padding: 8px 14px;
  border-radius: 3px;
  color: var(--office-soft);
  transform: rotate(-1.2deg);
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.12);
}
.token b {
  color: var(--ballpoint);
  font-weight: 600;
}

/* ==========================================================================
   RECURRING OBJECT: PINNED NOTICE CARD
   ========================================================================== */
.notices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.notice {
  background: var(--slip);
  padding: 26px 22px 20px;
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--slip-line), 0 14px 30px -18px rgba(30,33,36,0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-image: repeating-linear-gradient(transparent 0 27px, var(--slip-line) 27px 28px);
  background-position: 0 58px;
}
.notice:nth-child(1) { transform: rotate(-1.2deg); }
.notice:nth-child(2) { transform: rotate(0.9deg) translateY(6px); }
.notice:nth-child(3) { transform: rotate(-0.6deg); }
.notice::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--ballpoint);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.notice .n {
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--office-ink);
}
.notice p {
  font-size: 15px;
  color: var(--office-ink);
  line-height: 1.5;
}
.notice .src {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ballpoint);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: auto;
}
.stamp {
  position: absolute;
  right: 14px;
  top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ballpoint);
  border: 1.5px solid var(--ballpoint);
  padding: 3px 6px;
  border-radius: 3px;
  transform: rotate(6deg);
  opacity: 0.8;
}

/* ==========================================================================
   RECURRING OBJECT: THE DASHED PATH & STOPS
   ========================================================================== */
.stops {
  position: relative;
  display: grid;
  gap: 26px;
}
.stops::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 30px;
  bottom: 30px;
  border-left: 3px dashed var(--orange);
  opacity: 0.55;
}
.stop {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
}
.stop .pin {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--warm);
  border: 3px solid var(--orange);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--orange-deep);
  position: relative;
  z-index: 1;
}
.stop.last .pin {
  background: var(--orange);
  color: #fff;
}
.stop-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  box-shadow: 0 10px 30px -15px rgba(27,23,18,0.06);
}
.stop-card .who {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stop-card h3 {
  font-size: clamp(26px, 3vw, 38px);
  margin-top: 8px;
}
.stop-card h3 small {
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--orange-deep);
  margin-top: 6px;
}
.stop-card p {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 48ch;
}
.stop-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 14.5px;
}
.stop-card li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.stop-card li b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange-deep);
  min-width: 76px;
  font-weight: 600;
}
.stop-card .act {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 6px;
}
.stop-card .act span {
  font-size: 14px;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .stop { grid-template-columns: 40px 1fr; gap: 14px; }
  .stop .pin { width: 40px; height: 40px; font-size: 11px; }
  .stops::before { left: 19px; }
  .stop-card { grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================================================
   RECURRING OBJECT: THE ORANGE TICKET (LAUNCHPAD DEAL)
   ========================================================================== */
.ticket {
  background: var(--orange);
  color: #fff;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 45px -20px rgba(226,84,42,0.5);
}
.ticket .main {
  padding: clamp(26px, 4vw, 48px);
}
.ticket .kick {
  color: #FFE1D4;
}
.ticket h2 {
  font-size: clamp(32px, 5vw, 60px);
  margin-top: 10px;
  max-width: 14ch;
}
.ticket .terms {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.35);
  border-radius: 12px;
  overflow: hidden;
}
.ticket .terms div {
  background: var(--orange);
  padding: 16px 14px;
}
.ticket .terms b {
  display: block;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ticket .terms span {
  display: block;
  font-size: 13px;
  margin-top: 6px;
  color: #FFE9DF;
}
.ticket .fine {
  margin-top: 22px;
  font-size: 15px;
  max-width: 58ch;
  color: #FFF1EA;
  line-height: 1.5;
}
.ticket .stub {
  background: #fff;
  color: var(--ink);
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 3px dashed var(--orange);
  position: relative;
}
.ticket .stub::before, .ticket .stub::after {
  content: "";
  position: absolute;
  left: -14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--warm);
}
.ticket .stub::before { top: -13px; }
.ticket .stub::after { bottom: -13px; }
.ticket .stub .mono { color: var(--ink-soft); }
.ticket .count {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ticket .count small {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
  display: block;
  margin-top: 6px;
}
.ticket .stub .waiver {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}
@media (max-width: 900px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket .stub {
    border-left: 0;
    border-top: 3px dashed var(--orange);
  }
  .ticket .stub::before { top: -14px; left: -13px; }
  .ticket .stub::after { top: -14px; bottom: auto; left: auto; right: -13px; }
  .ticket .terms { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   RECURRING OBJECT: THE RECEIPT ("EVEN IF IT FAILS")
   ========================================================================== */
.receipt {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 26px 18px;
  font-family: var(--mono);
  font-size: 14px;
  align-self: start;
  box-shadow: 0 18px 40px -26px rgba(27,23,18,0.35);
}
.receipt h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1.5px dashed var(--ink);
  padding-bottom: 12px;
}
.receipt ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.receipt li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.receipt li span:last-child {
  color: var(--forest);
  font-weight: 600;
  white-space: nowrap;
}
.receipt .tot {
  border-top: 1.5px dashed var(--ink);
  margin-top: 16px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

/* ==========================================================================
   RECURRING OBJECT: SAFETY NET CARD (FOREST GREEN)
   ========================================================================== */
.safety {
  margin-top: 26px;
  padding: 20px 22px;
  border-left: 4px solid var(--forest);
  background: var(--forest-soft);
  font-size: 15px;
  color: var(--ink);
  border-radius: 0 12px 12px 0;
  line-height: 1.55;
}
.safety a {
  font-weight: 600;
  color: var(--forest);
}

/* ==========================================================================
   RECURRING OBJECT: FOUNDERS' LETTER
   ========================================================================== */
.letter {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.letter blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(22px, 2.7vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.letter .sig {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.faces {
  display: flex;
  gap: 14px;
}
.face {
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--warm-2);
  border: 2px dashed #E3B79C;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  padding: 8px;
  overflow: hidden;
}
.face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
@media (max-width: 820px) {
  .letter { grid-template-columns: 1fr; }
}

/* ==========================================================================
   STICKY DEADLINE BAR
   ========================================================================== */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--warm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(0);
  transition: transform 0.35s;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.bar.hide {
  transform: translateY(110%);
}
.bar .t {
  font-size: 14px;
}
.bar .t b {
  font-family: var(--mono);
  font-weight: 600;
  color: #F5A07F;
}
@media (max-width: 540px) {
  .bar .t .long { display: none; }
}

/* ==========================================================================
   FOOTER (SPEC §4)
   ========================================================================== */
footer.tfc-footer {
  background: var(--ink);
  color: #CDBFB2;
  padding-block: clamp(48px, 8vw, 80px) calc(90px + env(safe-area-inset-bottom, 0px));
  font-size: 14.5px;
  border-top: 1px solid #332B24;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F5A07F;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: #CDBFB2;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-line {
  border-top: 1px solid #332B24;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: #9A8B7C;
}
.footer-line strong {
  color: var(--warm);
  font-family: var(--display);
  font-size: 15px;
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SHARED FAQ ACCORDION COMPONENT
   ========================================================================== */
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item summary {
  padding: 18px 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  color: var(--orange);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-body {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}

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