/* Cash Sort Rush — sage green, warm sand, soft gold (closet organizing) */

:root {
  --sand: #f5ebe0;
  --sand-deep: #e8dcc8;
  --sand-light: #faf6f1;
  --sage: #6b8f71;
  --sage-mid: #5a7a60;
  --sage-deep: #3f5a45;
  --sage-soft: #9bb8a0;
  --sage-glow: rgba(107, 143, 113, 0.22);
  --gold: #d4a574;
  --gold-deep: #b8894f;
  --gold-soft: #e8c9a0;
  --gold-pale: #f0ddc4;
  --ink: #2d3830;
  --ink-soft: rgba(45, 56, 48, 0.74);
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(63, 90, 69, 0.14);
  --shadow-soft: 0 10px 28px rgba(63, 90, 69, 0.09);
  --radius: 1.25rem;
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --leading-body: 1.72;
  --leading-title: 1.26;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--sand-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: var(--leading-title);
  font-weight: 700;
}

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

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

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--sage-deep);
  color: var(--white);
  border-radius: 8px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Ambient shelf background */
.shelf-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 50% -8%, var(--gold-pale) 0%, transparent 52%),
    linear-gradient(180deg, var(--sand-light) 0%, var(--sand) 45%, var(--sand-deep) 100%);
}

.shelf-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  animation: shelf-drift 20s ease-in-out infinite;
}

.shelf-bg__glow--sage {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -6%;
  background: rgba(107, 143, 113, 0.4);
}

.shelf-bg__glow--gold {
  width: 260px;
  height: 260px;
  top: 40%;
  right: -5%;
  background: rgba(212, 165, 116, 0.42);
  animation-delay: -7s;
}

.shelf-bg__glow--sand {
  width: 220px;
  height: 220px;
  bottom: 14%;
  left: 22%;
  background: rgba(232, 220, 200, 0.65);
  animation-delay: -12s;
}

.shelf-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes shelf-drift {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-12px) translateX(6px);
  }
}

/* Sticky nav */
.csr-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1rem 0;
}

.csr-nav__rail {
  max-width: 1120px;
  margin: 0 auto;
  height: 5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sage), var(--gold-soft), var(--gold));
  opacity: 0.92;
}

.csr-nav__bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(107, 143, 113, 0.18);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}

.csr-nav.is-scrolled .csr-nav__bar {
  box-shadow: var(--shadow);
}

.csr-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.csr-nav__brand img {
  border-radius: 12px;
  box-shadow: 0 4px 14px var(--sage-glow);
}

.csr-nav__links {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 0.35rem;
}

.csr-nav__links a {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.csr-nav__links a:hover {
  background: var(--sand);
  color: var(--sage-deep);
  text-decoration: none;
}

.csr-nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.csr-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 2px solid var(--sand-deep);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.csr-nav__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (min-width: 920px) {
  .csr-nav__links {
    display: flex;
  }

  .csr-nav__burger {
    display: none;
  }
}

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: 5.5rem 1.25rem 2rem;
  background: rgba(250, 246, 241, 0.98);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-sheet[hidden] {
  display: none;
}

.nav-sheet a {
  font-weight: 700;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 2px solid var(--sand-deep);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--sm {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.78rem 1.35rem;
}

.btn--xl {
  font-size: 1.05rem;
  padding: 0.92rem 1.6rem;
}

.btn--block {
  width: 100%;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--white);
  box-shadow: 0 8px 26px rgba(184, 137, 79, 0.35);
}

.btn--sand {
  background: var(--white);
  color: var(--sage-deep);
  border: 2px solid rgba(107, 143, 113, 0.32);
  box-shadow: 0 6px 20px rgba(45, 56, 48, 0.06);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* Hero */
.hero {
  padding-top: 0.5rem;
}

.hero__banner {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
  max-height: 320px;
}

.hero__banner img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center 45%;
}

.hero__stage {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__stage {
    grid-template-columns: 1.06fr 0.84fr;
    gap: 2.5rem;
  }
}

.hero__copy {
  padding: 1.45rem 1.35rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--sand-deep);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.hero__copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 4px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--sage-soft), var(--gold));
}

.hero__kicker {
  margin: 0.35rem 0 0.6rem;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--gold-deep);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.hero h1 span {
  display: block;
  margin-top: 0.22rem;
  line-height: 1.24;
  background: linear-gradient(90deg, var(--sage-mid), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1.05rem;
  color: var(--ink-soft);
  line-height: 1.76;
  font-size: 1.02rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero__chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  background: var(--sand);
  border: 1px solid var(--sage-soft);
  border-radius: var(--radius-pill);
  color: var(--ink);
}

.hero__chips svg {
  width: 16px;
  height: 16px;
  color: var(--sage);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__phone {
  position: relative;
  margin: 0 auto;
  max-width: 285px;
  padding: 0.55rem;
  background: linear-gradient(145deg, var(--sage-deep), var(--ink));
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero__phone-tag {
  position: absolute;
  border-radius: 8px;
  pointer-events: none;
  background: var(--gold-pale);
  border: 2px solid var(--gold);
  opacity: 0.9;
}

.hero__phone-tag--a {
  width: 42px;
  height: 28px;
  right: -18px;
  top: 14%;
  transform: rotate(8deg);
  box-shadow: 0 4px 14px rgba(212, 165, 116, 0.45);
}

.hero__phone-tag--b {
  width: 36px;
  height: 24px;
  left: -14px;
  bottom: 20%;
  transform: rotate(-6deg);
  border-color: var(--sage-soft);
  background: var(--sand);
  box-shadow: 0 4px 12px var(--sage-glow);
}

.hero__phone img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--sage-deep);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-head .eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--sage-mid);
  margin: 0 0 0.45rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0;
  line-height: 1.24;
}

.section-head h2 span {
  color: var(--gold-deep);
}

.section-head__lead {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.features-grid {
  margin-top: 4.5rem;
}

.features-grid__cells {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .features-grid__cells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
  }
}

.feature-card {
  padding: 1.35rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(63, 90, 69, 0.07);
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sage), var(--gold-soft));
  color: var(--white);
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
  flex: 1;
}

.howto {
  margin-top: 3.5rem;
}

.howto__panel {
  padding: 1.5rem 1.35rem;
  background: linear-gradient(120deg, rgba(107, 143, 113, 0.1), rgba(212, 165, 116, 0.12));
  border: 2px dashed rgba(184, 137, 79, 0.35);
  border-radius: var(--radius);
}

.howto__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--sage-deep);
}

.howto__list {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--ink-soft);
  line-height: 1.78;
}

.howto__list li {
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
}

.howto__list li::marker {
  color: var(--gold-deep);
  font-weight: 700;
}

.howto__cta-line {
  margin: 0;
  font-weight: 700;
  color: var(--sage-mid);
  font-size: 1.02rem;
}

/* Screenshot grid */
.screen-grid {
  margin-top: 4.5rem;
}

.screen-grid__wall {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screen-tile {
  flex: 0 0 min(68vw, 190px);
  margin: 0;
  scroll-snap-align: center;
  padding: 0.45rem;
  background: linear-gradient(145deg, var(--sage-mid), var(--sage-deep));
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212, 165, 116, 0.25);
}

.screen-tile img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: var(--sage-deep);
}

.screen-tile figcaption {
  margin: 0.5rem 0 0.12rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-pale);
}

@media (min-width: 720px) {
  .screen-grid__wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    overflow: visible;
    padding-bottom: 0;
    max-width: 720px;
    margin: 0 auto;
  }

  .screen-tile {
    flex: unset;
    min-width: 0;
  }
}

@media (min-width: 1100px) {
  .screen-grid__wall {
    max-width: none;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
  }
}

/* Download */
.download {
  margin-top: 4.5rem;
}

.download__card {
  text-align: center;
  padding: 2.55rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--sand-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.download__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, var(--sage-mid), var(--gold-soft), var(--gold));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

.download__card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--sage-glow), transparent 70%);
  pointer-events: none;
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px var(--sage-glow);
}

.download__card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.35rem;
  position: relative;
  z-index: 1;
  color: var(--sage-deep);
}

.download__lead {
  font-weight: 700;
  line-height: 1.5;
  color: var(--gold-deep);
  margin: 0 0 0.35rem;
  position: relative;
  z-index: 1;
}

.download__card > p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  background: var(--white);
  border-top: 2px solid var(--sand-deep);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sage-deep);
}

.footer__brand img {
  border-radius: 10px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer__links a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--sage-mid);
}

.footer__links a:hover {
  color: var(--gold-deep);
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Coming soon modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 56, 48, 0.55);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  max-width: 400px;
  width: 100%;
  padding: 2rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 28px 64px rgba(63, 90, 69, 0.22);
  border: 1px solid var(--sand-deep);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--sand);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-deep);
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: var(--gold-pale);
}

.modal__mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sage), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 22px rgba(184, 137, 79, 0.32);
}

.modal__mark svg {
  width: 28px;
  height: 28px;
}

.modal__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  color: var(--sage-deep);
}

.modal__panel p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  line-height: 1.68;
}

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

.btn:focus-visible,
.csr-nav__burger:focus-visible,
.modal__close:focus-visible {
  outline-offset: 3px;
}

@media (max-width: 380px) {
  .csr-nav__brand span {
    font-size: 0.95rem;
  }

  .hero__copy {
    padding: 1.2rem 1.05rem;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .btn--lg {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem 1.4rem;
  }

  .howto__panel {
    padding: 1.75rem 1.65rem;
  }
}

@media print {
  .csr-nav,
  .nav-sheet,
  .modal,
  .shelf-bg,
  .hero__cta,
  .download__actions {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero__banner,
  .hero__banner img {
    max-height: 200px;
  }
}