/* Whifflist website: same calm palette as the app (cool paper, dusk, sea glass). */
:root {
  --bg: #f3f4f2;
  --card: #fcfcfb;
  --border: #e2e4e0;
  --text: #16191b;
  --muted: #6b7074;
  --faint: #a6aaad;
  --night: #1f3540;
  --night-mid: #2b4a52;
  --night-deep: #13232b;
  --seaglass: #a9d3cb;
  --on-dark: #fcfcfb;
  --gold: #f3d78a;
  --bronze: #e3ac7c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 'DM Sans', system-ui, -apple-system, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* Film grain, like the app. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.hand { font-family: 'Caveat', cursive; font-weight: 600; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background: linear-gradient(160deg, var(--night-mid), var(--night) 55%, var(--night-deep));
  padding: 28px 0 72px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  left: -160px;
  width: 640px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(169, 211, 203, 0.16), transparent);
}
.nav { display: flex; align-items: center; justify-content: space-between; position: relative; }
.wordmark { font-weight: 700; letter-spacing: -0.04em; text-decoration: none; font-size: 26px; }
.nav a.small { font-size: 15px; color: rgba(252, 252, 251, 0.75); text-decoration: none; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}
.big-mark { font-size: clamp(56px, 11vw, 104px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin: 0; }
.squiggle { width: min(260px, 50vw); margin: -4px 0 0 32%; }
.tagline { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.25; margin: 28px 0 12px; font-weight: 600; }
.sub { color: rgba(252, 252, 251, 0.75); max-width: 30em; margin: 0 0 28px; }
.cta {
  display: inline-block;
  background: var(--on-dark);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.cta.waitlist { background: transparent; color: var(--on-dark); border: 1.5px solid rgba(252, 252, 251, 0.35); box-shadow: none; }
.note { display: block; margin-top: 14px; font-size: 24px; color: var(--seaglass); }

/* The "my top 5" card, drawn in CSS. */
.phone {
  justify-self: center;
  width: 300px;
  padding: 28px 18px 22px;
  border-radius: 34px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(252, 252, 251, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}
.phone h3 { margin: 0 0 2px; font-size: 42px; line-height: 1; font-weight: 600; }
.phone .who { font-size: 13px; color: rgba(252, 252, 251, 0.65); margin-bottom: 16px; }
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(252, 252, 251, 0.08);
  border: 1px solid rgba(252, 252, 251, 0.12);
}
.row:nth-child(odd) { transform: rotate(-0.8deg); }
.row:nth-child(even) { transform: rotate(0.6deg); }
.rank { width: 16px; text-align: center; font-weight: 700; color: rgba(252, 252, 251, 0.55); }
.rank.r1 { color: var(--gold); }
.rank.r2 { color: #e8ecef; }
.rank.r3 { color: var(--bronze); }
.bottle { width: 30px; height: 38px; border-radius: 9px; flex: none; position: relative; }
.bottle::before { content: ''; position: absolute; left: 10px; top: 5px; width: 10px; height: 5px; border-radius: 2px; background: rgba(0, 0, 0, 0.35); }
.bottle::after { content: ''; position: absolute; left: 6px; top: 12px; width: 18px; height: 20px; border-radius: 5px; background: rgba(255, 255, 255, 0.75); }
.row .name { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.2; }
.row .name small { display: block; font-weight: 400; color: rgba(169, 211, 203, 0.9); font-size: 12px; }
.row .score { font-weight: 700; }

/* --- Sections ---------------------------------------------------------------- */
section { padding: 72px 0; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 8px 16px rgba(31, 42, 43, 0.06);
}
.feature .icon { font-size: 26px; color: var(--muted); }
.feature h3 { margin: 10px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.partners { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partners p { max-width: 40em; color: var(--muted); }
.partners .hand { font-size: 26px; color: var(--night); }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 32px 24px 48px;
  font-size: 15px;
  color: var(--muted);
}
.foot a { color: var(--muted); }

/* --- Legal pages --------------------------------------------------------------- */
.doc .bar { background: var(--night); padding: 18px 24px; }
.doc .bar .wordmark { color: var(--on-dark); }
.legal { max-width: 720px; margin: 0 auto; padding: 40px 24px 24px; }
.legal h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; letter-spacing: 0; }
.legal p, .legal li { color: #2a2f33; }
.legal ul { padding-left: 22px; }
.muted { color: var(--muted); margin-top: 4px; }

/* --- Phones -------------------------------------------------------------------- */
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; margin-top: 40px; }
  .phone { width: min(300px, 100%); }
  .features { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
