/* Split landing layout; tokens and type match leasing-page/src/styles/global.css. */
body { display: flex; flex-direction: column; }
.chooser-header { display: flex; align-items: center; justify-content: space-between; width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; min-height: 4.25rem; border-bottom: 1px solid var(--line); }
.chooser-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--primary); }
.chooser-brand img { width: 26px; height: 26px; object-fit: contain; }
.chooser-brand span { font: 600 1.5rem/1.65 var(--font-brand); letter-spacing: -.03em; }
.login-link { padding: .65rem 1.2rem; font-size: .9rem; }
.chooser { flex: 1; width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; padding-top: clamp(2rem, 5vw, 3.25rem); padding-bottom: clamp(3.5rem, 9vw, 6rem); }
.hero-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(2.5rem, 5vw, 4rem); margin-bottom: clamp(3rem, 7vw, 4.5rem); }
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); max-width: 15ch; }
.hero-copy { max-width: 560px; }
.intro { font-size: clamp(1rem, 1.8vw, 1.125rem); color: var(--ink-soft); }
.leasing-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.leasing-option { text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; }
h2 { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0 0 1.25rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 span { font: 400 1.625rem/1 var(--font-body); color: var(--green-deep); }
.card.leasing-option p { font-size: 1rem; color: var(--ink-soft); max-width: 340px; margin-bottom: 2.375rem; }
.option-link { display: inline-flex; align-items: center; justify-content: center; gap: .5em; margin-top: auto; padding: .8em 1.6em; border: 1px solid transparent; font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2; color: var(--btn-ink); background: var(--reffie-green); }
.leasing-option:hover .option-link { background: var(--green-deep); }
@media (max-width: 760px) {
  .chooser-header { min-height: 3.75rem; }
  .login-link { padding: .55rem .85rem; font-size: .85rem; }
  .hero-heading { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.25rem; }
  .leasing-switcher { grid-template-columns: 1fr; }
  h2 { margin: 0 0 .875rem; }
  .card.leasing-option p { margin-bottom: 1.5rem; }
}

/* Footer shared with the managed leasing site. */

  .footer {
    border-top: 1px solid var(--line);
    padding-block: 3rem 3.5rem;
    background: var(--paper-2);
  }

  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--primary);
  }

  .mark-logo {
    width: 26px;
    height: 26px;
  }

  .wordmark + .meta {
    margin-top: 0.5rem;
  }

  .footer-contact {
    text-align: right;
  }

  @media (max-width: 640px) {
    .footer-contact {
      text-align: left;
    }
  }

.header-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 420px) {
  .chooser-header { flex-wrap: wrap; gap: .75rem; padding-block: .75rem; }
  .header-actions { gap: .5rem; }
}

@media (min-width: 1000px) {
  .chooser { padding-top: clamp(5rem, 8vw, 8rem); }
}

.hero-demo { margin-top: 2.25rem; }

/* Construction lines follow the actual content columns and section edges.
   They draw once, briefly hold, then disappear. */
.chooser { position: relative; isolation: isolate; }
.chooser::before,
.chooser::after,
.hero-heading::before,
.hero-heading::after,
.leasing-switcher::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: .32;
}
.chooser::before,
.chooser::after {
  top: 0;
  bottom: 0;
  border-left: 1px dashed var(--green-deep);
  transform-origin: top;
  animation: grid-draw-vertical 2.4s var(--ease-out) both;
}
.chooser::before { left: -1rem; }
.chooser::after { right: -1rem; animation-delay: .15s; }
.hero-heading { position: relative; }
.hero-heading::before,
.hero-heading::after {
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  border-top: 1px dashed var(--green-deep);
  transform-origin: left;
  animation: grid-draw-horizontal 2.4s var(--ease-out) .2s both;
}
.hero-heading::before { top: -1.5rem; }
.hero-heading::after { bottom: -1.5rem; animation-delay: .35s; }
.leasing-switcher { position: relative; }
.leasing-switcher::before {
  left: 50%;
  top: -2rem;
  bottom: -2rem;
  border-left: 1px dashed var(--green-deep);
  transform-origin: top;
  animation: grid-draw-vertical 2.4s var(--ease-out) .45s both;
}
@keyframes grid-draw-vertical {
  from { transform: scaleY(0); opacity: 0; }
  45%, 65% { transform: scaleY(1); opacity: .4; }
  to { transform: scaleY(1); opacity: 0; }
}
@keyframes grid-draw-horizontal {
  from { transform: scaleX(0); opacity: 0; }
  45%, 65% { transform: scaleX(1); opacity: .4; }
  to { transform: scaleX(1); opacity: 0; }
}
@media (max-width: 760px) {
  .leasing-switcher::before { display: none; }
  .hero-heading::before { top: -1rem; }
  .hero-heading::after { bottom: -1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .chooser::before, .chooser::after,
  .hero-heading::before, .hero-heading::after,
  .leasing-switcher::before { animation: none; opacity: 0; }
}

/* Card scenes: a Stripe-style ribbon behind a live activity panel (off-site) and an
   ElevenLabs-style orb answering leads (in-house). Decorative, so aria-hidden. */
.scene {
  --row: 2.75rem;
  position: relative;
  align-self: stretch;
  height: 15rem;
  margin: -1.75rem -1.75rem 1.75rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  line-height: 1.2;
}
.scene svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* A ring far larger than the scene, so only a gentle arc crosses it. Hairlines along
   the arc give the silk sheen; rotating moves the colours along it like Stripe's ribbon. */
.ribbon,
.scene-offsite::before {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, transparent 62%, rgb(7 41 30 / .25) 62.5%, transparent 70%, rgb(255 255 255 / .3) 84%, transparent 98%),
    repeating-radial-gradient(closest-side, rgb(255 255 255 / .16) 0 1px, transparent 1px 4px),
    repeating-conic-gradient(var(--reffie-green), #6ee7b7 30deg, var(--amber) 60deg, var(--orange) 80deg, #2dd4bf 100deg, var(--reffie-green) 120deg);
  mask: radial-gradient(closest-side, transparent 62%, #000 62.5%, #000 80%, transparent 100%);
  animation: ribbon-spin 60s linear infinite;
}
.ribbon { width: 60rem; right: -37.4rem; top: -4rem; }
.scene-offsite::before {
  content: "";
  width: 44rem;
  right: -30rem;
  top: -2rem;
  opacity: .5;
  animation-direction: reverse;
  animation-duration: 80s;
}
@keyframes ribbon-spin { to { rotate: 1turn; } }

.panel {
  position: absolute;
  left: 1.75rem;
  top: 50%;
  translate: 0 -50%;
  width: min(17rem, 100% - 3.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgb(7 41 30 / .12);
  transition: translate .25s var(--ease-out);
}
.leasing-option:hover .panel { translate: 0 calc(-50% - 4px); }
.panel-row {
  display: flex;
  justify-content: space-between;
  padding: .6rem .85rem;
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.panel-row:first-child { border-bottom: 1px solid var(--line); }
.panel-row:last-child { border-top: 1px solid var(--line); }
.panel-row b { color: var(--green-deep); }
.live { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-transform: uppercase; color: var(--green-deep); }
.live::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--reffie-green);
  animation: live-pulse 2s var(--ease-out) infinite;
}
@keyframes live-pulse {
  from { box-shadow: 0 0 0 0 rgb(16 185 129 / .5); }
  to { box-shadow: 0 0 0 .4rem rgb(16 185 129 / 0); }
}

/* Five events plus the first three repeated, so the step at 100% lands on a view
   identical to 0%. Each step lasts 3s: a 0.6s slide, then a hold. */
.feed {
  position: relative;
  height: calc(3 * var(--row));
  overflow: hidden;
  mask: linear-gradient(transparent, #000 35%);
}
.feed::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--row);
  background: var(--green-tint);
  opacity: 0;
  z-index: -1;
  animation: feed-flash 3s infinite;
}
.feed ul {
  margin: 0;
  padding: 0;
  list-style: none;
  animation: feed-tick 15s var(--ease-out) infinite;
}
.feed li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  align-content: center;
  column-gap: .65rem;
  height: var(--row);
  padding-inline: .85rem;
}
.feed svg { grid-row: span 2; width: 1.75rem; height: 1.75rem; padding: .4rem; color: var(--green-deep); background: var(--green-tint); }
.feed b { font-size: .8rem; font-weight: 600; color: var(--ink); }
.feed small { font-size: .7rem; color: var(--ink-faint); }
@keyframes feed-tick {
  0% { translate: 0 0; }
  4%, 20% { translate: 0 calc(-1 * var(--row)); }
  24%, 40% { translate: 0 calc(-2 * var(--row)); }
  44%, 60% { translate: 0 calc(-3 * var(--row)); }
  64%, 80% { translate: 0 calc(-4 * var(--row)); }
  84%, 100% { translate: 0 calc(-5 * var(--row)); }
}
@keyframes feed-flash {
  5% { opacity: 1; }
  60%, 100% { opacity: 0; }
}

/* Three exchanges share one 12s loop, each owning a 4s third. The orb speaks on the
   same 4s beat as the replies. */
.scene-inhouse { background: var(--paper-2); }
.orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8.5rem;
  aspect-ratio: 1;
  margin: -4.25rem 0 0 -4.25rem;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  background: var(--reffie-green);
  box-shadow: 0 20px 44px rgb(7 41 30 / .2);
  animation: orb-speak 4s infinite;
}
.orb i {
  position: absolute;
  inset: -25%;
  filter: blur(14px);
  animation: orb-swirl 9s linear infinite;
}
.orb i:nth-child(1) { background: conic-gradient(#0f766e, var(--reffie-green), #a7f3d0, var(--amber), var(--reffie-green), #0f766e); }
.orb i:nth-child(2) { background: radial-gradient(circle at 68% 62%, #ecfeff, transparent 26%); animation-duration: 6s; animation-direction: reverse; }
.orb i:nth-child(3) { background: radial-gradient(circle at 40% 72%, var(--orange), transparent 22%); opacity: .7; animation-duration: 13s; }
.orb::before,
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 1;
}
.orb::before { background: radial-gradient(circle at 34% 28%, rgb(255 255 255 / .35), transparent 45%), radial-gradient(circle at 70% 85%, rgb(7 41 30 / .22), transparent 60%); }
.orb::after {
  opacity: .7;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes orb-swirl { to { rotate: 1turn; } }
@keyframes orb-speak {
  0%, 30% { scale: 1; box-shadow: 0 20px 44px rgb(7 41 30 / .2), 0 0 0 0 rgb(16 185 129 / .3); }
  38% { scale: 1.06; }
  46% { scale: 1.01; }
  54% { scale: 1.05; }
  64%, 100% { scale: 1; box-shadow: 0 20px 44px rgb(7 41 30 / .2), 0 0 0 1.75rem rgb(16 185 129 / 0); }
}

.pair { position: absolute; inset: 0; z-index: 1; }
.pair + .pair .msg { opacity: 0; }
.msg {
  position: absolute;
  left: 1.25rem;
  top: 1.5rem;
  max-width: 12rem;
  padding: .55rem .8rem;
  font-size: .8rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgb(7 41 30 / .06);
  animation: msg-lead 12s var(--ease-out) infinite;
}
.msg small { display: block; margin-bottom: .2rem; font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.msg.ai small { color: rgb(255 255 255 / .75); }
.msg.ai {
  left: auto;
  top: auto;
  right: 1.25rem;
  bottom: 1.5rem;
  color: var(--btn-ink);
  background: var(--reffie-green);
  border-color: transparent;
  animation-name: msg-reply;
}
.pair + .pair .msg { animation-delay: 4s; }
.pair + .pair + .pair .msg { animation-delay: 8s; }
@keyframes msg-lead {
  0% { opacity: 0; translate: 0 .5rem; }
  4%, 29% { opacity: 1; translate: 0 0; }
  33%, 100% { opacity: 0; translate: 0 -.5rem; }
}
@keyframes msg-reply {
  0%, 11% { opacity: 0; translate: 0 .5rem; }
  15%, 29% { opacity: 1; translate: 0 0; }
  33%, 100% { opacity: 0; translate: 0 -.5rem; }
}

@media (max-width: 760px) {
  .orb { width: 7.5rem; margin: -3.75rem 0 0 -3.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon, .scene-offsite::before, .live::before, .feed::after, .feed ul,
  .orb, .orb i, .msg { animation: none; }
}
