/* =============================================================================
   Perkly — shared styles for the marketing site.
   Palette and type match the app exactly (see app/tailwind.config.js).
   ============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

:root {
  --cream: #f3efe7;
  --cream-50: #fbf9f5;
  --cream-100: #f7f4ee;
  --cream-200: #efe9de;

  --brand: #2f4a3b;
  --brand-dark: #22392c;
  --brand-mid: #3d5c4a;
  --brand-soft: #dde5d8;

  --sage: #e4eadd;
  --sand: #eadfcc;
  --stamp: #c7a780;

  --ink: #1c221e;
  --ink-muted: #6b7269;
  --ink-faint: #9aa096;

  --line: #e5e0d6;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 20px 60px -20px rgba(28, 34, 30, 0.18);
  --shadow-tight: 0 8px 24px -8px rgba(28, 34, 30, 0.14);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Figtree",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-mid);
  background: var(--sage);
  padding: 7px 14px;
  border-radius: 999px;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ------------------------------------------------------------------ nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand img {
  width: 34px;
  height: 34px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: var(--cream-50);
  box-shadow: var(--shadow-tight);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(47, 74, 59, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  background: var(--cream-100);
}
.btn-sm {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

/* ------------------------------------------------------------------ hero --- */
.hero {
  padding: 88px 0 60px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 58px;
  margin-top: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}
.hero-sub {
  font-size: 19px;
  max-width: 480px;
  margin-top: 22px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero-proof span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --------------------------------------------------------- phone mockup --- */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone {
  width: 300px;
  border-radius: 44px;
  background: var(--brand-dark);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  transform: rotate(3deg);
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: var(--cream);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19.2;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.phone-greeting {
  font-size: 12px;
  color: var(--ink-muted);
}
.phone-name {
  font-size: 20px;
  font-weight: 800;
  margin-top: 2px;
}
.stamp-card {
  margin-top: 22px;
  background: rgba(47, 74, 59, 0.1);
  border-radius: 20px;
  padding: 16px;
}
.stamp-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stamp-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-50);
  font-size: 15px;
}
.stamp-card-title {
  font-size: 13px;
  font-weight: 700;
}
.stamp-card-sub {
  font-size: 11px;
  color: var(--ink-muted);
}
.stamp-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  margin-top: 14px;
}
.stamp-pip {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--stamp);
}
.stamp-pip.empty {
  background: var(--cream-50);
  border: 1.5px solid var(--line);
}
.phone-reward {
  margin-top: 14px;
  background: var(--cream-50);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-reward-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.phone-reward-text {
  font-size: 12px;
  font-weight: 700;
}
.phone-reward-sub {
  font-size: 10px;
  color: var(--ink-muted);
}
.phone-qr {
  margin-top: auto;
  align-self: center;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: var(--cream-50);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 4px;
  padding: 12px;
}
.phone-qr div:nth-child(4n + 1) {
  background: var(--ink);
  border-radius: 2px;
}
.phone-qr div:nth-child(4n + 3) {
  background: var(--ink);
  border-radius: 2px;
}
.float-card {
  position: absolute;
  background: var(--cream-50);
  border-radius: 18px;
  box-shadow: var(--shadow-tight);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}
.float-card.one {
  top: 6%;
  left: -6%;
  animation-delay: 0.3s;
}
.float-card.two {
  bottom: 10%;
  right: -8%;
  animation-delay: 1.1s;
}
.float-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
}
.blob-a {
  width: 420px;
  height: 420px;
  background: var(--sage);
  top: -120px;
  right: -140px;
}
.blob-b {
  width: 320px;
  height: 320px;
  background: var(--sand);
  bottom: -100px;
  left: -120px;
  opacity: 0.4;
}

/* ---------------------------------------------------------------- logos --- */
.logo-strip {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.logo-strip-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-weight: 700;
}

/* --------------------------------------------------------------- section --- */
.section {
  padding: 110px 0;
}
.section-tight {
  padding: 70px 0;
}
.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: 42px;
  margin-top: 16px;
}
.section-head p {
  font-size: 17px;
  margin-top: 16px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ------------------------------------------------------------- bento grid --- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento .card:nth-child(1) {
  grid-column: span 2;
}
.bento .card:nth-child(4) {
  grid-column: span 2;
}
.card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-tight);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.card p {
  font-size: 15px;
}

/* ------------------------------------------------------------ how it works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--cream-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
}

/* --------------------------------------------------------------- business --- */
.business-section {
  background: var(--brand-dark);
  border-radius: 40px;
  color: var(--cream-50);
  padding: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.business-section .section-head p {
  color: rgba(243, 239, 231, 0.75);
}
.business-section h2 {
  color: var(--cream-50);
}
.business-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.business-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(243, 239, 231, 0.9);
}
.business-list .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(243, 239, 231, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 1px;
}
.dashboard-mock {
  background: rgba(243, 239, 231, 0.06);
  border: 1px solid rgba(243, 239, 231, 0.14);
  border-radius: 24px;
  padding: 24px;
}
.dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.dashboard-tile {
  background: rgba(243, 239, 231, 0.08);
  border-radius: 16px;
  padding: 18px;
}
.dashboard-tile .num {
  font-size: 26px;
  font-weight: 800;
}
.dashboard-tile .label {
  font-size: 12px;
  color: rgba(243, 239, 231, 0.65);
  margin-top: 2px;
}
.dashboard-bar {
  background: rgba(243, 239, 231, 0.08);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dashboard-bar-fill {
  height: 8px;
  border-radius: 4px;
  background: var(--stamp);
  flex: 1;
}

/* ----------------------------------------------------------------- faq --- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--brand-mid);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 4px 22px;
  font-size: 15px;
  max-width: 620px;
}

/* --------------------------------------------------------------- footer --- */
.cta-banner {
  background: var(--sage);
  border-radius: 40px;
  padding: 72px;
  text-align: center;
}
.cta-banner h2 {
  font-size: 38px;
}
.cta-banner p {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 17px;
}
.cta-banner .hero-ctas {
  justify-content: center;
  margin-top: 30px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--cream-50);
}
.store-btn.disabled {
  opacity: 0.55;
  cursor: default;
}
.store-btn .glyph {
  font-size: 22px;
}
.store-btn .lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.store-btn .lines .small {
  font-size: 10px;
  opacity: 0.8;
}
.store-btn .lines .big {
  font-size: 15px;
  font-weight: 700;
}

footer {
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-col a:hover {
  color: var(--brand-mid);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------- legal --- */
.legal-page {
  padding: 64px 0 100px;
}
.legal-header {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.legal-header h1 {
  font-size: 40px;
}
.legal-updated {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-faint);
}
.legal-body {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.legal-body h2 {
  font-size: 21px;
  margin-top: 36px;
  margin-bottom: 12px;
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body p,
.legal-body li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-muted);
}
.legal-body ul {
  padding-left: 20px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-body strong {
  color: var(--ink);
}
.legal-body a {
  color: var(--brand-mid);
  font-weight: 600;
  text-decoration: underline;
}
.callout {
  background: var(--sage);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--brand-dark);
}
.callout strong {
  color: var(--brand-dark);
}
.placeholder {
  background: var(--sand);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--ink);
}

/* -------------------------------------------------------------- support --- */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 64px;
}
.support-card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.support-card .card-icon {
  margin-bottom: 18px;
}
.support-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.support-card a.btn {
  margin-top: 20px;
}

/* ------------------------------------------------------------- reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------- mobile --- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 40px;
  }
  .phone-stage {
    margin-top: 20px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento .card:nth-child(1),
  .bento .card:nth-child(4) {
    grid-column: span 1;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .business-section {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    border-radius: 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-banner {
    padding: 48px 24px;
    border-radius: 28px;
  }
  .legal-body {
    padding: 28px;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 34px;
  }
  .section-head h2 {
    font-size: 30px;
  }
}
