/* ============================================
   Spomotion - Unified Stylesheet
   ============================================ */

/* Design system & animations are loaded as separate <link> tags in each page <head>
   to parallelize requests. */

/* Open Runde Font — WOFF2 only (WOFF fallback removed; no modern browser needs it) */
@font-face {
  font-family: 'Open Runde';
  src: url('../fonts/OpenRunde-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Runde';
  src: url('../fonts/OpenRunde-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Runde';
  src: url('../fonts/OpenRunde-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Runde';
  src: url('../fonts/OpenRunde-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Suppress only the non-keyboard focus ring; keep :focus-visible for keyboard users. */
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible),
[role="button"]:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid #5183EB;
  outline-offset: 2px;
  border-radius: 4px;
}

html {
  font-size: 16px;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #ffffff;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  letter-spacing: -0.12px;
  padding-top: 56px;
  /* Offset for fixed header */
}

/* Text selection highlight */
::selection {
  background-color: #5183EB;
  color: #ffffff;
}

::-moz-selection {
  background-color: #5183EB;
  color: #ffffff;
}

/* Touch devices — homepage is a single-viewport experience (no scroll).
   JS adds .allow-scroll on screens too short to fit it (iPhone mini/SE),
   which falls back to a normally scrolling page. */
@media (hover: none) and (pointer: coarse) {

  body:not(.support-page):not(.error-page):not(.allow-scroll) {
    height: 100vh;
    /* dvh overrides where supported; the vh fallback keeps older browsers sane */
    height: 100dvh;
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  body:not(.support-page):not(.error-page):not(.allow-scroll) .main {
    flex: 1;
    overflow: hidden;
  }

  body:not(.support-page):not(.error-page):not(.allow-scroll) .hero {
    height: 100%;
  }

  body:not(.support-page):not(.error-page):not(.allow-scroll) .hero-phone {
    flex: 1;
    overflow: hidden;
  }
}

/* Short-screen scroll fallback: tighten the space around the phone and
   footer so small screens (iPhone mini/SE) don't scroll through dead space */
body.allow-scroll .hero-phone {
  min-height: 260px;
}

body.allow-scroll .main {
  padding-bottom: 8px;
}

body.allow-scroll .footer {
  padding: 12px 16px 20px;
  gap: 10px;
}

/* Skip link — visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10002;
  background: #0f172a;
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 0;
}

/* ============================================
   Entrance Animations
   ============================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    filter: blur(8px);
  }

  60% {
    filter: blur(0px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes phoneReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.92);
    filter: blur(6px);
  }

  50% {
    filter: blur(0px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Hero Element Animations */
.hero-title {
  animation: heroReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.hero-subtitle {
  animation: heroReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.button-wrapper {
  animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.hero-phone {
  animation: phoneReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

/* ============================================
   Header Styles
   ============================================ */
.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 16px;
  /* Background and blur are handled by .progressive-blur .top-blur, which
     sits behind this header at z-index 10. */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  flex-shrink: 0;
  animation: slideDown 0.6s ease-out forwards;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  flex-shrink: 0;
}

.logo img {
  width: 147px;
  height: 24px;
  display: block;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.02);
}

/* Once content scrolls under the header, ring the logo in white so it stays
   readable. `stroke` only works on inline SVG, so this stacks drop-shadows:
   several small ones build a solid outline rather than one soft halo. */
.header.scrolled .logo img {
  /* Filters chain, so the last shadow is cast by the already-outlined shape:
     white ring first, then a soft shadow around the whole thing. */
  filter:
    drop-shadow(0 0 1.5px #ffffff)
    drop-shadow(0 0 1.5px #ffffff)
    drop-shadow(0 0 1.5px #ffffff)
    drop-shadow(0 0 2px #ffffff)
    drop-shadow(0 2px 5px rgba(15, 23, 42, 0.18));
}

.logo img {
  transition: transform 0.3s ease, filter 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .logo img {
    transition: none;
  }
}

/* Header Content Container */
.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

/* Morphing Menu Toggle Button */
.menu-toggle {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
  /* Above mobile-nav */
  color: #0f172a;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: #5183EB;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 24px;
  overflow: visible;
}

.menu-line {
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}

/* Hamburger state (default) */
.menu-line-1 {
  transform: none;
  transform-origin: 12px 6px;
}

.menu-line-2 {
  opacity: 1;
  transform-origin: center;
}

.menu-line-3 {
  transform: none;
  transform-origin: 12px 18px;
}

/* X state - when menu is open */
.menu-toggle.open .menu-line-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open .menu-line-2 {
  opacity: 0;
}

.menu-toggle.open .menu-line-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* Show toggle on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile Navigation Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(1.1);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    visibility 0s linear 0.35s;
  z-index: 9999;
}

.mobile-nav.open {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.25s ease,
    visibility 0s linear 0s;
}



.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-nav-link {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #6b7280;
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.mobile-nav.open .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for links */
.mobile-nav.open .mobile-nav-link:nth-child(1) {
  transition-delay: 0.08s;
}

.mobile-nav.open .mobile-nav-link:nth-child(2) {
  transition-delay: 0.12s;
}

.mobile-nav.open .mobile-nav-link:nth-child(3) {
  transition-delay: 0.16s;
}

.mobile-nav.open .mobile-nav-link:nth-child(4) {
  transition-delay: 0.20s;
}

.mobile-nav.open .mobile-nav-link:nth-child(5) {
  transition-delay: 0.24s;
}

.mobile-nav-link:hover {
  color: #5183EB;
  transform: scale(1.05);
}

.mobile-nav-link-active {
  color: #5183EB;
  font-weight: 600;
}

/* ============================================
   Progressive edge blur
   Eight overlapping masked backdrop-filter layers per edge; blur strength
   doubles from .blur-1 to .blur-8, giving a stepped rather than a faded
   transition. Purely decorative — no background colour, no pointer events,
   theme-neutral. Replaces the header's flat backdrop blur and fade.
   ============================================ */
.progressive-blur {
  position: fixed;
  z-index: 10;
  right: 0;
  left: 0;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
}

.progressive-blur.top-blur {
  --blur-direction: to bottom;
  top: -32px;
}

.progressive-blur.bottom-blur {
  --blur-direction: to top;
  bottom: -32px;
}

.progressive-blur .layer {
  position: absolute;
  /* longhand rather than `inset` — this project supports older Android
     browsers where the shorthand is dropped */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.progressive-blur .blur-1 {
  z-index: 1;
  -webkit-backdrop-filter: blur(0.078125px);
  backdrop-filter: blur(0.078125px);
  -webkit-mask-image: linear-gradient(var(--blur-direction),
      transparent 87.5%,
      #000 100%);
  mask-image: linear-gradient(var(--blur-direction),
      transparent 87.5%,
      #000 100%);
}

.progressive-blur .blur-2 {
  z-index: 2;
  -webkit-backdrop-filter: blur(0.15625px);
  backdrop-filter: blur(0.15625px);
  -webkit-mask-image: linear-gradient(var(--blur-direction),
      transparent 75%,
      #000 87.5% 100%);
  mask-image: linear-gradient(var(--blur-direction),
      transparent 75%,
      #000 87.5% 100%);
}

.progressive-blur .blur-3 {
  z-index: 3;
  -webkit-backdrop-filter: blur(0.3125px);
  backdrop-filter: blur(0.3125px);
  -webkit-mask-image: linear-gradient(var(--blur-direction),
      transparent 62.5%,
      #000 75% 87.5%,
      transparent 100%);
  mask-image: linear-gradient(var(--blur-direction),
      transparent 62.5%,
      #000 75% 87.5%,
      transparent 100%);
}

.progressive-blur .blur-4 {
  z-index: 4;
  -webkit-backdrop-filter: blur(0.625px);
  backdrop-filter: blur(0.625px);
  -webkit-mask-image: linear-gradient(var(--blur-direction),
      transparent 50%,
      #000 62.5% 75%,
      transparent 87.5%);
  mask-image: linear-gradient(var(--blur-direction),
      transparent 50%,
      #000 62.5% 75%,
      transparent 87.5%);
}

.progressive-blur .blur-5 {
  z-index: 5;
  -webkit-backdrop-filter: blur(1.25px);
  backdrop-filter: blur(1.25px);
  -webkit-mask-image: linear-gradient(var(--blur-direction),
      transparent 37.5%,
      #000 50% 62.5%,
      transparent 75%);
  mask-image: linear-gradient(var(--blur-direction),
      transparent 37.5%,
      #000 50% 62.5%,
      transparent 75%);
}

.progressive-blur .blur-6 {
  z-index: 6;
  -webkit-backdrop-filter: blur(2.5px);
  backdrop-filter: blur(2.5px);
  -webkit-mask-image: linear-gradient(var(--blur-direction),
      transparent 25%,
      #000 37.5% 50%,
      transparent 62.5%);
  mask-image: linear-gradient(var(--blur-direction),
      transparent 25%,
      #000 37.5% 50%,
      transparent 62.5%);
}

.progressive-blur .blur-7 {
  z-index: 7;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(var(--blur-direction),
      transparent 12.5%,
      #000 25% 37.5%,
      transparent 50%);
  mask-image: linear-gradient(var(--blur-direction),
      transparent 12.5%,
      #000 25% 37.5%,
      transparent 50%);
}

.progressive-blur .blur-8 {
  z-index: 8;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(var(--blur-direction),
      transparent 0%,
      #000 12.5% 25%,
      transparent 37.5%);
  mask-image: linear-gradient(var(--blur-direction),
      transparent 0%,
      #000 12.5% 25%,
      transparent 37.5%);
}

/* The stacked layout starts at 900px, so the blur must shrink at the same point.
   Otherwise 681-900px gets the mobile layout with the full desktop blur and the
   hero title renders inside it. */
@media (max-width: 900px) {
  .progressive-blur {
    height: 120px;
  }
}

/* Browsers without backdrop-filter (e.g. Android Chrome < 76) render the blur
   layers as nothing, which would leave the fixed header with no background at
   all. Give those browsers the previous flat translucent header instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header {
    background-color: rgba(255, 255, 255, 0.85);
  }
}

/* ============================================
   Main Content & Hero Section
   ============================================ */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  animation: scaleIn 0.6s ease-out 0.2s both;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 60px;
}

.hero-content {
  flex: 0 0 45%;
  max-width: 540px;
}

.hero-title {
  /* Fluid size so "Discover <longest word> new way" always fits on one line */
  font-size: 32px;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* First headline line: "Discover <word> new way" never breaks apart */
.hero-title-line {
  display: block;
  white-space: nowrap;
}

/* Keep the carousel word + "new" together on the same line */
.hero-discover-group {
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: #C2C2C2;
  margin-bottom: 32px;
}

/* ============================================
   Text Roll Animation
   ============================================ */
.roll-container {
  /* Taller height to accommodate descenders like y, g, p */
  height: 1.5em;
  overflow: hidden;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  perspective: 1000px;
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  vertical-align: baseline;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: -0.15em;
  margin-bottom: -0.15em;

  /* Fade mask at top and bottom edges - only at very edges */
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%);
}

.roll-word-wrapper {
  display: flex;
  white-space: pre;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #5183EB;
  /* Brand color */
}

.roll-char {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter, background-position;

  /* Gradient background for color sweep - sharp color bands */
  background-image: linear-gradient(0deg,
      #0f172a 0%,
      #0f172a 10%,
      #FECD7B 10%,
      #FECD7B 22%,
      #27CF83 22%,
      #27CF83 34%,
      #3CCFB4 34%,
      #3CCFB4 46%,
      #50CEE3 46%,
      #50CEE3 58%,
      #5183EB 58%,
      #5183EB 70%,
      #0f172a 70%,
      #0f172a 100%);
  background-size: 100% 400%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-position-y: 100%;

  /* Initial State (Before Animation) - from bottom */
  opacity: 0;
  transform: translateY(30px) rotateX(25deg);
  filter: blur(6px);
  transform-origin: center bottom;
}

/* Animation States */
.roll-char.animate-in {
  animation:
    rollIn 0.6s cubic-bezier(0.2, 0.6, 0.2, 1) forwards,
    colorSweepUp 0.7s cubic-bezier(0.2, 0, 0.3, 0.3) forwards;
}

.roll-char.animate-out {
  animation:
    rollOut 0.4s cubic-bezier(0.5, 0, 0.7, 1) forwards,
    colorSweepDown 0.4s cubic-bezier(0.5, 0, 0.7, 1) forwards;
}

/* Keyframes - Bottom to Top */
@keyframes rollIn {
  0% {
    opacity: 0;
    transform: translateY(30px) rotateX(25deg) scale(0.95);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes rollOut {
  0% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0px);
  }

  100% {
    opacity: 0;
    transform: translateY(-20px) rotateX(-15deg) scale(0.95);
    filter: blur(4px);
  }
}

/* Color sweep from bottom to top */
@keyframes colorSweepUp {
  0% {
    background-position-y: 100%;
  }

  100% {
    background-position-y: 0%;
  }
}

/* Color sweep reverse - top to bottom */
@keyframes colorSweepDown {
  0% {
    background-position-y: 0%;
  }

  100% {
    background-position-y: 100%;
  }
}

.hero-phone {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 550px;
}

/* ============================================
   Download Button Styles
   ============================================ */
.button-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 40px;
  background-color: #fafafa;
  padding: 14px 24px;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  transform: scale(1);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Buttons with icons have asymmetric padding */
.download-btn:has(.icon-wrapper) {
  padding: 14px 24px 14px 20px;
}

.download-btn:focus-visible {
  outline: none;
}

/* Background Fill Animation */
.bg-fill {
  position: absolute;
  left: 50%;
  top: 100%;
  display: block;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background-color: #5183EB;
  transition: transform 0.3s ease-out;
  pointer-events: none;
}

.download-btn:hover .bg-fill,
.download-btn:active .bg-fill,
.download-btn.pressed .bg-fill {
  transform: translate(-50%, -50%) scale(1);
}

.download-btn:active .bg-fill,
.download-btn.pressed .bg-fill {
  background-color: #3A73DC;
}

/* Enhanced press animation for download button */
.download-btn:active,
.download-btn.pressed {
  transform: scale(0.96);
  transition: transform 0.1s ease-out;
}

/* Content Container */
.btn-content {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  transition: color 0.2s ease;
}

.download-btn:hover .btn-content,
.download-btn:active .btn-content,
.download-btn.pressed .btn-content {
  color: #ffffff;
}

.icon-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.apple-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.btn-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.32px;
  text-align: center;
  white-space: nowrap;
}

/* Border Ring */
.border-ring {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  border-radius: 40px;
  border: 1px solid #f4f4f5;
  transition: border-color 0.3s ease;
}

.download-btn:hover .border-ring,
.download-btn:active .border-ring,
.download-btn.pressed .border-ring {
  border-color: transparent;
}

/* QR Code Popup */
.qr-popup {
  position: fixed;
  padding: 0px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

/* Show QR popup via JS class */
.qr-popup.visible {
  opacity: 1;
  visibility: visible;
}

/* Hide QR popup completely on touch devices */
@media (pointer: coarse) {

  .qr-popup,
  .qr-popup.visible {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}

.qr-image {
  width: 100px;
  height: 100px;
  display: block;
  border-radius: 8px;
}

/* ============================================
   Phone Animation Styles
   ============================================ */
.phone-animation-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  height: 550px;
  transform-origin: center center;
  cursor: pointer;
  /* Scale corrections while the layout settles glide instead of snapping */
  transition: transform 0.25s ease-out;
}

/* Base Element Styles */
.element {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity, left, top;
  transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    top 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s ease-out,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  cursor: pointer;
}

.element-inner {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.element img {
  max-width: none;
  object-fit: cover;
  pointer-events: auto;
  display: block;
  cursor: pointer;
}

/* Hover bounce effect on cards and icons - with preserved rotations */
#card-left-up:hover .element-inner {
  transform: rotate(11.61deg) scale(1.08);
}

#card-right-up:hover .element-inner {
  transform: rotate(-12.298deg) scale(1.08);
}

#card-left-down:hover .element-inner {
  transform: rotate(-7.57deg) scale(1.08);
}

#card-right-down:hover .element-inner {
  transform: rotate(10.1deg) scale(1.08);
}

#icon-bestie:hover .element-inner {
  transform: rotate(-5.48deg) scale(1.1);
}

#icon-buddy-sm:hover .element-inner {
  transform: rotate(13.74deg) scale(1.1);
}

#icon-still-trying:hover .element-inner {
  transform: rotate(16.05deg) scale(1.1);
}

#icon-reliable:hover .element-inner {
  transform: rotate(-3.14deg) scale(1.1);
}

#icon-angel:hover .element-inner {
  transform: rotate(8.02deg) scale(1.1);
}

#icon-buddy:hover .element-inner {
  transform: rotate(-10.5deg) scale(1.1);
}

#icon-still-trying-sm:hover .element-inner {
  transform: scale(1.1);
}

.element .element-inner {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Card Elements - Initial Positions (Hidden) */
#card-left-up {
  width: 275px;
  height: 174px;
  left: 152px;
  top: 126px;
  opacity: 0;
  transform: scale(0.8);
  z-index: 15;
}

#card-left-up .element-inner {
  transform: rotate(11.61deg);
}

#card-left-up img {
  width: 255px;
  height: 125px;
}

#card-right-up {
  width: 276px;
  height: 176px;
  left: 180px;
  top: 182px;
  opacity: 0;
  transform: scale(0.8);
  z-index: 14;
}

#card-right-up .element-inner {
  transform: rotate(-12.298deg);
}

#card-right-up img {
  width: 255px;
  height: 125px;
}

#card-left-down {
  width: 270px;
  height: 160px;
  left: 178px;
  top: 316px;
  opacity: 0;
  transform: scale(0.8);
  z-index: 13;
}

#card-left-down .element-inner {
  transform: rotate(-8.468deg);
}

#card-left-down img {
  width: 255px;
  height: 125px;
}

#card-right-down {
  width: 284px;
  height: 212px;
  left: 179px;
  top: 329px;
  opacity: 0;
  transform: scale(0.8);
  z-index: 12;
}

#card-right-down .element-inner {
  transform: rotate(22.402deg);
}

#card-right-down img {
  width: 255px;
  height: 125px;
}

/* Icon Elements - Initial Positions (Hidden) */
#icon-bestie {
  width: 116.63px;
  height: 116.63px;
  left: 165px;
  top: 42px;
  opacity: 0;
  transform: scale(0.8);
  z-index: 18;
}

#icon-bestie .element-inner {
  transform: rotate(-10.558deg);
}

#icon-bestie img {
  width: 100px;
  height: 100px;
}

#icon-buddy-sm {
  width: 54.641px;
  height: 54.641px;
  left: 338px;
  top: 303px;
  opacity: 0;
  transform: scale(0.8);
  z-index: 16;
}

#icon-buddy-sm .element-inner {
  transform: rotate(30deg);
}

#icon-buddy-sm img {
  width: 40px;
  height: 40px;
}

#icon-still-trying {
  width: 97.98px;
  height: 97.98px;
  left: 298px;
  top: 227px;
  opacity: 0;
  transform: scale(0.8);
  z-index: 17;
}

#icon-still-trying .element-inner {
  transform: rotate(15deg);
}

#icon-still-trying img {
  width: 80px;
  height: 80px;
}

#icon-reliable {
  width: 68.301px;
  height: 68.301px;
  left: 168px;
  top: 388px;
  opacity: 0;
  transform: scale(0.8);
  z-index: 16;
}

#icon-reliable .element-inner {
  transform: rotate(-30deg);
}

#icon-reliable img {
  width: 50px;
  height: 50px;
}

#icon-angel {
  width: 122.942px;
  height: 122.942px;
  left: 282px;
  top: 48px;
  opacity: 0;
  transform: scale(0.8);
  z-index: 19;
}

#icon-angel .element-inner {
  transform: rotate(30deg);
}

#icon-angel img {
  width: 90px;
  height: 90px;
}

#icon-buddy {
  width: 73.485px;
  height: 73.485px;
  left: 171px;
  top: 257px;
  opacity: 0;
  transform: scale(0.8);
  z-index: 16;
}

#icon-buddy .element-inner {
  transform: rotate(-15deg);
}

#icon-buddy img {
  width: 60px;
  height: 60px;
}

#icon-still-trying-sm {
  width: 30px;
  height: 30px;
  left: 178px;
  top: 215px;
  opacity: 0;
  transform: scale(0.7);
  z-index: 15;
}

#icon-still-trying-sm img {
  width: 30px;
  height: 30px;
}

/* Phone Container */
.phone-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 497px;
  z-index: 20;
  perspective: 1000px;
}

.phone {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition: opacity 0.3s ease-out,
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.phone-blue {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.phone-white {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0.3s;
}

.phone-white img {
  width: 224px;
  height: 463px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Hover States */
.phone-animation-container.hovered #card-left-up {
  left: 5px;
  top: 45px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0s;
}

.phone-animation-container.hovered #card-right-up {
  left: 280px;
  top: 45px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.03s;
}

.phone-animation-container.hovered #card-left-down {
  left: 5px;
  top: 345px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.06s;
}

.phone-animation-container.hovered #card-right-down {
  left: 275px;
  top: 290px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.09s;
}

.phone-animation-container.hovered #icon-bestie {
  left: 63px;
  top: 28px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.05s;
}

.phone-animation-container.hovered #icon-buddy-sm {
  left: 407px;
  top: 268px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.12s;
}

.phone-animation-container.hovered #icon-still-trying {
  left: 393.01px;
  top: 159.01px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.07s;
}

.phone-animation-container.hovered #icon-reliable {
  left: 104px;
  top: 316px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.11s;
}

.phone-animation-container.hovered #icon-angel {
  left: 381px;
  top: 20px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.04s;
}

.phone-animation-container.hovered #icon-buddy {
  left: 41.26px;
  top: 206.26px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.09s;
}

.phone-animation-container.hovered #icon-still-trying-sm {
  left: 115px;
  top: 201px;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.13s;
}

/* Hover rotation adjustments */
.phone-animation-container.hovered .card .element-inner {
  transform: rotate(calc(var(--base-rotation, 0deg) + 2deg));
}

.phone-animation-container.hovered .icon .element-inner {
  transform: rotate(calc(var(--base-rotation, 0deg) + 5deg));
}

/* Phone hover states - scale down/pop up */
.phone-animation-container.hovered .phone-blue {
  opacity: 0;
  transform: scale(0.85);
}

.phone-animation-container.hovered .phone-white {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s;
}

/* Floating Animation for hovered icons/cards */
@keyframes float-1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(4px, -5px);
  }

  50% {
    transform: translate(0, 0);
  }

  75% {
    transform: translate(-3px, -3px);
  }
}

@keyframes float-2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-3px, -4px);
  }

  50% {
    transform: translate(0, 0);
  }

  75% {
    transform: translate(2px, -2px);
  }
}

.phone-animation-container.hovered .element {
  animation: float-1 5s ease-in-out infinite;
}

.phone-animation-container.hovered .element:nth-child(even) {
  animation: float-2 4.5s ease-in-out infinite;
}

/* ============================================
   Floating page navigator (legal pages)
   ============================================ */
.scroll-nav {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.scroll-nav.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}

.scroll-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #F0F0F0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  color: #5183EB;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.scroll-nav-btn:hover {
  transform: translateY(-1px);
  background-color: #F5F8FE;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.scroll-nav-btn:active {
  transform: scale(0.94);
}

/* ============================================
   Footer Styles
   ============================================ */
.footer {
  width: 100%;
  padding: 40px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
  flex-shrink: 0;
  /* Sits above .progressive-blur (z-index 10) so the illustration and the
     footer links stay sharp; the bottom blur then only softens page content
     scrolling behind it. */
  position: relative;
  z-index: 11;
}

.footer-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: footerEntrance 0.6s ease-out 0.2s forwards;
}

.footer-art {
  width: 220px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-art img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-art:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #C2C2C2;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hide footer links on mobile (hamburger menu handles navigation) */
@media (max-width: 768px) {
  .footer-links {
    display: none;
  }
}

@keyframes footerEntrance {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.copyright,
.footer-divider,
.footer-link {
  opacity: 0;
  animation: footerEntrance 0.5s ease-out forwards;
}

.footer-link {
  color: #C2C2C2;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

/* Stagger on page load */
.copyright {
  animation-delay: 0.4s;
}

.footer-links span:nth-of-type(1) {
  animation-delay: 0.45s;
}

.footer-links a:nth-of-type(1) {
  animation-delay: 0.5s;
}

.footer-links span:nth-of-type(2) {
  animation-delay: 0.55s;
}

.footer-links a:nth-of-type(2) {
  animation-delay: 0.6s;
}

.footer-links span:nth-of-type(3) {
  animation-delay: 0.65s;
}

.footer-links a:nth-of-type(3) {
  animation-delay: 0.7s;
}

.footer-links span:nth-of-type(4) {
  animation-delay: 0.75s;
}

.footer-links a:nth-of-type(4) {
  animation-delay: 0.8s;
}

.footer-links span:nth-of-type(5) {
  animation-delay: 0.85s;
}

.footer-links a:nth-of-type(5) {
  animation-delay: 0.9s;
}

.footer-link:hover {
  color: #5183EB;
  transform: translateY(-1px);
}

.footer-link-active {
  color: #5183EB;
  font-weight: 600;
}

/* ============================================
   Support Page Styles
   ============================================ */
.support-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto !important;
  overflow-x: hidden;
  position: static !important;
  height: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* Force scroll on support page for all devices */
body.support-page {
  overflow: auto !important;
  overflow-y: auto !important;
  position: static !important;
  height: auto !important;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Separate rule: :has() is unsupported on older browsers, and an unsupported
   selector in a comma-separated list would invalidate the whole rule. */
html:has(.support-page) {
  overflow: auto !important;
  height: auto !important;
}

.support-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* The top blur spans -32px to 168px and the header sits above it, so content
     must start below 168px or page titles render blurred. */
  padding: 120px 20px 40px;
  min-height: min-content;
}

/* On small screens, allow scrolling and top-align content */
@media (max-height: 700px) {
  /* Shorter blur so the content clearance below can be tighter on small screens. */
  .progressive-blur {
    height: 120px;
  }

  .support-main {
    align-items: flex-start;
    padding-top: 60px;
    padding-bottom: 40px;
  }
}

.support-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 400px;
  padding: 0 20px;
  box-sizing: border-box;
}

.support-header {
  text-align: center;
}

.support-title {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.support-subtitle {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #C2C2C2;
  margin: 0;
}

.support-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.form-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  height: 20px;
}

.label-text {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.006em;
  color: #000000;
}

.required-asterisk {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.006em;
  color: #5183EB;
}

.input-field {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
  width: 100%;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid #F0F0F0;
  box-shadow: 0px 1px 2px rgba(228, 229, 231, 0.25);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus-within {
  border-color: #5183EB;
  box-shadow: 0px 0px 0px 3px rgba(81, 131, 235, 0.15);
}

.input-field input,
.input-field select {
  width: 100%;
  height: 20px;
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.006em;
  color: #000000;
  border: none;
  outline: none;
  background: transparent;
}

.input-field input::placeholder,
.input-field select:invalid {
  color: #C2C2C2;
  font-weight: 500;
}

.textarea-field textarea::placeholder {
  color: #C2C2C2;
  font-weight: 500;
}

.select-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C2C2C2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
}

.textarea-field {
  height: 96px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  padding: 8px 12px;
}

.textarea-field textarea {
  width: 100%;
  height: 48px;
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.006em;
  color: #000000;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
}

.textarea-field textarea::placeholder {
  color: #C2C2C2;
}

.char-counter {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: -0.006em;
  color: #C2C2C2;
}

/* Support form submit button - extends download-btn */
.submit-btn-styled {
  width: 100%;
  margin-top: 24px;
  background-color: #5183EB;
}

.submit-btn-styled:focus,
.submit-btn-styled:focus-visible {
  outline: none;
}

.submit-btn-styled .btn-content {
  color: #FFFFFF;
}

.submit-btn-styled .bg-fill {
  background-color: #3A6FD8;
  width: 800px;
  height: 800px;
}

.submit-btn-styled:active .bg-fill,
.submit-btn-styled.pressed .bg-fill {
  background-color: #2A5FC8;
}

.submit-btn-styled .border-ring {
  border-color: transparent;
}

/* Support form responsive */
@media (max-width: 480px) {
  .support-form {
    width: 100%;
    padding: 0 16px;
  }

  .label-text {
    font-size: 14px;
  }
}

/* Honeypot field - hidden from users */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Field validation error styles - inline icon */
.field-error-icon {
  display: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: help;
  position: relative;
}

.field-error-icon.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-error-icon.visible::before {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%23EF4444' stroke-width='1.5'/%3E%3Cpath d='M8 4.5V8.5' stroke='%23EF4444' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11' r='0.75' fill='%23EF4444'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Tooltip on hover */
.field-error-icon.visible::after {
  content: attr(title);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 8px;
  padding: 6px 10px;
  background: #1f2937;
  color: #ffffff;
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

.field-error-icon.visible:hover::after {
  opacity: 1;
  visibility: visible;
}

.input-error {
  border-color: #EF4444 !important;
  box-shadow: 0px 0px 0px 3px rgba(239, 68, 68, 0.15) !important;
}

/* Textarea bottom row with error icon and counter */
.textarea-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Success message */
.form-success {
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  gap: 8px;
  width: 100%;
  background: #E6F4F0;
  border: 1px solid #9BD5C3;
  border-radius: 20px;
  margin-top: 16px;
  opacity: 0;
  transform: scale(0.95);
}

.form-success.anim-in {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-success.anim-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-anim-out {
  opacity: 0 !important;
  transform: translateY(-10px) !important;
  pointer-events: none !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

.form-anim-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.success-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.success-message {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  letter-spacing: -0.02em;
  color: #047854;
}

.success-description {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  letter-spacing: -0.02em;
  color: #047854;
}

/* Mobile support page styles */
@media (max-width: 480px) {
  .support-title {
    font-size: 20px;
  }

  .support-subtitle {
    font-size: 14px;
  }

  .support-container {
    gap: 20px;
    padding: 0 16px;
  }

  .form-group {
    gap: 2px;
  }
}

/* ============================================
   404 Error Page Styles
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.error-illustration {
  width: 250px;
  height: auto;
}

.error-message {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: #C2C2C2;
  max-width: 280px;
}

/* ============================================
   Legal Pages Styles (Terms, Privacy)
   ============================================ */
.legal-container {
  max-width: 700px;
  padding: 0 40px;
}

.legal-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-section h2 {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: #0f172a;
  margin: 0;
}

.legal-section p {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section li {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
}

.legal-section a {
  color: #5183EB;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-section a:hover {
  color: #3A6FD8;
  text-decoration: underline;
}

/* ============================================
   Legal document content (DB-authored via the admin;
   the sanitizer allows only bare semantic tags)
   ============================================ */
.legal-doc {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  color: #4b5563;
  text-align: left;
  overflow-wrap: break-word;
}

.legal-doc p {
  margin: 0 0 12px;
}

.legal-doc h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  margin: 32px 0 12px;
}

.legal-doc h3,
.legal-doc h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  margin: 24px 0 8px;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-doc li {
  margin: 4px 0;
}

.legal-doc li::marker {
  color: #5183EB;
}

.legal-doc a {
  color: #5183EB;
  text-decoration: none;
  word-break: break-word;
}

.legal-doc a:hover {
  color: #3A6FD8;
  text-decoration: underline;
}

.legal-doc strong {
  font-weight: 600;
  color: #0f172a;
}

.legal-doc hr {
  border: none;
  border-top: 1px solid #F0F0F0;
  margin: 28px 0;
}

.legal-doc blockquote {
  margin: 0 0 14px;
  padding: 8px 16px;
  border-left: 3px solid #5183EB;
  background: #F5F8FE;
  border-radius: 0 8px 8px 0;
}

/* Anchor targets land below the fixed header */
.legal-doc h2,
.legal-doc h3 {
  /* clears the 72px header plus its 40px gradient fade */
  scroll-margin-top: 112px;
}

html:has(.legal-doc) {
  scroll-behavior: smooth;
}

/* Table of contents — compact list of jump links */
.legal-toc {
  margin: 0 0 16px;
  padding: 14px 18px 14px 34px;
  background: #F5F8FE;
  border-radius: 12px;
}

.legal-toc li {
  margin: 3px 0;
}

.legal-toc a {
  color: #4b5563;
  font-weight: 500;
}

.legal-toc a:hover {
  color: #3A6FD8;
}

/* Data-categories table — rounded card style */
/* ============================================
   Legal page side navigation (wide screens only)
   Built by initLegalSidebar() in main.js by cloning the inline
   .legal-toc, so the section list stays hand-maintained in one place.

   position: fixed, not sticky — body.support-page sets
   overflow: auto !important while keeping height: auto, which makes
   <body> a scroll container with zero scroll range. A sticky
   descendant would have nothing to travel against.
   ============================================ */
.legal-sidebar {
  display: none;
}

@media (min-width: 1280px) {
  .legal-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    /* clears the 72px header plus its 40px gradient fade */
    top: 116px;
    /* pinned to the left edge of the viewport, as on the reference. Width and
       inset are sized so that even at the 1280px breakpoint — where the
       centred 700px column starts at x=290 — there is still a 30px gutter. */
    left: 40px;
    width: 220px;
    max-height: calc(100vh - 140px);
    /* below .header (100) and .scroll-nav (90) */
    z-index: 80;
  }

  .legal-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    flex-shrink: 0;
  }

  .legal-sidebar-title svg {
    flex-shrink: 0;
  }

  /* A ruler: a 20px tick per section with two blank 12px ticks between,
     every tick on the same 9px pitch. */
  .legal-sidebar-list {
    list-style: none;
    margin: 0;
    /* vertical padding gives the first and last labels, which overflow their
       1px-tall links, room inside the scroll container */
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    /* don't chain to the page when the list reaches its end */
    overscroll-behavior: contain;
    /* allows the list to shrink inside the flex column */
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #E2E8F0 transparent;
  }

  .legal-sidebar-list::-webkit-scrollbar {
    width: 6px;
  }

  .legal-sidebar-list::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 3px;
  }

  .legal-sidebar-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .legal-sidebar-list li {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* blank ruler tick */
  .legal-sidebar-tick {
    width: 12px;
    height: 1px;
    background-color: #E2E8F0;
    flex-shrink: 0;
  }

  .legal-sidebar-list a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    /* 1px tall like its ticks — the label overflows and is centred on the
       line, which is what keeps every tick on one even pitch */
    height: 1px;
    text-decoration: none;
  }

  /* the link itself is 1px tall, so give it a real hit area */
  .legal-sidebar-list a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -13px;
    bottom: -13px;
  }

  /* Leading dash: 20px and pale, growing to 32px and dark when active. */
  .legal-sidebar-dash {
    flex-shrink: 0;
    width: 20px;
    height: 1px;
    background-color: #E2E8F0;
    transition: width 0.25s cubic-bezier(0, 0, 0.2, 1),
      background-color 0.25s cubic-bezier(0, 0, 0.2, 1);
  }

  .legal-sidebar-label {
    /* one line with an ellipsis, as on the reference; the full title is in
       the link's title attribute */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: #6b7280;
    transition: color 0.25s cubic-bezier(0, 0, 0.2, 1);
  }

  .legal-sidebar-list a:hover .legal-sidebar-label {
    color: #0f172a;
  }

  .legal-sidebar-list a:hover .legal-sidebar-dash {
    background-color: #C2C2C2;
  }

  .legal-sidebar-list a:focus-visible {
    outline: 2px solid #5183EB;
    /* inset so the ring isn't clipped by the list's overflow */
    outline-offset: -2px;
    border-radius: 4px;
  }

  .legal-sidebar-list a.is-active .legal-sidebar-dash {
    width: 32px;
    background-color: #0f172a;
  }

  .legal-sidebar-list a.is-active .legal-sidebar-label {
    color: #0f172a;
  }
}

.legal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #F0F0F0;
  border-radius: 14px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 16px;
}

.legal-table th {
  background: #F5F8FE;
  color: #0f172a;
  font-weight: 600;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 9px 12px;
  vertical-align: top;
  border-bottom: 1px solid #F0F0F0;
  border-right: 1px solid #F0F0F0;
}

.legal-table th:last-child,
.legal-table td:last-child {
  border-right: none;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table thead th:first-child {
  border-top-left-radius: 13px;
}

.legal-table thead th:last-child {
  border-top-right-radius: 13px;
}

.legal-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 13px;
}

.legal-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 13px;
}

.legal-table td:last-child {
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

/* Legal page responsive */
@media (max-width: 768px) {
  .legal-container {
    padding: 0 20px;
  }

  .legal-doc {
    font-size: 13px;
  }

  .legal-section h2 {
    font-size: 16px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 13px;
  }
}

/* ============================================
   Responsive Styles
   ============================================ */

/* Desktop - Scale up phone and images */
@media (min-width: 1251px) {
  .phone-animation-container {
    transform: translate(-50%, -50%) scale(1.2);
  }

  .hero-phone {
    min-height: 650px;
  }
}

/* Large Tablet / Small Desktop */
@media (max-width: 1100px) {
  .hero {
    gap: 40px;
  }

  .phone-animation-container {
    transform: translate(-50%, -50%) scale(0.85);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .main {
    /* Clears the header and the (now 120px) top blur, so the hero title is never
       rendered blurred. */
    padding: 52px 40px 30px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-content {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
  }

  .button-wrapper {
    align-items: center;
  }

  .hero-phone {
    flex: 1;
    min-height: 400px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .phone-animation-container {
    transform: translate(-50%, -50%) scale(0.7);
  }
}

/* Tablet / iPad Portrait */
@media (max-width: 1024px) {
  .hero-title {
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 100%;
    line-height: 1.5;
  }
}

/* Mobile Landscape / Large Mobile */
@media (max-width: 768px) {
  .header {
    padding: 24px 12px 0;
  }

  .main {
    padding: 20px 16px;
  }

  .hero {
    gap: 20px;
  }

  .hero-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .button-wrapper {
    margin-bottom: 20px;
  }

  .phone-animation-container {
    transform: translate(-50%, -50%) scale(0.55);
  }

  .hero-phone {
    min-height: 300px;
    position: relative;
  }

  .footer {
    padding: 30px 16px 24px;
    gap: 16px;
  }

  .footer-art {
    width: 154px;
  }


}

/* Mobile */
@media (max-width: 480px) {
  .header {
    padding: 16px 10px 0;
  }

  .main {
    padding: 16px 12px;
  }

  .hero {
    gap: 12px;
  }

  .hero-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 90%;
  }

  .button-wrapper {
    margin-bottom: 0;
  }

  .phone-animation-container {
    transform: translate(-50%, -50%) scale(0.6);
  }

  .hero-phone {
    min-height: 300px;
  }

  .footer-content {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
  }
}

/* Small mobile */
@media (max-width: 375px) {
  .header {
    padding: 14px 8px 0;
  }



  .main {
    padding: 12px 10px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .phone-animation-container {
    transform: translate(-50%, -50%) scale(0.55);
  }

  .hero-phone {
    min-height: 280px;
  }
}

/* Extra small mobile */
@media (max-width: 320px) {
  .header {
    padding: 12px 6px 0;
  }



  .hero-title {
    font-size: 16px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .phone-animation-container {
    transform: translate(-50%, -50%) scale(0.5);
  }

  .hero-phone {
    min-height: 250px;
  }

  .footer {
    padding: 20px 10px 16px;
    gap: 12px;
  }



  .footer-content {
    font-size: 13px;
    gap: 4px;
  }
}

/* ============================================
   Form error banner (mirrors .form-success)
   ============================================ */
.form-error-banner {
  box-sizing: border-box;
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  gap: 4px;
  width: 100%;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 12px;
  margin-top: 12px;
  color: #B91C1C;
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-error-banner.visible {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   Reduced-motion preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .phone-animation-container.hovered .element {
    animation: none !important;
  }
}

/* ============================================
   Coming Soon Badge (PRE-LAUNCH)
   ============================================ */
.download-btn.coming-soon {
  cursor: default;
  pointer-events: none;
  opacity: 0.92;
}

.download-btn.coming-soon .bg-fill {
  display: none;
}

/* Phones: blur ends at 88px, so content needs far less top clearance than the
   120px the desktop blur requires. */
@media (max-width: 680px) {
  .support-main {
    padding-top: 48px;
  }
}

/* ============================================
   Press / Brand page
   ============================================ */
.press-container {
  max-width: 900px;
  padding: 0 40px;
}

.press-header {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  padding-bottom: 8px;
}

/* The page title carries more weight here than on the support/legal pages,
   so the intro reads as supporting text rather than competing with it. */
.press-header .support-title {
  font-size: clamp(30px, 4.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

.press-intro {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0;
}

.press-usage {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
  padding: 16px 20px;
  background: #F4F5F7;
  border-radius: 22px;
}

.press-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.press-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.press-section-title {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
}

.press-standfirst {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: -8px 0 0;
}

.press-standfirst-inline {
  margin-top: 8px;
}

.press-note {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
}


/* Smooth (squircle) corners. `corner-shape` is progressive enhancement: browsers
   without it fall back to the plain border-radius already set on each element. */
.press-usage,
.logo-card,
.logo-preview,
.misuse-card,
.misuse-frame,
.clearspace-stage,
.clearspace-inner,
.press-download-all,
.appicon-tile img {
  corner-shape: squircle;
}

/* ---- Logo grid ---- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.logo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 32px;
  background: #F4F5F7;
  padding: 5px 5px 0;
}

.logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 44px;
  height: 190px;
  background: #ffffff;
  border-radius: 27px;
}

.logo-preview img {
  /* Fixed-height contain box so every variant fills the card consistently —
     otherwise the wordmark renders at its small natural size next to the others. */
  width: 100%;
  height: 84px;
  object-fit: contain;
  display: block;
}

/* The variants range from 0.61:1 (emblem) to 5.29:1 (wordmark). Sizing them all
   to the same height makes the wide ones look ~5x heavier, so each is sized to
   roughly equal optical area instead. */
.logo-preview[data-variant="emblem"] img {
  height: 104px;
}

.logo-preview[data-variant="stacked"] img {
  height: 74px;
}

.logo-preview[data-variant="horizontal"] img {
  height: 52px;
}

.logo-preview[data-variant="wordmark"] img {
  height: 39px;
}

/* On-colour cards sit on the secondary brand tint rather than the neutral grey.
   It is light, so the meta text keeps the same colours as the light cards. */
.logo-card-dark {
  background: #F0F5FE;
}

.logo-card-dark .logo-preview {
  background: var(--color-primary, #5183EB);
}

.logo-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  padding: 14px 14px 16px;
}

.logo-name {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
}

.logo-note {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.logo-downloads {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.logo-downloads a {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-primary-hover, #3A6FD8);
  text-decoration: none;
}

.logo-downloads a:hover {
  text-decoration: underline;
}

.appicon-downloads {
  margin-top: 2px;
}

/* ---- Clear space ---- */
.clearspace-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Same plate-and-panel construction as the logo cards, so the whole page reads
   as one system. Inner radius = outer radius - padding, or the corners bulge. */
.clearspace-stage {
  background: #F4F5F7;
  border-radius: 32px;
  padding: 5px;
}

.clearspace-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  background: #ffffff;
  border-radius: 27px;
  /* Clips the guide lines where they run off the panel. */
  overflow: hidden;
}

/* The clear-space boundary sits exactly one unit out from the mark. Rather than
   a closed box, four guide lines run to the panel edges, as on a spec drawing. */
.clearspace-guide {
  position: relative;
  padding: 36px;
}

.clearspace-guide img {
  display: block;
  height: 72px;
  width: auto;
  position: relative;
  z-index: 1;
}

.cs-line {
  position: absolute;
  pointer-events: none;
}

/* Overshoot far past the panel; .clearspace-inner clips them. */
.cs-line-t,
.cs-line-b {
  left: -600px;
  right: -600px;
  border-top: 1px dashed rgba(81, 131, 235, 0.5);
}

.cs-line-t { top: 0; }
.cs-line-b { bottom: 0; }

.cs-line-l,
.cs-line-r {
  top: -600px;
  bottom: -600px;
  border-left: 1px dashed rgba(81, 131, 235, 0.5);
}

.cs-line-l { left: 0; }
.cs-line-r { right: 0; }

/* One unit square in each corner of the margin, labelling the measure. */
.cs-x {
  position: absolute;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(81, 131, 235, 0.09);
  font-size: 12px;
  font-weight: 600;
  font-style: italic;
  color: var(--color-primary-hover, #3A6FD8);
}

.cs-tl { top: 0; left: 0; }
.cs-tr { top: 0; right: 0; }
.cs-bl { bottom: 0; left: 0; }
.cs-br { bottom: 0; right: 0; }

.clearspace-caption,
.minsize-list li {
  font-family: 'Open Runde', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
}

.clearspace-caption strong {
  color: #0f172a;
  font-weight: 600;
  font-style: italic;
}

.minsize-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.minsize-list strong {
  color: #0f172a;
  font-weight: 600;
}

/* ---- Misuse ---- */
.misuse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.misuse-card {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #F4F5F7;
  padding: 5px 5px 0;
}

.misuse-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 16px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 23px;
}

.misuse-frame-lowcontrast {
  /* A lighter tint of the brand blue: the logo stays just visible, so the tile
     reads as "hard to see" rather than as an empty box. */
  background: #7DA2F1;
}

.misuse-img {
  max-width: 80%;
  height: auto;
  display: block;
}

.misuse-stretch {
  transform: scaleX(1.4);
}

.misuse-squash {
  transform: scaleY(0.6);
}

.misuse-rotate {
  transform: rotate(-12deg);
}

.misuse-recolour {
  filter: hue-rotate(140deg) saturate(1.6);
}

.misuse-effects {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.misuse-label {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
  padding: 10px 12px 12px;
}

/* ---- App icon ---- */
.appicon-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.appicon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.appicon-tile img {
  display: block;
  height: auto;
  border-radius: 22.5%;
}

.appicon-lg img { width: 128px; }
.appicon-md img { width: 96px; }
.appicon-sm img { width: 64px; }
.appicon-xs img { width: 32px; }

.appicon-size {
  font-weight: 500;
  font-size: 12px;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}


/* ---- Downloads ---- */
.press-download-all {
  align-self: flex-start;
  background-color: var(--color-primary, #5183EB);
}

.press-download-all .btn-content {
  color: #ffffff;
}

.press-download-all .bg-fill {
  background-color: var(--color-primary-hover, #3A6FD8);
}

.press-download-all .border-ring {
  border-color: transparent;
}







/* ---- Press page responsive ---- */
@media (max-width: 768px) {
  .press-container {
    padding: 0 20px;
  }

  .press-content {
    gap: 44px;
  }

  .misuse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 480px) {
  .logo-grid,
  .misuse-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-preview img {
    max-width: 220px;
  }


}

/* ============================================
   Viewport clearance — must stay last in the file
   ============================================
   The responsive `.main` rules earlier in this file also match `.support-main`
   (same specificity, later in source), so they were silently overriding the top
   padding the legal/press pages need. These rules are last and more specific, so
   content on every page clears the fixed header and the progressive top blur.

   Reference: at <=900px the top blur ends at 88px; above that, at 168px. */
@media (max-width: 900px) {
  .main:not(.support-main) {
    padding-top: 48px;
  }

  .main.support-main {
    padding-top: 48px;
  }
}
