/* Metric-matched fallback so the Inter web font can swap in without
   nudging layout. Tuned against Arial: the fallback box is ~identical
   to Inter's, which collapses font-swap CLS to near-zero. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.20%;
  descent-override: 22.48%;
  line-gap-override: 0.00%;
  size-adjust: 107.40%;
}

:root {
  color-scheme: light;
  font-family: 'Inter', 'Inter Fallback', 'SF Pro Display', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --purple-950: #2e1065;
  --purple-900: #4c1d95;
  --purple-800: #5b21b6;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-300: #c4b5fd;
  --purple-200: #ddd6fe;
  --purple-100: #ede9fe;
  --purple-50: #f5f3ff;

  --yellow-500: #eab308;
  --yellow-400: #facc15;
  --yellow-300: #fde047;
  --yellow-200: #fef08a;
  --yellow-100: #fef9c3;

  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;

  --ink: #0b0420;
  --white-90: rgba(255, 255, 255, 0.92);
  --white-70: rgba(255, 255, 255, 0.75);
  --white-60: rgba(255, 255, 255, 0.72);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-06: rgba(255, 255, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f1f1f;
  background: rgba(124, 58, 237, 1);
}

/* =========================================================================
   LEGACY: privacy page + simple centering shell
   ========================================================================= */

body:not(.landing) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 2vw, 3rem);
}

body:not(.landing) .container {
  width: min(960px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow:
    0 20px 45px rgba(124, 58, 237, 0.25),
    0 8px 20px rgba(15, 23, 42, 0.12);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2vw, 2.5rem);
}

.policy-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.policy-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--purple-900);
}

.policy-meta {
  font-size: 0.95rem;
  color: rgb(107, 33, 168);
  background: rgba(124, 58, 237, 0.12);
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  max-width: max-content;
}

.policy-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.policy-section h2 {
  margin: 0;
  color: var(--purple-900);
  font-size: 1.4rem;
}

.policy-section p,
.policy-section li {
  margin: 0;
  color: #312e81;
  line-height: 1.6;
  font-size: 1rem;
}

.policy-section ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--purple-900);
}

.back-link:hover {
  text-decoration: underline;
}

/* =========================================================================
   LANDING PAGE
   ========================================================================= */

body.landing {
  color: var(--white-90);
  background: var(--purple-800);
  overflow-x: hidden;
  position: relative;
  font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif;
}

.landing-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Softer single accent glow on the page — no multi-blob gradient fest. */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.bg-blob-1 {
  width: 640px;
  height: 640px;
  top: -200px;
  left: -180px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.4) 0%, transparent 65%);
}

.bg-blob-2,
.bg-blob-3 {
  display: none;
}

body.landing main,
body.landing .landing-nav,
body.landing .landing-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Nav ---------- */

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--yellow-300);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.35rem;
  line-height: 1.15;
}

.landing-logo svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.landing-logo span em {
  font-style: normal;
  font-weight: 500;
  color: var(--white-70);
  font-size: 1rem;
  margin-left: 0.4rem;
  /* Keep "for Five Crowns" together on one line if the logo wraps so
     we don't end up breaking in the middle of the tagline. */
  white-space: nowrap;
}

.landing-nav nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.landing-nav nav a {
  padding: 0.5rem 0.9rem;
  color: var(--white-70);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.landing-nav nav a:hover {
  color: #fff;
  background: var(--white-06);
}

.nav-cta {
  background: var(--yellow-400) !important;
  color: var(--purple-950) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1rem !important;
}

.nav-cta:hover {
  background: var(--yellow-300) !important;
}

@media (max-width: 640px) {
  .landing-nav nav a {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 36rem;
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.75rem, 7.5vw, 4.75rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: #fff;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.hero h1 .accent {
  color: var(--yellow-300);
}

.hero h1 .accent-dot {
  color: var(--yellow-400);
  margin-left: -0.02em;
}

.hero .lede {
  margin: 0;
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.hero .lede em {
  color: var(--yellow-200);
  font-style: italic;
  font-weight: 600;
}

.hero-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--white-70);
  font-weight: 500;
}

/* ---------- CTAs ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 400;
  background: #000;
  color: #fff;
  border: 1px solid var(--white-10);
  transition: transform 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.cta:hover {
  transform: translateY(-2px);
  border-color: var(--white-20);
}

.cta svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.cta div {
  text-align: left;
}

.cta-small {
  font-size: 0.72rem;
  line-height: 1;
  margin: 0 0 0.25rem;
  opacity: 0.75;
}

.cta-android .cta-small {
  text-transform: uppercase;
}

.cta-big {
  font-size: 1.1rem;
  line-height: 1;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Secondary "play in browser" CTA. Same button anatomy as the store
   buttons so it reads as a first-class option, but ghosted (outline,
   no fill, no shadow) so it sits a clear notch below them in emphasis. */
.cta-web {
  background: transparent;
  border-color: var(--white-20);
  box-shadow: none;
  color: var(--white-90);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.cta-web:hover {
  background: var(--white-06);
  border-color: var(--white-40);
}

.cta-web svg {
  opacity: 0.9;
}

/* ---------- Phone mockup ---------- */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 640px;
}

/* Stagger two phones: front (live game) in the main spot, behind (the
   card calculator) peeking out from the upper-left. */
.phone-front {
  position: relative;
  z-index: 2;
}

.phone-behind {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-78%) rotate(-6deg);
  z-index: 1;
  opacity: 0.92;
  filter: saturate(0.9);
}

@media (max-width: 900px) {
  .phone-behind {
    display: none;
  }
}

.phone-halo {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(250, 204, 21, 0.12) 0%, transparent 65%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}

.phone {
  width: min(340px, 82vw);
  background: #0b0420;
  border-radius: 42px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.phone-sm {
  width: min(256px, 64vw);
  padding: 6px;
  border-radius: 34px;
}

.phone-notch {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-sm .phone-notch {
  width: 70px;
  height: 18px;
  top: 15px;
}

.phone-screen {
  /* Exactly matches the real app's body background so the landing-page
     mockups read as "this is what the app looks like." Pairs with the
     page's bluer violet-800 for enough variance to separate device from
     page without looking like two unrelated purples. */
  background: #7e22ce;
  border-radius: 36px;
  padding: 46px 18px 22px;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.phone-sm .phone-screen {
  padding: 38px 14px 16px;
  border-radius: 30px;
}

.phone-screen.dim::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 4, 32, 0.5);
  backdrop-filter: blur(2px);
  border-radius: inherit;
  pointer-events: none;
}

/* Top card mockup — matches the in-app top card:
   yellow band, purple-900 text, tight sans-serif, small stat trio. */
.mock-top-card {
  background: var(--yellow-400);
  border-radius: 16px;
  padding: 10px 12px;
  color: var(--purple-900);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.mock-round-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--purple-900);
}

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.mock-stat-row.compact { gap: 4px; }

.mock-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.mock-stat span {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(76, 29, 149, 0.55);
  letter-spacing: 0.06em;
}

.mock-stat strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--purple-900);
  font-variant-numeric: tabular-nums;
}

.mock-went-out {
  margin-top: 4px;
  background: var(--purple-900);
  color: var(--yellow-300);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

/* Score table mockup — mirrors the real app's ScoreTable structure:
   - Player column: purple-800 text, left aligned, px-4 py-3 equivalent.
   - Round headers: bg-yellow-100 for active round, gray-500 for others.
   - Active-round cells: bg-yellow-100 + bold purple-900.
   - Winning row: very subtle green tint. Losing row: subtle red. */
.mock-table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  color: var(--purple-900);
  font-size: 0.72rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mock-table.compact {
  font-size: 0.66rem;
}

.mock-table-head,
.mock-row {
  display: grid;
  /* Narrower name column; three evenly-sized round columns; total is
     slightly wider than a round column so 2-digit scores don't crowd
     the right edge. */
  grid-template-columns: 1.1fr 0.45fr 0.45fr 0.45fr 0.6fr;
  align-items: center;
  gap: 4px;
  padding: 12px 12px;
}

.mock-table-head {
  padding-top: 9px;
  padding-bottom: 9px;
}

.mock-table.compact .mock-table-head,
.mock-table.compact .mock-row {
  grid-template-columns: 1.5fr 0.55fr 0.8fr;
}

.mock-table-head {
  font-weight: 700;
  font-size: 0.54rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.mock-table-head span:first-child {
  color: var(--purple-800);
}

/* Center R-columns and the current-round column header to match the
   numeric cells in the rows below; right-align the TOTAL header to
   match the mock-total cells. */
.mock-table-head span:nth-child(2),
.mock-table-head span:nth-child(3),
.mock-table-head .current {
  text-align: center;
}

.mock-table-head span:last-child {
  text-align: right;
}

.mock-table-head .current {
  color: var(--purple-900);
  font-weight: 800;
}

.mock-row {
  font-weight: 600;
  color: var(--purple-900);
}

/* Only draw separators between adjacent rows; the header's own bottom
   border already divides it from the first row. Avoids a double-line. */
.mock-row + .mock-row {
  border-top: 1px solid var(--gray-200);
}

.mock-row .current {
  text-align: center;
  font-weight: 800;
  color: var(--purple-900);
}

.mock-dealer {
  font-style: normal;
  font-size: 0.72em;
  margin-left: 2px;
  vertical-align: middle;
}

.mock-row-win { background: rgba(34, 197, 94, 0.08); }
.mock-row-lose { background: rgba(239, 68, 68, 0.06); }

.mock-row span:nth-child(2),
.mock-row span:nth-child(3),
.mock-row span:nth-child(4) {
  text-align: center;
}

.mock-total {
  text-align: right !important;
  font-weight: 800;
  color: var(--purple-900);
}

/* Bottom card mock — mirrors the real app's yellow pill card with the
   primary Next Round CTA flanked by a back-icon and menu-icon slot. */
.mock-bottom-card {
  margin-top: auto;
  background: var(--yellow-400);
  border-radius: 18px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.mock-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-900);
  font-size: 0.9rem;
  font-weight: 700;
  flex: none;
}

.mock-next {
  flex: 1;
  background: var(--purple-900);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: default;
  text-align: center;
}

.mock-banner {
  background: var(--yellow-100);
  border: 1.5px solid var(--yellow-300);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--purple-900);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Modal-style mockups (wizard, went-out popup) */
.mock-modal {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--purple-900);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  /* Paint above the .mock-drawer-overlay so the modal sits on top of
     the dimmed game screen behind it. */
  z-index: 4;
}

.mock-modal h4 {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--purple-900);
}

.mock-modal-sub {
  margin: 0 0 4px;
  color: var(--purple-700);
  font-size: 0.7rem;
  line-height: 1.35;
}

.mock-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--purple-200);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-900);
  cursor: default;
  text-align: left;
}

.mock-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple-100);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--purple-700);
}

.mock-chev {
  margin-left: auto;
  color: var(--purple-300);
  font-size: 0.85rem;
}

.mock-option {
  background: #fff;
  border: 1.5px solid var(--purple-200);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple-900);
  cursor: default;
  text-align: left;
}

.mock-option-primary {
  background: var(--yellow-400);
  border-color: var(--yellow-500);
}

/* ---------- Score-calculator drawer mockup (behind-phone) ---------- */

/* Dark overlay the real vaul drawer lays down on top of the page. */
.mock-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}

/* Bottom-sheet drawer — dark purple to match bg-purple-900 in the real
   scoreCalculatorLayout.contentClassName. Rounded top corners, grabber
   handle, and takes roughly 70% of the screen height. */
.mock-calc-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: #581c87; /* Tailwind purple-900 — matches the real drawer */
  border-radius: 22px 22px 0 0;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
}

.mock-drawer-handle {
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 4px;
}

.mock-calc-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--purple-300);
  padding: 0 2px;
}

.mock-calc-name {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}

.mock-calc-big-score {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--yellow-400);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  padding: 4px 0 2px;
}

.mock-calc-big-score em {
  font-style: normal;
  font-size: 1rem;
  margin-left: 2px;
  font-weight: 700;
}

.mock-calc-wentout {
  background: #6d28d9; /* purple-700 */
  color: var(--yellow-300);
  border: none;
  border-radius: 10px;
  padding: 7px;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: default;
}

.mock-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 2px;
}

.mock-card {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: #fff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--purple-900);
  line-height: 1;
}

.mock-card em {
  font-style: normal;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--purple-500);
  letter-spacing: 0;
}

.mock-card-wild {
  background: var(--yellow-300);
}

.mock-card-wild em {
  color: var(--purple-700);
  font-weight: 700;
}

.mock-card-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #7c3aed; /* purple-600 */
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mock-calc-submit {
  background: var(--yellow-400);
  color: var(--purple-900);
  border: none;
  border-radius: 10px;
  padding: 9px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: default;
  margin-top: 2px;
}

/* ---------- Section shell ---------- */

.features,
.how,
.gallery,
.download {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.section-header h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  background: var(--white-06);
  border: 1px solid var(--white-10);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
}

.feature:hover {
  border-color: rgba(250, 204, 21, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

.feature-highlight {
  background: rgba(250, 204, 21, 0.05);
  border-color: rgba(250, 204, 21, 0.2);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon-purple {
  background: rgba(139, 92, 246, 0.2);
  color: var(--purple-200);
}

.feature-icon-yellow {
  background: rgba(250, 204, 21, 0.18);
  color: var(--yellow-300);
}

.feature h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.feature p {
  margin: 0;
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- How it works ---------- */

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 760px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
}

.how-steps li {
  background: var(--white-06);
  border: 1px solid var(--white-10);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.how-num {
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--yellow-400);
  letter-spacing: -0.03em;
}

.how-steps h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: #fff;
}

.how-steps p {
  margin: 0;
  color: var(--white-70);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 260px;
}

.gallery-item figcaption {
  text-align: center;
  color: var(--white-70);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- Testimonials ---------- */

.testimonials {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

/* Masonry via CSS columns — short and long quotes pack naturally
   without leaving big gaps the way a rigid grid would. */
.testimonial-grid {
  column-count: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .testimonial-grid { column-count: 2; }
}

@media (min-width: 980px) {
  .testimonial-grid { column-count: 3; }
}

.testimonial {
  display: block;
  break-inside: avoid;
  margin: 0 0 1.25rem;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--white-06);
  border: 1px solid var(--white-10);
  border-radius: 20px;
  color: #fff;
}

.testimonial-featured {
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.08), rgba(124, 58, 237, 0.12));
  border-color: rgba(250, 204, 21, 0.2);
}

.testimonial .stars {
  color: var(--yellow-400);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.testimonial p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

.testimonial-featured p {
  font-size: 1.1rem;
  line-height: 1.5;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--white-60);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Download ---------- */

.download {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.download-inner {
  background: var(--white-06);
  border: 1px solid rgba(250, 204, 21, 0.2);
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.download-inner h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.download-inner > p {
  margin: 0;
  color: var(--white-70);
  font-size: 1.05rem;
  max-width: 36rem;
  line-height: 1.55;
}

.download-inner .cta-row {
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */

.landing-footer {
  border-top: 1px solid var(--white-10);
  padding: 3rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(46, 16, 101, 0.35);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--yellow-300);
  font-weight: 700;
  font-size: 1rem;
}

.footer-brand svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.footer-brand span em {
  font-style: normal;
  font-weight: 500;
  color: var(--white-70);
  font-size: 0.88rem;
  margin-left: 0.3rem;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white-70);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-disclaimer {
  margin: 0;
  color: var(--white-60);
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 60ch;
}

.footer-disclaimer a {
  color: var(--purple-200);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Collapsible legal/trademark notice. Native <details> so it's keyboard
   accessible with no JS, and the disclaimer text stays in the DOM (just
   collapsed) — important for the Cannei trademark attribution. */
.footer-legal {
  font-size: 0.8rem;
}

.footer-legal summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: max-content;
  padding: 0.15rem 0;
  color: var(--white-70);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  border-radius: 6px;
}

.footer-legal summary::-webkit-details-marker {
  display: none;
}

.footer-legal summary::after {
  content: "›";
  font-size: 1.1em;
  line-height: 1;
  transition: transform 0.18s ease;
}

.footer-legal[open] summary::after {
  transform: rotate(90deg);
}

.footer-legal summary:hover {
  color: #fff;
}

.footer-legal summary:focus-visible {
  outline: 2px solid var(--yellow-300);
  outline-offset: 3px;
}

.footer-legal .footer-disclaimer {
  margin-top: 0.7rem;
}

.footer-copy {
  margin: 0;
  color: var(--white-60);
  font-size: 0.8rem;
}
