/* Homepage fonts: Durer (headings) + Figtree (body) */
@font-face {
  font-display: block;
  font-family: 'Durer';
  font-style: normal;
  font-weight: 100 900;
  src: url('fonts/durer/Durer.otf') format('opentype');
}

@font-face {
  font-display: block;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/figtree/figtree-v9-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: block;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/figtree/figtree-v9-latin-500.woff2') format('woff2');
}

@font-face {
  font-display: block;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/figtree/figtree-v9-latin-600.woff2') format('woff2');
}

@font-face {
  font-display: block;
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/figtree/figtree-v9-latin-700.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --db-bg: #f3f2f7;
  --db-fg: #1a1f24;
  --db-muted: #5c6770;
  --db-accent: #1f6b52;
  --db-accent-soft: #2a8a6a;
  --db-purple: #3a1d6e;
  --db-error: #b42318;
  --db-warning: #9a6700;
  --db-shadow: rgb(40 28 72 / 16%);
  --home-heading-font: Durer, sans-serif;
  --home-body-font: Figtree, sans-serif;
  --color-primary: var(--db-accent);
  --color-primary-content: #f7fbf9;
  --color-base-100: #ffffff;
  --color-base-200: #f3f5f7;
  --color-base-300: #e4e9ed;
  --color-base-content: var(--db-fg);
  --color-error: var(--db-error);
  --color-warning: var(--db-warning);
}

html,
body {
  background: var(--db-bg);
  color: var(--db-fg);
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--home-body-font);
}

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

.db-page {
  background:
    radial-gradient(ellipse 88% 48% at 50% -8%, #ffffff 0%, transparent 52%),
    radial-gradient(ellipse 62% 58% at -8% 32%, rgb(92 48 168 / 40%), transparent 64%),
    radial-gradient(ellipse 60% 54% at 108% 78%, rgb(22 122 88 / 42%), transparent 62%),
    radial-gradient(ellipse 48% 42% at 82% 6%, rgb(118 70 188 / 24%), transparent 68%),
    radial-gradient(ellipse 42% 38% at 14% 92%, rgb(48 148 108 / 22%), transparent 70%),
    linear-gradient(165deg, #efe6f8 0%, #eef3f0 48%, #dfece6 100%);
  color: var(--db-fg);
  font-family: var(--home-body-font);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

.db-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 1rem 1.25rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 40;
}

.db-nav > * {
  pointer-events: auto;
}

.db-nav-brand {
  display: inline-flex;
  line-height: 0;
  opacity: 1;
}

.db-nav-brand:hover {
  opacity: 0.75;
}

.db-nav-brand:focus-visible {
  outline: 2px solid var(--db-accent);
  outline-offset: 3px;
}

.db-nav-mark {
  display: block;
  filter: brightness(0);
  height: 1.9rem;
  opacity: 1;
  width: 1.9rem;
}

.db-legal {
  color: var(--db-muted);
  font-size: 0.8rem;
  opacity: 0.75;
}

.db-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 38rem;
  min-height: 100dvh;
  padding: 4.75rem 1.25rem 2rem;
  position: relative;
  z-index: 2;
}

.db-shell::before {
  background: radial-gradient(ellipse 78% 58% at 50% 42%, rgb(255 255 255 / 72%), transparent 70%);
  content: '';
  inset: 6% -24%;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.db-intro {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: center;
}

.db-eyebrow {
  align-self: center;
  background: color-mix(in srgb, var(--db-accent) 16%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--db-accent) 38%, transparent);
  border-radius: 999px;
  color: var(--db-accent);
  display: inline-flex;
  font-family: var(--home-body-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0;
  padding: 0.35rem 0.9rem;
  text-transform: uppercase;
}

.db-title {
  background: linear-gradient(105deg, #2f1460 0%, #3a2f78 28%, #1f6b52 72%, #157a58 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: var(--home-heading-font);
  font-size: clamp(3.15rem, 9.5vw, 4.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.db-headline {
  color: var(--db-fg);
  font-family: var(--home-body-font);
  font-size: clamp(0.95rem, 1.7vw, 1.18rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  margin: 0.2rem 0 0;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .db-headline {
    white-space: normal;
  }
}

.db-sub {
  color: var(--db-muted);
  font-size: clamp(1rem, 1.9vw, 1.12rem);
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

.db-credit {
  color: var(--db-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 1.25rem 0 0;
  opacity: 0.72;
  position: relative;
  text-align: center;
  z-index: 3;
}

.db-gallery {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  margin: 0.5rem 0 0.75rem;
  overflow: visible;
  pointer-events: none;
  position: relative;
  width: 100%;
  z-index: 0;
}

.db-intro,
.db-cta {
  position: relative;
  z-index: 3;
}

.db-float-img {
  display: block;
  filter:
    drop-shadow(0 2px 3px rgb(26 31 36 / 10%))
    drop-shadow(0 10px 20px rgb(40 28 72 / 14%))
    drop-shadow(0 28px 52px rgb(40 28 72 / 20%));
  flex: 0 0 auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  position: relative;
  transition:
    opacity 2000ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 2000ms cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
  width: min(70vw, 17.5rem);
  will-change: opacity, transform;
  max-height: min(52vh, 20rem);
}

.db-float-img--hero {
  transform: translate(-0.7rem, 0.85rem);
}

.db-float-img--side {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: auto;
  transform: translate(0.5rem, 0.6rem);
}

.db-step-stage {
  aspect-ratio: 547 / 779;
  flex: 0 0 auto;
  position: relative;
  width: 100%;
}

.db-step-frame {
  bottom: 0;
  height: auto;
  left: 0;
  margin: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: none;
  width: auto;
  z-index: 1;
}

.db-step-stage.is-instant .db-step-frame {
  transition: none !important;
}

.db-step-frame.is-under {
  opacity: 1;
  z-index: 1;
}

.db-step-frame.is-active {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.db-step-replay {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgb(255 255 255 / 92%);
  border: 1px solid rgb(26 31 36 / 12%);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgb(26 31 36 / 12%);
  color: var(--db-fg);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2.35rem;
  justify-content: center;
  margin-top: 0.15rem;
  opacity: 0;
  pointer-events: none;
  position: relative;
  transform: scale(0.96);
  transition:
    opacity 220ms ease,
    background 160ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  visibility: hidden;
  width: 2.35rem;
  z-index: 3;
}

.db-step-replay.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  visibility: visible;
}

.db-step-replay.is-visible:hover {
  background: #ffffff;
}

.db-step-replay:active {
  transform: scale(0.95);
}

.db-step-replay:focus-visible {
  outline: 2px solid var(--db-accent);
  outline-offset: 2px;
}

.db-page.is-images .db-float-img--hero {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 0ms;
}

.db-page.is-images .db-float-img--side {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 120ms;
}

.db-cta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-inline: auto;
  margin-top: 0.75rem;
  max-width: 26rem;
  text-align: left;
  width: 100%;
}

.db-cta-heading {
  font-family: var(--home-body-font);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  text-align: left;
}

.db-cta-lead {
  color: var(--db-muted);
  font-size: 1.02rem;
  line-height: 1.45;
  margin: 0 0 0.55rem;
}

.db-signup {
  width: 100%;
}

.db-waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.db-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.db-form-alerts {
  display: grid;
  min-height: 2.75rem;
}

.db-form-alerts > [hidden] {
  display: none;
}

.db-form-alerts > :not([hidden]) {
  grid-area: 1 / 1;
}

.db-input {
  background: rgb(255 255 255 / 90%);
  border-color: rgb(26 31 36 / 12%);
  color: var(--db-fg);
  flex: 1 1 auto;
  min-height: 2.85rem;
  width: 100%;
}

.db-input::placeholder {
  color: color-mix(in srgb, var(--db-muted) 75%, transparent);
}

.db-input:focus,
.db-input:focus-within {
  border-color: var(--db-accent);
  outline-color: var(--db-accent);
}

.db-btn {
  background: var(--db-accent);
  color: #f7fbf9;
  flex: 0 0 auto;
  font-weight: 650;
  min-height: 2.85rem;
  transition:
    background 160ms ease,
    transform 100ms ease-out;
}

.db-btn:hover:not(:disabled) {
  background: var(--db-accent-soft);
}

.db-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.db-btn:focus-visible {
  outline: 2px solid var(--db-accent);
  outline-offset: 2px;
}

.db-success-title {
  font-family: var(--home-heading-font);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.db-muted {
  color: var(--db-muted);
}

.db-form-error {
  color: var(--db-error);
}

.db-form-warning {
  color: var(--db-warning);
}

.db-fineprint {
  color: var(--db-muted);
  font-size: 0.7rem;
  line-height: 1.45;
  opacity: 0.85;
}

.db-quiet-link {
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.15em;
}

.db-quiet-link:hover {
  color: var(--db-accent);
  text-decoration-color: var(--db-accent);
}

.db-intro,
.db-cta,
.db-credit,
.db-nav {
  opacity: 0;
  transform: translateY(0.55rem);
  transition:
    opacity 2200ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 2200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.db-page.is-ready .db-intro,
.db-page.is-ready .db-cta,
.db-page.is-ready .db-credit,
.db-page.is-ready .db-nav {
  opacity: 1;
  transform: translateY(0);
}

.db-page.is-ready .db-cta {
  transition-delay: 220ms;
}

.db-page.is-ready .db-credit {
  transition-delay: 320ms;
}

.db-page.is-settled .db-float-img,
.db-page.is-settled .db-intro,
.db-page.is-settled .db-cta,
.db-page.is-settled .db-credit,
.db-page.is-settled .db-nav {
  transition: none;
  will-change: auto;
}

.db-page.is-settled .db-step-frame.is-active {
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.db-page.is-settled .db-step-frame.is-under {
  transition: none;
}

/* Mobile: images sit in-flow between copy and signup — no entrance fade */
@media (max-width: 799px) {
  .db-gallery {
    gap: 0.65rem;
    margin: 0.15rem 0 1.5rem;
    position: relative;
  }

  .db-float-img,
  .db-float-img--hero,
  .db-float-img--side {
    bottom: auto !important;
    inset: auto !important;
    left: auto !important;
    opacity: 1;
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none;
    transition: none;
  }

  .db-float-img--hero {
    max-height: none;
    width: min(94vw, 26rem);
  }

  .db-float-img--side {
    margin-bottom: 0;
    max-height: none;
    width: min(88vw, 22rem);
  }

  .db-float-img--side .db-step-stage {
    max-height: min(58vh, 32rem);
    width: 100%;
  }

  .db-cta {
    margin-top: 0.75rem;
    position: relative;
    z-index: 3;
  }
}

.db-float-img--hero,
.db-float-img--side {
  bottom: auto;
  left: auto;
  right: auto;
}

.db-shell {
  justify-content: flex-start;
  min-height: auto;
  padding-bottom: 2.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .db-float-img,
  .db-intro,
  .db-cta,
  .db-credit,
  .db-nav,
  .db-btn {
    transition: none;
  }

  .db-float-img,
  .db-intro,
  .db-cta,
  .db-credit,
  .db-nav {
    opacity: 1;
    transform: none;
  }

  .db-step-frame {
    transition: none;
  }
}

@media (min-width: 640px) {
  .db-form-row {
    align-items: stretch;
    flex-direction: row;
  }

  .db-btn {
    min-width: 8.5rem;
    padding-inline: 1.25rem;
  }
}

/* Desktop: cutouts as full-height side backdrop */
@media (min-width: 800px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .db-page {
    height: 100dvh;
    overflow: hidden;
  }

  .db-shell {
    box-sizing: border-box;
    gap: 2rem;
    height: 100dvh;
    justify-content: flex-start;
    max-width: min(40rem, 92vw);
    padding: 4.25rem 1.5rem 3.5rem;
  }

  .db-cta {
    margin-top: 1.75rem;
    padding-bottom: 0;
  }

  .db-credit {
    margin-top: auto;
    padding-top: 1rem;
  }

  .db-headline {
    font-size: clamp(0.98rem, 1.45vw, 1.18rem);
  }

  .db-gallery {
    inset: 0;
    margin: 0;
    overflow: hidden;
    position: fixed;
    width: auto;
    z-index: 0;
  }

  .db-float-img {
    flex: none;
    max-height: none;
    max-width: none;
    position: absolute;
    width: auto;
  }

  .db-float-img--hero {
    bottom: 2%;
    height: min(88dvh, 54rem);
    left: max(-1.5rem, calc(50% - 40rem));
    right: auto;
    max-width: 42vw;
    transform: translate(-0.7rem, 0.85rem) rotate(3.5deg);
  }

  .db-float-img--side {
    aspect-ratio: 547 / 779;
    bottom: 4%;
    height: min(82dvh, 50rem);
    left: auto;
    max-width: 38vw;
    right: max(-1rem, calc(50% - 40rem));
    transform: translate(0.5rem, 0.6rem);
    transform-origin: center bottom;
    width: auto;
  }

  .db-float-img--side .db-step-stage {
    aspect-ratio: 547 / 779;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    width: 100%;
  }

  .db-page.is-images .db-float-img--hero {
    transform: rotate(3.5deg);
  }

  .db-page.is-images .db-float-img--side {
    transform: translate(0, 0);
  }

  @media (prefers-reduced-motion: reduce) {
    .db-float-img--hero {
      transform: rotate(3.5deg);
    }

    .db-float-img--side {
      transform: none;
    }
  }
}

@media (min-width: 1200px) {
  .db-shell {
    max-width: 38rem;
  }

  .db-float-img--hero {
    bottom: 0;
    height: min(90dvh, 58rem);
    left: max(-2rem, calc(50% - 42rem));
    max-width: 42vw;
  }

  .db-float-img--side {
    bottom: 6%;
    height: min(84dvh, 52rem);
    max-width: 40vw;
    right: max(-1rem, calc(50% - 42rem));
  }
}
