/*
 * bonjourcrew.com home page. Warm and friendly on purpose: the owner asked
 * for less stark black-and-white than the app. Same brand colours (role
 * amber, teal, violet), softened into tints, pills and rounded cards.
 * Every colour is a token here; the page uses var(--token) only. Token
 * names and values match apps/guest-workspace/src/theme.css (the warm
 * pass), so the site and the app read as one product: --paper, --ink,
 * --edge, --primary (amber main action), --strong (teal filled choice).
 */

@font-face {
  font-family: "Reem Kufi";
  src: url("fonts/reem-kufi-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbf6ec;
  --card: #ffffff;
  --row: #faf5ec;
  --ink: #1b1a17;
  --ink-2: #57534a;
  --amber: #f5b54a;
  --amber-deep: #e0951f;
  --amber-soft: #fde8c3;
  --amber-ink: #6b4300;
  --teal: #0b8a94;
  --teal-deep: #0b6f78;
  --teal-soft: #ddf2f3;
  --teal-ink: #075e66;
  --violet: #6b4fc8;
  --violet-soft: #ece6fb;
  --violet-ink: #5b3fb0;
  --mint-soft: #dcefe3;
  --green: #2e9e4f;
  --green-ink: #1d6b37;
  --ink-hover: #33302a;
  --on-color: #ffffff;
  --tomato: #e05a3a;
  --edge: #e3d8c6;
  --primary: var(--amber);
  --primary-hover: #f8c160;
  --on-primary: var(--ink);
  --strong: var(--teal-deep);
  --on-strong: #ffffff;
  --shadow-soft: 0 18px 40px -22px rgba(92, 60, 18, 0.35);
  --shadow-lift: 0 30px 70px -30px rgba(70, 40, 110, 0.4);

  --font-display: "Reem Kufi", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection {
  background: var(--amber);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--strong);
  outline-offset: 3px;
  border-radius: 8px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.skip:focus {
  top: 12px;
}

/* Pills: the page's one button shape. */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 34px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background-color 0.2s;
}
.pill:hover {
  transform: translateY(-2px);
}
.pill:active {
  transform: translateY(0);
}
.pill-sm {
  min-height: 46px;
  padding: 0 22px;
  font-size: 17px;
}
.pill-amber {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 10px 24px -12px rgba(224, 149, 31, 0.9);
}
.pill-amber:hover {
  background: var(--primary-hover);
  box-shadow: 0 16px 30px -12px rgba(224, 149, 31, 0.9);
}
.pill-outline {
  background: var(--card);
  border-color: var(--strong);
  color: var(--ink);
}
.pill-outline:hover {
  background: var(--teal-soft);
}
.pill-teal {
  background: var(--strong);
  color: var(--on-strong);
}
.pill-ink {
  background: var(--ink);
  color: var(--paper);
}
.pill-ink:hover {
  background: var(--ink-hover);
}

/* Navigation */
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-sm {
  font-size: 22px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a,
.link-signin {
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover,
.link-signin:hover {
  text-decoration: underline;
  text-decoration-color: var(--amber);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  margin: -90px auto 0;
  padding: 104px var(--gutter) 12px;
  min-height: 620px;
}
.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.blob-amber {
  top: 0;
  left: calc(50% - 50vw);
  width: min(560px, 46vw);
  fill: var(--amber-soft);
}
.blob-violet {
  top: 90px;
  right: calc(50% - 50vw);
  width: min(560px, 40vw);
  fill: var(--violet-soft);
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  word-spacing: 0.04em;
}
.hero h1 .line {
  display: block;
  white-space: nowrap;
}
.underlined {
  position: relative;
  white-space: nowrap;
}
.underlined::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -4%;
  bottom: -0.2em;
  height: 0.2em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M4 11c50-9 120-10 192-4' fill='none' stroke='%23e05a3a' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center / 100% 100%;
}
.lede {
  margin-top: 30px;
  font-size: 20px;
  color: var(--ink-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

/* The example Today board and its floating pieces. */
.hero-art {
  position: relative;
  z-index: 1;
  min-height: 500px;
}
.board {
  position: absolute;
  top: 16%;
  left: 3%;
  width: 90%;
  padding: 26px 22px 18px;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow-lift);
  transform: rotate(3deg);
}
.board-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  padding: 0 8px 12px;
}
.board-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--row);
}
.row-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  color: var(--on-color);
}
.row-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.row-icon.amber {
  background: var(--amber-deep);
  color: var(--ink);
}
.row-icon.teal {
  background: var(--teal);
}
.row-icon.violet {
  background: var(--violet);
}
.row-main {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  min-width: 0;
  white-space: nowrap;
}
.row-main b {
  font-family: var(--font-display);
  font-weight: 600;
  margin-right: 6px;
}
.row-main small {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-2);
}
.board-note {
  padding: 10px 8px 0;
  font-size: 13px;
  color: var(--ink-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.chip i,
.f-leila i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}
.chip-amber {
  background: var(--amber-soft);
  color: var(--amber-ink);
}
.chip-amber i {
  background: var(--amber-deep);
}
.chip-teal {
  background: var(--teal-soft);
  color: var(--teal-ink);
  transition: background-color 0.4s;
}
.chip-teal i {
  background: var(--teal);
}
.chip-teal.is-accepted {
  background: var(--mint-soft);
  color: var(--green-ink);
}
.chip-teal.is-accepted i {
  background: var(--green);
}
.chip-violet {
  background: var(--violet-soft);
  color: var(--violet-ink);
}
.chip-violet i {
  background: var(--violet);
}

.floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.float {
  position: absolute;
  filter: drop-shadow(0 10px 14px rgba(90, 60, 30, 0.18));
}
.f-accepted,
.f-leila {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 26px 0 16px;
  border-radius: 999px;
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}
.f-accepted {
  top: 1%;
  left: 2%;
  background: var(--mint-soft);
  color: var(--ink);
  rotate: -9deg;
}
.tick {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
}
.tick::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 7px;
  width: 9px;
  height: 16px;
  border: solid var(--on-color);
  border-width: 0 4px 4px 0;
  rotate: 45deg;
}
.f-leila {
  top: 2%;
  left: 58%;
  background: var(--violet-soft);
  color: var(--violet-ink);
  rotate: -7deg;
}
.f-leila i {
  width: 22px;
  height: 22px;
  background: var(--violet);
}
.f-pin {
  top: -6%;
  left: 40%;
  width: 96px;
  rotate: 8deg;
}
.f-note {
  top: 10%;
  left: 91%;
  width: 92px;
}
.f-pick {
  top: 36%;
  left: 92%;
  width: 96px;
  rotate: 12deg;
}
.f-chat {
  top: 70%;
  left: 89%;
  width: 104px;
}
.f-ticket {
  top: 52%;
  left: -18%;
  width: 118px;
  rotate: -18deg;
}
.f-spark1 {
  top: 12%;
  left: 38%;
}
.spark {
  width: 40px;
  height: 40px;
  fill: none;
  stroke-width: 4.5;
  stroke-linecap: round;
}
.f-accepted .spark,
.f-leila .spark {
  position: absolute;
  filter: none;
}
.f-accepted .spark {
  left: -34px;
  top: -18px;
}
.f-leila .spark {
  right: -34px;
  top: -22px;
}
.s-green {
  stroke: var(--green);
}
.s-violet {
  stroke: var(--violet);
}
.s-amber {
  stroke: var(--amber-deep);
}
.s-teal {
  stroke: var(--teal);
}
.f-spark2 {
  top: 44%;
  left: -6%;
}
.f-spark3 {
  top: 25%;
  left: 88%;
}
.f-spark4 {
  top: 92%;
  left: 60%;
}

.leaf {
  position: absolute;
  z-index: 0;
  left: calc(50% - 50vw - 40px);
  bottom: -90px;
  width: 230px;
  rotate: 20deg;
  pointer-events: none;
}

/* How it works: the three tiles from the approved comp. */
.tiles {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--gutter) 120px;
  scroll-margin-top: 24px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 32px 30px;
  border-radius: 30px;
}
.tile img {
  width: 160px;
  margin-bottom: 6px;
}
.tile h3 {
  font-size: 34px;
  line-height: 1.15;
}
.tile-spark {
  position: absolute;
  top: 24px;
  right: calc(50% - 124px);
}
.tile-amber {
  background: var(--amber-soft);
}
.tile-teal {
  background: var(--teal-soft);
}
.tile-violet {
  background: var(--violet-soft);
}

/* For your team */
.team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) 140px;
  scroll-margin-top: 24px;
}
.team h2 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.team-copy p {
  margin-top: 24px;
  font-size: 21px;
  color: var(--ink-2);
  max-width: 38ch;
}
.team-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 56px 0;
  border-radius: 40px;
  background: var(--teal-soft);
}
.request {
  width: min(360px, 82%);
  overflow: hidden;
  background: var(--card);
  border-radius: 30px;
  box-shadow: var(--shadow-lift);
  rotate: -2deg;
}
.request-band {
  padding: 26px 26px 22px;
  background: var(--amber);
  color: var(--ink);
  font-size: 17px;
}
.request-hello {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}
.request-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 18px 18px 0;
}
.request-tiles p {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--row);
}
.request-tiles b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}
.request-tiles span {
  font-size: 14px;
  color: var(--ink-2);
}
.request-what {
  padding: 14px 22px 0;
  font-weight: 600;
}
.request-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 18px 20px;
}
.request-buttons .pill {
  padding: 0;
}
.request-buttons .pill:hover {
  transform: none;
}
.team-float {
  position: absolute;
  top: -34px;
  right: 6%;
  width: 96px;
  rotate: 10deg;
  filter: drop-shadow(0 10px 14px rgba(90, 60, 30, 0.18));
}
.team-float-2 {
  top: auto;
  right: auto;
  bottom: -30px;
  left: 4%;
  width: 130px;
  rotate: -10deg;
}

/* Closing call */
.close {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto 80px;
  padding: 80px var(--gutter);
  border-radius: 44px;
  background: var(--amber);
  text-align: center;
}
.close h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.close p {
  margin: 18px auto 0;
  max-width: 44ch;
  font-size: 20px;
  color: var(--amber-ink);
}
.close .actions {
  justify-content: center;
}
.close .pill-outline {
  border-color: var(--ink);
}
.close .pill-outline:hover {
  background: var(--amber-soft);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 48px;
  font-size: 15px;
  color: var(--ink-2);
}
.foot .brand {
  color: var(--ink);
  margin-right: auto;
}

/* Motion: the board's pieces burst out once, then drift. Only when the
   script has run and the visitor has not asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .motion .float {
    animation:
      burst 1.1s var(--ease-out) both,
      drift calc(5s * var(--d, 1)) ease-in-out 1.2s infinite alternate;
    animation-delay: calc(0.12s * var(--d, 1) * 3), 1.2s;
  }
  .motion .board {
    animation: settle 0.9s var(--ease-out) both;
  }
  .chip-teal .chip-state {
    display: inline-block;
  }
  .chip-teal.is-accepted .chip-state {
    animation: pop 0.5s var(--ease-out);
  }
}
@keyframes burst {
  from {
    opacity: 0;
    translate: var(--from-x, 0) var(--from-y, 0);
    scale: 0.4;
  }
}
@keyframes drift {
  to {
    transform: translateY(-10px);
  }
}
@keyframes settle {
  from {
    opacity: 0;
    transform: rotate(0deg) translateY(24px) scale(0.97);
  }
}
@keyframes pop {
  from {
    scale: 0.6;
  }
}

/* Narrower desktops: one step smaller rows so every session name fits. */
@media (max-width: 1360px) and (min-width: 1101px) {
  .row {
    gap: 12px;
  }
  .row-main {
    font-size: 15px;
  }
  .row-main small {
    font-size: 14px;
  }
  .row .chip {
    padding: 0 11px;
    font-size: 14px;
  }
}

/* Tablet and phone */
@media (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .hero h1 .line {
    white-space: normal;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 110px;
  }
  .hero-art {
    min-height: 520px;
  }
  .board {
    left: 8%;
    width: 84%;
    top: 14%;
  }
  .team {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .nav {
    gap: 12px;
    padding-top: 16px;
  }
  .brand {
    font-size: 24px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .nav-actions {
    gap: 14px;
  }
  .link-signin {
    display: none;
  }
  .nav .pill-sm {
    min-height: 42px;
    padding: 0 16px;
    font-size: 15px;
  }
  .hero {
    padding-top: 100px;
    gap: 8px;
  }
  .hero h1 {
    font-size: clamp(36px, 10.5vw, 46px);
    line-height: 1.18;
  }
  .underlined::after {
    bottom: -0.1em;
    height: 0.16em;
  }
  .f-spark2,
  .f-spark3,
  .f-spark4 {
    display: none;
  }
  .lede {
    margin-top: 22px;
    font-size: 19px;
  }
  .actions {
    margin-top: 26px;
  }
  .actions .pill {
    flex: 1 1 140px;
    min-height: 54px;
    padding: 0 20px;
    font-size: 19px;
  }
  .hero-art {
    min-height: 0;
    padding: 86px 0 64px;
  }
  .board-note {
    text-align: right;
  }
  .board {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    padding: 18px 12px 12px;
    border-radius: 22px;
    transform: rotate(1.5deg);
  }
  .board-title {
    font-size: 26px;
    padding-bottom: 8px;
  }
  .row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    padding: 10px;
  }
  .row .chip {
    grid-column: 2;
    justify-self: start;
    min-height: 30px;
    font-size: 14px;
  }
  .row-icon {
    width: 46px;
    height: 46px;
    grid-row: span 2;
  }
  .row-icon svg {
    width: 24px;
    height: 24px;
  }
  .row-main {
    font-size: 16px;
  }
  .f-accepted,
  .f-leila {
    height: 44px;
    font-size: 16px;
    padding: 0 16px 0 10px;
  }
  .tick {
    width: 26px;
    height: 26px;
  }
  .tick::after {
    left: 9px;
    top: 5px;
    width: 7px;
    height: 12px;
    border-width: 0 3px 3px 0;
  }
  .f-accepted {
    top: 18px;
    left: 0;
  }
  .f-leila {
    top: auto;
    bottom: 0;
    left: auto;
    right: 0;
  }
  .f-leila i {
    width: 16px;
    height: 16px;
  }
  .f-pin {
    top: -8px;
    left: auto;
    right: 6%;
    width: 64px;
  }
  .f-note,
  .f-pick,
  .f-chat,
  .f-spark1,
  .float .spark {
    display: none;
  }
  .f-ticket {
    top: auto;
    bottom: 4px;
    left: -2%;
    width: 80px;
  }
  .leaf,
  .team-float-2 {
    display: none;
  }
  .tiles {
    grid-template-columns: 1fr;
    padding-bottom: 80px;
  }
  .tile {
    padding: 26px 24px 30px;
  }
  .tile img {
    width: 160px;
  }
  .tile h3 {
    font-size: 28px;
  }
  .team {
    padding-bottom: 100px;
  }
  .team-copy p {
    font-size: 18px;
  }
  .close {
    margin: 0 16px 56px;
    padding: 56px 20px;
    border-radius: 32px;
  }
  .close p {
    font-size: 18px;
  }
}
