/* Residence Echo — soft lavender shell (BloomFi-inspired) */
:root {
  --ink: #1b1630;
  --ink-soft: #3a3358;
  --muted: #6b6490;
  --wash: #ebe6f5;
  --wash-deep: #ddd5ef;
  --lavender: #d8ccec;
  --lavender-soft: #efe8f8;
  --surface: #ffffff;
  --navy: #1b1630;
  --navy-soft: #2a2445;
  --line: rgba(27, 22, 48, 0.1);
  --max: 1120px;
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", "Times New Roman", serif;
  --radius: 28px;
  --radius-sm: 18px;
  --radius-pill: 999px;
  --shadow: 0 18px 50px rgba(55, 40, 90, 0.08);
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--wash);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1.25px;
  text-underline-offset: 0.18em;
}

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

.ad-label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
}

.story-head .kicker.ad-label {
  margin-bottom: 0.85rem;
}

.shot figcaption {
  margin: 0.55rem 0 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  background: none;
  max-width: 40rem;
}

.page-wash {
  min-height: 100vh;
  padding: 1.25rem 1rem 2.5rem;
  background:
    radial-gradient(720px 380px at 8% -4%, rgba(180, 150, 230, 0.35), transparent 55%),
    radial-gradient(560px 320px at 96% 4%, rgba(150, 130, 210, 0.22), transparent 50%),
    linear-gradient(180deg, #e8e2f4 0%, var(--wash) 35%, #f4f1fa 100%);
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--surface);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.25rem 2.5rem;
  position: relative;
  overflow: clip;
}

@media (min-width: 800px) {
  .page-wash {
    padding: 1.75rem 1.5rem 3.5rem;
  }
  .shell {
    padding: 1.25rem 1.75rem 3.25rem;
  }
}

/* —— topbar —— */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0.25rem 1rem;
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark-line {
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}

.brand-mark-line-end {
  opacity: 0.22;
}

.brand-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 0.2rem;
  isolation: isolate;
}

.brand-name-main {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  color: var(--ink);
  position: relative;
  z-index: 0;
}

.brand-name-main::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0.15em;
  bottom: -0.12em;
  height: 0.28em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201, 184, 240, 0.55), rgba(201, 184, 240, 0.08));
  z-index: -1;
}

.brand-name-sub {
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 0.08em;
}

.brand.footer-brand .brand-name-main {
  font-size: 1.35rem;
}

.brand.footer-brand .brand-mark-line {
  width: 0.85rem;
}

@media (max-width: 480px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .brand-mark-line {
    display: none;
  }
}

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

.nav {
  display: none;
  justify-content: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

.top-cta {
  display: none;
  text-decoration: none;
  background: var(--navy);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.top-cta:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
}

.nav-toggle {
  justify-self: end;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: var(--lavender-soft);
  border-radius: 12px;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: grid;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 550;
}

@media (min-width: 880px) {
  .nav,
  .top-cta {
    display: inline-flex;
  }
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* —— buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn-dark {
  background: var(--navy);
  color: #fff !important;
}

.btn-dark:hover {
  background: var(--navy-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}

.btn-ghost .arrow {
  transition: transform 0.25s var(--ease);
}

.btn-ghost:hover .arrow {
  transform: translateX(3px);
}

/* —— story / advertorial —— */
.story {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0.5rem 0.35rem 0;
}

.story-head {
  margin: 0.5rem 0 1.5rem;
  padding: 0.85rem 0.15rem 0.35rem;
  background: none;
  border-radius: 0;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.45;
}

.story-head h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.18;
}

.hero-ai-note {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.block {
  margin: 2.25rem 0 0;
}

.block > p,
.block > ul {
  margin: 0 0 1rem;
}

.block > p:last-child,
.block > ul:last-child {
  margin-bottom: 0;
}

.block-head {
  margin-bottom: 0.9rem;
}

.block h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.block h3 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.block-cta {
  padding: 1.35rem 1.25rem;
  background: var(--lavender-soft);
  border-radius: var(--radius-sm);
}

.block-cta .btn {
  margin-top: 0.35rem;
}

.feature-list {
  padding-left: 1.2rem;
}

.feature-list li {
  margin-bottom: 0.45rem;
}

.shot {
  margin: 1.5rem 0;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  background: #f4f2f7;
}

.shot-compare {
  background: none;
  border: 0;
}

.shot-compare img {
  background: #fff;
  border: 1px solid var(--line);
}

/* —— sections —— */
.section {
  padding: 3rem 0.5rem 0;
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 820px) {
  .section-head.split {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 2.5rem;
  }
}

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.section h2,
.section-head h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.15;
}

.section-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* —— feature cards (BloomFi grid) —— */
.feature-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .feature-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
    min-height: 280px;
  }
}

.feat {
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.35rem;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.feat h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: inherit;
}

.feat p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.92;
}

.feat-light {
  background: linear-gradient(160deg, #ebe3f6 0%, #f6f2fb 100%);
  color: var(--ink);
}

.feat-dark {
  background: var(--navy);
  color: #f3eefc;
}

.feat-art {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.feat-art svg {
  width: 110px;
  height: auto;
  opacity: 0.95;
}

/* —— trust strip —— */
.trust {
  margin-top: 2.5rem;
  text-align: center;
  padding: 0.5rem 0 0;
}

.trust p {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.trust-pill {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.95rem;
  background: #faf8fd;
}

/* —— use cases —— */
.usecase {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 860px) {
  .usecase {
    grid-template-columns: 0.95fr 1.15fr;
    align-items: stretch;
    gap: 1.5rem;
  }
}

.usecase-intro h2 {
  margin-bottom: 0.75rem;
}

.usecase-card {
  background: #f7f4fb;
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.usecase-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.usecase-card p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

.usecase-art {
  margin-top: auto;
}

.usecase-art svg {
  width: 100%;
  height: auto;
  display: block;
}

/* —— timeline / winter —— */
.timeline {
  display: grid;
  gap: 1rem;
}

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

.week {
  background: var(--lavender-soft);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.2rem;
}

.week-label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.week p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.quotes {
  display: grid;
  gap: 1rem;
}

.quote {
  margin: 0;
  background: #f8f5fc;
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.2rem;
}

.quote p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.quote cite {
  font-style: normal;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--ink);
}

.reviews-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.table-note {
  margin: 0.45rem 0 1.1rem;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 40rem;
}

/* —— FAQ —— */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: #f8f5fc;
  border-radius: var(--radius-sm);
  padding: 0 1.1rem;
  overflow: hidden;
  transition: background 0.25s var(--ease);
}

.faq-item.is-open {
  background: #f3eef9;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--ink);
  padding: 1rem 1.75rem 1rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.15rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.3s var(--ease), border-color 0.2s var(--ease);
}

.faq-item.is-open summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-item summary:hover {
  color: var(--navy-soft);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-panel p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.28s var(--ease) 0.05s, transform 0.28s var(--ease) 0.05s;
}

.faq-item.is-open .faq-panel p {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel,
  .faq-panel p,
  .faq-item summary::after {
    transition: none !important;
  }
}

/* —— CTA band —— */
.cta-band {
  margin-top: 2.75rem;
  background: var(--navy);
  color: #f4effc;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.55rem;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .btn-dark {
  background: #fff;
  color: var(--ink) !important;
}

.cta-band .btn-dark:hover {
  background: var(--lavender-soft);
}

/* —— legal —— */
.legal-shell .section,
.legal-page {
  padding-top: 1.5rem;
}

.legal-card {
  background: none;
  border-radius: 0;
  padding: 0;
  max-width: 46rem;
}

.legal-card h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
}

.legal-card h3 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.legal-card ul {
  padding-left: 1.2rem;
}

.legal-card li {
  margin-bottom: 0.4rem;
}

.legal-page .section-head {
  margin-bottom: 1.1rem;
}

/* —— footer —— */
.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 550;
}

.footer-disclosures {
  display: grid;
  gap: 1.15rem;
}

.footer-disc h3 {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-disc p {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.footer-id-note {
  font-size: 0.78rem !important;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-copy,
.footer-note {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* —— cookie bar —— */
.cookie-bar {
  position: fixed;
  z-index: 90;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 420px;
  margin: 0 auto;
  background: var(--navy);
  color: #efeaf8;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  box-shadow: 0 16px 40px rgba(27, 22, 48, 0.28);
}

.cookie-bar[hidden] {
  display: none !important;
}

.cookie-bar p {
  margin: 0;
  font-size: 0.85rem;
  flex: 1;
}

.cookie-bar a {
  color: #d8ccec;
}

.cookie-bar button {
  flex-shrink: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  font-family: inherit;
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

/* —— reveal motion —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
