/* Pey Tips landing — luminous mint × citrus fintech
   Isolated from tip/dashboard styles.css */

:root {
  --ink: #0a2a25;
  --ink-soft: #1a4540;
  --foam: #e8fff6;
  --mint: #c8f5e8;
  --seafoam: #9ee8d4;
  --citrus: #f7ff72;
  --citrus-deep: #e8f04a;
  --ocean: #0e3d36;
  --ocean-deep: #0a2a25;
  --paper: #f4fffa;
  --paper-2: #dff7ee;
  --line: rgba(10, 42, 37, 0.14);
  --focus: #0e3d36;

  --font-display: "Bricolage Grotesque", "Avenir Next Condensed", sans-serif;
  --font-body: "Manrope", "Gill Sans", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

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

body.landing {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--citrus);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
}

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

/* ——— Header ——— */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--pad);
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
  text-decoration: none;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: clamp(0.85rem, 2.5vw, 1.5rem);
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--ink-soft);
  opacity: 0.82;
  transition: opacity 0.2s var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  outline: none;
}

.site-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.28s var(--ease-out),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

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

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.btn-primary:hover {
  background: var(--citrus-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(10, 42, 37, 0.28);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
}

/* ——— Hero (one composition, full-bleed) ——— */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 38%, rgba(247, 255, 114, 0.55), transparent 62%),
    linear-gradient(135deg, #b8f0de 0%, #e8fff6 42%, #f4ff9a 100%);
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(244, 255, 250, 0.92) 0%,
      rgba(232, 255, 246, 0.78) 38%,
      rgba(232, 255, 246, 0.22) 62%,
      rgba(247, 255, 114, 0.12) 100%
    ),
    linear-gradient(to top, rgba(10, 42, 37, 0.18) 0%, transparent 42%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(36rem, calc(100% - 2 * var(--pad)));
  margin: 0 0 0 var(--pad);
  padding: calc(var(--header-h) + 1rem) 0 clamp(2.5rem, 6vh, 4rem);
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-optical-sizing: auto;
  font-size: clamp(2.85rem, 9vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--ink);
  animation: rise-soft 0.85s var(--ease-out) both;
}

.hero-headline {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
  max-width: 24ch;
  animation: rise-soft 0.85s var(--ease-out) 0.08s both;
}

.hero-lede {
  margin: 0 0 1.35rem;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  color: var(--ink-soft);
  opacity: 0.9;
  max-width: 34ch;
  animation: rise-soft 0.85s var(--ease-out) 0.14s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise-soft 0.85s var(--ease-out) 0.2s both;
}

/* ——— Shared sections ——— */

.section {
  position: relative;
  padding: clamp(4.5rem, 12vw, 7.5rem) 0;
}

.section-inner {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: 0 auto;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--ink);
  max-width: 16ch;
}

.section-lede {
  margin: 0;
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  color: var(--ink-soft);
  opacity: 0.88;
  max-width: 38ch;
}

/* ——— How it works ——— */

.section-how {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(247, 255, 114, 0.35), transparent 55%),
    linear-gradient(180deg, var(--foam) 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
}

.section-how .section-lede {
  margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
}

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

.step {
  display: grid;
  grid-template-columns: minmax(4.5rem, 7rem) 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1.5rem, 3.5vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}

.step-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ocean);
  opacity: 0.55;
}

.step-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  letter-spacing: -0.03em;
}

.step-body p {
  margin: 0;
  max-width: 36ch;
  color: var(--ink-soft);
  opacity: 0.88;
}

/* ——— Why CoDi ——— */

.section-why {
  background:
    linear-gradient(160deg, var(--ocean) 0%, #125249 55%, #0a2a25 100%);
  color: var(--foam);
}

.section-why .section-title {
  color: var(--foam);
}

.section-why .section-lede {
  color: var(--seafoam);
  opacity: 1;
}

.why-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.why-visual {
  width: 100%;
  max-width: 30rem;
  justify-self: start;
}

.why-svg {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (min-width: 860px) {
  .why-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .why-visual {
    justify-self: end;
  }
}

/* ——— Streamers ——— */

.section-streamers {
  background:
    radial-gradient(700px 380px at 0% 100%, rgba(158, 232, 212, 0.55), transparent 60%),
    radial-gradient(600px 320px at 100% 0%, rgba(247, 255, 114, 0.4), transparent 55%),
    var(--paper);
  border-top: 1px solid var(--line);
}

.streamers-inner {
  max-width: 36rem;
}

.streamers-cta {
  margin: 2rem 0 0;
}

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--foam);
  padding: 2rem var(--pad);
}

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

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  opacity: 0.85;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ——— Motion ——— */

@keyframes rise-soft {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step.reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.step.reveal:nth-child(3) {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .hero-brand,
  .hero-headline,
  .hero-lede,
  .hero-cta,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-art {
    transform: scale(1.04) !important;
  }
}

/* ——— Mobile ——— */

@media (max-width: 720px) {
  .site-nav a:first-child {
    display: none;
  }

  .hero-content {
    margin-left: var(--pad);
    margin-right: var(--pad);
    max-width: none;
    padding-bottom: 3rem;
  }

  .hero-art {
    object-position: 82% 30%;
  }

  .hero-grade {
    background:
      linear-gradient(
        180deg,
        rgba(244, 255, 250, 0.55) 0%,
        rgba(232, 255, 246, 0.72) 38%,
        rgba(244, 255, 250, 0.94) 68%,
        rgba(244, 255, 250, 0.98) 100%
      );
  }

  .step {
    grid-template-columns: 3.5rem 1fr;
    gap: 0.85rem;
  }

  .btn {
    width: 100%;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1100px) {
  .hero-content {
    margin-left: max(var(--pad), calc((100% - var(--max)) / 2));
  }
}

@media (max-height: 740px) and (min-width: 721px) {
  .hero-brand {
    font-size: clamp(2.4rem, 7vh, 4.2rem);
  }

  .hero-content {
    padding-bottom: 2rem;
  }
}
