/* Tap & Roll — landing page */

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 500 900;
  font-display: swap;
}

:root {
  --bg: #0c0c10;
  --surface: #17171d;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --orange: #ff6a1a;
  /* Apple devices get the app's own typeface; everything else gets Nunito. */
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Nunito", sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

h1, h2, h3, .brand, .figure, .store-pill, .eyebrow, .plan-price {
  font-family: var(--rounded);
}

h1 {
  font-size: clamp(3rem, 8.4vw, 5.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { width: min(820px, 100%); }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.12rem; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 700;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.2rem; }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.site-header nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.97rem; padding-block: 8px; }
.site-header nav a:hover { color: var(--text); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  padding-block: clamp(40px, 8vw, 96px);
}
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.eyebrow { color: var(--orange); font-weight: 800; letter-spacing: 0.02em; }
.lede { color: var(--muted); font-size: clamp(1.1rem, 1.9vw, 1.3rem); max-width: 34rem; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.store-pill {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px;
  border-radius: 999px; background: #fff; color: #0c0c10; font-weight: 800; font-size: 1.05rem;
  text-decoration: none; transition: transform 0.15s ease, background 0.15s ease;
}
a.store-pill:hover { background: var(--orange); }
a.store-pill:active { transform: scale(0.97); }
.text-link { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.text-link:hover { color: var(--orange); }

.facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 4px; }
.facts li {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); font-size: 0.92rem; font-weight: 600;
}

/* The live demo */

.hero-demo { display: grid; justify-items: center; gap: 16px; }
.phone {
  width: min(310px, 74vw);
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 52px;
  background: #23232b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.stage {
  display: block; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: 42px; overflow: hidden; background: #000; cursor: pointer;
  perspective: 900px; font: inherit; color: inherit;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.face {
  position: relative; display: grid; place-items: center;
  width: 100%; height: 100%; background: var(--orange);
  will-change: transform;
}
.dots { width: 68%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.16)); }
.hint {
  position: absolute; left: 0; right: 0; bottom: 7%;
  font-family: var(--rounded); font-weight: 700; font-size: 0.95rem; color: rgba(255, 255, 255, 0.86);
}
.demo-help { color: var(--muted); font-size: 0.95rem; }

/* Tools */

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool {
  display: grid; align-content: start; gap: 6px;
  min-height: 190px; padding: 20px; border-radius: 28px; background: var(--c);
}
.tool h3 { margin-top: auto; padding-top: 14px; }
.tool p { font-size: 0.95rem; line-height: 1.4; color: rgba(255, 255, 255, 0.9); }
.tool { grid-template-rows: 60px 1fr auto; }
.tool h3 { align-self: end; }
/* Eleven tiles never fill a grid evenly, so the first one takes two cells. */
.tool-wide { grid-column: span 2; }

.glyph { height: 60px; display: flex; align-items: center; font-family: var(--rounded); font-weight: 900; line-height: 1; }
svg.glyph { width: 60px; }
.glyph.emoji { font-size: 50px; }
.glyph.type { font-size: 38px; letter-spacing: -0.01em; }
.glyph.type.big { font-size: 62px; }
.glyph.coin {
  width: 60px; justify-content: center; border-radius: 50%;
  background: #fbbf24; box-shadow: inset 0 0 0 5px #f59e0b; color: #b45309; font-size: 32px;
}
.glyph.ball { width: 60px; justify-content: center; border-radius: 50%; background: #fff; color: #e11d74; font-size: 28px; }
.glyph.card {
  width: 43px; flex-direction: column; justify-content: center; gap: 2px; border-radius: 7px;
  background: #fff; color: #111827; font-size: 20px; transform: rotate(-8deg);
}
.glyph.card b { font-size: 20px; }
svg.glyph.bottle { width: 18px; transform: rotate(40deg); margin-left: 20px; }

/* Reasons */

.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.reasons article {
  display: grid; align-content: start; gap: 10px;
  padding: 28px; border-radius: 28px; background: var(--surface);
}
.figure { font-size: clamp(3rem, 6vw, 4.2rem); font-weight: 900; line-height: 1; color: var(--orange); letter-spacing: -0.02em; }
.reasons p:last-child { color: var(--muted); }

/* Screens */

.screens {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px);
  width: min(1120px, 100%); margin-inline: auto; padding: 0 var(--gutter);
}
.screens img { width: 100%; height: auto; border-radius: clamp(20px, 3vw, 32px); border: 6px solid #23232b; }

/* Who it is for */

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.panel { display: grid; align-content: start; gap: 14px; padding: clamp(24px, 4vw, 40px); border-radius: 32px; background: var(--c); }
.panel h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.panel > p { color: rgba(255, 255, 255, 0.92); font-size: 1.08rem; }
.panel ul { display: grid; gap: 10px; margin-top: 4px; }
.panel li, .plan li { position: relative; padding-left: 24px; }
.panel li::before, .plan li::before {
  content: ""; position: absolute; left: 2px; top: 0.6em;
  width: 9px; height: 9px; border-radius: 50%; background: currentColor;
}

/* Pricing */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.plan { display: grid; align-content: start; gap: 8px; padding: 30px; border-radius: 28px; background: var(--surface); }
.plan h3 { font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.plan-price { font-size: 1.8rem; font-weight: 900; line-height: 1.15; margin-bottom: 12px; }
.plan ul { display: grid; gap: 10px; color: var(--muted); }
.plan-pro { background: #fff; color: #0c0c10; }
.plan-pro h3 { color: #c2410c; }
.plan-pro ul { color: #3a3a44; }
.plan-pro li::before { background: var(--orange); }

/* FAQ */

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-family: var(--rounded); font-weight: 800; font-size: 1.15rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-right: 6px;
  border-right: 3px solid var(--muted); border-bottom: 3px solid var(--muted);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.18s ease;
}
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details p { padding: 0 2px 22px; color: var(--muted); max-width: 42rem; }

/* Closing and footer */

.closing { display: grid; justify-items: center; gap: 22px; text-align: center; padding-block: clamp(56px, 9vw, 112px); }
.closing img { border-radius: 21px; }

.site-footer { border-top: 1px solid var(--line); padding-block: 28px 36px; color: var(--muted); font-size: 0.95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a:hover { color: var(--text); }
.legal { margin-top: 14px; font-size: 0.82rem; opacity: 0.75; }

/* Plain document pages (privacy) */

.doc { padding-block: clamp(40px, 7vw, 80px); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.45rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.notice {
  margin: 22px 0 8px; padding: 16px 18px; border-radius: 16px;
  background: #3a2a05; border: 1px solid #a16207; color: #fde68a;
}
.doc .notice strong { color: #fff; }

/* Small screens */

.faq details { max-width: 46rem; }

@media (max-width: 820px) {
  /* Too narrow for five phones side by side: scroll them sideways instead. */
  .screens {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 16px;
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  }
  .screens li { flex: 0 0 auto; scroll-snap-align: center; }
  .screens img { width: 200px; border-radius: 30px; }
  .hero { grid-template-columns: 1fr; }
  .hero-demo { order: 2; }
  .site-header nav a:nth-child(2) { display: none; }
}
@media (max-width: 480px) {
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 0.9rem; }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool { min-height: 172px; padding: 16px; border-radius: 24px; }
  .tool p { font-size: 0.86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  summary::after { transition: none; }
}
