/* .tells — thetells.app
   Dark green, quiet, Apple-clean. One file, no frameworks. */

@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #07100c;
  --surface: #0f1b15;
  --stroke: #1f3128;
  --text: #e8efe9;
  --text-2: rgba(232, 239, 233, 0.66);
  --text-3: rgba(232, 239, 233, 0.4);
  --brand: #2bc27d;
  --mint: #6fd3a2;
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--brand); color: var(--bg); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; margin: 0; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; }

/* Floating bar: logo and one button */
.bar {
  position: fixed; z-index: 50; top: 14px; left: 50%; translate: -50% 0;
  width: min(var(--max), 100% - 28px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 18px;
  background: rgba(15, 27, 21, 0.62);
  backdrop-filter: saturate(170%) blur(22px);
  -webkit-backdrop-filter: saturate(170%) blur(22px);
  border: 1px solid rgba(232, 239, 233, 0.08);
  border-radius: 999px;
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.7);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 22px; height: 22px; }

/* The one call to action */
.get {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px 0 15px;
  background: var(--text); color: var(--bg);
  border-radius: 999px; text-decoration: none;
  font: 600 15px/1 var(--body);
  transition: transform .2s ease, background .2s;
}
.get:hover { background: #fff; transform: translateY(-1px); }
.get svg { width: 17px; height: 17px; margin-top: -2px; }
.get.lg { height: 52px; padding: 0 24px 0 20px; font-size: 17px; }
.get.lg svg { width: 20px; height: 20px; }

/* Hero: centred words, story cards drifting behind */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: grid; place-items: center;
  background: radial-gradient(70% 55% at 50% 45%, rgba(43, 194, 125, 0.08), transparent 70%), var(--bg);
}
.hero-center { position: relative; z-index: 2; text-align: center; padding: 120px 0 96px; }
.app-icon {
  width: 84px; height: 84px; margin: 0 auto 30px; border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(232, 239, 233, 0.08), 0 20px 60px -10px rgba(43, 194, 125, 0.35);
}
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.04em; max-width: 11ch; margin-inline: auto; }
h1 em { font-style: normal; color: var(--mint); }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 30ch; margin: 22px auto 34px; }

.float { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(42% 46% at 50% 50%, var(--bg) 0%, rgba(7, 16, 12, 0.85) 45%, transparent 100%),
              linear-gradient(0deg, var(--bg), transparent 18%);
}
.tc {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--w, 120px); aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden;
  background: var(--surface) center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(232, 239, 233, 0.07), 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  transform: rotate(var(--r, 0deg));
  opacity: var(--o, 0.75); filter: blur(var(--b, 0px));
  animation: drift var(--t, 9s) ease-in-out infinite alternate;
}
.tc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7, 16, 12, 0.9)); }
.tc span {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  font: 800 13px/1.05 var(--display); letter-spacing: -0.02em; color: var(--text);
}
.chip {
  position: absolute; left: var(--x); top: var(--y);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(15, 27, 21, 0.85); border: 1px solid var(--stroke);
  font: 700 14px/1 var(--display); color: var(--text); white-space: nowrap;
  transform: rotate(var(--r, 0deg)); opacity: var(--o, 0.8);
  animation: drift var(--t, 8s) ease-in-out infinite alternate;
}
.chip b { color: var(--mint); font-weight: 800; }
.chip i { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.chip i::after { content: ""; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
/* Card positions */
.f1 { --x:4%; --y:14%; --w:130px; --r:-12deg; --o:.8; --b:0px; --t:9s; background-image:url("/assets/img/card-augustus.webp"); }
.f2 { --x:17%; --y:58%; --w:104px; --r:9deg; --o:.55; --b:1px; --t:11s; background-image:url("/assets/img/card-aurelius.webp"); }
.f3 { --x:-2%; --y:70%; --w:120px; --r:6deg; --o:.45; --b:2px; --t:10s; background-image:url("/assets/img/card-napoleon.webp"); }
.f4 { --x:24%; --y:8%; --w:86px; --r:14deg; --o:.35; --b:3px; --t:12s; background-image:url("/assets/img/card-pompey.webp"); }
.f5 { --x:80%; --y:10%; --w:124px; --r:11deg; --o:.8; --b:0px; --t:10s; background-image:url("/assets/img/card-caesar.webp"); }
.f6 { --x:88%; --y:52%; --w:112px; --r:-9deg; --o:.6; --b:1px; --t:9s; background-image:url("/assets/img/card-alexander.webp"); }
.f7 { --x:70%; --y:74%; --w:92px; --r:-16deg; --o:.4; --b:2px; --t:12s; background-image:url("/assets/img/card-augustus.webp"); }
.f8 { --x:68%; --y:26%; --w:80px; --r:-6deg; --o:.3; --b:3px; --t:11s; background-image:url("/assets/img/card-aurelius.webp"); }
.f9 { --x:12%; --y:40%; --r:-6deg; --o:.85; --t:8s; }
.f10 { --x:76%; --y:42%; --r:5deg; --o:.8; --t:9s; }
.f11 { --x:30%; --y:84%; --r:-4deg; --o:.6; --t:10s; }
.f12 { --x:60%; --y:88%; --r:7deg; --o:.55; --t:8s; }
@keyframes drift { from { translate: 0 0; } to { translate: 0 -14px; } }
@media (prefers-reduced-motion: reduce) { .tc, .chip { animation: none; } }

/* Sections */
section { padding: 96px 0; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 24px; padding: 28px; }
.card .num { font: 700 14px/1 var(--display); color: var(--mint); }
.card h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.02em; margin: 40px 0 8px; }
.card p { color: var(--text-2); margin: 0; }

.score { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.score .label { color: var(--text-2); font-weight: 600; font-size: 15px; }
.score .big { display: flex; align-items: center; gap: 14px; font: 800 clamp(64px, 8vw, 96px)/1 var(--display); letter-spacing: -0.05em; margin-top: 6px; }
.gain { font: 800 20px/1 var(--display); background: var(--mint); color: var(--bg); padding: 8px 14px; border-radius: 999px; letter-spacing: -0.01em; }
.missions ul { list-style: none; margin: 0; padding: 0; }
.missions li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--stroke); font-weight: 500; }
.missions li:first-child { padding-top: 0; }
.missions li:last-child { border-bottom: 0; padding-bottom: 0; }
.missions li.faded { color: var(--text-3); }
.dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.8px solid rgba(232, 239, 233, 0.3); margin-top: 1px; }
.dot.done { border: 0; background: var(--brand); display: grid; place-items: center; }
.dot.done svg { width: 11px; height: 11px; color: #fff; }

.final { text-align: center; padding: 104px 0 112px; }
.final h2 { margin-bottom: 28px; }

/* Legal and contact pages */
.page { padding: 140px 0 96px; }
.page .wrap { max-width: 700px; }
.page h1 { font-size: clamp(36px, 4.4vw, 52px); max-width: none; }
.updated { color: var(--text-3); font-size: 15px; margin: 14px 0 40px; }
.prose h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--mint); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.mail {
  display: inline-block; margin: 8px 0 8px;
  font: 700 clamp(22px, 3vw, 30px)/1.1 var(--display); letter-spacing: -0.02em;
  color: var(--text); text-decoration: none; border-bottom: 2px solid var(--brand);
}

/* Footer: one compact line */
footer { border-top: 1px solid var(--stroke); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 22px 0; }
footer nav { display: flex; gap: 22px; }
footer a, footer small { color: var(--text-3); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--text); }

/* Phones: the statue fills the top, words sit at the bottom */
@media (max-width: 760px) {
  .hero-center { padding: 110px 0 72px; }
  .app-icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 24px; }
  .tc { --w: 84px !important; }
  .tc span { font-size: 10px; left: 7px; right: 7px; bottom: 7px; }
  .float .hide-sm { display: none; }
  .chip { font-size: 12px; padding: 7px 11px; }
  .grid, .grid.two { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .card h3 { margin-top: 28px; }
  footer .wrap { justify-content: center; text-align: center; }
}
