/* Swipo site. Tokens from the approved design canvas; dark by default. */
@font-face { font-family: Fredoka; src: url(/fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --page: #0e0e10; --band: #18181b; --card: #1d1d21; --line: #2c2c31;
  --text: #f5f5f7; --sec: #b4b4bc; --muted: #a9a9b2; --ink: #141414;
  --true: #b8f23a; --true-ink: #2f4d00; --false: #ff5c8a; --false-ink: #7a0a2c;
  --sci: #8fd3ff; --his: #ffc94d; --food: #ff9e80; --sport: #7be0b0; --music: #b9a3ff; --animal: #f2c6a0;
  --display: Fredoka, ui-rounded, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 17px/1.55 var(--body); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 46px); }
h3 { font-size: 24px; line-height: 1.2; }
a { color: var(--text); }
a:hover { color: #c9c9cf; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
img, svg { max-width: 100%; }
.sec { color: var(--sec); }
.small { font-size: 14px; color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 20px; z-index: 10; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right)); }
.band { background: var(--band); }
.section { padding-block: 80px; display: flex; flex-direction: column; gap: 36px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > * { flex: 1 1 300px; min-width: 0; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 80px; }
.split > * { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Wordmark: "swip" + an "o" drawn as a circle, pink left, lime right, light ring. */
.mark { font: 700 32px/1 var(--display); text-decoration: none; display: inline-flex; align-items: baseline; color: var(--text); }
.mark i { display: inline-block; width: .62em; height: .62em; margin-left: 1px; border-radius: 50%;
  box-shadow: inset 0 0 0 .09em var(--text); background: linear-gradient(90deg, var(--false) 50%, var(--true) 50%); }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 16px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 16px; font-weight: 500; }
.links a:not(.btn) { text-decoration: none; padding: 10px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none;
  background: var(--text); color: var(--ink); border: 0; border-radius: 999px; padding: 12px 20px;
  font: 600 16px/1.2 var(--display); cursor: pointer; }
.btn:hover { color: var(--ink); background: #e4e4e8; }
.btn.big { padding: 17px 30px; font-size: 18px; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2a2a2e; color: #fff; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }

/* Chips and stamps */
.chip { border-radius: 10px; padding: 4px 12px; font: 600 16px var(--display); }
.t { background: var(--true); color: var(--true-ink); }
.f { background: var(--false); color: var(--false-ink); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 72px; }
.hero > div { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(46px, 6vw, 72px); line-height: 1.02; letter-spacing: -.01em; }
.hero .lede { font-size: 20px; color: var(--sec); max-width: 520px; }
.chips, .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.chips { gap: 8px; }

/* Phone mock-up */
.phone-wrap { flex: 1 1 380px; display: flex; justify-content: center; }
.phone { width: 310px; max-width: 100%; aspect-ratio: 310 / 630; border-radius: 52px; padding: 11px; background: var(--ink); box-shadow: 0 0 0 2px var(--line); }
.screen { height: 100%; border-radius: 42px; background: #34480f; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.island { width: 92px; height: 26px; border-radius: 14px; background: var(--ink); align-self: center; }
.dots { display: flex; justify-content: center; gap: 5px; }
.dots span { width: 6px; height: 6px; border-radius: 3px; background: #6b7a4a; }
.dots .now { width: 18px; background: var(--text); }
.stack { flex: 1; position: relative; }
.card { position: absolute; inset: 0; border-radius: 26px; color: var(--ink); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.card.back { inset: 14px 6px 0; background: var(--his); transform: scale(.94) translateY(10px); }
.card.front { background: var(--sci); transform: rotate(7deg) translateX(26px); box-shadow: 0 18px 30px -18px rgba(0,0,0,.45); }
.card .tag { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #2a2a2e; }
.card .tag span { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.7); display: grid; place-items: center; }
.stamp { align-self: flex-start; transform: rotate(-8deg); border: 3px solid var(--true-ink); border-radius: 10px; padding: 2px 10px; font: 700 20px var(--display); }
.card p { font: 600 28px/1.1 var(--display); }
.card .bg { position: absolute; right: -16px; bottom: -16px; width: 110px; height: 110px; opacity: .14; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.answers span { border-radius: 24px; height: 46px; display: grid; place-items: center; font: 600 17px var(--display); }
@media (prefers-reduced-motion: no-preference) {
  .card.front { animation: swipe 5s ease-in-out infinite; }
  @keyframes swipe { 0%, 15% { transform: rotate(0) translateX(0); } 40%, 85% { transform: rotate(7deg) translateX(26px); } 100% { transform: rotate(0) translateX(0); } }
  .card.front .stamp { animation: stamp 5s ease-in-out infinite; }
  @keyframes stamp { 0%, 20% { opacity: 0; } 40%, 85% { opacity: 1; } 100% { opacity: 0; } }
}

/* Panels */
.panel { background: var(--card); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.outline { border: 1.5px solid var(--line); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pic { height: 200px; border-radius: 22px; position: relative; overflow: hidden; }
.num { width: 40px; height: 40px; border-radius: 20px; background: var(--text); color: var(--ink); display: grid; place-items: center; font: 600 17px var(--display); }
.icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.topic { height: 168px; border-radius: 28px; padding: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); }
.topic .bg { position: absolute; right: -18px; bottom: -18px; width: 120px; height: 120px; opacity: .15; }
.topic .icon { background: rgba(255,255,255,.7); }
.topic span:last-child { font: 600 28px var(--display); position: relative; }

/* Stats */
.badges { display: flex; gap: 22px; align-items: center; }
.badges span { border-radius: 50%; display: grid; place-items: center; font: 700 30px var(--display); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border-radius: 22px; color: var(--ink); padding: 16px; font-weight: 600; font-size: 15px; }
.tile b { display: block; font: 700 44px/1 var(--display); }
.week { display: flex; gap: 6px; }
.week span { width: 24px; height: 24px; border-radius: 12px; background: #e7e7ea; }
.week .on { background: var(--true); }
.blocks { display: flex; flex-wrap: wrap; gap: 8px; }
.blocks span { width: 30px; height: 40px; border-radius: 9px; background: var(--true); }
.blocks .no { background: var(--false); }

/* Sample facts */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fact { border-radius: 28px; padding: 22px; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.fact q { font: 600 22px/1.15 var(--display); quotes: none; }
.fact .why { font-size: 15px; }
.fact cite { font-style: normal; font-size: 13px; font-weight: 600; opacity: .8; }

/* FAQ */
.faq { display: flex; flex-direction: column; max-width: 820px; }
details { border-top: 1.5px solid var(--line); padding: 16px 0; }
details:last-child { border-bottom: 1.5px solid var(--line); }
summary { font-weight: 600; font-size: 18px; cursor: pointer; min-height: 28px; }
details p { color: var(--sec); margin-top: 8px; }

/* Closing band and footer */
.closing { background: var(--true); color: var(--ink); }
.closing .wrap { padding-block: 96px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.closing h2 { font-size: clamp(40px, 5vw, 62px); line-height: 1.02; max-width: 760px; }
.closing p { color: var(--true-ink); font-size: 15px; }
footer { background: #000; border-top: 1px solid var(--line); font-size: 15px; }
footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
footer .mark { font-size: 24px; }
footer .who { display: flex; align-items: center; gap: 12px; color: #c9c9cf; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Text pages (privacy, terms) */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; display: flex; flex-direction: column; gap: 28px; line-height: 1.6; }
.doc h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.04; }
.doc h2 { font-size: 26px; margin-bottom: -14px; }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .box { border: 2px solid var(--line); border-radius: 24px; padding: 24px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.scroll { overflow-x: auto; }

/* Ask us */
.ask { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-block: 72px 96px; }
.ask > section { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ask h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.02; }
form { display: flex; flex-direction: column; gap: 20px; border: 2px solid var(--line); border-radius: 24px; padding: 24px; }
label { font-weight: 600; display: block; margin-bottom: 8px; }
label small { font-weight: 400; color: var(--sec); font-size: inherit; }
textarea, input[type=email] { width: 100%; font: inherit; color: var(--text); background: var(--card); border: 1.5px solid #55555c; border-radius: 16px; padding: 14px 16px; }
textarea { resize: vertical; min-height: 140px; }
.meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-top: 6px; }
.err { color: #ff8aa8; font-weight: 600; }
.count { color: var(--muted); font-variant-numeric: tabular-nums; }
.count.near { color: #ff8aa8; font-weight: 700; }
.hp { position: absolute; left: -9999px; }
.done { background: var(--card); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

@media (max-width: 900px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .topics { grid-template-columns: 1fr; }
  .topic { height: 128px; }
  .links { gap: 4px 18px; }
  .links a[href="/#how"], .links a[href="/#topics"] { display: none; }
  .section, .split { padding-block: 56px; }
  .hero { padding-block: 48px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
