/* The white site. Paper is the page; night is only where the photo is: the sunrise hero, the constellation under
   it (a night plate mounted on the paper, with the Overview window standing out of it onto the page). The lake
   prints elsewhere (walk-through, page heads, the brokerage and closing asks) are inked on the paper. Loaded last on every page by build.py. The base sheets were written for a
   black page, so this re-points the tokens at paper, hands the night tokens back to the night, and fixes the few
   places that hard-code white on black. */

/* ---------- tokens ---------- */
:root {
  --paper: #fafaf8;
  --bg: #fafaf8;
  --bg-2: #f3f3ef;
  --panel: #f3f3ef;
  --panel-2: #ebebe5;
  --line: rgba(6, 41, 76, 0.1);
  --line-2: rgba(6, 41, 76, 0.18);
  --text: #0e1014;
  --soft: #474c56;
  /* 5.3:1 on paper; the old #7a808a was 3.9:1 */
  --faint: #626873;
  --sky: #2b6cb3;
  /* gold as text on paper: 5.1:1. Signal gold #f2ab00 stays for marks and for the night */
  --gold: #8f6200;
  color-scheme: light;
}
/* the product mock-ups' faint meta text (times, "Sarah · 19:48"): 5:1 on their white cards, was 3.35:1 */
.bp {
  --bp-ink-faint: #6c6f79;
}
.hero,
.cs,
.egg__prize {
  --bg: #04070c;
  --bg-2: #080d15;
  --panel: #0c131d;
  --panel-2: #111a26;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f2f4f7;
  --soft: #a6b0bd;
  --faint: #8792a0;
  --sky: #7db4f0;
  --gold: #f2ab00;
  color-scheme: dark;
}
html {
  background: var(--paper);
  scrollbar-color: #c3c8d0 var(--paper);
}
::selection {
  background: rgba(43, 108, 179, 0.2);
  color: #0e1014;
}
.hero ::selection,
.cs ::selection {
  background: rgba(125, 180, 240, 0.32);
  color: #f2f4f7;
}
:focus-visible {
  outline-color: #2b6cb3;
}
main::before,
main::after {
  background: repeating-linear-gradient(to bottom, rgba(6, 41, 76, 0.1) 0 4px, transparent 4px 9px);
}

/* ---------- the frame and the notch: paper all the way down, so they never change colour mid-scroll ---------- */
.page {
  --fr-c: #fafaf8;
}
.page::after {
  box-shadow:
    inset 0 0 0 1px rgba(6, 41, 76, 0.06),
    0 0 0 40px var(--fr-c);
}
.r5-pill,
.r5-panel {
  --line: rgba(6, 41, 76, 0.1);
  --line-2: rgba(6, 41, 76, 0.16);
}
/* the notch, slim: paper hanging into the night photo was the loudest thing on the first screen (920px wide, almost
   half its bright pixels), so on the white site it is sized to what it holds and shallower, a tab rather than a
   lid. Its corners and shoulders take the system's 20px radius: the hairline round them needs the notch to be at
   least the frame plus two radii deep. The night site keeps its own notch, which disappears into the sky */
@media (min-width: 761px) {
  .r5-pill {
    --fr-r: 20px;
    display: flex;
    align-items: center;
    width: auto;
    max-width: none;
    height: calc(var(--fr) + 48px);
    padding: var(--fr) 6px 0 18px;
  }
  .r5-brand {
    height: 36px;
  }
  .r5-links {
    margin: 0 14px 0 32px;
  }
  /* the four links are the site; Sign In is the app, for people who already have it: a short rule between them */
  .r5-end::before {
    content: "";
    width: 1px;
    height: 16px;
    margin-right: 8px;
    background: var(--line-2);
  }
  .r5-links a,
  .r5-login,
  .r5-hl {
    height: 32px;
  }
  .r5-links a,
  .r5-login {
    padding: 0 11px;
  }
  .r5-end {
    gap: 6px;
  }
  .r5-cta {
    height: 36px;
    gap: 10px;
    padding: 0 3px 0 14px;
  }
  .r5-cta i {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 760px) {
  .r5-pill {
    height: 52px;
  }
  .r5-cta {
    height: 36px;
  }
  .r5-cta i {
    width: 30px;
    height: 30px;
  }
}
/* once the page is on paper the notch would sink into it, and words scroll under its corners: a soft navy shadow
   and a firmer hairline keep it a shape on the page */
.r5-pill {
  transition: box-shadow 0.4s ease;
}
.r5-bar[data-scrolled]:not([data-over-hero]) .r5-pill {
  --line: rgba(6, 41, 76, 0.14);
  box-shadow: 0 12px 24px -16px rgba(6, 41, 76, 0.32);
}
/* on the homepage the notch is let down from the frame as the hero arrives: it lowers out of the frame's top edge
   instead of fading in (hero.css holds it paused until the photo and fonts are in). Other pages keep the fade, so
   moving between them never replays it; reduced motion shows it in place */
@media (prefers-reduced-motion: no-preference) {
  html:has(.hero) .r5-pill {
    animation: r5Lower 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  }
  html.fl-wait:has(.hero) .r5-pill {
    animation-play-state: paused;
  }
}
@keyframes r5Lower {
  from {
    transform: translateY(calc(var(--fr) - 100%));
  }
}
/* the nav's focus ring was the night site's white, invisible on paper */
.r5-bar a:focus-visible,
.r5-menu:focus-visible {
  outline-color: #06294c;
}
.r5-brand span,
.r5-links a:hover,
.r5-links a[aria-current],
.r5-login:hover,
.r5-menu,
.r5-panel {
  color: #0e1014;
}
.r5-links a,
.r5-login {
  color: #4f545e;
}
.r5-hl,
.r5-login:hover,
.r5-menu:hover {
  background: rgba(6, 41, 76, 0.06);
}
.r5-cta {
  background: #06294c;
  color: #fafaf8;
}
.r5-cta:hover {
  background: #0a3d6e;
}
.r5-cta i {
  background: #fafaf8;
  color: #06294c;
}
.r5-panel {
  box-shadow:
    0 0 0 1px rgba(6, 41, 76, 0.1),
    0 18px 50px -14px rgba(6, 41, 76, 0.28);
}
/* the phone menu's links were the night site's white on the paper panel */
.r5-panel a {
  color: #0e1014;
}
.r5-panel a:hover {
  background: rgba(6, 41, 76, 0.06);
}

:root .lg-d {
  display: none;
}
:root .lg-l {
  display: block;
}

/* ---------- buttons: navy on paper, white on the night ---------- */
.btn--primary {
  background: #06294c;
  color: #fafaf8;
}
.btn--primary:hover {
  background: #0a3d6e;
}
.btn--primary.btn--go i {
  background: #fafaf8;
  color: #06294c;
}
.btn--ghost:hover {
  background: rgba(6, 41, 76, 0.04);
  box-shadow: inset 0 0 0 1px rgba(6, 41, 76, 0.28);
}
:is(.hero, .cs) .btn--primary {
  background: #f2f4f7;
  color: #06294c;
}
:is(.hero, .cs) .btn--primary:hover {
  background: #dfe5ec;
}

/* ---------- the seam: the night ends as a plate with the frame's own corners, the window stands out of it ---------- */
/* The hero's fixed mountain photo stays the constellation's backdrop, as on the dark site: .cs is see-through and
   no longer its own stacking layer, so ::before can sit UNDER the photo (z-index -1 in the page's root layer; body is
   see-through and html carries the paper). That night only shows where the photo has faded (--gone), and it stops
   --rise short of the section's foot with the frame's own 28px corners. ::after is the paper above the photo: the
   foot the Overview window and its Form 1A card stand on, and the two corners the plate rounds off. No fade: one
   clean edge, so the hero and the constellation read as one photograph mounted on the paper */
body {
  background: transparent;
}
.cs {
  --rise: 236px;
  z-index: auto;
  background: transparent;
}
.cs::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: var(--fr);
  right: var(--fr);
  bottom: var(--rise);
  background: #04070c;
  border-radius: 0 0 var(--fr-r) var(--fr-r);
  pointer-events: none;
}
.cs::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--rise) + var(--fr-r));
  pointer-events: none;
  background:
    radial-gradient(circle at 100% 0, rgba(250, 250, 248, 0) calc(var(--fr-r) - 0.5px), var(--paper) var(--fr-r))
      var(--fr) 0 / var(--fr-r) var(--fr-r) no-repeat,
    radial-gradient(circle at 0 0, rgba(250, 250, 248, 0) calc(var(--fr-r) - 0.5px), var(--paper) var(--fr-r))
      calc(100% - var(--fr)) 0 / var(--fr-r) var(--fr-r) no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 0 / var(--fr) var(--fr-r) no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 0 / var(--fr) var(--fr-r) no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 100% / 100% var(--rise) no-repeat;
}
/* the plate's foot is the horizon: one line in the Explainer's blue-to-gold (gold on the right, where the hero's
   sun lights the peak) marks the moment the night gives way to the page. It spreads out from behind the window as
   the edge rises; without scroll-linked animation, or with reduced motion, it is simply there */
.cs-dawn {
  position: absolute;
  z-index: 3;
  left: calc(var(--fr) + var(--fr-r));
  right: calc(var(--fr) + var(--fr-r));
  bottom: calc(var(--rise) - 1px);
  height: 2px;
  border-radius: 2px;
  /* the middle runs behind the window, so the colour is carried out to the ends, where the line is seen */
  background: linear-gradient(
    90deg,
    rgba(60, 186, 255, 0) 0,
    #3cbaff 3%,
    #3cbaff 24%,
    #f2ab00 76%,
    #f2ab00 97%,
    rgba(242, 171, 0, 0) 100%
  );
  pointer-events: none;
}
.cs-dawn::after {
  content: "";
  position: absolute;
  inset: -4px 0;
  background: inherit;
  filter: blur(7px);
  opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cs-dawn {
      animation: cs-dawn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }
  }
}
@keyframes cs-dawn {
  from {
    transform: scaleX(0.16);
    opacity: 0.35;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
.cs .bps-glow {
  display: none;
}
/* the window and its satellites stand on paper at their foot: shadows tinted from the navy, never black */
.cs .bps-win {
  box-shadow:
    0 0 0 1px rgba(6, 41, 76, 0.1),
    0 1px 2px rgba(6, 41, 76, 0.08),
    0 24px 48px -24px rgba(6, 41, 76, 0.3),
    0 64px 120px -48px rgba(6, 41, 76, 0.26);
}
.cs .bps-sat.light {
  box-shadow:
    0 0 0 1px rgba(6, 41, 76, 0.1),
    0 20px 44px -20px rgba(6, 41, 76, 0.34),
    0 4px 10px -4px rgba(6, 41, 76, 0.14);
}
.cs .bps-sat.dark {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 20px 44px -20px rgba(6, 41, 76, 0.5),
    0 4px 10px -4px rgba(6, 41, 76, 0.2);
}
/* phones: the satellites ride a sideways row that clips below them, so their shadow has to fit inside it */
@media (max-width: 760px) {
  .cs .bps-sat.light,
  .cs .bps-sat.dark {
    box-shadow:
      0 0 0 1px rgba(6, 41, 76, 0.12),
      0 8px 16px -10px rgba(6, 41, 76, 0.32);
  }
}
.cs .bps-satdots i {
  background: rgba(6, 41, 76, 0.2);
}
.cs .bps-satdots i.on {
  background: rgba(6, 41, 76, 0.72);
}
/* the trust row sits on the paper under the window, clear of the Form 1A card */
.trust {
  background: transparent;
  border-top: 0;
}
.trust + .sec {
  padding-top: 96px;
}

/* ---------- sections that hard-code the black page ---------- */
.ft-file {
  background: var(--bg-2);
}
/* the walk-through's windows on paper: from step 3 the print has run out behind them, and a white card on paper
   lost its edges. A firmer ring and a close contact shadow draw all four, the soft lift stays under them. All tinted
   from the navy, never black */
.ft-win,
.ft-src,
.ft-filecard {
  box-shadow:
    0 0 0 1px rgba(6, 41, 76, 0.11),
    0 1px 2px rgba(6, 41, 76, 0.08),
    0 6px 16px -4px rgba(6, 41, 76, 0.12),
    0 28px 56px -28px rgba(6, 41, 76, 0.3);
}
.ft-win.done {
  box-shadow:
    0 0 0 1px rgba(43, 108, 179, 0.45),
    0 1px 2px rgba(6, 41, 76, 0.08),
    0 6px 16px -4px rgba(6, 41, 76, 0.12),
    0 28px 56px -28px rgba(6, 41, 76, 0.3);
}
.ft-mini-art {
  box-shadow:
    0 0 0 1px rgba(6, 41, 76, 0.1),
    0 14px 28px -14px rgba(6, 41, 76, 0.32);
}
/* nothing on the stage is see-through over the print. A source that has handed its facts to the window sits back by
   quieting what is written on it, never its card, so the dots stay behind it */
.ft-js .ft-sx .ft-src.in.on {
  opacity: 1;
}
.ft-sx .ft-src > * {
  transition: opacity 0.5s ease;
}
.ft-js .ft-sx .ft-src.in.on > * {
  opacity: 0.5;
}
/* a loose file's name sits on a paper label, as on a desktop, so it reads wherever the print runs under it */
.ft-mini figcaption {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(6, 41, 76, 0.1),
    0 2px 6px -2px rgba(6, 41, 76, 0.18);
  color: var(--soft);
}
.ft-thread::before {
  background: rgba(6, 41, 76, 0.12);
}
.ft-thread span {
  background: var(--paper);
}
.ft-split .ft-field {
  opacity: 1;
}
.ft-pager i {
  background: rgba(6, 41, 76, 0.2);
}
.ft-pager i.on {
  background: rgba(6, 41, 76, 0.72);
}
.ft-morebtn:focus-visible {
  outline-color: #06294c;
}
/* the walk-through's print and every page-head print are inked on paper (shared/dither.js reads --print) */
.ft,
.ph,
.price__team,
.close__card {
  --print: paper;
}

/* pricing */
.price .toggle__thumb,
.price .toggle button[aria-pressed="true"] {
  background: #06294c;
}
.price .toggle.has-thumb button[aria-pressed="true"] {
  background: none;
}
.price .toggle button[aria-pressed="true"] {
  color: #fafaf8;
}
.price .toggle[data-on="a"] .toggle__thumb {
  background-color: #f2ab00;
}
.price .toggle[data-on="a"] button[aria-pressed="true"] {
  color: #0e1014;
}
.price .toggle[data-on="a"] ~ .price__num b {
  color: #8f6200;
}

/* ---------- the two asks: the lake printed on the paper in whole dots, on the site's own lines ---------- */
/* No mask on either print: an ordered dither is binary, every dot full navy, full gold or bare paper. Tone comes
   only from how many dots there are (--print-fade), and an edge is cut square wherever it meets a line */

/* the brokerage ask is the last row of pricing: the words in the price column, the lake set into the plan column
   like a plate, between two full-width rules (its own and the FAQ's) and inside the content edge */
.price {
  padding-bottom: 0;
}
.price__team {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 24px;
  align-items: start;
  overflow: visible;
  padding: clamp(96px, 8vw, 136px) 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--soft);
}
.js .price__team[data-rv] {
  transform: none;
}
.price__team::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  height: 1px;
  background: var(--line);
}
.price__team > div,
.price__team .btn {
  grid-column: 1 / span 5;
}
.price__team h3 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.price__team p {
  max-width: 46ch;
  text-wrap: pretty;
}
.price__team .btn {
  justify-self: start;
  margin-top: 32px;
  background: var(--paper);
}
.price__team .btn:hover {
  background: #f0f2f3;
}
/* the band is a box on the site's own lines: the lake fills it from its top rule to the FAQ's and from guide line to
   guide line (edge to edge below 1320px, where the guides are hidden; a canvas needs its width set). The words are
   set into the print, which parts around every line of type (data-clear), thinning dot by dot to bare paper, so the
   copy sits in a clearing of the lake's own ground and the print closes in on it as it develops. The slice runs from
   the dark sky to the treeline, the sunlit range on the right, away from the words. Same ink and dot as the page
   heads and the walk-through; it comes in as a broken signal locking on (--print-develop, shared/dither.js), and a
   mouse moving over it scatters its dots, the wake healing behind (--print-touch: the reach in css px) */
.price__team > .price__print {
  --print-crop: 0.22 0.565;
  --print-fade: 0 0.001;
  --print-pos: 0.5 1;
  --print-clear: 8 130;
  --print-develop: signal;
  --print-touch: 120;
  top: 1px;
  left: calc(50% - 50vw);
  width: 100vw;
  height: calc(100% - 1px);
  -webkit-mask-image: none;
  mask-image: none;
}
@media (min-width: 1320px) {
  .price__team > .price__print {
    left: -27px;
    width: calc(100% + 54px);
  }
}

/* the closing ask is the page head turned to the end of the page: the words on the column at the head's scale, the
   people the call reaches under its button, then the lake. The page heads print the sunlit mountain; the close prints
   its reflection, the gold resting on the footer's edge, cut square where the footer begins */
.close {
  text-align: left;
}
.close__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--soft);
}
.close__card::before,
.close__card::after {
  content: none;
}
.close h2 {
  max-width: 15ch;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text);
  text-shadow: none;
  text-wrap: balance;
}
.close__p {
  margin: 24px 0 0;
  max-width: 48ch;
  font-size: 19px;
  line-height: 1.5;
}
.close .btn {
  background: #06294c;
  color: #fafaf8;
}
.close .btn:hover {
  background: #0a3d6e;
}
.close .btn--go i {
  background: #fafaf8;
  color: #06294c;
}
.close__who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 0;
  font-size: 15px;
  line-height: 1.4;
}
.close__faces {
  display: flex;
  flex: none;
}
.close__faces img {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 2px var(--paper),
    0 0 0 3px var(--line-2);
}
.close__faces img + img {
  margin-left: -9px;
}
.close__faces img:nth-child(1) {
  z-index: 4;
}
.close__faces img:nth-child(2) {
  z-index: 3;
}
.close__faces img:nth-child(3) {
  z-index: 2;
}
.close__faces img:nth-child(4) {
  z-index: 1;
}
/* they are named under the button now, so the footer does not repeat them */
.page:has(.close__who) .foot .founders {
  display: none;
}
.close__card > .close__print {
  --print-crop: 0.46 0.92;
  --print-fade: 0 0.36;
  --print-pos: 0.5 0.6;
  position: relative;
  order: 1;
  inset: auto;
  width: 100vw;
  height: clamp(260px, 26vw, 440px);
  margin: 72px 0 0 calc(50% - 50vw);
  -webkit-mask-image: none;
  mask-image: none;
}
@media (max-width: 860px) {
  .price__team {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 56px;
    padding: 80px 0 clamp(200px, 56vw, 300px);
  }
  .price__team .btn {
    margin-top: 24px;
  }
  /* stacked, the box is still rule to rule and edge to edge; the words part the dark sky and the sunlit range
     stands under the button */
  .price__team > .price__print {
    --print-crop: 0.2 0.565;
    --print-pos: 0.86 1;
    --print-clear: 6 72;
  }
}
@media (max-width: 760px) {
  .close__p {
    font-size: 17px;
  }
  .close__card > .close__print {
    --print-pos: 0.9 0.6;
    height: 240px;
    margin-top: 56px;
  }
}

/* testimonials */
.vcar::after {
  background: linear-gradient(90deg, rgba(250, 250, 248, 0) 30%, var(--paper) 100%);
}
.vcar__arrow {
  background: rgba(6, 41, 76, 0.03);
  color: var(--text);
}
.vcar__arrow:hover {
  background: rgba(6, 41, 76, 0.07);
  box-shadow: inset 0 0 0 1px rgba(6, 41, 76, 0.3);
}
.vcar__dots i {
  background: rgba(6, 41, 76, 0.2);
}
.vcar__dots [aria-current] i {
  background: rgba(6, 41, 76, 0.72);
}
.quote--s + .quote--s {
  background: rgba(6, 41, 76, 0.025);
}

/* footer: the cut-off wordmark in ink, the logo in its own colours */
.foot {
  background: var(--bg-2);
}
.foot__soc:hover {
  box-shadow: inset 0 0 0 1px rgba(6, 41, 76, 0.3);
}
.foot__mark img {
  filter: brightness(0);
}

/* the other pages */
.bk-card .bp-card {
  box-shadow:
    0 0 0 1px rgba(6, 41, 76, 0.08),
    0 30px 60px -30px rgba(6, 41, 76, 0.32);
}

/* ---------- keep-scrolling egg ---------- */
/* on paper, like the page above it: navy dots and ink lines; the prize card stays a night card (its tokens above) */
.egg__stage {
  background-image: radial-gradient(circle, rgba(6, 41, 76, 0.16) 1px, transparent 1px);
}
.egg__slot {
  color: var(--text);
}
.egg__back {
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    0 1px 2px rgba(6, 41, 76, 0.06);
}
.egg__back:hover {
  box-shadow:
    inset 0 0 0 1px rgba(6, 41, 76, 0.32),
    0 4px 12px -4px rgba(6, 41, 76, 0.18);
}
.egg__back:focus-visible {
  outline-color: #2b6cb3;
}
.egg__prize {
  box-shadow:
    0 0 0 1px rgba(6, 41, 76, 0.12),
    0 40px 80px -40px rgba(6, 41, 76, 0.45);
}
