/* =============================================================
   Boingy — homepage
   Warm paper, ink type, one violet and one lime. Mobile-first,
   fluid from 320px up.
   ============================================================= */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --card: #fffdf8;
  --ink: #14110f;
  --muted: #5f5a52;
  --line: rgba(20, 17, 15, .13);
  --violet: #5b3df5;
  --lime: #d4ff4f;
  --coral: #ff6a4d;
  --r: 24px;
  --gutter: clamp(18px, 5vw, 44px);
  --display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font); color: var(--ink); background: var(--paper);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; background: rgba(20,17,15,.07); padding: 2px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
h1 { font-size: clamp(3rem, 13.5vw, 6.6rem); letter-spacing: -.05em; line-height: .92; }
h2 { font-size: clamp(2rem, 7.2vw, 3.6rem); }
h3 { font-size: clamp(1.2rem, 4.2vw, 1.5rem); letter-spacing: -.02em; line-height: 1.15; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 2.9vw, 1.28rem); color: var(--muted); max-width: 34em; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.pip { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 var(--violet); }
.btn-ink:hover { box-shadow: 0 9px 0 var(--violet); }
.btn-line { background: transparent; }
.btn-line:hover { background: var(--card); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; box-shadow: none; }
.btn-sm:hover { box-shadow: none; }

/* ---- Top bar ---- */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(244,241,234,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.04em; }
.ball { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); box-shadow: inset -4px -4px 0 rgba(20,17,15,.14); }
.logo:hover .ball { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes hop { 40% { transform: translateY(-9px) scale(.94, 1.06); } 70% { transform: translateY(0) scale(1.1, .88); } }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { font-weight: 500; font-size: .96rem; color: var(--muted); transition: color .15s ease; }
.menu a:hover { color: var(--ink); }
.bar-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: transparent; border: 2px solid var(--ink); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.burger span::before { position: absolute; top: -6px; } .burger span::after { position: absolute; top: 6px; }

/* ---- Hero ---- */
.hero { padding-block: clamp(36px, 8vw, 96px) clamp(48px, 8vw, 100px); }
.hero-in { display: grid; gap: clamp(44px, 8vw, 64px); align-items: center; }
.hero h1 { margin-block: 18px 22px; }
.hl { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.hl::before { content: ""; position: absolute; z-index: -1; inset: .1em -.12em .02em -.12em; background: var(--lime); border-radius: .22em; transform: rotate(-1.4deg); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px clamp(12px, 4vw, 30px); max-width: 520px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.facts li { line-height: 1.35; }
.facts b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 6.4vw, 1.7rem); letter-spacing: -.04em; color: var(--ink); line-height: 1.1; }

.hero-art { position: relative; width: min(330px, 86vw); margin-inline: auto; padding-block: 8px; }
.phone { position: relative; z-index: 1; width: 78%; margin-inline: auto; aspect-ratio: 9 / 18.6; border-radius: 38px; padding: 9px; background: var(--ink); transform: rotate(-4deg); box-shadow: 14px 18px 0 var(--violet); }
.screen { height: 100%; border-radius: 30px; overflow: hidden; background: #000; color: #fff; display: flex; flex-direction: column; align-items: center; font-size: 11px; }
.p-photo { width: 100%; flex: 0 0 39%; background: radial-gradient(90% 70% at 50% 30%, #ffb199 0%, #ff6a4d 38%, #5b3df5 100%); -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.p-name { margin-top: -24px; position: relative; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.03em; display: flex; align-items: center; gap: 5px; }
.p-name i, .demo-name i { width: .62em; height: .62em; border-radius: 50%; background: linear-gradient(135deg, #4062ff, #c29aff); }
.p-handle { opacity: .6; font-size: 10px; }
.p-socs { display: flex; gap: 5px; margin-top: 9px; }
.p-socs i { width: 19px; height: 19px; border-radius: 50%; }
.p-stat { margin-top: 8px; opacity: .9; }
.p-card { width: 86%; margin-top: 10px; flex: 1; min-height: 0; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #2b2440, #5b3df5 120%); display: flex; }
.p-card span { width: 100%; align-self: flex-start; padding: 7px 4px; background: #141414; font-family: var(--display); font-weight: 700; font-size: 9.5px; text-align: center; letter-spacing: .02em; }
.p-grid { width: 86%; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-block: 6px 14px; }
.p-grid div { aspect-ratio: 3 / 2; border-radius: 10px; background: linear-gradient(200deg, #ff6a4d, #3a1f12); }
.p-grid div + div { background: linear-gradient(200deg, #d4ff4f, #23310a); }

.spring { position: absolute; z-index: 0; left: -2%; top: 8%; width: 24%; color: var(--ink); opacity: .9; transform: rotate(-10deg); }
.bounce { position: absolute; z-index: 2; right: 2%; top: 4%; width: 17%; aspect-ratio: 1 / 4; }
.bounce-ball { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); border: 2.5px solid var(--ink); box-shadow: inset -7px -7px 0 rgba(20,17,15,.14); animation: bounce 1.5s infinite; transform-origin: 50% 100%; }
.bounce-shadow { position: absolute; left: 10%; bottom: -6px; width: 80%; height: 9px; border-radius: 50%; background: rgba(20,17,15,.28); animation: shadow 1.5s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1); animation-timing-function: cubic-bezier(.55, 0, .95, .5); }
  46% { transform: translateY(300%) scale(1); animation-timing-function: ease-out; }
  50% { transform: translateY(300%) scale(1.22, .74); animation-timing-function: ease-in; }
  54% { transform: translateY(300%) scale(.94, 1.06); animation-timing-function: cubic-bezier(.05, .5, .45, 1); }
}
@keyframes shadow { 0%, 100% { transform: scale(.45); opacity: .35; } 50% { transform: scale(1.05); opacity: 1; } }
.sticker { position: absolute; z-index: 3; font-family: var(--display); font-weight: 700; font-size: .84rem; letter-spacing: -.01em; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); white-space: nowrap; }
.sticker-a { left: -4%; bottom: 16%; transform: rotate(-7deg); }
.sticker-b { right: -3%; bottom: 3%; transform: rotate(5deg); background: var(--coral); }

/* ---- Ticker ---- */
.ticker { background: var(--ink); color: var(--lime); overflow: hidden; border-block: 2px solid var(--ink); transform: rotate(-1deg) scale(1.02); }
.ticker-track { display: flex; width: max-content; animation: slide 32s linear infinite; }
.ticker span { font-family: var(--display); font-weight: 800; font-size: clamp(.95rem, 3.2vw, 1.25rem); letter-spacing: .04em; padding: 14px 0; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-inline: 22px; color: var(--paper); opacity: .55; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- Sections ---- */
.sec { padding-block: clamp(64px, 11vw, 130px); }
.sec-tint { background: var(--paper-2); }
.sec-head { max-width: 760px; margin-bottom: clamp(30px, 5vw, 54px); }
.sec-head h2 { margin-block: 14px 16px; }

/* Why */
.why { display: grid; gap: 16px; }
.why-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(22px, 3.4vw, 30px); }
.why-card h3 { margin-block: 18px 8px; }
.why-card p { color: var(--muted); }
.why-art { height: 74px; border-radius: 16px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; }
.hops i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); position: relative; }
.hops i + i { margin-left: 26px; }
.hops i + i::before { content: ""; position: absolute; right: 100%; top: 50%; width: 34px; border-top: 2.5px dashed var(--coral); }
.hops i:last-child { background: var(--coral); }
.crowd { flex-wrap: wrap; gap: 6px; align-content: center; }
.crowd i { width: 18px; height: 18px; border-radius: 50%; background: #bdb5a4; }
.crowd i:nth-child(3n) { background: var(--coral); }
.crowd .you { background: var(--violet); box-shadow: 0 0 0 3px var(--lime); }
.weight { align-items: flex-end; padding-bottom: 14px; gap: 7px; }
.weight i { width: 26px; border-radius: 6px 6px 3px 3px; background: var(--ink); }
.weight i:nth-child(1) { height: 22px; } .weight i:nth-child(2) { height: 36px; background: var(--coral); } .weight i:nth-child(3) { height: 50px; }

/* How */
.steps { display: grid; gap: 16px; counter-reset: s; }
.steps li { position: relative; background: var(--card); border-radius: var(--r); padding: clamp(24px, 3.6vw, 32px); border: 1px solid var(--line); }
.steps .n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* Features */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.cell { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3.2vw, 30px); display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.cell p { color: var(--muted); font-size: .98rem; }
.cell-violet { background: var(--violet); color: #fff; border-color: var(--violet); }
.cell-lime { background: var(--lime); border-color: var(--lime); }
.cell-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cell-violet p, .cell-ink p { color: rgba(255,255,255,.78); }
.cell-lime p { color: rgba(20,17,15,.72); }
.demo { margin-top: auto; padding-top: 18px; }
.demo-name { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 7vw, 2.5rem); letter-spacing: -.04em; display: flex; align-items: center; gap: .2em; line-height: 1; }
.demo-name i { background: linear-gradient(135deg, #d4ff4f, #fff); }
.demo-socs { display: flex; gap: 8px; }
.demo-socs i { width: clamp(30px, 9vw, 40px); aspect-ratio: 1; border-radius: 50%; }
.demo-stat { font-size: 1.05rem; } .demo-stat b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; }
.demo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-cards i { aspect-ratio: 3 / 2; border-radius: 12px; background: linear-gradient(200deg, #ff6a4d, #5b3df5); }
.demo-cards i + i { background: linear-gradient(200deg, #5b3df5, #14110f); }
.demo-chip { align-self: flex-start; font-weight: 700; font-size: .9rem; letter-spacing: .06em; padding: 6px 13px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); margin-top: auto; }
.demo-speed { height: 12px; border-radius: 99px; background: var(--paper-2); padding: 0; margin-top: auto; overflow: hidden; }
.demo-speed span { display: block; height: 100%; width: 100%; border-radius: 99px; background: var(--violet); transform-origin: left; animation: load 2.6s cubic-bezier(.2,.9,.2,1) infinite; }
@keyframes load { 0% { transform: scaleX(0); } 22%, 100% { transform: scaleX(1); } }
.demo-sizes { display: flex; align-items: flex-end; gap: 10px; }
.demo-sizes i { width: 26px; height: 46px; border-radius: 7px; border: 2px solid var(--ink); background: var(--paper-2); }
.demo-sizes i:nth-child(2) { width: 30px; height: 54px; background: var(--lime); } .demo-sizes i:nth-child(3) { width: 34px; height: 62px; }

/* Straight talk */
.sec-ink { background: var(--ink); color: var(--paper); }
.sec-ink .lead { color: rgba(244,241,234,.72); }
.sec-ink .pip { background: var(--lime); }
.talk { display: grid; gap: 16px; }
.talk-col { border-radius: var(--r); padding: clamp(22px, 3.4vw, 32px); border: 1.5px solid rgba(244,241,234,.2); }
.talk-col h3 { font-size: 1.6rem; margin-bottom: 16px; }
.talk-col ul { display: grid; gap: 13px; }
.talk-col li { position: relative; padding-left: 34px; color: rgba(244,241,234,.86); }
.talk-col li::before { position: absolute; left: 0; top: .05em; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.no li::before { content: "✕"; background: var(--coral); color: var(--ink); }
.yes li::before { content: "✓"; background: var(--lime); color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 0; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 1.2rem; font-weight: 500; transition: transform .2s ease, background .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.faq p { color: var(--muted); padding-bottom: 20px; max-width: 60ch; }

/* CTA band */
.sec-cta { padding-top: 0; }
.band { position: relative; overflow: hidden; background: var(--violet); color: #fff; border-radius: clamp(24px, 4vw, 40px); padding: clamp(40px, 8vw, 88px) clamp(22px, 5vw, 64px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.band .lead { color: rgba(255,255,255,.82); }
.band .btn { margin-top: 10px; }
.band-ball { position: absolute; right: -40px; top: -40px; width: 170px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); opacity: .95; }
.band h2, .band .lead, .band .btn, .fine { position: relative; }
.fine { font-size: .85rem; opacity: .7; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px 40px; color: var(--muted); font-size: .92rem; }
.foot-in { display: grid; gap: 18px; }
.foot .logo { color: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Larger screens ---- */
@media (min-width: 680px) {
  .why { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .talk { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; }
  .foot-in { grid-template-columns: auto 1fr; align-items: center; }
  .foot nav { justify-content: flex-end; }
  .foot p { grid-column: 1 / -1; }
}
@media (min-width: 940px) {
  .hero-in { grid-template-columns: 1.12fr .88fr; }
  .hero-art { width: min(380px, 100%); }
}
@media (max-width: 859px) {
  .menu { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 6px var(--gutter) 16px; transform: translateY(-130%); transition: transform .25s ease; }
  .menu.open { transform: none; }
  .menu a { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 1.08rem; color: var(--ink); }
  .burger { display: inline-flex; }
}
@media (max-width: 400px) {
  .bar-cta .btn { display: none; }
  .cta .btn { width: 100%; }
}
