:root {
  /* Cleo palette (extracted from web.meetcleo.com) */
  --ink: #47201C;
  --deep: #291210;
  --muted: #6F514E;
  --taupe: #AC9B98;
  --white: #FFFFFF;
  --hairline: rgba(0, 0, 0, 0.05);

  /* radii — Cleo's exact geometry */
  --r-logo: 32px 32px 32px 0px;   /* sharp bottom-left corner */
  --r-pill: 28px;
  --r-card: 32px;
  --r-cta: 60px;

  --maxw: 1240px;
  --head-h: 47px;
  --item-h: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   FIXED HEADER — tone switches per section (Cleo behaviour)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  padding: 30px 32px;
  align-items: center;
  background: transparent;
  transition: color 0.3s ease;
}

.site-header .hwrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

/* logo pill */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: var(--head-h);
  padding: 0 24px 0 18px;
  border-radius: var(--r-logo);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  justify-self: start;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, backdrop-filter 0.3s ease;
}

.brand-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
  transition: background 0.3s ease;
}
.brand-dot::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.brand-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  padding-left: 2px;
  display: none;
  white-space: nowrap;
}

/* nav pill */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: fit-content;
  padding: 0 2px;
  border-radius: var(--r-pill);
  justify-self: center;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav a {
  display: inline-flex;
  align-items: center;
  height: var(--item-h);
  padding: 0 22px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 450;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

/* CTA */
.hdr-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--head-h);
  padding: 0 26px;
  border-radius: var(--r-cta);
  font-size: 16px;
  font-weight: 600;
  justify-self: end;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* --- tone: DARK (over dark hero) --- */
.site-header[data-tone="dark"] .brand {
  background: var(--deep);
  color: var(--white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-header[data-tone="dark"] .brand-dot { background: var(--white); }
.site-header[data-tone="dark"] .brand-dot::after { background: var(--deep); }
.site-header[data-tone="dark"] .nav {
  background: rgba(41, 18, 16, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-header[data-tone="dark"] .nav a { color: rgba(255, 255, 255, 0.92); }
.site-header[data-tone="dark"] .nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-header[data-tone="dark"] .hdr-cta {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.site-header[data-tone="dark"] .hdr-cta:hover { background: rgba(255, 255, 255, 0.12); }

/* --- tone: LIGHT (over light sections) --- */
.site-header[data-tone="light"] .brand {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-header[data-tone="light"] .brand-dot { background: var(--ink); }
.site-header[data-tone="light"] .brand-dot::after { background: var(--white); }
.site-header[data-tone="light"] .nav {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-header[data-tone="light"] .nav a { color: var(--ink); }
.site-header[data-tone="light"] .nav a:hover { background: rgba(41, 18, 16, 0.07); }
.site-header[data-tone="light"] .hdr-cta {
  background: var(--white);
  border: 1px solid var(--hairline);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(41, 18, 16, 0.06);
}
.site-header[data-tone="light"] .hdr-cta:hover { background: #F7F2EE; }

/* section-4 variant: logo carries uppercase sub-tagline */
.site-header[data-tone="light"][data-show-tag="1"] .brand-tag { display: inline-block; }

/* section 4 header shows logo + CTA only, no centre nav pill */
.site-header[data-show-nav="0"] .nav { display: none; }

/* dot-matrix menu button */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  justify-self: end;
  transition: background 0.3s ease;
}
.site-header[data-tone="dark"] .menu-toggle {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-header[data-tone="light"] .menu-toggle {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--hairline);
}
.menu-toggle .dm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.menu-toggle .dm i { width: 3px; height: 3px; border-radius: 50%; display: block; transition: background 0.3s ease; }
.site-header[data-tone="dark"] .dm i { background: #fff; }
.site-header[data-tone="light"] .dm i { background: var(--ink); }

/* mobile nav sheet */
.nav.open {
  display: flex;
  position: fixed;
  top: 100px; left: 24px; right: 24px;
  flex-direction: column;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 12px;
}
.nav.open a { height: 48px; justify-content: flex-start; color: var(--ink); }

/* ============================================================
   SECTION 1 — dark moody clouds hero
   ============================================================ */
.s1 {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #101725 0%, #1B2437 38%, #2B3A52 72%, #3D4F6B 100%);
}

.s1-clouds { position: absolute; inset: 0; width: 100%; height: 100%; }

.s1-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 0;
}

.s1 h1 {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 18ch;
  margin: 0 auto;
}

.s1-scroll {
  position: absolute;
  left: 50%; bottom: 46px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.scroll-dots {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px dotted rgba(255,255,255,0.5);
  display: grid;
  place-items: center;
}
.scroll-dots::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
}

/* ============================================================
   SECTION 2 — landscape + floating phone
   ============================================================ */
.s2 {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 150px 24px 150px;
  overflow: hidden;
}

.s2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.s2-phone { position: relative; z-index: 3; }

/* ============================================================
   PHONE COMPONENT (shared by s2 / s4)
   ============================================================ */
.phone {
  width: 300px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2A2A2A, #101010 60%);
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}
.phone-screen {
  border-radius: 38px;
  background: linear-gradient(175deg, #F7EBDF 0%, #EFDCC9 100%);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  position: relative;
}
.phone-notch {
  width: 96px; height: 26px;
  border-radius: 14px;
  background: #1A1A1A;
  margin: 0 auto 18px;
  flex: 0 0 auto;
}
.phone-status {
  position: absolute;
  top: 22px; left: 26px;
  font-size: 11px; font-weight: 700; color: var(--ink);
}
.phone-status-r {
  position: absolute;
  top: 21px; right: 26px;
  display: flex; gap: 4px; align-items: center;
}
.phone-status-r i { display: block; width: 14px; height: 9px; border-radius: 2px; background: var(--ink); }

.pchat { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; }
.pchat h4 {
  font-size: 24px; font-weight: 400; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.chip {
  align-self: flex-start;
  background: var(--white);
  border-radius: 60px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--ink);
  max-width: 100%;
  line-height: 1.4;
}

/* long message bubble — rounded rect, not a stretched pill */
.msg {
  align-self: flex-start;
  background: var(--white);
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink);
  max-width: 88%;
  line-height: 1.45;
  border-bottom-left-radius: 6px;
}

/* choice pill inside a chat */
.choice {
  align-self: flex-start;
  background: var(--ink);
  color: var(--cream-1);
  border-radius: 60px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 100%;
}
.p-sys { font-size: 14px; color: var(--muted); line-height: 1.45; }
.p-sys b { color: var(--ink); font-weight: 600; }
.p-plan { font-size: 14px; color: var(--ink); line-height: 1.45; }

.p-bar {
  margin-top: auto;
  background: var(--white);
  border-radius: 60px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.p-bar .mic {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.p-bar .mic i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.p-tabs {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 14px;
}
.p-tabs span {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 10.5px; color: var(--muted); font-weight: 600;
}
.p-tabs span i { width: 16px; height: 16px; border-radius: 50%; background: rgba(71,32,28,0.18); display: block; }
.p-tabs span.on { color: var(--ink); }
.p-tabs span.on i { background: var(--ink); }

.p-dots { display: flex; gap: 5px; justify-content: center; padding-top: 12px; }
.p-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(71,32,28,0.2); display: block; }
.p-dots i.on { background: var(--ink); }

/* ============================================================
   SECTION 3 — clean off-white centred
   ============================================================ */
.s3 {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #F7F4F0;
  padding: 150px 24px;
  text-align: center;
}
.s3 h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto 20px;
}
.s3 p {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--taupe);
  max-width: 44ch;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.btn-soft {
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0 42px;
  border-radius: var(--r-cta);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(41, 18, 16, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-soft:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(41, 18, 16, 0.14); }

/* ============================================================
   SECTION 4 — gradient container, rounded, phone from bottom
   ============================================================ */
.s4 {
  padding: 0 20px;
}
.s4-container {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(90% 70% at 78% 18%, rgba(255,255,255,0.16) 0%, transparent 60%),
    linear-gradient(150deg, #6E7A62 0%, #55604E 45%, #3E4738 100%);
  padding: 158px 48px 0;
}
.s4-text { position: relative; z-index: 3; max-width: 560px; }
.s4-text h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* phone: horizontally centred, bottom-anchored, overflowing the card edge */
.s4-phone {
  position: absolute;
  left: 50%;
  bottom: -54px;
  transform: translateX(-50%);
  width: 276px;
  z-index: 3;
}
.s4-phone .phone { width: 100%; }

/* ============================================================
   SECTION 5 — 50/50 split cards
   ============================================================ */
.s5 {
  padding: 24px 32px 64px;
}
.s5-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  min-height: 92vh;
}
.s5-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
}
.s5-card--photo { background: linear-gradient(170deg, #C9A882 0%, #8E6B4E 100%); }

/* readability scrim over the photo card */
.s5-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(41, 18, 16, 0.10) 0%, rgba(41, 18, 16, 0.05) 30%, rgba(41, 18, 16, 0.68) 100%);
}
.s5-card--green {
  background:
    radial-gradient(80% 60% at 30% 25%, rgba(255,255,255,0.12) 0%, transparent 60%),
    linear-gradient(160deg, #7E8A6B 0%, #5C6849 55%, #414A31 100%);
  align-items: center;
  justify-content: flex-end;
  text-align: left;
}
.s5-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.s5-copy { position: relative; z-index: 3; color: var(--white); }
.s5-copy h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  max-width: 20ch;
}
.s5-copy p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: rgba(255,255,255,0.82);
  max-width: 46ch;
  line-height: 1.5;
}

/* chat bubble + audio wave (right card) */
.s5-bubble {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 0;
  background: #ECE7DB;
  border: none;
  border-radius: 28px;
  border-bottom-left-radius: 8px;
  padding: 22px 28px;
  max-width: 34ch;
  color: var(--ink);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.5;
  font-weight: 500;
}
.wave {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  margin: 26px 0 30px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #ECE7DB;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.wave i { display: block; width: 3px; border-radius: 2px; background: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .s4-container { padding: 150px 34px 0; }
  .s4-text { max-width: none; }
  /* stack the phone below the copy instead of overlaying it */
  .s4-phone {
    position: static;
    transform: none;
    width: 260px;
    margin: 52px auto -48px;
  }
  .s5-grid { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 900px) {
  .site-header .hwrap { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .hdr-cta { display: none; }
}

@media (max-width: 640px) {
  .site-header { padding: 20px 20px; }
  .nav.open { top: 88px; left: 20px; right: 20px; }
  .brand { font-size: 19px; padding: 0 18px 0 14px; height: 42px; }
  .brand-tag { display: none !important; }

  .s1 { min-height: 92vh; }
  .s1 h1 { font-size: 36px; }
  .s1-scroll { bottom: 28px; }

  .s2 { padding: 80px 16px 80px; }
  .phone { width: 262px; }
  .phone-screen { min-height: 500px; }
  .pchat h4 { font-size: 21px; }

  .s3 { padding: 80px 20px; min-height: auto; }
  .s3 h2 { font-size: 32px; }

  .s4-container { padding: 118px 24px 0; border-radius: 32px; }
  .s4-text h2 { font-size: 32px; }
  .s4-phone { width: 248px; margin: 44px auto -44px; }

  .s5-grid { gap: 16px; }
  .s5-card { padding: 32px; min-height: 500px; border-radius: 28px; }
  .s5-copy h3 { font-size: 24px; }
  .s5-bubble { padding: 20px; border-radius: 24px; border-bottom-left-radius: 8px; }
}

/* ============================================================
   SECTION 6 — minimalist centered statement
   ============================================================ */
.s6 {
  background: #F7F4F0;
  padding: 150px 24px;
  text-align: center;
  display: grid;
  place-items: center;
  min-height: 78vh;
}

.s6 h2 {
  font-size: clamp(32px, 4.8vw, 60px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 25ch;
  margin: 0 auto;
}

/* ============================================================
   SECTION 7 — testimonial carousel
   ============================================================ */
.s7 {
  background: linear-gradient(180deg, #FDF8F3 0%, #F9EDE4 45%, #F5E2D5 100%);
  padding: 160px 0 180px;
  overflow: hidden;
  --s7-card: 640px;
}

.s7-head { text-align: center; padding: 0 24px; }
.s7-head h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 auto 30px;
  max-width: 24ch;
}

.s7-nav { display: flex; gap: 12px; justify-content: center; margin-bottom: 46px; }
.s7-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.s7-arrow:hover { background: #FFFFFF; transform: scale(1.05); }
.s7-arrow svg { width: 16px; height: 16px; }

.s7-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  padding: 8px calc(50% - var(--s7-card) / 2) 28px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.s7-track::-webkit-scrollbar { display: none; }

.s7-card {
  flex: 0 0 var(--s7-card);
  background: #FFFFFF;
  border-radius: 32px;
  padding: 48px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 30px;
  scroll-snap-align: center;
  border: 1px solid var(--hairline);
}

.s7-portrait {
  border-radius: 28px;
  background: linear-gradient(160deg, #F6E7D9 0%, #EBD2BE 100%);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.s7-portrait svg { width: 100%; height: 100%; display: block; }

.s7-quote {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 26px;
}
.s7-author {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   SECTION 8 — full-bleed hero with rounded container
   ============================================================ */
.s8 { padding: 0 16px; }

.s8-container {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 150px 56px 56px;
}

.s8-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.s8-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(41, 18, 16, 0.46) 0%,
      rgba(41, 18, 16, 0.10) 32%,
      rgba(41, 18, 16, 0.14) 62%,
      rgba(41, 18, 16, 0.44) 100%);
}

.s8-title {
  position: relative;
  z-index: 2;
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  max-width: 21ch;
}

.s8-badge {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  background: rgba(41, 18, 16, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--r-cta);
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   SECTION 9 — footer (light, Abridge-style)
   ============================================================ */
.site-footer {
  background: #F7F5F0;
  border-top: 1px solid #E7E5E4;
  border-radius: 44px 44px 0 0;
  padding: 76px 0 0;
  position: relative;
  overflow: hidden;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2.2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 88px;
}

.foot-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

.brand-mini {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px 0 16px;
  border-radius: var(--r-logo);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #E7E5E4;
  color: #2D2B2A;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-mini .brand-dot { width: 18px; height: 18px; margin-right: 8px; background: var(--ink); }
.brand-mini .brand-dot::after { inset: 6px; background: #F7F5F0; }

.region-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-cta);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #E7E5E4;
  color: #2D2B2A;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
}

.foot-headline {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #1C1917;
  max-width: 20ch;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 84px;
}
.foot-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #2D2B2A;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.foot-col a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: #57534E;
}
.foot-col a:hover { color: #1C1917; }
.foot-col p { font-size: 15px; color: #57534E; line-height: 1.55; margin: 0; }

.foot-bar {
  background: #FFFFFF;
  padding: 22px 0;
}
.foot-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-copy { font-size: 14px; color: #57534E; }
.socials { display: flex; gap: 10px; align-items: center; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #2D2B2A;
  transition: background 0.15s ease;
}
.socials a:hover { background: rgba(45, 43, 42, 0.06); }
.socials svg { width: 17px; height: 17px; }

/* ============================================================
   RESPONSIVE — sections 7-9
   ============================================================ */
@media (max-width: 1080px) {
  .s7 { --s7-card: 560px; }
  .s7-card { grid-template-columns: 150px 1fr; gap: 24px; padding: 40px; }
  .s8-container { padding: 128px 36px 32px; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; margin-bottom: 60px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; padding-bottom: 60px; }
}

@media (max-width: 640px) {
  .s6 { padding: 80px 20px; min-height: auto; }

  .s7 { --s7-card: 84vw; padding: 80px 0 80px; }
  .s7-head h2 { font-size: 30px; }
  .s7-card { grid-template-columns: 1fr; padding: 22px; border-radius: 30px; }
  .s7-portrait { aspect-ratio: 1 / 1; max-width: 190px; }
  .s7-quote { font-size: 17px; margin-bottom: 18px; }

  .s8 { padding: 0 12px; }
  .s8-container { border-radius: 30px; padding: 80px 22px 32px; min-height: 80vh; }
  .s8-title { font-size: 30px; }
  .s8-badge { font-size: 12px; padding: 9px 18px; }

  .site-footer { border-radius: 30px 30px 0 0; padding: 52px 0 0; }
  .foot-headline { font-size: 29px; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 44px; }
  .foot-bar .wrap { justify-content: center; text-align: center; }
  .socials { justify-content: center; }
}

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.careers-hero {
  padding: 170px 0 90px;
  text-align: center;
}
.careers-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.careers-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 auto 56px;
}
.careers-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.pillar {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 28px 26px;
  text-align: left;
}
.pillar h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.pillar p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

.careers-perks { padding: 40px 0 90px; }
.careers-perks h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: center;
  max-width: 24ch;
  margin: 0 auto 48px;
}
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.perk-card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 30px 28px;
}
.perk-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.perk-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }

.careers-transparency { padding: 30px 0 90px; }
.careers-transparency h2 {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
}
.careers-transparency p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0;
}

.careers-roles { padding: 20px 0 110px; }
.role-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.role-filter {
  padding: 10px 20px;
  border-radius: var(--r-cta);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
}
.role-filter.active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.role-list { display: grid; gap: 14px; }
.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 24px 28px;
}
.role-info h4 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.role-meta { display: flex; gap: 10px; align-items: center; }
.role-dept {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(71, 32, 28, 0.06);
  border-radius: 60px;
  padding: 4px 12px;
}
.role-loc { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .careers-pillars { grid-template-columns: 1fr; }
  .perks-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .careers-hero { padding: 130px 0 60px; }
  .careers-hero h1 { font-size: 34px; margin-bottom: 40px; }
  .perks-grid { grid-template-columns: 1fr; }
  .role-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   BOOK DEMO MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(41, 18, 16, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 20px;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: #FFFFFF;
  border-radius: 32px;
  padding: 38px 34px 30px;
  width: 100%;
  max-width: 470px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(71, 32, 28, 0.06);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.modal-close:hover { background: rgba(71, 32, 28, 0.12); }

.modal h3 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}

.modal-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 26px;
}

.modal-form { display: grid; gap: 13px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field .opt { font-weight: 400; }

.field input, .field textarea {
  width: 100%;
  padding: 13px 17px;
  border: 1.5px solid var(--hairline);
  border-radius: 60px;
  background: #FCFAF8;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.field textarea { border-radius: 20px; min-height: 82px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.modal-submit {
  position: sticky;
  bottom: 0;
  margin-top: 3px;
  height: 52px;
  border-radius: 60px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.modal-submit:hover { background: var(--deep); }

@media (max-width: 640px) {
  .modal-backdrop { align-items: flex-start; padding: 12px; }
  .modal { padding: 30px 20px 22px; border-radius: 26px; max-height: 90vh; }
  .modal h3 { font-size: 25px; }
  .modal-sub { margin-bottom: 14px; font-size: 14px; }
  .modal-form { gap: 10px; }
  .field label { margin-bottom: 5px; font-size: 12.5px; }
  .field input, .field textarea { padding: 11px 15px; font-size: 14px; border-radius: 50px; }
  .field textarea { min-height: 58px; border-radius: 18px; }
  .modal-submit { height: 48px; }
}
