/* =========================================================
   facespinner.com — Spinner Wheel Names
   Direction: a party game box. Flat, saturated panels in the five
   colors of the App Store screenshots (one color per tool), thick
   ink outlines and a hard offset shadow on the things you press,
   rounded Fredoka headlines like the app's own banners.
   The prize wheel in the hero is the single loud element.
   ========================================================= */

:root {
  --ink: #1b1530;
  --ink-2: #4a4363;
  --ink-3: #6f6889;
  --paper: #ffffff;
  --mist: #f4f2fa;
  --line: #e4e0f0;

  --pink: #ff2e7e;
  --blue: #2f80ff;
  --violet: #8a3ffc;
  --orange: #ff8a1f;
  --green: #14b866;
  --sun: #ffd23f;

  --font-display: "Fredoka", "Figtree", ui-rounded, system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --stroke: 3px solid var(--ink);
  --press: 4px 4px 0 var(--ink);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 4.2vw, 50px);
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Buttons ---------- */
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: var(--stroke);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--press);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.store-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.store-button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

.store-button-icon {
  width: 18px;
  height: 22px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.pill-link:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--mist);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .header-cta {
    margin-inline-start: auto;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--pink);
  color: #fff;
  border-bottom: 3px solid var(--ink);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 104px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-dots {
  display: inline-flex;
}

.hero-dots i {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.hero-dots i + i {
  margin-inline-start: -5px;
}

.hero-dots .dot-pink { background: var(--ink); }
.hero-dots .dot-blue { background: var(--blue); }
.hero-dots .dot-violet { background: var(--violet); }
.hero-dots .dot-orange { background: var(--orange); }
.hero-dots .dot-green { background: var(--green); }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin-top: 22px;
  max-width: 34em;
  font-size: 19px;
  line-height: 1.55;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 30px;
}

.hero .store-button {
  background: #fff;
  color: var(--ink);
}

.hero-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  padding: 6px 14px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 15px;
}

.hero-proof strong {
  font-family: var(--font-display);
  font-weight: 600;
}

.hero-intent {
  margin-top: 20px;
  font-size: 16px;
}

.hero-intent a {
  font-weight: 600;
  text-underline-offset: 4px;
}

/* The wheel */
.hero-wheel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.wheel-stage {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
}

.spin-wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 8px solid var(--ink);
  /* Six equal slices in the app's tool colors; keep wheel.segments at 6 entries. */
  background:
    repeating-conic-gradient(from 0deg, transparent 0deg 59deg, var(--ink) 59deg 60deg),
    conic-gradient(
      var(--blue) 0deg 60deg,
      var(--violet) 60deg 120deg,
      var(--orange) 120deg 180deg,
      var(--green) 180deg 240deg,
      var(--sun) 240deg 300deg,
      #00b8d9 300deg 360deg
    );
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform 4.6s cubic-bezier(0.12, 0.8, 0.18, 1);
}

.spin-wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  margin-top: -0.65em;
  padding-inline-start: 30%;
  padding-inline-end: 8%;
  transform-origin: 0 50%;
  transform: rotate(calc((var(--i) - 0.5) * 60deg - 90deg));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.3;
  color: #fff;
  text-align: end;
  text-shadow: 0 2px 0 rgba(27, 21, 48, 0.35);
  white-space: nowrap;
}

.spin-wheel-label:nth-child(5) {
  color: var(--ink);
  text-shadow: none;
}

.wheel-pointer {
  position: absolute;
  top: -22px;
  left: 50%;
  z-index: 2;
  width: 46px;
  height: 56px;
  transform: translateX(-50%);
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  inset: 5px 8px 12px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 27%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 6px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.wheel-hub:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.wheel-hub:disabled {
  cursor: progress;
}

.wheel-ticket {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: min(100%, 320px);
  padding: 12px 28px 14px;
  border: var(--stroke);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--press);
  text-align: center;
}

.wheel-ticket-label {
  font-size: 14px;
  color: var(--ink-3);
}

.wheel-ticket-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.wheel-ticket.has-result .wheel-ticket-value {
  color: var(--pink);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .wheel-stage {
    width: min(78vw, 360px);
  }
}

/* ---------- Page blocks ---------- */
.summary,
.block {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.block {
  padding-block: clamp(64px, 9vw, 112px) 0;
}

.block-head {
  max-width: 44em;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.block-head p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 19px;
}

.block-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  max-width: none;
}

.block-head-row > div {
  max-width: 44em;
}

/* Summary: plain, quotable facts right under the hero */
.summary {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px 56px;
  padding-block: clamp(40px, 5vw, 64px) 0;
  color: var(--ink-2);
  font-size: 16px;
}

.summary-lead {
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
}

/* ---------- Download ---------- */
.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: var(--stroke);
  border-radius: 32px;
  overflow: hidden;
}

.download-main {
  padding: clamp(28px, 4vw, 48px);
}

.download-icon {
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
}

.download-main h2 {
  font-size: clamp(30px, 3.4vw, 42px);
}

.download-sub {
  margin-top: 10px;
  color: var(--ink-2);
}

.download-price {
  margin-top: 6px;
  color: var(--ink-2);
}

.download-price strong {
  color: var(--green);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}

.qr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 220px;
}

.qr img {
  width: 80px;
  height: 80px;
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.download-req {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-3);
}

.download-facts {
  padding: clamp(28px, 4vw, 48px);
  background: var(--mist);
  border-inline-start: var(--stroke);
}

.download-facts h3 {
  margin-bottom: 20px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 0;
}

.facts dt {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.download-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 2px dashed var(--line);
  font-size: 16px;
}

/* ---------- Tools / screenshots strip ---------- */
.tool-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.tool {
  display: flex;
  flex-direction: column;
  padding: 22px 18px 0;
  border-radius: 28px;
  color: #fff;
  scroll-snap-align: start;
  overflow: hidden;
}

.tool-pink { background: var(--pink); }
.tool-blue { background: var(--blue); }
.tool-violet { background: var(--violet); }
.tool-orange { background: var(--orange); }
.tool-green { background: var(--green); }

.tool-name {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 19px;
}

.tool-text {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.5;
}

.tool-shot {
  width: 86%;
  margin: 22px auto 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 20px;
}

.step-n {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sun);
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.steps-note {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 16px;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 24px;
  margin-top: 40px;
}

.audience,
.compare {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 28px;
  background: var(--mist);
}

.audience ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.audience li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 2px solid var(--line);
  font-size: 16.5px;
}

.audience li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
}

.audience li:nth-child(2)::before { background: var(--blue); }
.audience li:nth-child(3)::before { background: var(--orange); }
.audience li:nth-child(4)::before { background: var(--green); }

.compare > p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.scoreboard {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.scoreboard th,
.scoreboard td {
  padding: 12px 14px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.scoreboard thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.scoreboard tbody tr:last-child > * {
  border-bottom: 0;
}

.scoreboard tbody th {
  font-weight: 700;
}

.scoreboard .col-app {
  background: #fff4c7;
  font-weight: 600;
}

.scoreboard thead .col-app {
  background: var(--sun);
  color: var(--ink);
}

/* ---------- Guides ---------- */
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.guide-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 20px 0;
  border-bottom: 2px solid var(--line);
  text-decoration: none;
}

.guide-list a:hover .guide-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.guide-tag {
  display: inline-block;
  align-self: start;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.guide-list li:nth-child(5n + 2) .guide-tag,
.hub-grid li:nth-child(5n + 2) .guide-tag { background: var(--blue); }
.guide-list li:nth-child(5n + 3) .guide-tag,
.hub-grid li:nth-child(5n + 3) .guide-tag { background: var(--violet); }
.guide-list li:nth-child(5n + 4) .guide-tag,
.hub-grid li:nth-child(5n + 4) .guide-tag { background: var(--orange); }
.guide-list li:nth-child(5n + 5) .guide-tag,
.hub-grid li:nth-child(5n + 5) .guide-tag { background: var(--green); }

.guide-list .guide-tag {
  grid-row: 1 / span 2;
  margin-top: 3px;
}

.guide-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}

.guide-summary {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.faq-list-single {
  grid-template-columns: 1fr;
}

.faq-item {
  padding: 22px 0 24px;
  border-top: 2px solid var(--ink);
}

.faq-q {
  font-size: 21px;
  line-height: 1.25;
}

.faq-a {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 16.5px;
}

.faq-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--pink);
  font-weight: 700;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.faq-toggle::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

.faq-item.is-open .faq-toggle::after {
  content: "\2212";
  background: var(--sun);
}

.faq-item.is-collapsible:not(.is-open) .faq-a,
.faq-item.is-collapsible:not(.is-open) .faq-more {
  display: none;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink-3);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-inline-end: 6px;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--ink-2);
}

/* ---------- Guide page ---------- */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.guide-layout > .breadcrumbs {
  grid-column: 1 / -1;
}

.guide-article {
  min-width: 0;
  max-width: 44em;
}

.guide-header h1 {
  margin-top: 14px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
}

.guide-meta {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 15px;
}

.quick-answer {
  margin-top: 26px;
  padding: 22px 24px;
  border: var(--stroke);
  border-radius: 20px;
  background: #fff4c7;
  box-shadow: var(--press);
}

.quick-answer-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
}

.guide-body {
  margin-top: 36px;
}

.guide-body > p,
.guide-section > p {
  margin-top: 16px;
  color: var(--ink-2);
}

.guide-section {
  margin-top: 44px;
}

.guide-section h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.guide-section ul,
.guide-section ol:not(.steps) {
  margin: 16px 0 0;
  padding-inline-start: 22px;
  color: var(--ink-2);
}

.guide-section li + li {
  margin-top: 8px;
}

.guide-figure {
  margin: 32px 0 0;
  padding: 24px 24px 0;
  border-radius: 28px;
  background: var(--mist);
  overflow: hidden;
}

.guide-figure img {
  width: min(100%, 280px);
  margin: 0 auto;
  border-radius: 22px 22px 0 0;
}

.guide-figure figcaption {
  padding: 14px 0 18px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
}

.guide-callout,
.guide-note {
  margin-top: 24px;
  padding: 16px 20px;
  border-inline-start: 5px solid var(--blue);
  background: var(--mist);
  border-radius: 0 14px 14px 0;
}

.steps-vertical {
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.steps-vertical h3 {
  font-size: 19px;
}

.steps-vertical p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 16.5px;
}

.inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 26px;
  padding: 22px;
  border-radius: 24px;
  background: var(--pink);
  color: #fff;
}

.inline-cta img {
  width: 64px;
  height: 64px;
}

.inline-cta-copy {
  flex: 1 1 220px;
}

.inline-cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
}

.inline-cta .store-button {
  background: #fff;
  color: var(--ink);
}

.tips li::marker {
  color: var(--pink);
}

.guide-faq .faq-list {
  margin-top: 18px;
}

.guide-disclaimer {
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-3);
}

.guide-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 90px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 20px;
  border: var(--stroke);
  border-radius: 26px;
  text-align: center;
}

.app-card-name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.app-card-sub,
.app-card-note {
  font-size: 14.5px;
  color: var(--ink-2);
}

.app-card .store-button {
  margin: 8px 0 4px;
  font-size: 16px;
  padding: 12px 18px;
}

.app-card-qr {
  width: 88px;
  height: 88px;
  margin-top: 6px;
  border: 2px solid var(--ink);
  border-radius: 12px;
}

.related {
  padding: 22px 20px;
  border-radius: 26px;
  background: var(--mist);
}

.related-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}

.related ul {
  margin: 10px 0 16px;
  padding: 0;
  list-style: none;
}

.related li a {
  display: block;
  padding: 10px 0;
  border-bottom: 2px solid var(--line);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.related-tag {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Guides hub ---------- */
.hub-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.hub-hero h1 {
  margin-top: 22px;
  max-width: 16em;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
}

.hub-hero > p {
  margin-top: 18px;
  max-width: 40em;
  font-size: 19px;
  color: var(--ink-2);
}

.page-hub .block {
  padding-top: 40px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-grid a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  height: 100%;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  text-decoration: none;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}

.hub-grid a:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--press);
}

.hub-grid img {
  width: 96px;
  border-radius: 12px;
}

.hub-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .download-card {
    grid-template-columns: 1fr;
  }
  .download-facts {
    border-inline-start: 0;
    border-top: var(--stroke);
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }
  .summary {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .guide-list,
  .faq-list {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .tool-strip {
    grid-template-columns: repeat(5, 78vw);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .scoreboard {
    font-size: 14px;
  }
  .brand-name {
    font-size: 18px;
  }
}

/* Wheel labels on the left half read upright: anchor them to the left of the hub instead. */
.spin-wheel-label:nth-child(n + 4) {
  left: auto;
  right: 50%;
  padding-inline-start: 8%;
  padding-inline-end: 30%;
  transform-origin: 100% 50%;
  transform: rotate(calc((var(--i) - 0.5) * 60deg + 90deg));
  text-align: start;
}

/* Guide rows: tag sits above the title so titles line up */
.guide-list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

@media (max-width: 1000px) {
  .download-card,
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
  }
  .brand-name,
  .header-cta {
    white-space: nowrap;
  }
  .brand-name {
    font-size: 17px;
  }
  .header-cta {
    padding: 8px 13px;
    font-size: 14px;
  }
  .tool-shot {
    width: min(86%, 230px);
  }
  .store-button {
    padding: 12px 18px;
    font-size: 16px;
  }
  .download-main,
  .download-facts {
    padding: 24px 20px;
  }
}

/* Comparison table becomes stacked rows on phones (labels come from data-label) */
@media (max-width: 600px) {
  .compare {
    padding: 22px 16px;
  }
  .how .scoreboard thead {
    display: none;
  }
  .how .scoreboard,
  .how .scoreboard tbody,
  .how .scoreboard tr,
  .how .scoreboard th,
  .how .scoreboard td {
    display: block;
    width: 100%;
  }
  .how .scoreboard tr {
    border-bottom: 2px solid var(--ink);
  }
  .how .scoreboard tbody tr:last-child {
    border-bottom: 0;
  }
  .how .scoreboard tbody th {
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
  }
  .how .scoreboard td::before {
    content: attr(data-label);
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-3);
  }
  .how .scoreboard td.col-app::before {
    color: var(--ink);
  }
}

/* =========================================================
   Mobile pass: navigation, tap targets (>= 44px), header fit
   ========================================================= */
@media (max-width: 760px) {
  .hero-inner {
    padding-top: 32px;
    gap: 36px;
  }
  .hero h1 {
    font-size: clamp(42px, 12vw, 56px);
  }
  .hero-sub {
    font-size: 17px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .hero .store-button {
    justify-content: center;
  }
  .hero-link,
  .faq-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .hero-link {
    justify-content: center;
  }
  .hero-proof li {
    font-size: 14px;
  }
  .faq-toggle {
    min-height: 44px;
  }
  .steps li {
    padding: 18px;
  }
  .block-head p {
    font-size: 17px;
  }
  .related li a {
    padding: 12px 0;
  }
  .guide-tag,
  .related-tag {
    font-size: 14px;
  }
  .inline-cta .store-button {
    width: 100%;
    justify-content: center;
  }
}


/* ---------- Legal pages (privacy.html, terms.html) ---------- */
.legal {
  max-width: 46em;
  margin: 0 auto;
  padding: 36px var(--gutter) 0;
  color: var(--ink-2);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.legal p {
  margin-top: 14px;
}

.legal > strong,
.legal > p > strong:only-child {
  display: block;
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.legal > p:first-child > strong,
.legal > strong:first-child {
  margin-top: 0;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}

.legal strong {
  color: var(--ink);
}

.legal a {
  color: var(--pink);
}

.page-legal .site-footer {
  margin-top: 64px;
}

@media (max-width: 760px) {
  .hub-grid a {
    grid-template-columns: 72px 1fr;
    gap: 14px;
    padding: 14px;
  }
  .hub-grid img {
    width: 72px;
  }
}

@media (max-width: 1000px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .header-cta {
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .store-button {
    padding: 12px 14px;
    font-size: 15px;
  }
  .wheel-ticket {
    padding: 10px 18px 12px;
  }
}

/* Touch screens of any width (tablets too): comfortable tap targets */
@media (pointer: coarse), (max-width: 1024px) {
  .hero-link,
  .faq-more,
  .hero-intent a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .header-cta {
    min-height: 44px;
  }
}


/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(64px, 9vw, 112px);
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) var(--gutter) 40px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  text-decoration: none;
}

.footer-logo img {
  width: 44px;
  height: 44px;
}

.footer-tagline {
  margin-top: 16px;
  max-width: 24em;
  color: #b9b2d3;
  font-size: 15px;
  line-height: 1.55;
}

.footer-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.footer-store:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.footer-col-title {
  margin-bottom: 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.footer-col ul,
.footer-languages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 4px;
}

.footer-col a,
.footer-languages a {
  display: inline-block;
  padding: 5px 0;
  color: #b9b2d3;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover,
.footer-languages a:hover {
  color: #fff;
}

.footer-col .footer-all {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
}

.footer-languages {
  grid-column: 1 / -1;
}

.footer-languages ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8e87a8;
  font-size: 13.5px;
}

@media (max-width: 1000px) {
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
  .footer-col-guides {
    grid-column: 1 / -1;
    order: 3;
  }
  .footer-col-guides ul {
    columns: 2;
    column-gap: 20px;
  }
  .footer-col-guides li {
    break-inside: avoid;
  }
  .footer-col a,
  .footer-languages a {
    padding: 10px 0;
    min-height: 44px;
  }
  .footer-col li + li {
    margin-top: 0;
  }
  .footer-store {
    min-height: 44px;
  }
  .footer-bottom {
    flex-direction: column;
  }
}


/* ---------- Final CTA ---------- */
.final-cta {
  max-width: var(--max);
  margin: clamp(64px, 9vw, 112px) auto 0;
  padding-inline: var(--gutter);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 24px 48px;
  padding: clamp(36px, 5vw, 64px);
  border: var(--stroke);
  border-radius: 36px;
  background: var(--mist);
  overflow: hidden;
}

.final-cta h2 {
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.02;
}

.final-cta-text {
  margin-top: 16px;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 19px;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 30px;
}

.final-cta-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  max-width: 190px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.35;
}

.final-cta-qr img {
  flex: none;
  width: 72px;
  height: 72px;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.final-cta-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 2px solid var(--line);
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}

.final-cta-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.final-cta-facts li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* Three App Store screenshots fanned like a hand of cards */
.final-cta-visual {
  position: relative;
  height: clamp(320px, 34vw, 430px);
}

.cta-shot {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40%;
  max-width: 190px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 6px 6px 0 rgba(27, 21, 48, 0.9);
}

.cta-shot-center {
  z-index: 2;
  transform: translateX(-50%);
}

.cta-shot-left {
  transform: translateX(-100%) rotate(-8deg);
  transform-origin: bottom right;
  bottom: 6%;
}

.cta-shot-right {
  transform: translateX(0) rotate(8deg);
  transform-origin: bottom left;
  bottom: 6%;
}

@media (max-width: 860px) {
  .final-cta-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .final-cta-visual {
    order: -1;
    height: 220px;
    margin-bottom: 8px;
  }
  .cta-shot {
    width: 30%;
    max-width: 140px;
  }
}

@media (max-width: 760px) {
  .final-cta-inner {
    padding: 28px 20px;
    border-radius: 28px;
  }
  .final-cta-text {
    font-size: 17px;
  }
  .final-cta-actions .store-button {
    width: 100%;
    justify-content: center;
  }
  .final-cta-qr {
    display: none;
  }
}


/* ---------- Header (final) ---------- */
.site-header {
  min-height: 68px;
  padding-block: 10px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.site-nav a {
  position: relative;
  padding: 10px 14px;
  background: none;
  border-radius: 10px;
}

.site-nav a:hover {
  background: var(--mist);
}

.header-cta {
  min-height: 44px;
  padding: 10px 18px;
}

.nav-toggle,
.nav-store {
  display: none;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 60px;
    padding: 8px var(--gutter);
  }
  html {
    scroll-padding-top: 76px;
  }
  .brand {
    margin-inline-end: auto;
    min-width: 0;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    overflow: hidden;
    font-size: 17px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .header-cta {
    flex: none;
    margin: 0;
    padding: 8px 14px;
    font-size: 14px;
  }
  .nav-toggle {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle-bars {
    position: relative;
  }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle-bars::before {
    top: -6px;
  }
  .nav-toggle-bars::after {
    top: 6px;
  }
  .site-header.is-open .nav-toggle-bars {
    background: transparent;
  }
  .site-header.is-open .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
  }
  .site-header.is-open .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 16px;
    background: #fff;
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 16px 24px -16px rgba(27, 21, 48, 0.25);
  }
  .site-header.is-open .site-nav {
    display: flex;
  }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
  }
  .site-nav .nav-store {
    display: flex;
    justify-content: center;
    min-height: 52px;
    margin-top: 14px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 17px;
  }
  .site-nav .nav-store:hover {
    color: #fff;
  }
  .site-nav a:hover {
    background: none;
    color: var(--pink);
  }
}

/* Narrow phones: the App Store button shrinks to the Apple mark so the name stays whole */
@media (max-width: 440px) {
  .header-cta {
    justify-content: center;
    width: 44px;
    padding: 0;
    border-radius: 12px;
  }
  .header-cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .header-cta svg {
    width: 17px;
    height: 20px;
  }
}

@media (max-width: 340px) {
  .brand-name {
    font-size: 15px;
  }
}
