/* Cube Solver website. Colours match the app (constants/theme.ts). */
:root {
  --bg: #070b14;
  --surface: #0f1524;
  --surface-2: #172036;
  --border: rgba(148, 163, 184, 0.14);
  --text: #f1f5fb;
  --body: #c9d3e3;
  --muted: #94a3b8;
  --faint: #5b6b82;
  --accent: #2ee6f0;
  --accent-2: #7c6cf6;
  --spark: #ffd34d;
  --success: #34d399;
  --on-accent: #04121a;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  flex: none;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* --- header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 11, 20, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.brand span {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}
.nav a {
  color: var(--muted);
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}
@media (max-width: 640px) {
  .nav {
    gap: 16px;
  }
  .nav .wide-only {
    display: none;
  }
}

/* --- shared pieces --------------------------------------------------------- */
.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kicker {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1,
h2,
h3 {
  font-weight: 800;
}
h2 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}
.btn svg {
  width: 18px;
  height: 18px;
}
.tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.tile svg {
  width: 22px;
  height: 22px;
}
.t-cyan {
  color: var(--accent);
  background: rgba(46, 230, 240, 0.12);
}
.t-violet {
  color: #a597ff;
  background: rgba(124, 108, 246, 0.18);
}
.t-yellow {
  color: var(--spark);
  background: rgba(255, 211, 77, 0.13);
}
.t-green {
  color: var(--success);
  background: rgba(52, 211, 153, 0.13);
}
.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.card h3 {
  margin: 16px 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.phone {
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2c3552, #11172a);
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.75),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.phone img {
  width: 100%;
  aspect-ratio: 600 / 1304;
  border-radius: 38px;
}

/* --- home: hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -160px -20% auto;
  height: 760px;
  background:
    radial-gradient(38% 46% at 26% 34%, rgba(46, 230, 240, 0.15), transparent 70%),
    radial-gradient(40% 50% at 74% 44%, rgba(124, 108, 246, 0.22), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 21, 36, 0.8);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 12px var(--spark);
}
.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 6.4vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}
.lead {
  max-width: 32em;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 20px);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  min-height: 60px;
  padding: 10px 22px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  background: #000;
  color: #fff;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.store:hover {
  border-color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transform: translateY(-1px);
}
.store svg {
  width: 28px;
  height: 28px;
}
.store small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.85;
}
.store strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
@media (max-width: 480px) {
  .stores {
    gap: 10px;
  }
  .store {
    flex: 1 1 150px;
    gap: 9px;
    min-width: 0;
    min-height: 54px;
    padding: 8px 12px;
  }
  .store svg {
    width: 24px;
    height: 24px;
  }
  .store small {
    font-size: 10.5px;
  }
  .store strong {
    font-size: 17px;
  }
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checks svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 20px;
}
.phones .phone {
  width: 268px;
}
.phones .front {
  position: relative;
  transform: translateX(16%) rotate(3deg);
}
.phones .back {
  position: absolute;
  top: 34px;
  transform: translateX(-36%) rotate(-6deg) scale(0.9);
  filter: brightness(0.72) saturate(0.9);
}
@media (max-width: 899px) {
  .phones .phone {
    width: 228px;
  }
}

/* --- home: sections --------------------------------------------------------- */
.section {
  padding: 72px 0;
}
@media (max-width: 640px) {
  .section {
    padding: 52px 0;
  }
}
.section-head {
  max-width: 640px;
  margin: 0 0 36px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--on-accent);
  font-weight: 800;
}
.gallery {
  display: flex;
  gap: 22px;
  margin: 8px -20px 0;
  padding: 8px 20px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.gallery figure {
  flex: none;
  width: 196px;
  margin: 0;
  scroll-snap-align: center;
}
.gallery .phone {
  padding: 7px;
  border-radius: 36px;
}
.gallery .phone img {
  border-radius: 30px;
}
.gallery figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
@media (min-width: 1160px) {
  .gallery {
    justify-content: center;
    overflow: visible;
  }
}
.privacy-band {
  display: grid;
  gap: 24px;
  padding: 40px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(52, 211, 153, 0.12), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(124, 108, 246, 0.14), transparent 60%),
    var(--surface);
}
.privacy-band h2 {
  margin-top: 0;
}
.privacy-band p {
  max-width: 36em;
  margin: 0;
  color: var(--muted);
}
.privacy-band .tile {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}
.privacy-band .tile svg {
  width: 30px;
  height: 30px;
}
@media (min-width: 820px) {
  .privacy-band {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 44px 48px;
  }
}
@media (max-width: 520px) {
  .privacy-band {
    padding: 28px 22px;
  }
}

/* --- documents: privacy, terms, support --------------------------------------- */
.doc {
  padding: 56px 0 80px;
}
.doc .wrap {
  max-width: 800px;
}
.doc h1 {
  margin: 10px 0 8px;
  font-size: clamp(38px, 5.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.doc .meta {
  margin: 0 0 32px;
  color: var(--faint);
  font-size: 15px;
}
.doc h2 {
  margin: 48px 0 10px;
  font-size: 25px;
  letter-spacing: -0.02em;
}
.doc h3 {
  margin: 26px 0 6px;
  font-size: 18px;
}
.doc p,
.doc li {
  color: var(--body);
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin: 8px 0;
}
.doc strong {
  color: var(--text);
}
.summary {
  padding: 22px 24px;
  border: 1px solid rgba(46, 230, 240, 0.25);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(46, 230, 240, 0.08), rgba(124, 108, 246, 0.1));
}
.summary p {
  margin: 0;
  color: var(--text);
}
.facts {
  width: 100%;
  margin: 8px 0 0;
  border-collapse: collapse;
  font-size: 15.5px;
}
.facts th,
.facts td {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.facts th {
  width: 60%;
  color: var(--muted);
  font-weight: 600;
}
.facts td {
  color: var(--text);
  font-weight: 700;
}
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 8px;
}
.contact .who {
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact h2 {
  margin: 0;
  font-size: 20px;
}
.contact p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.faq details {
  margin: 10px 0;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 0 6px;
}
.faq details > div p {
  margin: 0 0 14px;
  color: var(--muted);
}
.faq details > div ul {
  margin: 0 0 14px;
  color: var(--muted);
}
.faq details > div li {
  color: var(--muted);
}
.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 64px 0;
  text-align: center;
}
.not-found img {
  width: 96px;
  margin: 0 auto 20px;
  border-radius: 22px;
}
.not-found h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.not-found p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* --- footer ------------------------------------------------------------------ */
.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 14px;
}
.site-footer .wrap {
  display: grid;
  gap: 18px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a {
  color: var(--muted);
  font-weight: 600;
}
.site-footer p {
  margin: 0;
}
