/* pelan.app — the landing page. Same palette and type as the app: Fraunces
   for the brand voice, Inter for everything a person reads. The page stays
   dark so the app's light screens and the watercolour stamps read as the
   brightest things on it. */
@import url('/fonts.css');

:root {
  --ink-950: #0b0d10;
  --ink-900: #12151a;
  --ink-800: #1a1e25;
  --ink-700: #2a2f38;
  --ink-400: #7a8494;
  --ink-200: #c3cad6;
  --ink-50: #f3f4f7;
  --accent: #80e0d1;
  --accent-deep: #0f766e;
  --olive: #93ab62;
  --rose: #e48d9c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--ink-200);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
nav.scrolled { border-bottom-color: var(--ink-700); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-50);
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-lockup:hover { color: var(--ink-50); text-decoration: none; }
.brand-lockup img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.beta-tag {
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(128, 224, 209, 0.35);
  border-radius: 999px;
  padding: 4px 8px;
}
nav .links { display: flex; align-items: center; gap: 28px; font-size: 15px; }
nav .links a { color: var(--ink-400); }
nav .links a:hover { color: var(--ink-50); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0d10;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.2s;
}
.btn:hover { background: #9aeade; text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: var(--ink-800); color: var(--ink-50); }
.btn.ghost:hover { background: var(--ink-700); }
.btn.sm { height: 38px; padding: 0 18px; font-size: 15px; }

/* ---------- hero ---------- */

header.hero { padding: 84px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink-800);
  color: var(--ink-200);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }

h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(42px, 6.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink-50);
  margin: 0 0 20px;
}
h1 em { font-style: normal; color: var(--accent); }

.lede { font-size: 20px; line-height: 1.55; color: var(--ink-200); margin: 0 0 32px; max-width: 30em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row.centered { justify-content: center; }
.cta-note { font-size: 14px; color: var(--ink-400); margin-top: 16px; }

.phone {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  border-radius: 34px;
  border: 1px solid var(--ink-700);
  background: var(--ink-900);
  padding: 8px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(128, 224, 209, 0.06);
}
.phone img { width: 100%; height: auto; display: block; border-radius: 26px; }

/* ---------- the four pillars ---------- */

/* The band that has to land in one glance: four promises, one line under
   them. Bigger type than the cards further down, and they arrive one at a
   time so the eye reads them in order. */
.pillars-section { padding-top: 40px; padding-bottom: 84px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.pillar {
  position: relative;
  padding: 32px 26px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--ink-900), rgba(18, 21, 26, 0.35));
  border: 1px solid var(--ink-700);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: pillar-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.pillar:nth-child(2) { animation-delay: 0.12s; }
.pillar:nth-child(3) { animation-delay: 0.24s; }
.pillar:nth-child(4) { animation-delay: 0.36s; }

/* A mint edge-light along the top, brightest where the icon sits. */
.pillar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(128, 224, 209, 0.7), rgba(128, 224, 209, 0));
}

.pillar-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: rgba(128, 224, 209, 0.1);
  margin-bottom: 22px;
  animation: bob 5.5s ease-in-out infinite;
}
.pillar:nth-child(2) .pillar-icon { animation-delay: -1.8s; }
.pillar:nth-child(3) .pillar-icon { animation-delay: -3.6s; }
.pillar:nth-child(4) .pillar-icon { animation-delay: -5.4s; }
.pillar-icon img { width: 32px; height: 32px; display: block; }

.pillar h2 {
  font-size: clamp(24px, 2.3vw, 28px);
  line-height: 1.12;
  margin: 0 0 12px;
}
.pillar p { margin: 0; color: var(--ink-400); font-size: 16px; line-height: 1.55; }

.pillars-foot { text-align: center; margin: 30px 0 0; }
.pillars-foot span {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: -0.01em;
}

@keyframes pillar-in {
  to { opacity: 1; transform: none; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .pillar { animation: none; opacity: 1; transform: none; }
  .pillar-icon { animation: none; }
}

/* ---------- sections ---------- */

section { padding: 88px 0; }
section + section { border-top: 1px solid var(--ink-700); }

.section-head { max-width: 34em; margin-bottom: 52px; }
h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-50);
  margin: 0 0 14px;
}
.section-head p { margin: 0; font-size: 18px; color: var(--ink-400); }

/* ---------- steps ---------- */

.steps { display: grid; gap: 56px; }
.step { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.step:nth-child(even) .step-copy { order: 2; }
.step:nth-child(even) .step-shot { order: 1; }

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(128, 224, 209, 0.12);
  color: var(--accent);
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 18px;
}
.step h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 27px;
  color: var(--ink-50);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.step p { margin: 0 0 14px; max-width: 30em; }
.step .aside { font-size: 15px; color: var(--ink-400); border-left: 2px solid var(--ink-700); padding-left: 14px; }

/* ---------- highlights ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: 20px;
  padding: 26px 24px;
}
.card h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--ink-50);
  margin: 0 0 8px;
}
.card p { margin: 0; font-size: 16px; color: var(--ink-400); line-height: 1.55; }
.card .glyph { width: 26px; height: 26px; display: block; margin-bottom: 16px; }

/* ---------- honesty ---------- */

.plain { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.plain div { border-top: 1px solid var(--ink-700); padding-top: 16px; }
.plain strong { display: block; color: var(--ink-50); font-weight: 600; margin-bottom: 4px; }
.plain span { color: var(--ink-400); font-size: 16px; }
.plain div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- passport ---------- */

.kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.passport-section {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(128, 224, 209, 0.07), transparent);
}

/* The stamps themselves, on paper with a perforated edge: transparent
   circles tiled round the border (Temani Afif's stamp gradient), a solid
   sheet over the middle. */
.stamp-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0 0 80px; }
.stamp {
  --r: 6px;
  margin: 0;
  padding: calc(2 * var(--r));
  background:
    radial-gradient(var(--r), #0000 98%, #f6f1e4) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#f6f1e4 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
  transform: rotate(-2deg);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stamp:nth-child(2) { transform: rotate(1.5deg) translateY(10px); }
.stamp:nth-child(3) { transform: rotate(-1deg); }
.stamp:nth-child(4) { transform: rotate(2.5deg) translateY(8px); }
.stamp:hover { transform: rotate(0) scale(1.04); }
.stamp img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.stamp figcaption { padding: 10px 2px 2px; display: flex; flex-direction: column; gap: 2px; }
.stamp strong {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f3a33;
}
.stamp span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #7d7462; white-space: nowrap; }

.passport-grid { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.passport-copy { display: grid; gap: 26px; max-width: 30em; }
.passport-point h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--ink-50);
  margin: 0 0 6px;
}
.passport-point p { margin: 0; color: var(--ink-400); font-size: 16px; }
.passport-point em { color: var(--ink-200); font-style: normal; }
.passport-shots { display: flex; gap: 22px; align-items: flex-start; }
.passport-shots .phone { width: 290px; margin: 0; }
.passport-shots .phone + .phone { margin-top: 48px; }


/* ---------- invite ---------- */

.invite-box {
  border: 1px solid var(--ink-700);
  background: linear-gradient(180deg, rgba(128, 224, 209, 0.06), rgba(128, 224, 209, 0));
  border-radius: 28px;
  padding: 52px 40px;
  text-align: center;
}
.invite-box h2 { margin-bottom: 12px; }
.invite-box p { max-width: 34em; margin: 0 auto 26px; color: var(--ink-400); }

.code {
  display: inline-block;
  font-family: Inter, monospace;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.3em;
  color: var(--ink-50);
  background: var(--ink-800);
  border-radius: 16px;
  padding: 14px 20px 14px 26px;
  margin-bottom: 22px;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--ink-700);
  padding: 40px 0 64px;
  color: var(--ink-400);
  font-size: 15px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer a { color: var(--ink-400); }
footer a:hover { color: var(--ink-50); }
footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-50);
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
}
footer .brand img { width: 24px; height: 24px; border-radius: 7px; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); 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; }
}

/* ---------- narrow ---------- */

@media (max-width: 1020px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .passport-grid { grid-template-columns: 1fr; gap: 48px; }
  .passport-shots { justify-content: center; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .step, .step:nth-child(even) .step-copy, .step:nth-child(even) .step-shot { grid-template-columns: 1fr; order: unset; }
  .step-shot { max-width: 350px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 14px; }
  .pillar { padding: 28px 24px; }
  .pillars-section { padding-bottom: 56px; }
  .plain { grid-template-columns: 1fr; }
  .stamp-row { grid-template-columns: repeat(2, 1fr); gap: 28px 22px; margin-bottom: 56px; }
  .passport-shots { gap: 14px; }
  .passport-shots .phone { width: auto; flex: 1; max-width: 290px; }
  .passport-shots .phone + .phone { margin-top: 32px; }
  nav .links a.nav-hide { display: none; }
  section { padding: 64px 0; }
  header.hero { padding: 56px 0 24px; }
}
