/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:        #0D2040;
  --navy-light:  #16305c;
  --emerald:        #3E8E63;
  --emerald-dark:   #2B6B48;
  --emerald-tint:   color-mix(in srgb, var(--emerald) 14%, transparent);
  --bg:          #1c1e22;
  --bg-alt:      #24262b;
  --text:        #f2f3f5;
  --text-muted:  #a3a8b0;
  --border:      rgba(255, 255, 255, 0.10);
  --radius:      16px;
  --radius-sm:   8px;
  --transition:  0.2s ease;
  --max-width:   1080px;
  /* Matches the phone(260) + gap(4.5rem) + copy(440) width in the showcase
     section, so the nav and hero align with the same content edges. */
  --content-width: 772px;
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md:   0 12px 28px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg:   0 24px 48px -16px rgba(0, 0, 0, 0.65);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; }

/* Serif accent on the big statement headings only — small functional
   headings (legal item titles, nav) stay on the sans body font. */
.hero h1, .legal h1, .legal section h2, .feature-slide-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
}

a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVBAR ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}

.nav-logo { height: 32px; width: auto; flex-shrink: 0; }

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-brand-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-brand .accent { color: var(--emerald); }

.logo-mark .badge-bg { fill: var(--navy); stroke: rgba(255, 255, 255, 0.14); stroke-width: 2; }
.logo-mark .stroke-emerald { stroke: var(--emerald); }
.logo-mark .fill-emerald { fill: var(--emerald); }

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 4.5rem 1.5rem 2.75rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -15% -10% -25%;
  z-index: -1;
  background:
    radial-gradient(560px 380px at 15% 0%,  color-mix(in srgb, var(--emerald) 14%, transparent), transparent 68%),
    radial-gradient(620px 420px at 88% 6%,  color-mix(in srgb, var(--emerald) 9%, transparent), transparent 70%),
    radial-gradient(500px 340px at 50% 100%, color-mix(in srgb, var(--emerald) 6%, transparent), transparent 72%);
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-logo {
  height: 84px;
  width: auto;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--emerald) 35%, transparent));
}

.hero-logo-mark .loop-fill { fill: var(--emerald-dark); }
.hero-logo-mark .loop-highlight { fill: var(--emerald); }
.hero-logo-mark .loop-dot { fill: var(--emerald); }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 auto 1.15rem;
  text-wrap: balance;
}

.hero .accent { color: var(--emerald); }

.hero p.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.75rem;
  text-wrap: balance;
}

.store-badges {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--navy);
  color: #fff;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: #fff;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-badge-text small {
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.store-badge-text strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.store-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid color-mix(in srgb, var(--emerald) 25%, var(--border));
  background: color-mix(in srgb, var(--emerald) 6%, var(--bg));
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
  animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

/* ===== SHOWCASE ===== */
.showcase {
  padding: 0.5rem 1.5rem 3.5rem;
}

.eyebrow {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1.5rem;
}

.showcase-columns {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
}

.showcase-visual {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 260px;
  margin: 0 auto;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 9px;
  box-shadow: var(--shadow-lg);
}

.phone-frame .notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 14px;
  background: var(--navy);
  border-radius: 0 0 10px 10px;
  z-index: 2;
}

.phone-frame .screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 620 / 1386;
}

.cycle-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/*
 * Six screens share one 24s loop (4s each). Every image takes a different
 * diagonal in/out of the frame, cycling through three corner pairs twice.
 */
.cycle-img:nth-child(1) { animation: cycle-slide-br 24s infinite; }
.cycle-img:nth-child(2) { animation: cycle-slide-tl 24s infinite; animation-delay: -20s; }
.cycle-img:nth-child(3) { animation: cycle-slide-bl 24s infinite; animation-delay: -16s; }
.cycle-img:nth-child(4) { animation: cycle-slide-br 24s infinite; animation-delay: -12s; }
.cycle-img:nth-child(5) { animation: cycle-slide-tl 24s infinite; animation-delay: -8s; }
.cycle-img:nth-child(6) { animation: cycle-slide-bl 24s infinite; animation-delay: -4s; }

@keyframes cycle-slide-br {
  0%     { opacity: 0; transform: translate(100%, 100%); }
  4%     { opacity: 1; transform: translate(0, 0); }
  12.7%  { opacity: 1; transform: translate(0, 0); }
  16.7%  { opacity: 0; transform: translate(-100%, -100%); }
  100%   { opacity: 0; transform: translate(-100%, -100%); }
}

@keyframes cycle-slide-tl {
  0%     { opacity: 0; transform: translate(-100%, -100%); }
  4%     { opacity: 1; transform: translate(0, 0); }
  12.7%  { opacity: 1; transform: translate(0, 0); }
  16.7%  { opacity: 0; transform: translate(100%, 100%); }
  100%   { opacity: 0; transform: translate(100%, 100%); }
}

@keyframes cycle-slide-bl {
  0%     { opacity: 0; transform: translate(-100%, 100%); }
  4%     { opacity: 1; transform: translate(0, 0); }
  12.7%  { opacity: 1; transform: translate(0, 0); }
  16.7%  { opacity: 0; transform: translate(100%, -100%); }
  100%   { opacity: 0; transform: translate(100%, -100%); }
}

.cycle-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.cycle-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  animation: cycle-dot 24s infinite;
}

.cycle-dots span:nth-child(1) { animation-delay: 0s; }
.cycle-dots span:nth-child(2) { animation-delay: -20s; }
.cycle-dots span:nth-child(3) { animation-delay: -16s; }
.cycle-dots span:nth-child(4) { animation-delay: -12s; }
.cycle-dots span:nth-child(5) { animation-delay: -8s; }
.cycle-dots span:nth-child(6) { animation-delay: -4s; }

@keyframes cycle-dot {
  0%     { background: var(--border); }
  4%     { background: var(--emerald); }
  12.7%  { background: var(--emerald); }
  16.7%  { background: var(--border); }
  100%   { background: var(--border); }
}

.showcase-copy {
  flex: 0 1 440px;
  position: relative;
  min-height: 19rem;
}

/*
 * Feature text changes only 3 times across the 24s loop, each covering a
 * themed run of screens: overview (dashboard/assets/add-asset), liability
 * entry (liabilities/add-liability), then documents alone.
 */
.feature-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
}

.feature-slide:nth-child(1) { animation: feature-group-1 24s infinite; }
.feature-slide:nth-child(2) { animation: feature-group-2 24s infinite; }
.feature-slide:nth-child(3) { animation: feature-group-3 24s infinite; }

@keyframes feature-group-1 {
  0%   { opacity: 1; }
  46%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes feature-group-2 {
  0%   { opacity: 0; }
  50%  { opacity: 0; }
  54%  { opacity: 1; }
  79%  { opacity: 1; }
  83%  { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes feature-group-3 {
  0%   { opacity: 0; }
  83%  { opacity: 0; }
  87%  { opacity: 1; }
  96%  { opacity: 1; }
  98%  { opacity: 0; }
  100% { opacity: 0; }
}

.feature-slide-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.feature-slide-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature-slide-item p { font-size: 0.95rem; color: var(--text-muted); }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.icon-tile svg { width: 24px; height: 24px; }
.icon-tile .icon-accent { stroke: var(--emerald); }

.feature-slide-item:hover .icon-tile {
  border-color: color-mix(in srgb, var(--emerald) 45%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--emerald) 10%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .cycle-img:nth-child(1), .cycle-img:nth-child(2), .cycle-img:nth-child(3),
  .cycle-img:nth-child(4), .cycle-img:nth-child(5), .cycle-img:nth-child(6),
  .feature-slide:nth-child(1), .feature-slide:nth-child(2), .feature-slide:nth-child(3),
  .cycle-dots span, .badge-dot {
    animation: none;
  }
  .cycle-img:first-of-type, .feature-slide:first-of-type {
    opacity: 1;
    transform: none;
  }
  .cycle-dots span:first-child {
    background: var(--emerald);
  }
}

@media (max-width: 860px) {
  .showcase-columns { flex-direction: column; }
  .showcase-copy {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    min-height: 21rem;
  }
}

/* ===== LEGAL PAGES ===== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

.legal h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal .effective { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.75rem; }
.legal .intro { color: var(--text-muted); margin-bottom: 1.75rem; }

.legal section { margin-bottom: 1.5rem; }
.legal section h2 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid color-mix(in srgb, var(--emerald) 30%, var(--border));
}

.legal .item { margin-bottom: 1.1rem; }
.legal .item:last-child { margin-bottom: 0; }
.legal .item h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.legal .item p { font-size: 0.92rem; color: var(--text-muted); }

/* ===== CLOSING CTA ===== */
.closing-cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 3.25rem 1.5rem;
}

.closing-cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.closing-lede {
  color: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

.closing-cta .store-badge {
  background: #fff;
  color: var(--navy);
  border-color: rgba(13, 32, 64, 0.1);
}

.closing-cta .store-badge svg { fill: var(--navy); }

.closing-cta .store-note { color: rgba(255, 255, 255, 0.6); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer .footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

footer .footer-links a { color: var(--text-muted); font-weight: 600; }
footer .footer-links a:hover { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.85rem; }
}
