/* Equity of Us — marketing site (matches app earthy palette) */
:root {
  --cream: #faf7f2;
  --beige: #f0e8dc;
  --brown: #3b2f1e;
  --brown-soft: #4a3f35;
  --sage: #5c7a5e;
  --sage-dark: #4a634c;
  --coral: #c97b63;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(59, 47, 30, 0.12);
  --radius: 20px;
  --radius-pill: 999px;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--brown-soft);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Ambient background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(92, 122, 94, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(201, 123, 99, 0.1), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(240, 232, 220, 0.9), var(--cream));
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(250, 247, 242, 0.82);
  border-bottom: 1px solid rgba(59, 47, 30, 0.06);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.nav-logo img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--sage);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(92, 122, 94, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(92, 122, 94, 0.4);
  text-decoration: none !important;
}

@media (max-width: 720px) {
  .nav-links li:not(:last-child) { display: none; }
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--brown);
  line-height: 1.12;
  margin-bottom: 12px;
}

.hero-copy .subtitle {
  font-size: 1.125rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-copy .lead {
  font-size: 1.05rem;
  max-width: 34ch;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.app-store-badge {
  height: 44px;
  width: auto;
  transition: opacity 0.2s;
}

.app-store-badge:hover { opacity: 0.88; }

.hero-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 12px;
}

/* Phone showcase — flat layout keeps screenshots pixel-crisp (no 3D blur) */
.phone-stage {
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 28px 56px rgba(59, 47, 30, 0.16));
}

.phone-frame {
  position: relative;
  width: min(320px, 44vw);
  padding: 14px;
  border-radius: 46px;
  background: linear-gradient(
    165deg,
    #5a5a5c 0%,
    #2c2c2e 28%,
    #1c1c1e 55%,
    #3a3a3c 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35),
    0 20px 40px rgba(0, 0, 0, 0.2);
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0d0d0f;
  border-radius: 0 0 16px 16px;
  z-index: 3;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.phone-screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #0d0d0f;
  aspect-ratio: 1284 / 2778;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  isolation: isolate;
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 28%,
    transparent 52%
  );
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.screenshot-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.screenshot-tabs button {
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--beige);
  color: var(--brown-soft);
  transition: background 0.2s, color 0.2s;
}

.screenshot-tabs button.active,
.screenshot-tabs button:hover {
  background: var(--sage);
  color: var(--white);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 32px;
  }
  .hero-copy .lead { margin-inline: auto; }
  .hero-badges { justify-content: center; }
}

/* Section shared */
section { padding: 72px 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--brown);
  margin-bottom: 12px;
}

.section-intro {
  max-width: 56ch;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* Pillars */
.pillars {
  background: linear-gradient(180deg, transparent, rgba(240, 232, 220, 0.5));
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(59, 47, 30, 0.08);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 47, 30, 0.08);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--brown);
  margin-bottom: 8px;
}

.pillar-card p { font-size: 0.9rem; }

@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* Screenshots gallery */
.gallery-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.gallery-scroll::-webkit-scrollbar { height: 6px; }
.gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--beige);
  border-radius: 3px;
}

.gallery-item {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  text-align: center;
}

.gallery-phone {
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(165deg, #5a5a5c 0%, #1c1c1e 50%, #3a3a3c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 16px 36px rgba(0, 0, 0, 0.18);
  margin-bottom: 14px;
}

.gallery-phone .phone-screen {
  border-radius: 26px;
}

.gallery-phone .phone-screen::after {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 40%
  );
}

.gallery-phone img {
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
  object-position: top center;
  transform: translateZ(0);
}

.gallery-item figcaption {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown);
}

.gallery-item p {
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
}

/* Features */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .feature-list { grid-template-columns: 1fr; }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
}

.pricing-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(59, 47, 30, 0.1);
  background: var(--white);
}

.pricing-card.featured {
  border-color: var(--sage);
  box-shadow: 0 8px 32px rgba(92, 122, 94, 0.15);
  position: relative;
}

.pricing-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -11px;
  left: 24px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sage);
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.pricing-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--brown);
  margin-bottom: 4px;
}

.pricing-card .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 16px;
}

.pricing-card .price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #888;
}

.pricing-card ul {
  list-style: none;
  font-size: 0.9rem;
}

.pricing-card li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(59, 47, 30, 0.06);
}

.pricing-card li:last-child { border-bottom: none; }

.pricing-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 24px;
  max-width: 56ch;
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--sage-dark), var(--sage));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta-band p {
  opacity: 0.92;
  margin-bottom: 24px;
  max-width: 48ch;
  margin-inline: auto;
}

.cta-band a.cta-button {
  display: inline-flex;
  padding: 14px 28px;
  background: var(--white);
  color: var(--sage-dark) !important;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
}

.cta-band a.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Footer */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(59, 47, 30, 0.08);
  margin-top: 48px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-brand img { height: 32px; margin-bottom: 8px; }
.footer-brand p { font-size: 0.85rem; color: #888; max-width: 28ch; }

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(59, 47, 30, 0.06);
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
}
