/* ==================================================================
   the_reason — shared components
   nav, logotype, buttons, pricing card, founder call block, footer,
   modal, ticker. Values mirror the Framer components (shared-lib /
   MOgZOCzJA modules), see docs/REBUILD-NOTES.md for the mapping.
   ================================================================== */

/* ---------- logotype (CSS mask, same SVG as the Framer build) ---------- */
.logo {
  display: block;
  aspect-ratio: 10.7143;
  background-color: var(--logo-color, var(--c-black));
  -webkit-mask: url("../img/logo-mask.svg") no-repeat center / contain;
          mask: url("../img/logo-mask.svg") no-repeat center / contain;
}

/* ---------- sticky / fixed nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 80px;
  /* side padding follows the page gutter: 40 / 32 / 16 */
  padding: 16px var(--page-pad) 8px;
  pointer-events: none;
}
.nav--fixed { position: fixed; left: 0; }
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  /* 364px is the desktop bar width; on a phone the viewport is narrower than
     that, so it has to be allowed to shrink instead of hanging over both edges */
  width: 364px;
  max-width: 100%;
  pointer-events: auto;
}
.nav__inner > * { transition: width .28s var(--ease-spring), height .28s var(--ease-spring), padding .28s var(--ease-spring), opacity .2s ease; }

/* logo pill */
.nav-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;          /* let the pill shrink instead of pushing the button out */
  height: 54px;
  padding: 16px 24px;
  border-radius: 12px;
  cursor: pointer;
}
.nav-logo__mark {
  position: relative;
  z-index: 2;
  width: 193px;
  height: 18px;
  margin-top: 4px;
  --logo-color: var(--c-black);
  transition: opacity .2s ease;
}
.nav-logo__bg,
.nav-cta__bg,
.icon-btn__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 12px;
  background: var(--c-nav-glass);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  transition: inset .4s var(--ease-spring), background-color .4s var(--ease-spring);
}
.nav-cta__bg, .icon-btn__bg { border-radius: 99px; }
@media (hover: hover) {
  .nav-logo:hover .nav-logo__bg { inset: -1px; }
  .nav-cta:hover .nav-cta__bg { inset: -1px; background: var(--c-accent); }
  .icon-btn:hover .icon-btn__bg { inset: -1px; }
}

/* "Claim Yours" pill (variant gray) */
.nav-cta {
  position: relative;
  display: flex;
  flex: 0 0 auto;        /* never squeeze the label; the logo pill gives way instead */
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 15px 24px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-cta__title {
  position: relative;
  z-index: 2;
  height: 24px;
  overflow: hidden;
  color: var(--c-black);
}
.nav-cta__title > span { display: block; transition: transform .4s var(--ease-spring); }
@media (hover: hover) {
  .nav-cta:hover .nav-cta__title > span { transform: translateY(-24px); }
}

/* collapsed "line" state (page top, before the intro is scrolled away) */
.nav:not(.is-full) .nav-logo { height: 8px; padding: 0; flex: 0 0 200px; }
.nav:not(.is-full) .nav-logo__mark { opacity: 0; }
.nav:not(.is-full) .nav-cta { height: 8px; width: 8px; padding: 0; }
.nav:not(.is-full) .nav-cta__title { opacity: 0; }
.nav:not(.is-full) .nav__inner { width: auto; }
.nav:not(.is-full) .nav-cta__bg { border-radius: 99px; }

/* icon button (back arrow on sub-pages, carousel arrows) */
.icon-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 54px;
  height: 54px;
  padding: 15px;
  flex: none;
  cursor: pointer;
}
.icon-btn__icon {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  background-color: var(--icon-color, var(--c-black));
  -webkit-mask: var(--icon) no-repeat center / 24px 24px;
          mask: var(--icon) no-repeat center / 24px 24px;
}
.icon-btn--arrow-left  .icon-btn__icon { --icon: url("../img/icons/arrow-left.svg"); }
.icon-btn--arrow-right .icon-btn__icon { --icon: url("../img/icons/arrow-right.svg"); }
.icon-btn--light .icon-btn__bg { background: var(--c-fill-06); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (hover: hover) {
  .icon-btn--light:hover .icon-btn__bg { background: var(--c-fill-32); }
  .icon-btn--light:hover .icon-btn__icon { --icon-color: var(--c-white); }
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  padding: 14px 20px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn--full { display: flex; width: 100%; }
.btn__title {
  position: relative;
  z-index: 1;
  height: 24px;
  overflow: hidden;
  color: var(--c-black);
}
.btn__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 99px;
  overflow: clip;
  transition: inset .45s var(--ease-spring), background-color .45s var(--ease-spring), border-color .45s var(--ease-spring);
}
.btn--accent .btn__bg { background: var(--c-accent); }
.btn--white  .btn__bg { background: var(--c-white); }
.btn--stroke-w .btn__bg { background: rgba(255,255,255,0); border: 1px solid rgba(255,255,255,.24); }
.btn--stroke-w .btn__title { color: var(--c-white); }
.btn--stroke-b .btn__bg { background: rgba(255,255,255,0); border: 1px solid rgba(0,0,0,.24); }
@media (hover: hover) {
  .btn--accent:hover .btn__bg { inset: -2px -1px; }
  .btn--white:hover .btn__bg { inset: -1px; background: var(--c-accent); }
  .btn--stroke-w:hover .btn__bg { inset: -2px; background: rgba(255,255,255,.16); border-color: transparent; }
  .btn--stroke-b:hover .btn__bg { inset: -2px; background: var(--c-fill-06); border-color: transparent; }
}

/* ---------- pricing card (ess / pro) ---------- */
.tilt {
  perspective: 1200px;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
}
.tilt__inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .35s var(--ease-spring);
  will-change: transform;
}
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 1.58416;
  cursor: pointer;
}
.pcard__content {
  position: relative;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border-radius: 14px;
  overflow: hidden;
  will-change: transform;
}
.pcard__content::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: none;
  z-index: 4;
}
.pcard--pro .pcard__content::after { border-color: rgba(255,255,255,.06); }
.pcard__top, .pcard__bottom {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  opacity: .9;
}
.pcard__top { padding-top: 2px; }
.pcard__logo { width: 100%; --logo-color: var(--c-white); }
/* the card face reads at 16, same as the rest of the interface */
.pcard__label, .pcard__sub, .pcard__per { font-size: 16px; line-height: 24px; }
.pcard__label { white-space: pre; color: var(--c-white); }
.pcard--pro .pcard__label { color: var(--c-white-68); }
.pcard__price { display: flex; align-items: flex-end; gap: 3px; width: min-content; }
.pcard__price h3 { color: var(--c-ink-80); white-space: nowrap; }
.pcard__per { padding-bottom: 5px; color: var(--c-ink-80); white-space: nowrap; }
.pcard__sub { white-space: pre-wrap; color: var(--c-ink-80); }
.pcard--pro .pcard__price h3, .pcard--pro .pcard__per, .pcard--pro .pcard__sub { color: var(--c-white-68); }
.pcard__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(100% 100% at 50% 100%, #fcfcfc 0%, #8b9380 100%);
}
.pcard--pro .pcard__bg { background: radial-gradient(100% 105% at 50% 105.7%, #736a5e 0%, #12120d 100%); }

/* ---------- "cross" blocks (cross-sell + founder call) ---------- */
.cross {
  position: relative;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 32px 32px 40px;
  border-radius: 20px;
  overflow: clip;
}
.cross > * { width: 100%; }
.cross__h2 { text-align: left; color: var(--c-white); }
.cross__h2 .disp {
  font-family: "Copyright Public Type Variable", "Impact", sans-serif;
  font-variation-settings: "wght" 100;
  font-feature-settings: "dlig" on, "zero" on, "case" on, "ss04" on;
}
.divider { display: flex; align-items: center; width: 100%; }
.divider__line { flex: 1 0 0; height: 1px; background: rgba(255,255,255,.1); }
.cross--light .divider__line, .cross--founder .divider__line { background: var(--c-line-10); }
.cross__offer { display: flex; flex-direction: column; gap: 8px; width: 100%; overflow: clip; }
.cross__offer h5 { color: var(--c-white); }
.cross__price-wrap { display: flex; flex-direction: column; align-items: flex-start; width: 100%; opacity: .9; }
.cross__price { display: flex; align-items: flex-end; gap: 3px; width: min-content; }
.cross__price h3 { color: var(--c-white-68); white-space: nowrap; }
.cross__per { padding-bottom: 5px; color: var(--c-white-68); white-space: nowrap; }
.cross__sub { color: var(--c-white-68); }
.cross__p { color: var(--c-white-68); }
.cross--dark { background: radial-gradient(100% 105% at 50% 105.7%, #736a5e 0%, #12120d 100%); }
.cross--light { background: radial-gradient(100% 100% at 50% 100%, #f5f5f5 0%, #8b9380 100%); }
.cross--light .cross__offer h5, .cross--light .cross__price h3 { color: var(--c-black); }
.cross--light .cross__per, .cross--light .cross__sub, .cross--light .cross__p { color: var(--c-ink-80); }
.cross--founder {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px;
  border-radius: 24px;
  background: var(--c-white);
}
.cross--founder::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--c-line-10);
  pointer-events: none;
}
.cross--founder .cross__h2 { color: var(--c-black); }
.cross--founder .cross__p { color: var(--c-ink-80); text-wrap: balance; }
.cross--on-dark {
  background: transparent;
  border-radius: 24px;
}
.cross--on-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--c-white-10);
  pointer-events: none;
}
.cross--on-dark .cross__h2 { color: var(--c-white); }
.cross--on-dark .cross__p { color: var(--c-white-68); }
.cross--on-dark .divider__line { background: var(--c-white-10); }

/* ---------- footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 80vh;
  min-height: 560px;
  padding: 24px 40px 40px;
  background: var(--c-black);
  overflow: hidden;
}
.footer__logo { width: 100%; --logo-color: var(--c-white); opacity: .1; }
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  overflow: clip;
}
.footer__addr { display: flex; flex-direction: column; color: var(--c-white-40); }
.footer__addr p { white-space: pre; }
.footer__addr p:empty { min-height: 20px; }
.footer__legal { flex: 1 0 0; max-width: 25%; color: var(--c-white-20); }
@media (max-width: 1023.98px) {
  .footer { padding: 24px 16px 40px; }
  .footer__row { flex-direction: column; justify-content: flex-end; gap: 40px; padding: 0; }
  .footer__addr { width: 100%; text-align: center; align-items: center; }
  .footer__legal { max-width: none; width: 100%; text-align: left; }
}

/* On a phone the two pills together are wider than the screen, so the button
   used to hang past the right edge. Only the wordmark and the pill padding
   shrink; the label keeps its size. */
@media (max-width: 809.98px) {
  .nav-logo { padding: 16px; }
  .nav-logo__mark { width: 170px; }
  .nav-cta { padding: 15px 16px; }
  .nav:not(.is-full) .nav-logo { flex: 0 0 160px; }
}

/* ---------- modal (founder bio) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__blur {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity .35s ease;
}
.modal__shape {
  position: relative;
  width: 620px;
  max-width: 100%;
  max-height: min(810px, 100%);
  border-radius: 23px;
  background: var(--c-fill-56);
  overflow: hidden auto;
  -webkit-backdrop-filter: blur(24px);
          backdrop-filter: blur(24px);
  opacity: 0;
  transform: translateY(24px) scale(.98);
  transition: opacity .35s var(--ease-spring), transform .45s var(--ease-spring);
  scrollbar-width: none;
}
.modal__shape::-webkit-scrollbar { display: none; }
.modal.is-open .modal__blur { opacity: 1; }
.modal.is-open .modal__shape { opacity: 1; transform: none; }
.modal__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
}
.modal__spacer { width: 40px; height: 40px; opacity: 0; }
.modal__grip { width: 59px; height: 3px; border-radius: 999px; background: rgba(102,102,102,.9); }
.modal__close {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  cursor: pointer;
}
.modal__close span {
  width: 24px;
  height: 24px;
  background: var(--c-white);
  -webkit-mask: url("../img/icons/close.svg") no-repeat center / 24px 24px;
          mask: url("../img/icons/close.svg") no-repeat center / 24px 24px;
}
.modal__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px 40px;
  overflow: clip;
}
.modal__img { flex: none; width: 96px; height: 120px; border-radius: 8px; overflow: hidden; }
.modal__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.modal__name { display: flex; flex-direction: column; color: var(--c-white); }
.modal__body { padding: 0 40px 16px; color: var(--c-white); overflow: clip; }
.modal__body p + p { margin-top: 24px; }
@media (max-width: 809.98px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__shape { width: 100%; max-height: 92%; border-radius: 23px 23px 0 0; transform: translateY(40px); }
  .modal__head { padding: 12px 20px 24px; }
  .modal__body { padding: 0 20px 24px; }
  .modal__spacer { display: none; }
  .modal__bar { justify-content: center; position: relative; }
  .modal__close { position: absolute; right: 8px; top: 8px; }
}

/* ---------- ticker / marquee ---------- */
.ticker {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, #000 12.5%, #000 87.5%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, #000 12.5%, #000 87.5%, rgba(0,0,0,0) 100%);
}
.ticker__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker-left var(--ticker-duration, 60s) linear infinite;
}
.ticker--right .ticker__track { animation-name: ticker-right; }
.ticker__item { flex: none; white-space: pre; padding: 0 16px 0 0; color: var(--c-ink-40); }
@keyframes ticker-left  { from { transform: translate3d(0,0,0); } to { transform: translate3d(calc(-1 * var(--ticker-w, 1000px)),0,0); } }
@keyframes ticker-right { from { transform: translate3d(calc(-1 * var(--ticker-w, 1000px)),0,0); } to { transform: translate3d(0,0,0); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }
