/* HumanFace — humanface.app
   Brand: sand F4F3EE · ink 2A2420 · paper FFF · muted 6B6157
          terracotta D96A3B · wave 17B890 · gold C9962A · plum 6E4394 */

:root {
  --sand: #F4F3EE;
  --ink: #2A2420;
  --paper: #FFFFFF;
  --muted: #6B6157;
  --terracotta: #D96A3B;
  --wave: #17B890;
  --gold: #C9962A;
  --plum: #6E4394;
  --blue: #3E7CB1;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--sand);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
h1, h2, h3, .manifesto-big { font-family: var(--serif); font-weight: 600; }

.faq {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(42, 36, 32, 0.09);
  border-radius: 14px;
  background: var(--paper);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 10px; }

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }
.d5 { transition-delay: 0.6s; }

.reveal-visual {
  opacity: 0;
  transform: translateY(40px) scale(0.96) rotate(1.5deg);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-visual.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-visual { opacity: 1; transform: none; transition: none; }
  .hero-float .chip, .hero-float .face { animation: none !important; }
  .tilt { transform: none !important; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  background: rgba(244, 243, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(42, 36, 32, 0.06);
  padding: 12px 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 40px; height: auto; display: block; }
.nav-wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  color: var(--paper) !important;
  background: var(--ink);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}
.nav-cta:hover { background: var(--terracotta); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-center { position: relative; z-index: 2; text-align: center; padding: 0 20px; }
.app-tile {
  width: 104px; height: 104px;
  margin: 0 auto 34px;
  background: var(--paper);
  border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 44px rgba(42, 36, 32, 0.16), 0 2px 8px rgba(42, 36, 32, 0.08);
}
.app-tile img { width: 66%; height: auto; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -0.02em; }
.hero-sub {
  margin-top: 16px;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted);
}
.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 20px;
  animation: bob 2.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Floating chips & faces (pool.day-style scatter) */
.hero-float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.chip, .face {
  position: absolute;
  will-change: transform;
  animation: floaty 7s ease-in-out infinite;
}
.chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(42, 36, 32, 0.10);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.chip-wave  { color: var(--wave); }
.chip-note  { color: var(--ink); font-family: var(--serif); font-style: italic; }
.chip-voice { color: var(--plum); }
.chip-goal  { color: var(--terracotta); }
.chip-check { color: var(--wave); }
.chip-club  { color: var(--blue); }
.face {
  width: 62px; height: 62px;
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  color: var(--paper);
  box-shadow: 0 12px 32px rgba(42, 36, 32, 0.16);
}
.fa { background: var(--terracotta); }
.fb { background: var(--wave); }
.fc { background: var(--plum); }
.fd { background: var(--blue); position: absolute; }
.crown { position: absolute; top: -14px; right: -6px; color: var(--gold); font-size: 16px; transform: rotate(18deg); }

/* scatter positions + depth blur (nearer = sharper, like pool.day) */
.f1  { top: 16%; left: 12%; filter: blur(1px);   animation-delay: 0s; }
.f2  { top: 26%; right: 10%; filter: blur(0px);  animation-delay: 0.7s; }
.f3  { top: 62%; left: 8%;  filter: blur(2.5px); animation-delay: 1.4s; }
.f4  { top: 74%; right: 16%; filter: blur(1px);  animation-delay: 2.1s; }
.f5  { top: 44%; left: 17%; filter: blur(4px);   animation-delay: 0.4s; }
.f6  { top: 12%; left: 44%; filter: blur(3px);   animation-delay: 1.8s; }
.f7  { top: 33%; left: 27%; filter: blur(0px);   animation-delay: 1s; }
.f8  { top: 58%; right: 27%; filter: blur(1.5px); animation-delay: 0.2s; }
.f9  { top: 18%; right: 26%; filter: blur(3.5px); animation-delay: 2.5s; }
.f10 { top: 70%; left: 32%; filter: blur(0.5px); animation-delay: 1.2s; }
.f11 { top: 84%; left: 52%; filter: blur(2px);   animation-delay: 0.9s; }
.f12 { top: 47%; right: 7%; filter: blur(5px);   animation-delay: 1.6s; }
@keyframes floaty {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}
@media (max-width: 720px) {
  .f3, .f5, .f9, .f11 { display: none; }
  .face { width: 50px; height: 50px; font-size: 19px; border-radius: 18px; }
  .chip { font-size: 13px; padding: 8px 12px; }
}

/* ---------- App Store badge (Apple's original artwork, untouched) ---------- */
.store-badge {
  display: inline-block;
  margin-top: 34px;
  transition: transform 0.2s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { display: block; height: 56px; width: auto; }

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(300px, 480px) minmax(320px, 620px);
  justify-content: center;
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  padding: clamp(80px, 14vh, 150px) 24px;
}
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split-copy h2 {
  font-size: clamp(34px, 4.6vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.split-copy p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 420px;
}
.split-visual {
  position: relative;
  min-height: 380px;
  background: var(--paper);
  border-radius: 32px;
  box-shadow: 0 2px 4px rgba(42, 36, 32, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 44px 28px;
}
@media (max-width: 860px) {
  .split, .split.flip { grid-template-columns: 1fr; direction: ltr; gap: 36px; padding: 70px 20px; }
  .split-copy { text-align: center; }
  .split-copy p { margin-left: auto; margin-right: auto; }
}

/* mock UI pieces */
.mock-card {
  background: var(--sand);
  border-radius: 22px;
  padding: 22px 26px;
  width: min(360px, 88%);
  box-shadow: 0 14px 36px rgba(42, 36, 32, 0.10);
}
.mock-card h3 { font-size: 20px; margin-top: 10px; }
.mock-card.small { width: min(280px, 74%); margin-left: 18%; }
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.tag-daily  { background: rgba(217, 106, 59, 0.14); color: var(--terracotta); }
.tag-weekly { background: rgba(23, 184, 144, 0.14); color: var(--wave); }
.goal-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }

.cheer-card { text-align: center; }
.cheer-face {
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: 22px;
  background: var(--terracotta);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 26px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cheer-kind { margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--wave); }
.cheer-wave { font-size: 44px; margin: 8px 0; animation: wiggle 1.8s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); } 40% { transform: rotate(-4deg); }
  50% { transform: rotate(0deg); }
}
.cheer-goal { font-size: 14px; color: var(--muted); }

.mock-chip {
  background: var(--sand);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  box-shadow: 0 10px 26px rgba(42, 36, 32, 0.08);
}
.note-chip { font-family: var(--serif); font-style: italic; }
.voice-chip { color: var(--plum); font-weight: 600; }
.streak-chip { color: var(--gold); font-weight: 600; }

.check-card { text-align: center; }
.check-badge {
  width: 52px; height: 52px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--wave);
  color: var(--paper);
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.check-card h3 { color: var(--wave); font-size: 18px; }

/* ---------- Rooms ---------- */
.rooms { padding: clamp(80px, 14vh, 150px) 24px; text-align: center; }
.rooms h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.02em; }
.rooms-sub { margin: 16px auto 0; max-width: 480px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.room-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;      /* cards in a row share the tallest height */
  gap: 20px;
  margin-top: 48px;
}
.room-card {
  background: var(--paper);
  border-radius: 26px;
  padding: 28px 26px 24px;
  width: 220px;
  text-align: left;
  box-shadow: 0 2px 4px rgba(42, 36, 32, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
.room-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 22px 44px rgba(42, 36, 32, 0.13); }
.room-emoji { font-size: 30px; }
.room-card h3 { margin-top: 12px; font-size: 19px; }
.room-card p { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--ink);
  color: var(--sand);
  text-align: center;
  padding: clamp(100px, 18vh, 190px) 24px;
  border-radius: 48px 48px 0 0;
}
.manifesto-line {
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  color: rgba(244, 243, 238, 0.55);
  margin-bottom: 6px;
}
.manifesto-big {
  font-size: clamp(38px, 5.6vw, 68px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 26px;
}
.handle-line { margin-top: 30px; font-size: 15px; color: rgba(244, 243, 238, 0.6); }
.handle { color: var(--gold); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(244, 243, 238, 0.75); padding: 60px 28px 40px; }
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid rgba(244, 243, 238, 0.12);
  padding-top: 44px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: rgba(244, 243, 238, 0.45); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col a { font-size: 15px; }
.footer-col a:hover { color: var(--gold); }
.footer-copy { text-align: center; margin-top: 50px; font-size: 13px; color: rgba(244, 243, 238, 0.4); }

/* ---------- Inner pages (support / legal / handle) ---------- */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 140px 24px 90px;
}
.page h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.02em; }
.page h2 { font-size: 22px; margin-top: 36px; }
.page p, .page li { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.page ul { padding-left: 22px; }
.page a { color: var(--terracotta); }
.page .updated { font-size: 13px; color: var(--muted); margin-top: 8px; }

.handle-hero { text-align: center; padding-top: 170px; }
.handle-hero .app-tile { margin-bottom: 26px; }
.handle-hero h1 span { color: var(--terracotta); }

/* ================= Mobile polish ================= */
@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .nav.scrolled { padding: 10px 18px; }
  .nav-logo { gap: 8px; }
  .nav-logo img { width: 34px; }
  .nav-wordmark { font-size: 17px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-cta { padding: 8px 15px; }

  .hero { min-height: 92vh; }
  .app-tile { width: 88px; height: 88px; margin-bottom: 26px; border-radius: 22px; }
  .hero-sub { padding: 0 8px; }
  .store-badge { margin-top: 26px; }

  /* splits: tighter card panels, less dead air */
  .split, .split.flip { padding: 56px 18px; gap: 28px; }
  .split-visual { min-height: 0; padding: 30px 16px; border-radius: 24px; gap: 14px; }
  .mock-card { padding: 18px 20px; border-radius: 18px; }
  .mock-card h3 { font-size: 17px; }
  .mock-card.small { margin-left: 12%; }
  .mock-chip { font-size: 14px; padding: 10px 16px; }
  .cheer-wave { font-size: 36px; }

  /* rooms: 2×2 grid of compact cards instead of a tall single stack */
  .rooms { padding: 56px 18px; }
  .room-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;     /* every card the same height */
    gap: 12px;
    margin-top: 32px;
  }
  .room-card { width: auto; padding: 18px 16px 16px; border-radius: 20px; }
  .room-card:hover { transform: none; }
  .room-emoji { font-size: 24px; }
  .room-card h3 { margin-top: 8px; font-size: 16px; }
  .room-card p { margin-top: 4px; font-size: 12.5px; }

  .manifesto { padding: 80px 22px; border-radius: 28px 28px 0 0; }
  .handle-line { padding: 0 10px; }

  .footer { padding: 44px 22px 32px; }
  .footer-cols { gap: 28px 44px; }
  .footer-copy { margin-top: 36px; }

  .page { padding: 110px 20px 70px; }
  .handle-hero { padding-top: 130px; }
}

/* very small phones: keep the headline on a pedestal, not a squeeze */
@media (max-width: 390px) {
  .hero h1 { font-size: 38px; }
  .split-copy h2 { font-size: 30px; }
  .manifesto-big { font-size: 34px; }
  .room-row { grid-template-columns: 1fr; }
  .room-card { display: flex; align-items: baseline; gap: 10px; }
  .room-card h3 { margin-top: 0; }
  .room-card p { width: 100%; flex-basis: 100%; }
  .room-card { flex-wrap: wrap; }
}

/* ============ Human-centric hero (phone mock + person cards) ============ */
.hero-stage { position: relative; margin-top: 46px; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.phone { width: 270px; background: #FBF7F1; border: 7px solid #2A2420; border-radius: 42px; padding: 24px 18px 30px; box-shadow: 0 34px 70px rgba(42,36,32,.22); text-align: left; }
.phone-date { font-size: 10px; letter-spacing: 2px; font-weight: 700; color: var(--terracotta); }
.phone-hey { font-family: var(--serif, Georgia, serif); font-size: 27px; font-weight: 700; color: #2A2420; margin: 2px 0 12px; }
.phone-label { font-size: 12px; font-weight: 700; color: #2A2420; margin: 10px 0 8px; }
.phone-row { display: flex; gap: 12px; }
.mini-face { position: relative; width: 52px; height: 52px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-family: var(--serif, Georgia, serif); font-weight: 700; font-size: 19px; color: #fff; box-shadow: 0 4px 10px rgba(42,36,32,.10); }
.mf-magda  { background: linear-gradient(135deg, #4A7BA6, #7BA3C4); }
.mf-ricard { background: linear-gradient(135deg, #6E4394, #9D6BC4); }
.mf-you    { background: linear-gradient(135deg, #D96A3B, #E8955F); }
.ring-done { outline: 2.5px solid var(--wave); outline-offset: 3px; }
.mini-badge { position: absolute; right: -6px; bottom: -6px; width: 21px; height: 21px; border-radius: 7px; background: #fff; border: 2px solid #F3EDE3; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.badge-crown { color: #C9962A; font-size: 11px; }
.badge-count { top: -6px; bottom: auto; background: var(--wave); color: #fff; font-weight: 800; font-size: 11px; }
.phone-goal { margin-top: 14px; background: #fff; border: 1px solid rgba(42,36,32,.07); border-radius: 14px; padding: 10px 12px; }
.phone-goal strong { display: block; font-size: 13px; color: #2A2420; }
.phone-goal em { display: block; font-style: normal; font-size: 11px; color: var(--wave); margin-top: 3px; }
.person-card { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 14px 34px rgba(42,36,32,.13); }
.pc-face { width: 40px; height: 40px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--serif, Georgia, serif); font-weight: 700; }
.pc-magda { background: linear-gradient(135deg, #4A7BA6, #7BA3C4); }
.pc-ricard { background: linear-gradient(135deg, #6E4394, #9D6BC4); }
.pc-emma { background: linear-gradient(135deg, #C75B4A, #E08A7A); }
.pc-text { text-align: left; }
.pc-text strong { display: block; font-size: 13.5px; color: #2A2420; }
.pc-text em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 1px; }
.pc-left { left: max(2vw, calc(50% - 420px)); top: 60px; }
.pc-right { right: max(2vw, calc(50% - 430px)); top: 140px; }
.pc-bottom { left: max(4vw, calc(50% - 380px)); bottom: 30px; }
@media (max-width: 860px) {
  .hero-stage { flex-direction: column; gap: 14px; min-height: 0; }
  .person-card { position: static; }
}

/* ============ Human band (the cut-out person, FitMe-style) ============ */
.human-band { display: flex; align-items: flex-end; justify-content: center; gap: 30px; background: linear-gradient(160deg, #2A2420, #4A3B32); border-radius: 34px; margin: 40px auto; max-width: 1060px; padding: 60px 40px 0; overflow: hidden; flex-wrap: wrap; }
.band-person { width: min(360px, 60vw); display: block; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.band-copy { color: #FBF7F1; padding-bottom: 60px; max-width: 380px; text-align: left; }
.band-eyebrow { font-size: 12px; letter-spacing: 2.4px; font-weight: 700; color: #E8955F; }
.band-copy h2 { font-family: var(--serif, Georgia, serif); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; margin: 10px 0 14px; }
.band-sub { font-size: 15.5px; line-height: 1.6; color: rgba(251,247,241,.82); }
