/* =============================================================================
   Pairify — marketing landing page
   Design tokens mirror mobile/tailwind.config.js (Kinetic Architect system).
   ========================================================================== */

:root {
  --bg-page: #faf7f0;
  --bg-surface: #fffdf7;
  --peach: #f5cdbe;
  --mint: #e8f0c8;
  --lavender: #ddd4f0;
  --amber: #fce4b8;
  --ink: #2a1f1a;
  --ink-muted: #8b6b4a;
  --danger: #f0b8b8;
  --danger-ink: #8b3838;

  --stamp: 2px 2px 0 var(--ink);
  --stamp-lg: 3px 3px 0 var(--ink);
  --stamp-xl: 5px 5px 0 var(--ink);

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-page);
  /* subtle dotted texture */
  background-image: radial-gradient(rgba(42, 31, 26, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── shared bits ───────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(42, 31, 26, 0.55);
  margin-bottom: 14px;
}
.eyebrow.center {
  text-align: center;
}
.eyebrow.on-dark {
  color: rgba(250, 247, 240, 0.6);
}

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

.section-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.04;
  letter-spacing: -1.4px;
  text-align: center;
  margin-bottom: 56px;
}

.hl-peach {
  background: var(--peach);
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--stamp);
  display: inline-block;
  transform: rotate(-1.5deg);
}

/* ── nav ───────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  background: rgba(250, 247, 240, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1.5px dashed rgba(42, 31, 26, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 16px;
  color: var(--peach);
  background: var(--ink);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  box-shadow: var(--stamp);
  transform: rotate(-3deg);
}
.brand-name {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: rgba(42, 31, 26, 0.7);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  background: var(--ink);
  color: var(--bg-page) !important;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--stamp);
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--stamp-lg);
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px 24px 90px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(42, 31, 26, 0.78);
  max-width: 480px;
  margin-bottom: 34px;
  font-weight: 450;
}

.hero-note {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: rgba(42, 31, 26, 0.5);
  margin-top: 20px;
}

/* ── store buttons ─────────────────────────────────────────────────────── */

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.store-buttons.center {
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--bg-page);
  padding: 13px 22px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--stamp-lg);
  transition:
    transform 0.13s ease,
    box-shadow 0.13s ease;
}
.store-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--stamp-xl);
}
.store-btn:active {
  transform: translate(1px, 1px);
  box-shadow: var(--stamp);
}
.store-btn.light {
  background: var(--bg-surface);
  color: var(--ink);
}
.store-ico {
  width: 26px;
  height: 26px;
  flex: none;
}
.store-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.store-txt small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
  opacity: 0.85;
  text-transform: uppercase;
}
.store-txt strong {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

/* ── phone (real screenshot) ───────────────────────────────────────────── */

.hero-phone {
  position: relative;
  display: grid;
  place-items: center;
}
.phone {
  position: relative;
  width: 290px;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 46px;
  box-shadow: 8px 10px 0 var(--ink);
  transform: rotate(-3deg);
  overflow: hidden;
  line-height: 0;
}
.phone-img {
  width: 100%;
  height: auto;
  display: block;
}
.phone-sticker {
  position: absolute;
  bottom: 8%;
  left: 0;
  background: var(--peach);
  border: 2px solid var(--ink);
  border-radius: 11px;
  box-shadow: var(--stamp);
  padding: 7px 13px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  transform: rotate(-6deg);
  z-index: 2;
}

/* ── projects → teams spotlight ────────────────────────────────────────── */

.projects {
  padding-top: 50px;
}
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 54px;
  align-items: center;
}
.proj-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.02;
  letter-spacing: -1.6px;
  margin-bottom: 18px;
}
.hl-mint {
  background: var(--mint);
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--stamp);
  display: inline-block;
  transform: rotate(-1.5deg);
}
.proj-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(42, 31, 26, 0.78);
  max-width: 470px;
  margin-bottom: 30px;
}
.proj-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--stamp);
  padding: 14px 16px;
}
.proj-step.accent {
  background: var(--mint);
}
.ps-glyph {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--bg-page);
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 14px;
}
.proj-step.accent .ps-glyph {
  background: var(--bg-surface);
}
.proj-step h4 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.3px;
  margin-bottom: 3px;
}
.proj-step p {
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(42, 31, 26, 0.76);
}

/* project-room group-chat mockup */
.proj-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.room {
  width: 100%;
  max-width: 370px;
  background: var(--lavender);
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  box-shadow: var(--stamp-xl);
  transform: rotate(1.6deg);
  overflow: hidden;
}
.room-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--ink);
  padding: 14px 16px;
}
.room-avatars {
  display: flex;
}
.ra {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  margin-left: -11px;
}
.ra:first-child {
  margin-left: 0;
}
.ra1 {
  background: var(--peach);
}
.ra2 {
  background: var(--amber);
}
.ra3 {
  background: var(--bg-page);
  font-size: 11px;
}
.room-name {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.3px;
}
.room-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(42, 31, 26, 0.55);
}
.room-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sys-pill {
  align-self: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10.5px;
  color: rgba(42, 31, 26, 0.6);
  background: rgba(42, 31, 26, 0.07);
  border-radius: 999px;
  padding: 4px 12px;
}
.bub {
  max-width: 82%;
  font-size: 13.5px;
  line-height: 1.4;
  padding: 9px 13px;
  border: 2px solid var(--ink);
  border-radius: 16px;
}
.bub-in {
  align-self: flex-start;
  background: var(--bg-surface);
  border-bottom-left-radius: 5px;
}
.bub-out {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg-page);
  border-bottom-right-radius: 5px;
}
.bub-who {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 9.5px;
  color: rgba(42, 31, 26, 0.5);
  margin-bottom: 3px;
}
.room-sticker {
  position: absolute;
  bottom: -14px;
  right: 4%;
  background: var(--amber);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: var(--stamp);
  padding: 6px 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11.5px;
  transform: rotate(4deg);
  z-index: 2;
}

/* ── features ──────────────────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  box-shadow: var(--stamp-lg);
  padding: 30px 28px;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--stamp-xl);
}
.f-peach {
  background: var(--peach);
  transform: rotate(-0.7deg);
}
.f-mint {
  background: var(--mint);
  transform: rotate(0.7deg);
}
.f-lavender {
  background: var(--lavender);
  transform: rotate(0.7deg);
}
.f-amber {
  background: var(--amber);
  transform: rotate(-0.7deg);
}
.feature-card:hover {
  transform: translate(-3px, -3px) rotate(0deg);
}
.feat-glyph {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--stamp);
  font-family: var(--mono);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
}
.feature-card h3 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(42, 31, 26, 0.8);
  font-weight: 450;
}

/* ── how it works ──────────────────────────────────────────────────────── */

.how .steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
}
.step {
  background: var(--bg-surface);
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--stamp-lg);
  padding: 28px 24px;
}
.step-num {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 34px;
  color: var(--ink);
  background: var(--amber);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 2px 12px;
  display: inline-block;
  box-shadow: var(--stamp);
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.step p {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(42, 31, 26, 0.78);
}
.step-arrow {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 28px;
  color: rgba(42, 31, 26, 0.4);
  display: grid;
  place-items: center;
}

/* ── cta ───────────────────────────────────────────────────────────────── */

.cta {
  background: var(--ink);
  color: var(--bg-page);
  margin-top: 40px;
  position: relative;
}
.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}
.cta-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  color: var(--bg-page);
  margin: 0 0 38px;
}

/* ── footer ────────────────────────────────────────────────────────────── */

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 56px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1.5px dashed rgba(42, 31, 26, 0.2);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  color: rgba(42, 31, 26, 0.7);
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  color: rgba(42, 31, 26, 0.5);
}

/* ── document pages (privacy / terms / support) ────────────────────────── */

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
  position: relative;
  z-index: 1;
}
.doc-title {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -2px;
  line-height: 1.01;
  margin-bottom: 10px;
}
.doc-updated {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.doc-lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(42, 31, 26, 0.78);
  margin-bottom: 36px;
  max-width: 620px;
}
.doc-intro {
  background: var(--peach);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--stamp-lg);
  padding: 22px 26px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 48px;
}
.doc h2 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(20px, 3.2vw, 24px);
  letter-spacing: -0.5px;
  margin: 48px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1.5px dashed rgba(42, 31, 26, 0.22);
}
.doc h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
  margin: 28px 0 8px;
}
.doc p {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(42, 31, 26, 0.82);
  margin-bottom: 14px;
}
.doc ul {
  list-style: none;
  margin: 0 0 16px;
}
.doc ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(42, 31, 26, 0.82);
}
.doc ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 800;
}
.doc ul.nested {
  margin-top: 9px;
  padding-left: 14px;
}
.doc ul.nested li::before {
  content: "·";
  font-size: 18px;
  top: -2px;
}
.doc a,
.contact-block a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--peach);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: background 0.12s;
}
.doc a:hover,
.contact-block a:hover {
  background: var(--peach);
  text-decoration-color: var(--ink);
}
.doc .caps {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: rgba(42, 31, 26, 0.72);
}
.doc code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-page);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 1px 6px;
}
.contact-block {
  background: var(--bg-surface);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--stamp-lg);
  padding: 20px 24px;
  margin-top: 14px;
}
.contact-block p {
  margin-bottom: 8px;
  font-size: 15px;
  color: rgba(42, 31, 26, 0.85);
}
.contact-block p:last-child {
  margin-bottom: 0;
}
.faq-item {
  background: var(--bg-surface);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--stamp);
  padding: 18px 22px;
  margin-bottom: 14px;
  transition:
    transform 0.13s,
    box-shadow 0.13s;
}
.faq-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--stamp-lg);
}
.faq-item h3 {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(42, 31, 26, 0.78);
  margin: 0;
}

/* ── decorative glyphs ─────────────────────────────────────────────────── */

.glyph-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.glyph {
  position: absolute;
  font-family: var(--mono);
  font-weight: 800;
  color: rgba(42, 31, 26, 0.06);
  font-size: 120px;
  user-select: none;
}
.g1 {
  top: 18%;
  left: -2%;
  transform: rotate(-12deg);
}
.g2 {
  top: 60%;
  right: -1%;
  font-size: 150px;
  transform: rotate(10deg);
}
.g3 {
  top: 84%;
  left: 8%;
  font-size: 90px;
  transform: rotate(8deg);
}
.g4 {
  top: 40%;
  right: 14%;
  font-size: 80px;
  transform: rotate(-8deg);
}

/* ── reveal animation ──────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .store-buttons {
    justify-content: center;
  }
  .hero-phone {
    margin-top: 12px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .proj-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .proj-visual {
    margin-bottom: 10px;
  }
  .how .steps {
    grid-template-columns: 1fr;
  }
  .step-arrow {
    transform: rotate(90deg);
    font-size: 22px;
  }
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .section {
    padding: 80px 20px;
  }
}

@media (max-width: 480px) {
  .store-btn {
    width: 100%;
    justify-content: center;
  }
  .glyph {
    display: none;
  }
}
