/* EstateBridge product showcase. Palette: white, #D4AF37, #0F172E */

:root {
  --eb-navy: #0f172e;
  --eb-gold: #d4af37;
  --eb-gold-dark: #b8922b;
  --eb-white: #ffffff;
  --eb-cream: #f4f5f7;
  --eb-surface: #f4f5f7;
  --eb-muted: rgba(15, 23, 46, 0.58);
  --eb-line: rgba(15, 23, 46, 0.09);
  --eb-radius: 0.625rem;
  --eb-radius-lg: 0.875rem;
  --eb-shadow: 0 1.25rem 3rem rgba(15, 23, 46, 0.1);
  --eb-shadow-md: 0 16px 48px -12px rgba(15, 23, 46, 0.14);
  --eb-font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --eb-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--eb-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--eb-navy);
  background: var(--eb-white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--eb-gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--eb-navy);
}

.eb-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.eb-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--eb-gold);
  color: var(--eb-navy);
  z-index: 1000;
  border-radius: 0.5rem;
}

/* Nav */
.eb-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--eb-line);
}

.eb-nav__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.eb-logo {
  font-family: var(--eb-font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--eb-navy);
  text-decoration: none;
}

.eb-logo span {
  color: var(--eb-gold);
}

.eb-nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.eb-nav__links a {
  color: rgba(15, 23, 46, 0.72);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.eb-nav__links a:hover {
  color: var(--eb-navy);
}

.eb-nav__links a:last-child {
  color: var(--eb-navy);
  font-weight: 600;
}

.eb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--eb-font-body);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

.eb-btn:active {
  transform: translateY(1px);
}

.eb-btn--gold {
  background: var(--eb-gold);
  color: var(--eb-navy);
  border-color: #c4a332;
  box-shadow: 0 1px 2px rgba(15, 23, 46, 0.06);
}

.eb-btn--gold:hover {
  background: var(--eb-gold-dark);
  border-color: var(--eb-gold-dark);
  color: var(--eb-navy);
}

.eb-btn--outline {
  background: var(--eb-white);
  color: var(--eb-navy);
  border-color: var(--eb-line);
}

.eb-btn--outline:hover {
  border-color: rgba(15, 23, 46, 0.22);
  background: var(--eb-surface);
  color: var(--eb-navy);
}

.eb-btn--navy {
  background: var(--eb-navy);
  color: var(--eb-white);
  border-color: var(--eb-navy);
}

.eb-btn--navy:hover {
  background: #1a2d52;
  border-color: #1a2d52;
  color: var(--eb-white);
}

/* Hero */
.eb-hero {
  position: relative;
  background: var(--eb-surface);
  border-bottom: 1px solid var(--eb-line);
  overflow-x: hidden;
  overflow-y: visible;
}

.eb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 55% at 78% 8%, rgba(212, 175, 55, 0.07), transparent 55%);
  pointer-events: none;
}

.eb-hero__inner {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

@media (min-width: 768px) {
  .eb-hero__inner {
    padding-top: 5.5rem;
    padding-bottom: 6rem;
  }
}

/* Hero: copy + dashboard (image right on large screens) */
.eb-hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 640px) {
  .eb-hero__grid {
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .eb-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 26.6rem);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
  }
}

.eb-hero__content {
  min-width: 0;
}

.eb-hero__kicker {
  margin: 0 0 1.25rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--eb-gold);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--eb-muted);
  max-width: 28rem;
  line-height: 1.45;
}

.eb-hero__figure {
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 21.2rem;
  margin-inline: auto;
  padding: 0.65rem 0.35rem 1.35rem;
  perspective: 1100px;
  perspective-origin: 58% 32%;
}

@media (min-width: 1024px) {
  .eb-hero__figure {
    max-width: 23.6rem;
    margin-inline: 0;
    margin-left: auto;
    justify-self: end;
    perspective-origin: 72% 28%;
  }
}

/* Product preview: 3D card; border on outer shell only */
.eb-hero__shot {
  position: relative;
  border-radius: var(--eb-radius-lg);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(158deg, #ffffff 0%, #fafbfc 45%, #eef0f4 100%);
  border: 1px solid rgba(15, 23, 46, 0.14);
  transform-style: preserve-3d;
  transform: rotateX(5deg) rotateY(-8deg) translateZ(0);
  backface-visibility: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 46, 0.05),
    0 4px 10px rgba(15, 23, 46, 0.06),
    0 14px 28px rgba(15, 23, 46, 0.09),
    0 32px 52px rgba(15, 23, 46, 0.11),
    0 0 0 1px rgba(212, 175, 55, 0.1);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
}

.eb-hero__shot::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 22%;
  bottom: -1.4rem;
  height: 2.25rem;
  border-radius: 50%;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(15, 23, 46, 0.22), transparent 72%);
  filter: blur(8px);
  opacity: 0.72;
  pointer-events: none;
  z-index: -1;
}

@media (prefers-reduced-motion: no-preference) {
  .eb-hero__figure:hover .eb-hero__shot {
    transform: rotateX(2.5deg) rotateY(-4deg) translateZ(14px);
    border-color: rgba(15, 23, 46, 0.18);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      inset 0 -1px 0 rgba(15, 23, 46, 0.05),
      0 6px 14px rgba(15, 23, 46, 0.07),
      0 20px 40px rgba(15, 23, 46, 0.12),
      0 44px 72px rgba(15, 23, 46, 0.14),
      0 0 0 1px rgba(212, 175, 55, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eb-hero__shot {
    transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .eb-hero__shot::after {
    display: none;
  }
}

.eb-hero__shot-inner {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: calc(var(--eb-radius-lg) - 4px);
  overflow: hidden;
  background: var(--eb-white);
  line-height: 0;
  transform: translateZ(10px);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: no-preference) {
  .eb-hero__figure:hover .eb-hero__shot-inner {
    transform: translateZ(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eb-hero__shot-inner {
    transform: none;
    transition: none;
  }
}

.eb-hero__shot-inner img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  max-height: min(31.5vh, 315px);
}

@media (min-width: 640px) {
  .eb-hero__shot-inner img {
    max-height: min(36.3vh, 351px);
  }
}

@media (min-width: 1024px) {
  .eb-hero__shot-inner img {
    max-height: min(41.25vh, 436px);
  }
}

.eb-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 23, 46, 0.5);
  margin: 0 0 0.75rem;
}

.eb-hero h1 {
  font-family: var(--eb-font-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 3.5vw + 0.65rem, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--eb-navy);
  margin: 0 0 1.25rem;
  max-width: none;
}

@media (max-width: 639px) {
  .eb-hero__content h1 {
    max-width: 22ch;
  }
}

.eb-hero__lead {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--eb-muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.eb-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

/* Sections */
.eb-section {
  padding: 4.5rem 1.5rem;
}

.eb-section--cream {
  background: var(--eb-cream);
}

.eb-section--navy {
  background: var(--eb-navy);
  color: var(--eb-white);
}

.eb-section--navy .eb-section__title,
.eb-section--navy h2 {
  color: var(--eb-white);
}

.eb-section--navy .eb-section__intro {
  color: rgba(255, 255, 255, 0.75);
}

.eb-section__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.eb-section__head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.75rem;
}

.eb-section__title {
  font-family: var(--eb-font-display);
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 1.875rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
  letter-spacing: -0.03em;
  color: var(--eb-navy);
}

.eb-section__intro {
  margin: 0;
  color: var(--eb-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Features grid */
.eb-features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .eb-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .eb-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.eb-card {
  background: var(--eb-white);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-radius-lg);
  padding: 1.35rem 1.35rem 1.4rem;
  box-shadow: 0 1px 3px rgba(15, 23, 46, 0.04);
  height: 100%;
}

.eb-section--navy .eb-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.eb-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.eb-card__accent {
  flex-shrink: 0;
  width: 3px;
  margin-top: 0.35rem;
  min-height: 1.75rem;
  border-radius: 2px;
  background: var(--eb-gold);
  opacity: 0.95;
}

.eb-section--navy .eb-card__accent {
  background: linear-gradient(180deg, var(--eb-gold), rgba(212, 175, 55, 0.45));
}

.eb-card__head h3 {
  font-family: var(--eb-font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  color: inherit;
  letter-spacing: -0.02em;
}

.eb-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--eb-muted);
}

.eb-section--navy .eb-card p {
  color: rgba(255, 255, 255, 0.72);
}

/* Pricing */
.eb-pricing {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .eb-pricing {
    grid-template-columns: repeat(2, 1fr);
    max-width: 56rem;
    margin: 0 auto;
  }
}

.eb-price-card {
  background: var(--eb-white);
  border-radius: var(--eb-radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--eb-line);
  box-shadow: 0 1px 3px rgba(15, 23, 46, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
}

.eb-price-card--featured {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 12px 40px -16px rgba(15, 23, 46, 0.12);
}

.eb-price-card__chip {
  margin: 0 0 0.85rem;
  display: inline-block;
  width: fit-content;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eb-navy);
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 0.375rem;
}

.eb-price-card h3 {
  font-family: var(--eb-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.eb-price-card .eb-tagline {
  font-size: 0.95rem;
  color: var(--eb-muted);
  margin: 0 0 1.5rem;
}

.eb-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.eb-price-strike {
  font-size: 1.15rem;
  color: var(--eb-muted);
  text-decoration: line-through;
}

.eb-price-main {
  font-family: var(--eb-font-display);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--eb-navy);
  line-height: 1;
  letter-spacing: -0.03em;
}

.eb-price-main small {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--eb-font-body);
}

.eb-price-sub {
  font-size: 0.95rem;
  color: var(--eb-muted);
  margin: 0.35rem 0 1.5rem;
}

.eb-price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  flex-grow: 1;
}

.eb-price-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--eb-navy);
}

.eb-price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--eb-gold);
}

/* Demo strip */
.eb-demo {
  background: var(--eb-navy);
  color: var(--eb-white);
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.eb-demo__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.eb-demo h2 {
  font-family: var(--eb-font-display);
  font-size: clamp(1.25rem, 2vw + 0.75rem, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.eb-demo p {
  margin: 0 0 1.35rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* Footer */
.eb-footer {
  background: #0a1224;
  color: rgba(255, 255, 255, 0.78);
  padding: 2.75rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.eb-footer p {
  margin: 0 auto 0.85rem;
  max-width: 36rem;
}

.eb-footer strong {
  color: #e0c46a;
  font-weight: 600;
}

.eb-footer a {
  color: var(--eb-gold);
  font-weight: 500;
}

.eb-footer a:hover {
  color: #e4c96a;
}

.eb-footer__legal {
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  max-width: 42rem;
}

/* Book / Talk to sales (Calendly embed) */
.eb-page--book {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.eb-page--book main {
  flex: 1;
}

.eb-book {
  padding: 2.25rem 1.5rem 3rem;
  background: var(--eb-surface);
  border-bottom: 1px solid var(--eb-line);
}

.eb-book__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.eb-book__head {
  margin-bottom: 1.75rem;
  text-align: center;
}

.eb-book__head .eb-eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.eb-book__title {
  font-family: var(--eb-font-display);
  font-size: clamp(1.65rem, 3vw + 0.5rem, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--eb-navy);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.eb-book__lead {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--eb-muted);
}

.eb-cal {
  background: var(--eb-white);
  border: 1px solid rgba(15, 23, 46, 0.14);
  border-radius: var(--eb-radius-lg);
  box-shadow: var(--eb-shadow-md);
  overflow: hidden;
}

.eb-cal .calendly-inline-widget {
  width: 100% !important;
  min-width: 320px !important;
  height: min(92vh, 920px) !important;
}

.eb-book__note {
  margin: 1.5rem 0 0;
  text-align: center;
}

.eb-book__back {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--eb-navy);
  text-decoration: none;
}

.eb-book__back:hover {
  color: var(--eb-gold-dark);
  text-decoration: underline;
}
