@font-face {
  font-family: Saans;
  src: local('Saans'), local('Saans Regular');
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; }
:root { --gold-finish: saturate(1.08) brightness(1.04); color-scheme: dark; background: #000; color: #f6f4ef; font: 100%/1.5 Saans, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body, p, h1 { margin: 0; }
body { background: #000; }
[hidden] { display: none !important; }
.page {
  --gutter: clamp(1.75rem, 4vw, 5rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  --header-gap: 1.8rem;
  padding: calc(var(--header-gap) + env(safe-area-inset-top, 0px))
           calc(var(--gutter) + env(safe-area-inset-right, 0px))
           calc(1.4rem + env(safe-area-inset-bottom, 0px))
           calc(var(--gutter) + env(safe-area-inset-left, 0px));
  background: #000;
}
.masthead > img { width: 6.6rem; height: auto; }
.art {
  position: absolute;
  inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
         env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  z-index: -1; pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 125% at 8% 100%, transparent 24%, rgb(0 0 0 / 7%) 44%, black 84%);
  background: #000 url('/assets/ascii-flow.webp') center / 100% 100% no-repeat;
}
[data-scrollshader="ascii-flow"] { display: block; width: 100%; height: 100%; opacity: 0; }
[data-scrollshader="ascii-flow"].ready { opacity: 1; filter: var(--gold-finish); }
main { flex: 1; display: flex; align-items: flex-end; }
.invitation { width: min(100%, 38rem); padding-top: 12rem; padding-bottom: clamp(1.75rem, 4vh, 3rem); }
h1 { font-size: clamp(2.4rem, 4.25vw, 4.25rem); line-height: 1.06; font-weight: 450; letter-spacing: -.035em; }
.intro { max-width: 30rem; margin-top: .85rem; font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.45; color: #d4d1ca; text-wrap: balance; }
.action { max-width: 480px; margin-top: 1.65rem; }
.feedback, noscript p { margin-bottom: .65rem; overflow-wrap: anywhere; }
.feedback { font-size: .95rem; color: #f2dfb8; }

/* The Start application CTA on apply.based.com, including its metal texture. */
.connect {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 48px; padding: 0 22px;
  border: 1px solid #bca276; border-radius: 999px;
  background: #9f824d url('/assets/button-gold.jpg') center center/cover no-repeat;
  background-blend-mode: normal;
  color: #17130c; box-shadow: inset 0 1px 0 #fff5d640, inset 0 -1px 0 #00000030, 0 1px 2px #00000066;
  font: 500 13px/1.5 Saans, Arial, sans-serif; letter-spacing: -.005em;
  filter: var(--gold-finish); overflow: hidden; isolation: isolate; cursor: pointer;
}
.button-copy { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
@media (hover: hover) and (pointer: fine) {
  .connect:hover { filter: saturate(1.08) brightness(1.08); }
  .secondary-button:hover { color: #fff; border-color: #c5ac79; }
}
.connect:active:not(:disabled) { transform: translateY(1px); }
.connect:disabled { opacity: .4; cursor: not-allowed; }
.connect:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 4px; }
@media (forced-colors: active) { .connect:focus-visible { outline: 2px solid ButtonText; } }
@media (max-width: 740px) {
  .page { --gutter: 20px; --header-gap: 1.35rem; }
  .masthead > img { width: 5.6rem; }
  .art {
    background-image: url('/assets/ascii-flow-mobile.webp');
    mask-image: linear-gradient(to bottom, transparent 2.75rem, black 20%, black 36%, rgb(0 0 0 / 6%) 65%, transparent 87%);
  }
  .invitation { padding-top: clamp(10rem, 37svh, 23rem); padding-bottom: 1.5rem; }
  h1 { font-size: clamp(2.25rem, 8.5vw, 3.25rem); }
}
@media (min-width: 741px) and (max-width: 1050px) {
  .invitation { max-width: 52vw; }
}

@media (pointer: coarse) and (orientation: landscape) {
  .art {
    top: calc(1.35rem + env(safe-area-inset-top, 0px));
    bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  }
  .invitation { padding-top: 2rem; }
}

/* Regular glass for the invitation label. The backdrop supplies its gold hue. */
.inviter-pill {
  --glass-surface: rgb(19 17 14 / .30);
  --invite-radius: 13px;
  --glass-label: #f5f4f1;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .5rem;
  box-sizing: border-box; max-width: 100%;
  padding: .55rem .85rem; margin-block-start: 1rem;
  border-radius: var(--invite-radius); corner-shape: squircle; color: var(--glass-label);
  background: linear-gradient(155deg, rgb(255 246 223 / .08), rgb(255 255 255 / .018) 46%, rgb(255 255 255 / .035)), var(--glass-surface);
  -webkit-backdrop-filter: blur(2px) saturate(112%);
  backdrop-filter: blur(2px) saturate(112%);
  box-shadow: 0 2px 7px #0003;
}
.invite-glass-optics {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  corner-shape: inherit; padding: 1px;
  background: linear-gradient(153deg, #fff3d823 2%, #fff3d810 21%, transparent 43%, #ffffff08 69%, #fff3d81a 93%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.invite-inline-copy {
  position: relative; display: flex; align-items: center; gap: .85rem; min-width: 0; overflow-x: auto;
  white-space: nowrap; scrollbar-width: none;
}
.invite-inline-copy::-webkit-scrollbar { display: none; }
.invite-inline-copy:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.invite-inline-copy > * { flex: none; }
.seat-clock { width: 1.05rem; height: 1.05rem; flex: none; color: #dbc597; }
#invite-seat-line { font-size: .875rem; line-height: 1.45; color: #e4e0d8; }
.invitation h1 { text-wrap: balance; }
.creator-name { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.creator-avatar {
  position: relative; display: inline-block; vertical-align: -.045em;
  vertical-align: calc((1cap - .82em) / 2);
  width: .82em; height: .82em; margin-inline-end: .17em; overflow: hidden;
  border-radius: 50%; background: #30291d; color: #ecd8ae;
}
#creator-initial { position: absolute; inset: 0; display: grid; place-items: center; font-size: .42em; font-weight: 500; letter-spacing: 0; }
#creator-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .inviter-pill { --invite-radius: 9px; gap: .4rem; padding: .425rem .65rem; }
  #invite-seat-line { font-size: .8125rem; }
}
@media (max-width: 350px) {
  .inviter-pill { gap: .3rem; padding-inline: .45rem; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .inviter-pill {
    background: #202022; box-shadow: inset 0 0 0 1px #767674;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .invite-glass-optics { display: none; }
}
@media (forced-colors: active) {
  .inviter-pill { color: CanvasText; background: Canvas; outline: 1px solid CanvasText; outline-offset: -1px; }
  #invite-seat-line { color: CanvasText; }
}
.invitation-note { color: #e4cca0; font-size: .9rem; font-weight: 500; margin-bottom: .55rem; overflow-wrap: anywhere; }
.invitation h1, .offer h1 { overflow-wrap: anywhere; }
.offer-page .art {
  height: min(32rem, 75svh); bottom: auto;
  mask-image: linear-gradient(160deg, transparent 12%, #0005 50%, #0009 70%, transparent 94%),
              linear-gradient(to bottom, black 35%, transparent 100%);
  mask-composite: intersect;
}
.offer-page main { align-items: flex-start; }
.offer { width: min(100%, 68rem); margin: clamp(3.5rem, 9vh, 7rem) auto 2rem; overflow-wrap: anywhere; }
.offer-heading { max-width: 44rem; }
.offer h1:focus { outline: none; }
.offer-heading > p:last-child { color: #d4d1ca; margin-top: .8rem; }
.compensation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 40rem; border-block: 1px solid #494137; margin: 2rem 0; padding: 1.25rem 0; }
.compensation > div + div { border-left: 1px solid #494137; padding-left: 1.5rem; }
.offer dt { color: #c9c4ba; font-size: .9rem; }
.offer dd { margin: 0; }
.compensation dd { color: #f1dfb8; font-size: clamp(1.7rem,4vw,3.25rem); line-height: 1.2; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.offer-columns { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(16rem,1fr); gap: clamp(2rem,6vw,6rem); align-items: start; }
.offer-section { padding-bottom: 1.5rem; }
.offer-section + .offer-section { border-top: 1px solid #34312a; padding-top: 1.5rem; }
.offer h2 { margin: 0 0 .65rem; font-size: 1.42rem; font-weight: 470; line-height: 1.2; letter-spacing: -.026em; }
.terms { color: #d4d1ca; white-space: pre-wrap; line-height: 1.6; }
.signing { padding: clamp(1.25rem,2.5vw,2rem); border: 1px solid #464034; border-radius: 1.15rem; background: #100f0d; }
.deadline { color: #c9c4ba; font-size: .9rem; }
#countdown { color: #ebd4a6; }
#sign-form { margin-top: 1.4rem; }
#sign-form > label:first-child { display: block; font-size: .95rem; margin-bottom: .4rem; }
#signed-name { padding: .65rem .8rem; width: 100%; min-height: 44px; border: 1px solid #635c51; background: #080808; color: inherit; border-radius: .4rem; font: inherit; }
.consent { display: flex; gap: .7rem; margin: 1rem 0 1.25rem; align-items: baseline; cursor: pointer; color: #d4d1ca; font-size: .92rem; line-height: 1.45; }
.consent input { flex-shrink: 0; align-self: start; margin: .13rem 0 0; width: 1.1rem; height: 1.1rem; accent-color: #e3c189; }
.receipt-details { margin-bottom: 0; }
.receipt-details div + div { margin-top: .75rem; }
.secondary-button { display: inline-flex; gap: .6rem; align-items: center; justify-content: center; background: transparent; border: 1px solid #766a54; border-radius: 999px; padding: .5rem 1.05rem; min-height: 44px; color: #efdfc0; font: 500 .85rem/1.4 Saans,Arial,sans-serif; text-decoration: none; cursor: pointer; }
.connect, .secondary-button { touch-action: manipulation; user-select: none; }
.offer :is(a, button, input):focus-visible { outline: 2px solid #f3dba8; outline-offset: 3px; }
.booking .feedback, #restart-preview { margin-top: 1rem; }
@media (max-width: 740px) {
  .offer { margin-top: 3.3rem; }
  .offer-columns { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .compensation > div + div { padding-left: 1rem; }
  .offer-page .art { height: 22rem; }
}

#analytics-panel { margin-top: 2rem; }
#analytics-panel .secondary-button { margin: .6rem .35rem 0 0; }
#analytics-videos { padding: 0; list-style: none; }
#analytics-videos li { margin-top: 1rem; overflow-wrap: anywhere; }
#analytics-videos p { margin: .3rem 0; }
.spark-result { user-select: all; }
