/* Spendora marketing site */
:root {
  --ink: #0e1412;
  --ink-soft: #24302b;
  --mist: #e7f1ec;
  --mist-2: #d5e6de;
  --paper: #f4f8f6;
  --leaf: #1a7a55;
  --leaf-deep: #0f5a3d;
  --leaf-glow: #2fbf7e;
  --coral: #e25b4c;
  --line: rgba(14, 20, 18, 0.12);
  --shadow: 0 24px 60px rgba(14, 20, 18, 0.18);
  --radius: 18px;
  --nav-h: 72px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--leaf-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--leaf);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(244, 248, 246, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 248, 246, 0.94);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--leaf-deep);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 650;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--leaf-deep);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 7px 8px;
  background: var(--ink);
  border-radius: 2px;
}

/* Hero — one composition */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(47, 191, 126, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(226, 91, 76, 0.12), transparent 50%),
    linear-gradient(165deg, #d9ebe3 0%, #eef5f1 42%, #f7faf8 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: end;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.hero-copy {
  padding-bottom: 1.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1.1rem;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-line {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  max-width: 16ch;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-support {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--leaf-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(14, 20, 18, 0.22);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  animation: float-in 1.1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.phone-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
}

.phone {
  width: min(280px, 72%);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  background: #111;
  padding: 10px;
  box-shadow: var(--shadow);
  animation: bob 5.5s ease-in-out infinite;
}

.phone-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
}

.phone-screen img,
.phone-screen object {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 0.65rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

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

.band {
  background:
    linear-gradient(180deg, #e4efe9 0%, #f4f8f6 100%);
  border-block: 1px solid var(--line);
}

.feature-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-list li.in {
  opacity: 1;
  transform: none;
}

.feature-num {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.1rem;
  color: var(--leaf);
}

.feature-list h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.feature-list p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 18;
  box-shadow: 0 16px 40px rgba(14, 20, 18, 0.12);
  transition: transform 0.35s ease;
}

.shot:hover {
  transform: translateY(-6px);
}

.shot img,
.shot object {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot figcaption {
  position: absolute;
  /* caption below via separate structure */
}

.shot-wrap {
  display: grid;
  gap: 0.55rem;
}

.shot-wrap span {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink-soft);
}

/* Feature page showcase — real device shots */
.showcase {
  display: grid;
  gap: 4rem;
}

.showcase-row {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: 2.5rem;
  align-items: center;
}

.showcase-row.reverse {
  grid-template-columns: minmax(200px, 280px) 1fr;
}

.showcase-row.reverse .showcase-copy {
  order: 2;
}

.showcase-row.reverse .showcase-phone {
  order: 1;
}

.showcase-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.showcase-copy p:last-child {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
  font-size: 1.05rem;
}

.showcase-phone {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 19;
  max-width: 280px;
  justify-self: center;
  width: 100%;
}

.showcase-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* App facts */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.fact {
  padding: 1.35rem 0;
  border-top: 2px solid var(--ink);
}

.fact dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.4rem;
}

.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

/* Legal pages */
.legal-hero {
  padding: 3.5rem 0 2rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(47, 191, 126, 0.18), transparent 55%),
    linear-gradient(180deg, #dfece6, var(--paper));
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
}

.legal-meta {
  color: var(--ink-soft);
  margin: 0;
}

.legal-body {
  padding: 2.5rem 0 5rem;
  max-width: 46rem;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.75rem;
}

.legal-body h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

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

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

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--leaf-deep);
}

/* Page hero for Features */
.page-hero {
  padding: 3.5rem 0 1rem;
  background:
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(47, 191, 126, 0.2), transparent 50%),
    linear-gradient(180deg, #dfece6, var(--paper));
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.65rem;
  max-width: 14ch;
}

.page-hero p {
  margin: 0;
  max-width: 40ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* CTA band */
.cta-band {
  padding: 4.5rem 0;
  background: var(--ink);
  color: #eaf4ef;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
  max-width: 16ch;
}

.cta-band p {
  margin: 0 0 1.5rem;
  max-width: 38ch;
  color: rgba(234, 244, 239, 0.72);
}

.cta-band .btn-primary {
  background: var(--leaf-glow);
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: #fff;
  color: var(--ink);
}

.cta-band .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.cta-band .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.cta-legal {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: rgba(234, 244, 239, 0.55);
}

.cta-legal a {
  color: rgba(234, 244, 239, 0.75);
  text-decoration: none;
  font-weight: 560;
}

.cta-legal a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
  background: #eef5f1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.footer-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 28ch;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 560;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .hero-visual {
    min-height: 440px;
    order: -1;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-row,
  .showcase-row.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .showcase-row.reverse .showcase-copy,
  .showcase-row.reverse .showcase-phone {
    order: unset;
  }

  .showcase-phone {
    max-width: 240px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(244, 248, 246, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-links .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .feature-list li {
    grid-template-columns: 3rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-brand,
  .hero-line,
  .hero-support,
  .hero-actions,
  .hero-visual,
  .feature-list li {
    opacity: 1;
    transform: none;
  }
}
