/*
 * getploop.com on Ploop's design system (docs/08-tasarim-sistemi.md): iOS 26 Liquid Glass, system font, one brand
 * colour (the tint), light and dark. Mobile first: the base rules are for a 360–430 px phone; wider screens add
 * columns at 640 px and 960 px. No script anywhere; FAQ answers open with <details>.
 * Contrast (WCAG AA): body text ≥ 4.5:1 on every surface it sits on; --accent-text is the tint darkened (light) or
 * lightened (dark) for small text on tinted fills, where #6B4DF0 itself falls just under 4.5:1.
 */
:root {
  --tint: #6b4df0;
  --tint-fill: #6b4df0;
  --tint-pressed: #5638d6;
  --on-tint: #ffffff;
  --accent-text: #5236d6;
  --tint-soft: rgba(107, 77, 240, 0.1);

  --bg: #f2f0ff;
  --bg-elevated: #ffffff;
  --bg-tint: #e9e4ff;
  --label: #14102a;
  --label-2: #565170;
  --separator: rgba(60, 50, 110, 0.14);

  --glass: rgba(255, 255, 255, 0.55);
  --glass-blur: 20px;
  --glass-rim-1: rgba(255, 255, 255, 0.95);
  --glass-rim-2: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 10px 30px rgba(52, 30, 140, 0.12), 0 1px 3px rgba(52, 30, 140, 0.08);
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(255, 255, 255, 0.9);
  --card-shadow: 0 1px 2px rgba(52, 30, 140, 0.06), 0 12px 32px -12px rgba(52, 30, 140, 0.18);

  --glow-1: rgba(160, 128, 255, 0.55);
  --glow-2: rgba(255, 164, 226, 0.45);
  --glow-3: rgba(120, 200, 255, 0.35);
  --title-gradient: linear-gradient(100deg, #1d1250 0%, #5a3be6 55%, #a23fd6 100%);

  --radius-card: 28px;
  --radius-list: 26px;
  --radius-icon: 22.5%;
  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
  --nav-top: calc(env(safe-area-inset-top) + 10px);
  --nav-height: 56px;
  --max: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tint: #9a87ff;
    --accent-text: #b3a5ff;
    --tint-soft: rgba(154, 135, 255, 0.16);

    --bg: #0b0816;
    --bg-elevated: #1a1528;
    --bg-tint: #130e25;
    --label: #ffffff;
    --label-2: #b9b3cf;
    --separator: rgba(200, 190, 255, 0.14);

    --glass: rgba(34, 28, 56, 0.55);
    --glass-rim-1: rgba(255, 255, 255, 0.36);
    --glass-rim-2: rgba(255, 255, 255, 0.04);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    --card: rgba(30, 24, 48, 0.78);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.6);

    --glow-1: rgba(107, 77, 240, 0.45);
    --glow-2: rgba(190, 60, 170, 0.28);
    --glow-3: rgba(40, 110, 220, 0.25);
    --title-gradient: linear-gradient(100deg, #ffffff 0%, #c9bdff 55%, #f0a8ff 100%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-top) + var(--nav-height) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

main {
  flex: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--tint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.icon-sm {
  width: 18px;
  height: 18px;
  flex: none;
}

.skip {
  position: fixed;
  z-index: 100;
  top: var(--nav-top);
  left: var(--gutter);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--tint-fill);
  color: var(--on-tint);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Liquid Glass (as in apps/web): translucent fill, backdrop blur, a specular rim and a soft lens sheen. */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(190%) brightness(1.04);
  backdrop-filter: blur(var(--glass-blur)) saturate(190%) brightness(1.04);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(150deg, var(--glass-rim-1), var(--glass-rim-2) 35%, var(--glass-rim-2) 65%, var(--glass-rim-1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

.glass-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--card-shadow);
}

/* Floating navigation capsule, with a soft scroll-edge fade behind it instead of a bar. */
.nav-wrap {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--nav-top) var(--gutter) 0;
  pointer-events: none;
}

.nav-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 88%, transparent), color-mix(in srgb, var(--bg) 0%, transparent));
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: var(--max);
  height: var(--nav-height);
  margin: 0 auto;
  padding: 0 6px 0 8px;
  border-radius: 999px;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  color: var(--label);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-icon);
  box-shadow: 0 2px 8px rgba(52, 30, 140, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--label);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s;
}

.nav-links a:hover {
  background: var(--tint-soft);
}

.nav-links a:not(.lang) {
  display: none;
}

.nav-links .lang {
  padding: 0 16px;
  background: var(--tint-soft);
  color: var(--accent-text);
}

@media (min-width: 640px) {
  .nav-links a:not(.lang) {
    display: inline-flex;
  }

  .nav-links .lang {
    margin-left: 6px;
  }
}

/* Buttons. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 24px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  box-shadow: 0 10px 24px -10px rgba(20, 10, 60, 0.55);
}

.store-badge .icon {
  width: 28px;
  height: 28px;
}

.store-badge > span {
  display: flex;
  flex-direction: column;
}

.store-badge small {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.78);
}

@media (prefers-color-scheme: dark) {
  .store-badge-light {
    border-color: transparent;
    background: #ffffff;
    color: #000000;
  }

  .store-badge-light small {
    color: rgba(0, 0, 0, 0.66);
  }
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1), background-color 0.2s;
}

.ghost-button:hover {
  background: var(--bg-elevated);
}

.ghost-button:active {
  transform: scale(1.04);
}

/* Hero. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 36px;
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(var(--nav-top) + var(--nav-height) + 36px) var(--gutter) 24px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: calc(100% + 160px);
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
  background:
    radial-gradient(60% 45% at 85% 12%, var(--glow-1), transparent 70%),
    radial-gradient(55% 40% at 0% 30%, var(--glow-2), transparent 70%),
    radial-gradient(50% 35% at 70% 85%, var(--glow-3), transparent 70%);
  pointer-events: none;
}

.hero-text {
  display: grid;
  gap: 14px;
}

.kicker {
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 6vw, 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 34em;
  color: var(--label-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 10px;
}

/* Phones: both actions full width, one above the other. */
@media (max-width: 559px) {
  .hero-actions > * {
    flex: 1 1 100%;
    justify-content: center;
  }
}

.hero-art {
  margin: 0;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 32px;
  box-shadow: 0 30px 60px -24px rgba(70, 40, 190, 0.55), 0 8px 20px -8px rgba(70, 40, 190, 0.3);
}

@media (prefers-color-scheme: dark) {
  .hero-art img {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px -24px rgba(107, 77, 240, 0.55), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 56px;
    min-height: min(820px, 100svh);
    padding-top: calc(var(--nav-top) + var(--nav-height) + 48px);
    padding-bottom: 48px;
  }

  .hero-art img {
    border-radius: 36px;
  }
}

/* Sections. */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 7vw + 24px, 112px) var(--gutter) 0;
}

.section h2 {
  margin-top: 8px;
  font-size: clamp(1.875rem, 1.3rem + 2.6vw, 2.875rem);
  line-height: 1.08;
}

.section-text {
  max-width: 38em;
  margin-top: 12px;
  color: var(--label-2);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

.section-tint {
  position: relative;
  isolation: isolate;
  margin-top: clamp(56px, 7vw + 24px, 112px);
  padding-bottom: clamp(56px, 7vw + 24px, 112px);
}

.section-tint::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(50% 60% at 100% 0%, var(--glow-1), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, var(--glow-2), transparent 70%),
    var(--bg-tint);
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 120px, #000 calc(100% - 120px), transparent);
}

.section-tint + .section {
  padding-top: clamp(56px, 7vw + 24px, 112px);
}

/* Solo games: App Store rows. */
.app-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--card-shadow);
}

.app-row img {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: var(--radius-icon);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 4px 10px -4px rgba(52, 30, 140, 0.35);
}

.app-row div {
  min-width: 0;
}

.app-row h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.app-row p {
  margin-top: 2px;
  color: var(--label-2);
  font-size: 0.9375rem;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1024px) {
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Group games: cards with their cover. */
.group-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.group-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--card-shadow);
}

.group-art {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(140deg, #8a6cff, #5236d6 55%, #3b1fa8);
}

.group-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-art-icon {
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 70% at 30% 20%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(140deg, #ff8bd0, #8a6cff 50%, #4b2fc4);
}

.group-art-icon img {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-icon);
  box-shadow: 0 16px 32px -10px rgba(30, 10, 90, 0.6);
}

.group-info {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 18px 20px 22px;
}

.group-info h3 {
  margin-top: 4px;
  font-size: 1.3125rem;
  line-height: 1.2;
}

.group-info p {
  color: var(--label-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  background: var(--tint-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
}

.pill .icon-sm {
  width: 16px;
  height: 16px;
}

@media (min-width: 560px) {
  .group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .group-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .group-art {
    aspect-ratio: 4 / 3;
  }
}

/* Features. */
.feature-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature {
  padding: 22px 22px 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--card-shadow);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 15px;
  background: linear-gradient(150deg, #8a6cff, #6b4df0 60%, #5236d6);
  color: #ffffff;
  box-shadow: 0 8px 18px -8px rgba(107, 77, 240, 0.8);
}

.feature h3 {
  margin-top: 16px;
  font-size: 1.1875rem;
  line-height: 1.25;
}

.feature p {
  margin-top: 6px;
  color: var(--label-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Phones: icon beside the text, so six features don't take six screens. */
@media (max-width: 639px) {
  .feature {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px 20px 22px;
  }

  .feature-icon {
    grid-row: span 2;
  }

  .feature h3 {
    margin-top: 0;
    align-self: center;
  }
}

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

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

/* FAQ: an inset grouped list of disclosure rows. */
.faq {
  max-width: 820px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-list);
  background: var(--card);
  box-shadow: var(--card-shadow);
}

.faq details + details {
  border-top: 1px solid var(--separator);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2.5px solid var(--tint);
  border-bottom: 2.5px solid var(--tint);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq summary:focus-visible {
  outline-offset: -3px;
  border-radius: 0;
}

.faq details p {
  padding: 0 20px 18px;
  color: var(--label-2);
  line-height: 1.55;
}

/* Call to action. */
.cta {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: calc(var(--max) - 2 * 20px);
  margin: clamp(56px, 7vw + 24px, 112px) var(--gutter) 0;
  padding: 44px 24px 40px;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 80% at 15% 0%, var(--glow-1), transparent 70%),
    radial-gradient(60% 70% at 100% 100%, var(--glow-2), transparent 70%);
}

.cta img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-icon);
  box-shadow: 0 14px 30px -10px rgba(70, 40, 190, 0.6);
}

.cta h2 {
  margin-top: 8px;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.1;
}

.cta p {
  max-width: 30em;
  color: var(--label-2);
  font-size: 1.0625rem;
}

.cta .store-badge {
  margin-top: 10px;
}

@media (min-width: 1160px) {
  .cta {
    margin-left: auto;
    margin-right: auto;
    padding: 64px 40px 56px;
  }
}

/* Footer. */
.footer {
  margin-top: clamp(64px, 8vw + 24px, 120px);
  padding: 36px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--separator);
}

.footer-inner {
  display: grid;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-icon);
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.footer-brand span {
  display: block;
  color: var(--label-2);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 0 -10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--label);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
}

.footer-links a:hover {
  color: var(--tint);
}

.footer-legal {
  color: var(--label-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (min-width: 960px) {
  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .footer-links {
    justify-content: flex-end;
  }

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

/* Legal, support and not-found pages. */
body.doc main {
  position: relative;
  isolation: isolate;
}

body.doc main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 420px;
  background:
    radial-gradient(50% 80% at 90% 0%, var(--glow-1), transparent 70%),
    radial-gradient(45% 70% at 0% 0%, var(--glow-2), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.doc-page {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-top) + var(--nav-height) + 24px) var(--gutter) 0;
  overflow-wrap: break-word;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: -4px;
  padding: 0 4px;
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.doc-page h1 {
  margin-top: 12px;
  font-size: clamp(2.125rem, 1.6rem + 2.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.updated {
  margin-top: 12px;
  color: var(--label-2);
  font-size: 0.9375rem;
}

.doc-page section {
  margin-top: 36px;
}

.doc-page h2 {
  font-size: 1.375rem;
  line-height: 1.25;
}

.doc-page > h2 {
  margin-top: 44px;
}

.doc-page section p {
  margin-top: 12px;
  line-height: 1.65;
}

.doc-page section p a {
  overflow-wrap: anywhere;
}

.lead-doc {
  margin-top: 14px;
  color: var(--label-2);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.mail-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px;
  color: var(--label);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.mail-card:active {
  transform: scale(0.99);
}

.mail-card > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mail-card strong {
  color: var(--accent-text);
  font-size: 1.125rem;
}

.mail-card > span:last-child > span {
  color: var(--label-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.doc-page .faq {
  margin-top: 20px;
}

.not-found {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: calc(var(--nav-top) + var(--nav-height) + 72px);
  text-align: center;
}

.not-found img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-icon);
  box-shadow: 0 14px 30px -10px rgba(70, 40, 190, 0.6);
}

.not-found h1 {
  margin-top: 6px;
}

.not-found p {
  color: var(--label-2);
}

.not-found p:last-child {
  margin-top: 10px;
}

/* Accessibility preferences. */
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--bg-elevated);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .glass::after {
    display: none;
  }

  .glass-card,
  .app-row,
  .group-card,
  .feature,
  .faq,
  .ghost-button {
    background: var(--bg-elevated);
  }

  .nav-wrap::before {
    background: var(--bg);
    inset: 0 0 -6px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  .hero h1 {
    background: none;
    color: CanvasText;
  }

  .store-badge,
  .ghost-button,
  .nav {
    border: 1px solid CanvasText;
  }
}

@media print {
  .nav-wrap,
  .skip,
  .hero::before,
  .section-tint::before,
  body.doc main::before {
    display: none;
  }

  .doc-page,
  .not-found {
    padding-top: 0;
  }
}
