/* ============================================================================
   Kudimata Securities — site styles
   Built on the Kudimata Invest design system (assets/css/ds/). Page-level
   palette below is the landing-page layer: plum ground, grape accent, sun and
   coral highlights. The app mockup inside "The app" keeps the design system's
   own light tokens, because it is a picture of the app, not part of the page.
   ========================================================================= */

/* --- page palette -------------------------------------------------------- */
:root {
  --pg: #150D1E;          /* page ground */
  --pg2: #1C1326;         /* raised surface: cards, ticker, footer */
  --pi: #F4F0EC;          /* primary ink */
  --pi2: #C9C2D2;         /* body copy */
  --pi3: #A29AAE;         /* labels, meta */
  --hair: rgba(244, 240, 236, .11);
  --grape: #7A34C4;
  --sun: #F5C542;
  --coral: #F07A45;
  --gain: #5CD69B;
  --loss: #F08C7D;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Nunito", ui-rounded, system-ui, sans-serif;
  --core: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;

  --wrap: 1560px;
  --gut: clamp(20px, 4.4vw, 48px);   /* horizontal page gutter */
  --sec: clamp(76px, 8.6vw, 120px);  /* vertical section rhythm */
  --nav-h: 64px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --pg: #FFFDF9;
  --pg2: #FFFFFF;
  --pi: #20201E;
  --pi2: #5C564E;
  --pi3: #726B62;
  --hair: #EBE6DD;
  --grape: #6524A8;
  --gain: #2AA36B;
  --loss: #D0503F;

  color-scheme: light;
}

/* --- base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pg);
  color: var(--pi);
  font-family: var(--core);
  font-size: 16px;
  overflow-x: hidden;
}

/* The design system styles links for the app: grape text plus a grape
   underline on hover. On this page that reads as purple-on-purple, so links
   inherit their surroundings and only dim. Anything that should look like a
   link opts back in (see .doc-body a). */
a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  transition: opacity .2s ease;
}
a:hover { color: inherit; border-bottom-color: transparent; opacity: .6; }
img, svg, video { display: block; }
/* Must come after the rule above, which would otherwise re-display the
   hidden icon sprite and the closed mobile menu. */
[hidden] { display: none !important; }
button { font: inherit; }

::selection { background: var(--sun); color: #150D1E; }

:focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--sun);
  color: #150D1E;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: top .2s ease;
}
.skip:focus { top: 16px; opacity: 1; }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- shared type --------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pi3);
}

.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}

/* Anchored sections must clear the fixed header. */
#why, #app, #team, #contact { scroll-margin-top: 84px; }

.ico { flex: none; }

/* Icon geometry comes from the design system's Icon component: 24px box,
   1.75 stroke, round joins, no fill. */
svg.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 56px;
  padding: 0 34px;
  border: 0;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.btn:hover { opacity: 1; }
.btn:active { transform: scale(.985); }

.btn--grape {
  background: var(--grape);
  color: #fff;
  box-shadow: 0 10px 30px rgba(101, 36, 168, .5);
}
.btn--onvideo {
  border: 1.5px solid rgba(255, 255, 255, .6);
  color: #fff;
  font-weight: 700;
  background: transparent;
}
.btn--outline {
  border: 1.5px solid var(--hair);
  color: var(--pi);
  font-weight: 700;
  background: transparent;
}
.btn--white {
  height: 54px;
  padding: 0 30px;
  background: #fff;
  color: var(--grape);
}

/* ============================================================================
   Header
   ========================================================================= */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px var(--gut);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { opacity: 1; }
.brand img { height: 24px; }
.brand-word { font-size: 16px; color: #fff; transition: color .35s ease; }
.brand-word b { font-weight: 800; }
.brand-word .sec { color: var(--sun); font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  transition: color .35s ease;
}

/* No hover recolour on nav links — they sit on video and on both themes. */
.nav-links a { color: inherit; }
.nav-links a:hover { opacity: 1; color: inherit; }

.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  padding: 9px 15px;
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .35s ease, border-color .35s ease;
}

.nav-cta {
  background: #fff;
  color: #150D1E;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 6px 20px rgba(15, 10, 20, .3);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}
.nav-cta:hover { opacity: 1; }

/* burger — mobile only */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: border-color .35s ease;
}
.burger span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
[data-menu="open"] .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
[data-menu="open"] .burger span:nth-child(2) { opacity: 0; }
[data-menu="open"] .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile menu panel */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--pg);
  padding: calc(var(--nav-h) + 44px) var(--gut) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.16, 1, .3, 1), visibility .3s;
  overflow-y: auto;
}
[data-menu="open"] .menu { opacity: 1; visibility: visible; transform: none; }

.menu a.menu-link {
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 9vw, 40px);
  letter-spacing: -.02em;
  color: var(--pi);
}
.menu .btn { margin-top: 28px; width: 100%; }

/* ============================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(120px, 16vw, 150px) var(--gut) clamp(80px, 11vw, 110px);
  text-align: center;
  overflow: hidden;
  /* If the video is slow or blocked, the hero still reads as designed. */
  background: radial-gradient(120% 90% at 50% 0%, #3A2350 0%, #150D1E 70%);
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 10, 20, .55) 0%, rgba(15, 10, 20, .32) 45%, #150D1E 97%);
  transition: background .35s ease;
}
:root[data-theme="light"] .hero-scrim {
  background: linear-gradient(180deg, rgba(15, 10, 20, .5) 0%, rgba(15, 10, 20, .34) 45%, #FFFDF9 98%);
}

.hero-inner { position: relative; max-width: 1180px; }

.hero-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 16px rgba(15, 10, 20, .75);
}

.hero h1 {
  margin: clamp(22px, 4vw, 34px) 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 9.6vw, 146px);
  line-height: .92;
  letter-spacing: -.035em;
  color: #fff;
  text-shadow: 0 2px 44px rgba(15, 10, 20, .55);
}
.hero h1 .sun { color: var(--sun); }

.hero-lead {
  margin: clamp(24px, 4vw, 38px) auto 0;
  max-width: 560px;
  font-size: clamp(17px, 2.3vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
  text-shadow: 0 1px 24px rgba(15, 10, 20, .7);
}

.hero-actions {
  margin-top: clamp(28px, 4.6vw, 42px);
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-actions .btn { color: #fff; }
.hero-actions .btn:hover { color: #fff; opacity: 1; }

/* ============================================================================
   Ticker
   ========================================================================= */
.ticker {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  padding: 18px 0;
  background: var(--pg2);
}
.ticker-track {
  display: flex;
  width: max-content;
  font-variant-numeric: tabular-nums;
}
/* The -50% slide only makes sense once the list has been duplicated, which
   site.js does — so the animation is attached there too. */
.ticker-track.is-running { animation: vmq 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { padding: 0 30px; font-size: 14px; white-space: nowrap; }
.ticker-item .sym {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--pi3);
}
.ticker-item b { font-weight: 800; }
.ticker-item .chg { font-weight: 700; }
.up { color: var(--gain); }
.down { color: var(--loss); }

@keyframes vmq {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================================
   Why us
   ========================================================================= */
.section { padding-block: var(--sec); }
#why { padding-block: clamp(82px, 9.4vw, 130px); }

.cards {
  margin-top: clamp(38px, 4.4vw, 60px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  position: relative;
  background: var(--pg2);
  border: 1px solid var(--hair);
  border-radius: 26px;
  padding: 36px 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--grape); }

.card-bleed {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  opacity: .16;
  right: -90px;
  top: -90px;
}

.card-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-plate {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  display: grid;
  place-items: center;
}
.card-plate img { width: 60px; height: 60px; }
.card-index {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--pi3);
}

.card-body { position: relative; }
.card-body h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.card-body p {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--pi2);
  text-wrap: pretty;
}

.card-tag {
  position: relative;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ============================================================================
   The app
   ========================================================================= */
#app { background: var(--grape); color: #fff; }

.app-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--sec) var(--gut);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(44px, 5vw, 64px);
  align-items: center;
}
/* Grid items default to a min-content minimum, which lets the phone mockup
   push the whole column wider than the viewport. */
.app-grid > *, .contact-grid > * { min-width: 0; }

#app .eyebrow { color: rgba(255, 255, 255, .68); }
#app .h2 { font-size: clamp(34px, 4.8vw, 66px); }

.app-lead {
  margin: 26px 0 0;
  max-width: 440px;
  font-size: clamp(17px, 2.2vw, 19px);
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
}

.app-points {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  list-style: none;
}
.app-points li { display: flex; align-items: flex-start; gap: 14px; }
.app-points .tick {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--sun);
  color: #20201E;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 2px;
}
.app-points span:last-child { font-size: 16.5px; font-weight: 600; line-height: 1.5; }

.app-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.app-stores {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}

.phone-stage { display: flex; justify-content: center; }

/* ---- the app mockup ----------------------------------------------------
   Everything inside .phone is drawn with the design system's light tokens,
   because it is a screenshot of the app. Gain/loss are pinned to the design
   system's on-paper values so they stay legible when the page is dark.
   ------------------------------------------------------------------------ */
.phone {
  --gain: #2AA36B;
  --loss: #D0503F;
  width: min(390px, 100%);
  flex: none;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 34px 80px rgba(24, 10, 44, .5);
  animation: vfloat 8s ease-in-out infinite;
  color: var(--ink);
  font-family: var(--font-core);
}

@keyframes vfloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px 0;
  font: var(--text-micro);
  letter-spacing: var(--track-micro);
  color: var(--ink-3);
}

.ph-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 12px;
}
.ph-greet { display: flex; align-items: center; gap: 10px; }
.ph-greet img { width: 36px; height: 36px; border-radius: 999px; }
.ph-greet span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.ph-iconbtn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  padding: 0;
  color: var(--ink);
  cursor: default;
}

.ph-body { display: flex; flex-direction: column; padding-bottom: 28px; }

.ph-wealth-wrap { padding: 8px 24px 0; }
.ph-wealth {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
}
.ph-wealth-bleed {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: var(--indicator-tint);
  right: -80px;
  top: -80px;
}
.ph-wealth-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.ph-wealth-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font: var(--text-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 8px;
}
.ph-wealth-head img { height: 64px; flex: none; }
.ph-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 42px;
  line-height: 46px;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.ph-amount .cents { font-size: 23px; color: var(--ink-3); }
.ph-pills {
  display: flex;
  gap: 8px;
  padding-top: 6px;
  position: relative;
  flex-wrap: wrap;
}
.ph-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--indicator-tint);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* horizontal rails — scrollable on a narrow phone, as they are in the app */
.ph-rail {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ph-rail::-webkit-scrollbar { display: none; }

.ph-actions { padding: 22px 0 0 24px; gap: 18px; }
.ph-action {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ph-action .disc {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--indicator-tint);
  color: var(--indicator);
}
.ph-action.is-primary .disc { background: var(--indicator); color: #fff; }
.ph-action span:last-child { font-size: 13px; font-weight: 600; color: var(--ink); }

.ph-h2 {
  padding: 30px 24px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
}

.ph-grow { padding: 14px 24px 0; gap: 12px; }
.ph-grow-card {
  flex: none;
  width: 220px;
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ph-grow-card img { height: 84px; align-self: center; }
.ph-grow-card .t {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 22px;
}
.ph-grow-card .a { font-size: 13px; font-weight: 700; }
.ph-grow-card.feature { background: var(--feature); }
.ph-grow-card.feature .t { color: var(--feature-ink); }
.ph-grow-card.feature .a { color: var(--sun); }
.ph-grow-card.sunny { background: var(--sun-tint); }
.ph-grow-card.sunny .t { color: var(--ink); }
.ph-grow-card.sunny .a { color: var(--indicator); }

.ph-lesson-wrap { padding: 24px 24px 0; }
.ph-lesson {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ph-lesson .thumb {
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--sun-tint);
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph-lesson .thumb img { height: 38px; }
.ph-lesson .txt { flex: 1; display: flex; flex-direction: column; }
.ph-lesson .txt .t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.ph-lesson .txt .s { font-size: 13px; color: var(--ink-3); }
.ph-lesson .chev { color: var(--ink-3); }

.ph-movers-head {
  padding: 26px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ph-movers-head .t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.ph-movers-head .a { font-size: 15px; font-weight: 600; color: var(--indicator); }

.ph-movers-wrap { padding: 8px 24px 0; }
.ph-movers {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ph-mover { display: flex; align-items: center; gap: 14px; }
.ph-mover .tag {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sun-tint);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
}
.ph-mover .nm { flex: 1; display: flex; flex-direction: column; }
.ph-mover .nm .t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.ph-mover .nm .s { font-size: 13px; color: var(--ink-3); }
.ph-mover .px { display: flex; flex-direction: column; align-items: flex-end; }
.ph-mover .px .t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ph-mover .px .s { font-size: 13px; font-weight: 700; }

.ph-dots { display: flex; gap: 6px; justify-content: center; }
.ph-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--track);
}
.ph-dots i.on { width: 18px; background: var(--indicator); }

.ph-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 8px 26px;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.ph-nav > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--ink-3);
}
.ph-nav > div span { font-size: 11px; font-weight: 600; }
.ph-nav > div.on { color: var(--indicator); }
.ph-nav > div.on span { font-weight: 700; }

/* ============================================================================
   Team
   ========================================================================= */
/* Three across, the fourth on its own row beneath. Auto-fit used to pack all
   four onto one row at ~315px each, which was too narrow for a full-bleed
   portrait; three keeps the card at its designed width. */
.team-grid {
  margin-top: clamp(36px, 4.2vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
/* The fourth member sits alone on the second row — centre it in the middle
   column rather than letting it hang off the left edge. */
@media (min-width: 1280px) {
  .team-grid > :nth-child(4) { grid-column: 2; }
}
@media (max-width: 1279px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .team-grid { grid-template-columns: 1fr; }
}

.member {
  background: var(--pg2);
  border: 1px solid var(--hair);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease;
}
.member:hover { transform: translateY(-6px); border-color: var(--grape); }

.member-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.member-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.member-role {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: rgba(15, 10, 20, .72);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.member-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.member-body h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.member-bio {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--pi2);
  text-wrap: pretty;
}
.member-meta {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--pi3);
  text-wrap: pretty;
}

/* ============================================================================
   Contact
   ========================================================================= */
#contact { border-top: 1px solid var(--hair); }

.contact-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: var(--sec) var(--gut);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 4vw, 48px);
  align-items: center;
}
/* A touch smaller than the other section heads: this one carries a longer
   line, and at 70px "Open your account" broke to three ragged lines. */
#contact .h2 { font-size: clamp(32px, 4.4vw, 60px); }

.contact-lead {
  margin: 24px 0 0;
  max-width: 440px;
  font-size: clamp(17px, 2.2vw, 18.5px);
  font-weight: 500;
  line-height: 1.65;
  color: var(--pi2);
}
.contact-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.contact-actions .btn { padding: 0 32px; }

.contact-cards { display: flex; flex-direction: column; gap: 18px; }

.contact-office {
  background: var(--pg2);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 30px;
}
.contact-office .lbl {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pi3);
}
.contact-office .val {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -.015em;
}

.contact-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.contact-tile { border-radius: 22px; padding: 28px; }
.contact-tile .lbl {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.contact-tile .val {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  word-break: break-word;
}
.contact-tile.sun { background: var(--sun); color: #20201E; }
.contact-tile.sun .lbl { color: #8A6410; }
.contact-tile.sun .val { font-variant-numeric: tabular-nums; }
.contact-tile.grape { background: var(--grape); color: #fff; }
.contact-tile.grape .lbl { color: rgba(255, 255, 255, .68); }

/* ============================================================================
   Footer
   ========================================================================= */
.footer { border-top: 1px solid var(--hair); background: var(--pg2); }

.footer-top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 52px var(--gut);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-about { display: flex; flex-direction: column; gap: 14px; max-width: 430px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand:hover { opacity: 1; }
.footer-brand img { height: 22px; }
.footer-brand span { font-size: 15px; }
.footer-brand b { font-weight: 800; }
.footer-brand .sec { font-weight: 800; color: var(--grape); }
.footer-note {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--pi3);
}

.footer-cols {
  display: flex;
  gap: clamp(28px, 4vw, 52px);
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .hd {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pi3);
}
/* Footer links keep their own colour and only dim — never grape on grape. */
.footer a { color: inherit; }
.footer a:hover { color: inherit; opacity: .6; }

.footer-bottom { border-top: 1px solid var(--hair); }
.footer-bottom div {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px var(--gut);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pi3);
}

/* ============================================================================
   Scroll reveals
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .85s cubic-bezier(.16, 1, .3, 1), transform .85s cubic-bezier(.16, 1, .3, 1);
}
[data-reveal].vin { opacity: 1; transform: none; }

/* ============================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .burger { display: block; }
}

@media (max-width: 900px) {
  /* Single column before auto-fit would leave an orphan card stretched wide. */
  .app-grid { grid-template-columns: 1fr; }
  .app-lead, .contact-lead { max-width: none; }
  #app .app-copy { text-align: left; }
  .phone-stage { order: -1; }
}

@media (max-width: 720px) {
  .card { padding: 28px 24px 26px; }
  .card-plate { width: 80px; height: 80px; border-radius: 22px; }
  .card-plate img { width: 50px; height: 50px; }
  .member-body { padding: 24px; }
  .contact-office, .contact-tile { padding: 24px; }
  .footer-top { gap: 40px; }
  .footer-cols { gap: 32px 40px; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; }
  .app-actions .btn { width: 100%; }
  .brand-word { font-size: 15px; }
  .ticker-item { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .phone { animation: none; }
  .card, .member { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ============================================================================
   Legal — /legal and /legal/<document>
   Same system as the landing page: plum ground, grape accent, Nunito for
   display, Nunito Sans for reading. Set for long-form reading, not marketing.
   ========================================================================= */
:root { --link: #C9A6EC; }          /* body links on the plum ground */
:root[data-theme="light"] { --link: var(--grape); }

/* The legal header never sits over video, so it is solid from the first pixel. */
.header--solid {
  background: var(--pg2);
  border-bottom: 1px solid var(--hair);
}

.legal-masthead {
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 96px));
  padding-bottom: clamp(40px, 5vw, 64px);
}
.legal-lead {
  margin: clamp(20px, 3vw, 28px) 0 0;
  max-width: 620px;
  font-size: clamp(17px, 2.2vw, 19px);
  font-weight: 500;
  line-height: 1.65;
  color: var(--pi2);
}

.legal-list { padding-bottom: clamp(72px, 8vw, 110px); }

/* The index reads as a list of documents, not a wall of boxes: a numbered
   register, title against its summary, ruled between rows. */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
  counter-reset: none;
}
.doc-list > li { border-bottom: 1px solid var(--hair); }

.doc-row {
  display: grid;
  grid-template-columns: 54px minmax(190px, 300px) minmax(0, 1fr) 24px;
  grid-template-areas: "n t d c";
  align-items: center;
  gap: 28px;
  padding: 28px 18px;
  margin-inline: -18px;
  border-radius: 18px;
  transition: background .3s ease;
}
.doc-row:hover { opacity: 1; background: var(--pg2); }

.doc-row-n {
  grid-area: n;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--sun);
}
:root[data-theme="light"] .doc-row-n { color: var(--grape); }

.doc-row-title {
  grid-area: t;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

.doc-row-desc {
  grid-area: d;
  max-width: 62ch;          /* keeps the summary readable on a wide screen */
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--pi2);
  text-wrap: pretty;
}

.doc-row-go {
  grid-area: c;
  justify-self: end;
  color: var(--pi3);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), color .3s ease;
}
.doc-row:hover .doc-row-go { transform: translateX(4px); color: var(--pi); }

@media (max-width: 900px) {
  .doc-row {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    grid-template-areas:
      "n t c"
      ". d .";
    align-items: start;
    gap: 6px 14px;
    padding: 24px 14px;
    margin-inline: -14px;
  }
  .doc-row-n { line-height: 1.5; }
  .doc-row-go { align-self: center; grid-row: 1 / span 2; }
}

.legal-foot-note {
  margin: clamp(40px, 5vw, 56px) 0 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pi3);
}
.legal-foot-note a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* --- document page ------------------------------------------------------- */
.doc-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  padding-top: calc(var(--nav-h) + clamp(44px, 6vw, 76px));
  padding-bottom: clamp(72px, 8vw, 110px);
}

.doc-side-inner { position: sticky; top: calc(var(--nav-h) + 32px); }

.doc-back {
  display: inline-block;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pi3);
}
.doc-back::before { content: "← "; }

.doc-toc { display: flex; flex-direction: column; gap: 9px; }
.doc-toc .hd {
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pi3);
}
.doc-toc a {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--pi3);
  border-left: 2px solid var(--hair);
  padding-left: 12px;
  transition: color .2s ease, border-color .2s ease;
}
.doc-toc a:hover { opacity: 1; color: var(--pi); }
.doc-toc a.on { color: var(--pi); border-left-color: var(--grape); }

.doc { max-width: 74ch; }

.doc-head {
  padding-bottom: clamp(26px, 3vw, 34px);
  margin-bottom: clamp(32px, 4vw, 44px);
  border-bottom: 1px solid var(--hair);
}
.doc-mark { height: 26px; margin-bottom: 22px; }
.doc-head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.doc-meta:not(:empty) { margin-top: 16px; }
.doc-updated {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pi3);
}

.doc-body h2 {
  margin: clamp(40px, 5vw, 56px) 0 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.25;
  letter-spacing: -.02em;
  scroll-margin-top: calc(var(--nav-h) + 36px);
  text-wrap: pretty;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 {
  margin: 32px 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.015em;
  scroll-margin-top: calc(var(--nav-h) + 36px);
}
.doc-body p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--pi2);
}
.doc-body strong { color: var(--pi); font-weight: 700; }
.doc-body a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.doc-body a:hover { opacity: .75; }

.doc-body ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-body li {
  position: relative;
  padding-left: 26px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--pi2);
}
.doc-body li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--grape);
}

.doc-table { overflow-x: auto; margin: 0 0 24px; }
.doc-table table { border-collapse: collapse; width: 100%; min-width: 420px; }
.doc-table th, .doc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pi2);
}
.doc-table th {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pi3);
}

.doc-end {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}
.doc-end p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--pi3); }
.doc-end a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.doc-nav {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.doc-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--pg2);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 20px 24px;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .3s ease;
}
.doc-nav a:hover { opacity: 1; transform: translateY(-3px); border-color: var(--grape); }
.doc-nav span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pi3);
}
.doc-nav strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16.5px;
  line-height: 1.25;
  letter-spacing: -.015em;
}
.doc-next { text-align: right; align-items: flex-end; }

@media (max-width: 1000px) {
  .doc-shell { grid-template-columns: 1fr; }
  .doc-side-inner { position: static; }
  .doc-toc {
    background: var(--pg2);
    border: 1px solid var(--hair);
    border-radius: 20px;
    padding: 20px 22px;
  }
  .doc-toc a { border-left: 0; padding-left: 0; }
  .doc-toc a.on { border-left: 0; }
  .doc { max-width: none; }
}

@media (max-width: 560px) {
  .doc-nav { grid-template-columns: 1fr; }
  .doc-next { text-align: left; align-items: flex-start; }
  .doc-body p, .doc-body li { font-size: 16.5px; }
}

/* --- print: a legal document should save to PDF cleanly ------------------ */
@media print {
  .header, .menu, .doc-side, .doc-nav, .footer, .skip { display: none !important; }
  .doc-shell { display: block; padding: 0; }
  .doc { max-width: none; }
  .doc-body p, .doc-body li { color: #20201E; font-size: 11pt; line-height: 1.6; }
  .doc-body h2, .doc-head h1, .doc-body strong { color: #000; }
  .doc-body a { color: #000; }
  .doc-body h2 { break-after: avoid; }
  .doc-body li, .doc-body p { break-inside: avoid; }
}
