/* ==========================================================================
   Ziayzu Hosting - main.css
   Design tokens, reset, typography, layout primitives and animations.
   Theme: blue + purple on black. Dark by default, light mode via
   [data-theme="light"] on <html>.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand ramp */
  --blue-400: #6b9bff;
  --blue-500: #4d7cff;
  --blue-600: #3b5ce0;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #8b3fd8;

  /* Dark surfaces */
  --black: #05050a;
  --bg: #08080f;
  --bg-alt: #0c0c18;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.058);
  --surface-solid: #10101f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f1f2f8;
  --text-muted: #a2a6bd;
  --text-dim: #6f7391;

  /* Status */
  --success: #2ee6a8;
  --success-bg: rgba(46, 230, 168, 0.12);
  --warning: #ffc554;
  --warning-bg: rgba(255, 197, 84, 0.12);
  --danger: #ff5d73;
  --danger-bg: rgba(255, 93, 115, 0.12);
  --info: var(--blue-400);
  --info-bg: rgba(107, 155, 255, 0.12);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--blue-500) 0%, var(--purple-500) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(77, 124, 255, 0.16), rgba(168, 85, 247, 0.16));
  --grad-text: linear-gradient(100deg, #8fb4ff 0%, #c9a6ff 50%, #8fb4ff 100%);
  --grad-surface: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));

  /* Shadows / glows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.75);
  --glow-blue: 0 0 0 1px rgba(77, 124, 255, 0.35), 0 12px 40px -12px rgba(77, 124, 255, 0.55);
  --glow-purple: 0 0 0 1px rgba(168, 85, 247, 0.35), 0 12px 40px -12px rgba(168, 85, 247, 0.55);

  /* Geometry */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 68px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 480ms;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  color-scheme: dark;
}

/* Light theme overrides -------------------------------------------------- */
[data-theme="light"] {
  --bg: #f6f7fc;
  --bg-alt: #eef0f9;
  --black: #ffffff;
  --surface: rgba(12, 14, 34, 0.035);
  --surface-2: rgba(12, 14, 34, 0.06);
  --surface-solid: #ffffff;
  --border: rgba(14, 17, 40, 0.1);
  --border-strong: rgba(14, 17, 40, 0.2);

  --text: #12142b;
  --text-muted: #4d5273;
  --text-dim: #767b9c;

  --grad-surface: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  --grad-text: linear-gradient(100deg, #3b5ce0 0%, #8b3fd8 50%, #3b5ce0 100%);

  --shadow-md: 0 8px 24px -10px rgba(20, 24, 60, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(20, 24, 60, 0.24);

  color-scheme: light;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient brand glow.
   Painted on a separate fixed layer rather than with `background-attachment:
   fixed` on <body>, which forces a full-viewport repaint on every scroll frame
   (a well-known mobile jank source). As its own composited layer the gradient
   is rasterised once and never repainted. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1200px 600px at 12% -10%, rgba(77, 124, 255, 0.18), transparent 60%),
    radial-gradient(1000px 560px at 88% 6%, rgba(168, 85, 247, 0.16), transparent 62%);
}

[data-theme="light"] body::before {
  background-image:
    radial-gradient(1200px 600px at 12% -10%, rgba(77, 124, 255, 0.12), transparent 60%),
    radial-gradient(1000px 560px at 88% 6%, rgba(168, 85, 247, 0.1), transparent 62%);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

svg {
  fill: currentColor;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--blue-400);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--purple-400);
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* Visible, on-brand focus ring for keyboard users only. */
:focus-visible {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(168, 85, 247, 0.4);
  color: #fff;
}

/* Custom scrollbar (progressive enhancement) */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-alt);
  }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--blue-600), var(--purple-600));
    border-radius: var(--radius-pill);
    border: 2px solid var(--bg-alt);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--blue-500), var(--purple-500));
  }
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.15rem, 1.4rem + 3.4vw, 3.9rem);
}

h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.9vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  text-wrap: pretty;
}

.text-gradient {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.lead {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.16rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.muted {
  color: var(--text-muted);
}

.dim {
  color: var(--text-dim);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.section--alt {
  background: linear-gradient(180deg, transparent, var(--bg-alt) 18%, var(--bg-alt) 82%, transparent);
}

.section__head {
  max-width: 64ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

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

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.row--between {
  justify-content: space-between;
}

.row--center {
  justify-content: center;
}

/* Accessibility helpers ---------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  transition: top var(--dur) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-3);
}

/* --------------------------------------------------------------------------
   5. Keyframes
   -------------------------------------------------------------------------- */
@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.7; }
  70%  { transform: scale(1.5);  opacity: 0; }
  100% { transform: scale(1.5);  opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px) scale(0.97); }
}

@keyframes cube-bounce {
  0%, 70%, 100% { transform: scale3d(1, 1, 1); }
  35%           { transform: scale3d(0, 0, 1); }
}

@keyframes gradient-drift {
  /* Translate only - no rotation or scale. A blurred layer that only moves can
     be rasterised once and shifted by the compositor, so the animation costs
     almost nothing per frame. Rotating it would force a re-blur every frame. */
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(2.5%, -3.5%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   6. Scroll reveal
   Elements marked [data-reveal] start hidden and are revealed by
   IntersectionObserver in app.js (class .is-visible).
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  /* `will-change` is intentionally omitted: applying it to dozens of elements
     forces a compositor layer for each one and costs more memory than it saves.
     app.js sets it only for the element about to animate. */
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* If JS is unavailable, never leave content invisible. */
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   7. Page loader
   The overlay dismisses itself with a CSS animation, so it never depends on
   JavaScript running (if a script fails or is blocked, the page still becomes
   usable). app.js removes the node once it has faded out.
   -------------------------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  gap: var(--sp-5);
  justify-items: center;
  background: var(--bg);
  animation: loader-dismiss 260ms var(--ease-out) 200ms forwards;
}

@keyframes loader-dismiss {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__cube {
  width: 56px;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.page-loader__cube span {
  border-radius: 4px;
  background: var(--grad-brand);
  animation: cube-bounce 1.5s infinite ease-in-out;
}

.page-loader__cube span:nth-child(1) { animation-delay: 0s; }
.page-loader__cube span:nth-child(2) { animation-delay: 0.15s; }
.page-loader__cube span:nth-child(4) { animation-delay: 0.3s; }
.page-loader__cube span:nth-child(3) { animation-delay: 0.45s; }

.page-loader__text {
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   8. Scroll-to-top + progress bar
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--grad-brand);
  transition: width 80ms linear;
}

.scroll-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-spring),
    visibility var(--dur);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-purple);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   9. Reduced motion
   Honour the OS setting: kill decorative motion, keep state changes instant.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   10. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .scroll-top,
  .page-loader,
  .toast-region {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ==========================================================================
   Ziayzu Hosting - components.css (part 1: header, nav, buttons, chips)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header + brand
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

/* .is-stuck is toggled by app.js after the first ~10px of scroll */
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: var(--shadow-md);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease-spring);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.08);
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__accent {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: translateX(-50%);
  transition: width var(--dur) var(--ease-out);
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  color: var(--text);
  background: var(--surface);
}

.site-nav__list a:hover::after {
  width: 55%;
}

/* Current page is marked by app.js from the data-nav attribute */
.site-nav__list a.is-active {
  color: var(--text);
}

.site-nav__list a.is-active::after {
  width: 55%;
}

.site-nav__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Hamburger --------------------------------------------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle__bar {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(3, 3, 8, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.nav-backdrop.is-visible {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--dur) var(--ease-spring),
    box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Primary: brand gradient with a sheen sweep on hover */
.btn--primary {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 8px 24px -10px rgba(112, 96, 255, 0.7);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--purple-500), var(--blue-500));
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow-purple);
}

.btn--primary:hover::before {
  opacity: 1;
}

/* Sheen */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left var(--dur-slow) var(--ease-out);
}

.btn--primary:hover::after {
  left: 130%;
}

.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn--outline {
  color: var(--blue-400);
  border-color: color-mix(in srgb, var(--blue-500) 55%, transparent);
  background: transparent;
}

.btn--outline:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
}

.btn--discord {
  color: #fff;
  background: #5865f2;
  box-shadow: 0 8px 24px -12px rgba(88, 101, 242, 0.9);
}

.btn--discord:hover {
  color: #fff;
  background: #4752e0;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(88, 101, 242, 0.8);
}

.btn--danger {
  color: #fff;
  background: var(--danger);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.86rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

/* Inline loading state used by forms */
.btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.btn.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 700ms linear infinite;
  opacity: 1;
  z-index: 2;
}

/* Icon button -------------------------------------------------------------- */
.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast), transform var(--dur) var(--ease-spring);
}

.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

/* Theme toggle: show the icon for the mode you will switch *to* */
.icon--sun { display: none; }
[data-theme="light"] .icon--moon { display: none; }
[data-theme="light"] .icon--sun { display: block; }

/* --------------------------------------------------------------------------
   Chips / badges / pills
   -------------------------------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.chip--sm {
  padding: 0.22rem 0.62rem;
  font-size: 0.72rem;
}

.chip--brand {
  color: var(--blue-400);
  background: var(--grad-brand-soft);
  border-color: color-mix(in srgb, var(--blue-500) 35%, transparent);
}

.chip .icon {
  width: 14px;
  height: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.badge--success { color: var(--success); background: var(--success-bg); }
.badge--warning { color: var(--warning); background: var(--warning-bg); }
.badge--danger  { color: var(--danger);  background: var(--danger-bg); }
.badge--info    { color: var(--info);    background: var(--info-bg); }
.badge--neutral { color: var(--text-muted); background: var(--surface-2); }

/* Live status dot with a pulsing halo */
.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--success);
  animation: pulse-ring 2s var(--ease-out) infinite;
}

/* ==========================================================================
   components.css (part 2: cards, hero, plans)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  /* Only animate compositor-friendly properties to keep scrolling at 60fps */
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.card--hover:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--sp-4);
  border-radius: var(--radius);
  color: var(--blue-400);
  background: var(--grad-brand-soft);
  border: 1px solid color-mix(in srgb, var(--blue-500) 25%, transparent);
}

.card__icon .icon {
  width: 22px;
  height: 22px;
}

.card__title {
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

/* Decorative blurred orbs. pointer-events:none so they never block clicks. */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
  animation: gradient-drift 18s var(--ease-in-out) infinite;
  will-change: transform;
}

.hero__orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(77, 124, 255, 0.6), transparent 70%);
}

.hero__orb--2 {
  width: 380px;
  height: 380px;
  right: -100px;
  top: 40px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.55), transparent 70%);
  animation-delay: -6s;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-4);
}

.hero h1 {
  margin-bottom: var(--sp-4);
}

.hero__sub {
  font-size: clamp(1.02rem, 0.96rem + 0.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: var(--sp-5);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero__trust-item .icon {
  width: 16px;
  height: 16px;
  color: var(--success);
}

/* Spec panel (right side of the hero) ------------------------------------- */
.spec-panel {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-xl);
  background: var(--grad-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: float-y 7s var(--ease-in-out) infinite;
}

.spec-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.spec-panel__title {
  font-size: 0.94rem;
  font-weight: 700;
}

.spec-list {
  display: grid;
  gap: 0.65rem;
}

.spec-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: 0.9rem;
}

.spec-list__label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
}

.spec-list__label .icon {
  width: 16px;
  height: 16px;
  color: var(--purple-400);
}

.spec-list__value {
  font-weight: 600;
  text-align: right;
}

/* Animated meter bars */
.meter {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.meter__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-brand);
  transition: width 1.2s var(--ease-out);
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}

.stats__item {
  padding: clamp(1rem, 2.2vw, 1.5rem);
  text-align: center;
  background: var(--bg-alt);
}

.stats__value {
  display: block;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Plan cards
   -------------------------------------------------------------------------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

/* Top accent line, revealed on hover */
.plan::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}

.plan:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.plan:hover::before {
  transform: scaleX(1);
}

.plan--featured {
  border-color: color-mix(in srgb, var(--purple-500) 45%, transparent);
  box-shadow: var(--glow-purple);
}

.plan--featured::before {
  transform: scaleX(1);
}

.plan__ribbon {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--sp-3);
  border-radius: 12px;
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease-spring);
}

.plan:hover .plan__icon {
  transform: rotate(-6deg) scale(1.08);
}

.plan__icon svg {
  width: 26px;
  height: 26px;
}

/* Per-tier accent colours, echoing the Minecraft material names */
.plan[data-plan="wood"]      .plan__icon { background: rgba(147, 100, 60, 0.18);  color: #c08b5a; }
.plan[data-plan="stone"]     .plan__icon { background: rgba(148, 152, 170, 0.18); color: #aab0c4; }
.plan[data-plan="iron"]      .plan__icon { background: rgba(214, 219, 232, 0.16); color: #dbe1ef; }
.plan[data-plan="gold"]      .plan__icon { background: rgba(255, 197, 84, 0.16);  color: #ffce62; }
.plan[data-plan="diamond"]   .plan__icon { background: rgba(78, 226, 240, 0.16);  color: #63e6f0; }
.plan[data-plan="netherite"] .plan__icon { background: rgba(168, 85, 247, 0.18);  color: #c084fc; }

.plan__name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan__tagline {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 2.6em;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin: var(--sp-4) 0 0.15rem;
}

.plan__amount {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan__period {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.plan__billing-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  min-height: 1.3em;
}

.plan__specs {
  display: grid;
  gap: 0.55rem;
  margin: var(--sp-5) 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.plan__spec {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan__spec .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--success);
}

.plan__spec strong {
  color: var(--text);
  font-weight: 600;
}

.plan__cta {
  margin-top: auto;
}

/* Billing cycle switch ---------------------------------------------------- */
.cycle-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  flex-wrap: wrap;
  justify-content: center;
}

.cycle-switch__btn {
  position: relative;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur-fast), background var(--dur) var(--ease-out);
}

.cycle-switch__btn:hover {
  color: var(--text);
}

.cycle-switch__btn.is-active {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 18px -8px rgba(112, 96, 255, 0.8);
}

.cycle-switch__save {
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.68rem;
  font-weight: 700;
}

.cycle-switch__btn.is-active .cycle-switch__save {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* ==========================================================================
   components.css (part 3: forms, summary, steps, accordion, tables, toasts)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.field__label .req {
  color: var(--danger);
}

.field__hint {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-dim);
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--border-strong);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(77, 124, 255, 0.18);
}

.textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* Native select with a custom caret */
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a2a6bd'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 20px;
  cursor: pointer;
}

[data-theme="light"] .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234d5273'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

.select option {
  background: var(--surface-solid);
  color: var(--text);
}

/* Invalid state + inline error text */
.input.is-invalid,
.textarea.is-invalid,
.select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 93, 115, 0.15);
}

.field__error {
  display: none;
  font-size: 0.79rem;
  color: var(--danger);
}

.field__error.is-visible {
  display: block;
  animation: fade-up 200ms var(--ease-out);
}

/* Radio card group (plan / cycle pickers) --------------------------------- */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
}

.choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice__box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    transform var(--dur) var(--ease-spring);
}

.choice:hover .choice__box {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.choice input:checked + .choice__box {
  border-color: var(--purple-500);
  background: var(--grad-brand-soft);
  box-shadow: 0 0 0 1px var(--purple-500) inset;
}

.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--purple-400);
  outline-offset: 2px;
}

.choice__title {
  font-size: 0.92rem;
  font-weight: 700;
}

.choice__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Order summary (sticky sidebar)
   -------------------------------------------------------------------------- */
.summary {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  border-radius: var(--radius-lg);
  background: var(--grad-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.summary__title {
  font-size: 1rem;
  font-weight: 700;
  padding-bottom: var(--sp-3);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.34rem 0;
  font-size: 0.9rem;
}

.summary__row dt {
  color: var(--text-muted);
}

.summary__row dd {
  font-weight: 600;
  text-align: right;
}

.summary__row--total {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
}

.summary__row--total dd {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.summary__row--save dd {
  color: var(--success);
}

/* --------------------------------------------------------------------------
   Steps / timeline
   -------------------------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--sp-4);
}

.steps__item {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
}

.steps__item::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px -8px rgba(112, 96, 255, 0.8);
}

/* Vertical connector between steps */
.steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.5rem;
  bottom: -1.1rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--purple-500), transparent);
  opacity: 0.4;
}

.steps__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.steps__text {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Progress rail (order -> payment -> done) -------------------------------- */
.progress-rail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}

.progress-rail__step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.progress-rail__dot {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 700;
}

.progress-rail__step.is-active {
  color: var(--text);
}

.progress-rail__step.is-active .progress-rail__dot {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
}

.progress-rail__step.is-done .progress-rail__dot {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

.progress-rail__line {
  flex: 1 1 20px;
  min-width: 16px;
  height: 1px;
  background: var(--border-strong);
}

/* --------------------------------------------------------------------------
   Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion {
  display: grid;
  gap: 0.6rem;
}

.accordion__item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

.accordion__item:hover {
  border-color: var(--border-strong);
}

.accordion__item.is-open {
  border-color: color-mix(in srgb, var(--purple-500) 40%, transparent);
  background: var(--grad-brand-soft);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: 1rem 1.15rem;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

.accordion__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  transition: transform var(--dur) var(--ease-spring), background var(--dur-fast);
}

.accordion__icon svg {
  width: 14px;
  height: 14px;
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(180deg);
  background: var(--purple-500);
  color: #fff;
}

/* Height is animated via inline max-height set by app.js */
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}

.accordion__body {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* --------------------------------------------------------------------------
   Prose (legal pages)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 74ch;
  color: var(--text-muted);
}

.prose h2 {
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
  font-size: 1.35rem;
  color: var(--text);
}

.prose h3 {
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
  font-size: 1.05rem;
  color: var(--text);
}

.prose p,
.prose li {
  margin-bottom: 0.8rem;
  font-size: 0.96rem;
}

.prose ul {
  padding-left: 1.2rem;
  list-style: disc;
  margin-bottom: var(--sp-4);
}

.prose ul li::marker {
  color: var(--purple-400);
}

.prose strong {
  color: var(--text);
}

.prose__meta {
  padding: 0.9rem 1.1rem;
  margin-bottom: var(--sp-6);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Tables (admin)
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 900px;
}

.table th,
.table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-solid);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.table tbody tr {
  transition: background var(--dur-fast) var(--ease-out);
}

.table tbody tr:hover {
  background: var(--surface-2);
}

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

.table__actions {
  display: flex;
  gap: 0.35rem;
}

.table__empty {
  padding: var(--sp-7) var(--sp-4);
  text-align: center;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */
.toast-region {
  position: fixed;
  z-index: 250;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(360px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in var(--dur) var(--ease-spring);
}

.toast.is-leaving {
  animation: toast-out var(--dur-fast) var(--ease-out) forwards;
}

.toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.toast--success .toast__icon { color: var(--success); }
.toast--error   .toast__icon { color: var(--danger); }
.toast--info    .toast__icon { color: var(--blue-400); }
.toast--warning .toast__icon { color: var(--warning); }

.toast__body {
  flex: 1;
  min-width: 0;
}

.toast__title {
  font-size: 0.9rem;
  font-weight: 700;
}

.toast__msg {
  font-size: 0.84rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.toast__close {
  flex-shrink: 0;
  color: var(--text-dim);
  line-height: 1;
  font-size: 1.1rem;
  padding: 0 0.15rem;
  transition: color var(--dur-fast);
}

.toast__close:hover {
  color: var(--text);
}

/* Coloured left edge per toast type */
.toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.toast {
  position: relative;
  overflow: hidden;
}

.toast--success::before { background: var(--success); }
.toast--error::before   { background: var(--danger); }
.toast--info::before    { background: var(--blue-400); }
.toast--warning::before { background: var(--warning); }

/* ==========================================================================
   components.css (part 4: payment, success, admin, footer, misc)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Payment page
   -------------------------------------------------------------------------- */
.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.qr-box {
  display: grid;
  place-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  text-align: center;
}

.qr-box__frame {
  position: relative;
  width: min(208px, 60vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.qr-box__frame img,
.qr-box__frame svg {
  width: 100%;
  height: 100%;
}

/* Scanning line animation over the QR placeholder */
.qr-box__frame::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--purple-500), transparent);
  animation: qr-scan 2.6s var(--ease-in-out) infinite;
}

@keyframes qr-scan {
  0%, 100% { top: 12%; opacity: 0.2; }
  50%      { top: 86%; opacity: 1; }
}

.qr-box__hint {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Copyable value (UPI id, order reference, payment id) */
.copy-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.6rem 0.5rem 0.6rem 0.9rem;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.copy-field__value {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.copy-field__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}

.copy-field__btn:hover {
  color: var(--text);
  border-color: var(--purple-500);
}

.copy-field__btn .icon {
  width: 14px;
  height: 14px;
}

/* Payment method tabs */
.pay-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: var(--sp-5);
  padding: 4px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.pay-tabs__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur-fast), background var(--dur) var(--ease-out);
}

.pay-tabs__btn .icon {
  width: 16px;
  height: 16px;
}

.pay-tabs__btn.is-active {
  color: #fff;
  background: var(--grad-brand);
}

.pay-panel[hidden] {
  display: none;
}

/* Status banner shared by payment/success pages */
.status-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
}

.status-banner .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.status-banner--pending { border-color: color-mix(in srgb, var(--warning) 45%, transparent); background: var(--warning-bg); }
.status-banner--pending .icon { color: var(--warning); }
.status-banner--paid    { border-color: color-mix(in srgb, var(--success) 45%, transparent); background: var(--success-bg); }
.status-banner--paid .icon { color: var(--success); }
.status-banner--info    { border-color: color-mix(in srgb, var(--blue-500) 45%, transparent); background: var(--info-bg); }
.status-banner--info .icon { color: var(--blue-400); }

/* --------------------------------------------------------------------------
   Success page
   -------------------------------------------------------------------------- */
.success-hero {
  text-align: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.success-check {
  width: 78px;
  height: 78px;
  margin: 0 auto var(--sp-5);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--success), #17b98a);
  box-shadow: 0 0 0 10px rgba(46, 230, 168, 0.12), 0 18px 44px -18px rgba(46, 230, 168, 0.7);
  animation: pop-in 520ms var(--ease-spring) both;
}

.success-check svg {
  width: 40px;
  height: 40px;
  /* Draw the tick on load */
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: draw-check 560ms var(--ease-out) 260ms forwards;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: none; }
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

/* --------------------------------------------------------------------------
   Feature grid + logo marquee
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--sp-6);
  animation: marquee 26s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee__item .icon {
  width: 18px;
  height: 18px;
  color: var(--purple-400);
}

/* Comparison table on the plans page */
.compare-cell--yes { color: var(--success); font-weight: 700; }
.compare-cell--no  { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   Admin dashboard
   -------------------------------------------------------------------------- */
.page-admin {
  background-image: none;
}

.admin-shell {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.admin-login {
  max-width: 400px;
  margin: clamp(2rem, 8vh, 5rem) auto;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--sp-4);
  padding: 0.85rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.admin-toolbar__search {
  flex: 1 1 240px;
  min-width: 0;
  position: relative;
}

.admin-toolbar__search .input {
  padding-left: 2.4rem;
}

.admin-toolbar__search .icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

.admin-toolbar .select {
  flex: 0 1 160px;
  width: auto;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: var(--sp-5);
}

.stat-card {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--grad-surface);
  border: 1px solid var(--border);
}

.stat-card__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}

.stat-card__value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--sp-4);
}

.pagination__info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal (order detail) ---------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--sp-4);
  background: rgba(3, 3, 8, 0.72);
  backdrop-filter: blur(4px);
  animation: fade-in var(--dur) var(--ease-out);
}

.modal[hidden] {
  display: none;
}

.modal__box {
  width: min(620px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  animation: fade-up var(--dur) var(--ease-spring);
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.detail-list {
  display: grid;
  gap: 0.5rem;
}

.detail-list__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--sp-3);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.89rem;
}

.detail-list__row dt {
  color: var(--text-dim);
}

.detail-list__row dd {
  overflow-wrap: anywhere;
}

/* Skeleton shimmer for loading tables */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: skeleton-shift 1.4s ease-in-out infinite;
  color: transparent !important;
}

@keyframes skeleton-shift {
  from { background-position: 100% 50%; }
  to   { background-position: 0 50%; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(77, 124, 255, 0.05));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.site-footer__tagline {
  margin: var(--sp-3) 0 var(--sp-4);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 44ch;
}

.site-footer__heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: var(--sp-3);
}

.site-footer__col ul {
  display: grid;
  gap: 0.55rem;
}

.site-footer__col a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__col a:hover {
  color: var(--purple-400);
}

.site-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__contact .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  color: var(--purple-400);
}

.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: var(--sp-4);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.site-footer__legal {
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   Error pages
   -------------------------------------------------------------------------- */
.error-page {
  display: grid;
  place-items: center;
  gap: var(--sp-4);
  text-align: center;
  padding-block: clamp(3rem, 12vh, 7rem);
}

.error-page__code {
  font-size: clamp(4rem, 3rem + 8vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

/* ==========================================================================
   Ziayzu Hosting - responsive.css
   Mobile-first base styles live in main.css/components.css; this sheet layers
   on the larger breakpoints and the mobile nav behaviour.

   Breakpoints:
     <=  640px  small phones
     <=  860px  phones / small tablets (mobile nav kicks in)
     <= 1024px  tablets / small laptops
     >= 1440px  large desktops
   ========================================================================== */

/* --------------------------------------------------------------------------
   <= 1024px  Tablets & small laptops
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --container: 100%;
  }

  /* Hero becomes a single column with the spec panel underneath */
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .hero__sub {
    max-width: none;
  }

  .spec-panel {
    /* Stop the float animation once it is full width - it looks unstable */
    animation: none;
  }

  /* 3-up grids drop to 2-up */
  .plan-grid,
  .feature-grid,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  /* Order page: summary moves below the form and stops sticking */
  .pay-grid {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

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

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   <= 860px  Mobile navigation
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  /* Slide-in panel from the right, off-canvas by default */
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    width: min(300px, 84vw);
    margin-left: 0;
    padding: calc(var(--header-h) + var(--sp-4)) var(--sp-5) var(--sp-6);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--sp-5);
    background: var(--surface-solid);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateX(102%);
    transition: transform var(--dur-slow) var(--ease-out);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav.is-open {
    transform: none;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .site-nav__list a {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius);
    font-size: 1rem;
  }

  /* The underline indicator does not read well in a vertical list - use a
     left bar instead. */
  .site-nav__list a::after {
    left: 0;
    bottom: auto;
    top: 50%;
    width: 3px;
    height: 0;
    transform: translateY(-50%);
    transition: height var(--dur) var(--ease-out);
  }

  .site-nav__list a:hover::after,
  .site-nav__list a.is-active::after {
    width: 3px;
    height: 60%;
  }

  .site-nav__cta {
    flex-direction: column;
    align-items: stretch;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
  }

  .site-nav__cta .btn {
    width: 100%;
    padding-block: 0.7rem;
  }

  /* Prevent background scroll while the drawer is open (class set by app.js) */
  body.nav-open {
    overflow: hidden;
  }

  /* Stats strip: 2x2 */
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps__item {
    padding-left: 2.9rem;
  }
}

/* --------------------------------------------------------------------------
   <= 640px  Small phones
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  body {
    font-size: 0.97rem;
  }

  /* Everything goes single column */
  .plan-grid,
  .feature-grid,
  .grid--2,
  .grid--3,
  .grid--4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .plan__tagline {
    min-height: 0;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  /* Orbs are expensive and mostly off-screen on phones */
  .hero__orb {
    filter: blur(50px);
    opacity: 0.35;
  }

  .hero__orb--2 {
    display: none;
  }

  .cycle-switch {
    width: 100%;
    justify-content: stretch;
  }

  .cycle-switch__btn {
    flex: 1 1 auto;
    padding-inline: 0.6rem;
    font-size: 0.82rem;
  }

  .pay-tabs {
    flex-direction: column;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Admin: full-width toolbar controls */
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar .select,
  .admin-toolbar .btn {
    flex: 1 1 auto;
    width: 100%;
  }

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

  .detail-list__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .toast-region {
    right: 0.6rem;
    left: 0.6rem;
    width: auto;
  }

  /* Larger tap targets on touch devices */
  .icon-btn {
    width: 42px;
    height: 42px;
  }
}

/* --------------------------------------------------------------------------
   <= 420px  Very small screens
   -------------------------------------------------------------------------- */
@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .stat-cards {
    grid-template-columns: 1fr;
  }

  .brand__text {
    font-size: 0.98rem;
  }
}

/* --------------------------------------------------------------------------
   >= 1440px  Large desktops
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  :root {
    --container: 1280px;
  }

  .hero {
    padding-block: clamp(4rem, 7vw, 6.5rem) clamp(3.5rem, 6vw, 5.5rem);
  }
}

/* --------------------------------------------------------------------------
   Input-modality tweaks
   -------------------------------------------------------------------------- */

/* Touch devices: hover lifts feel broken (they stick), so disable them. */
@media (hover: none) {
  .card--hover:hover,
  .plan:hover,
  .btn:hover,
  .icon-btn:hover,
  .scroll-top:hover {
    transform: none;
  }

  .plan:hover .plan__icon,
  .brand:hover .brand__mark {
    transform: none;
  }
}

/* Landscape phones: reduce vertical padding so content stays visible. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    padding-block: var(--sp-6);
  }

  .section {
    padding-block: var(--sp-6);
  }

  .site-nav {
    padding-top: calc(var(--header-h) + var(--sp-2));
  }
}

/* High-contrast / forced-colors mode: rely on system colours, drop gradients. */
@media (forced-colors: active) {
  .btn,
  .card,
  .plan,
  .input,
  .select,
  .textarea {
    border: 1px solid ButtonBorder;
  }

  .text-gradient,
  .stats__value,
  .error-page__code,
  .summary__row--total dd {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: CanvasText;
  }
}
