/* ==========================================================================
   AFFIQRAHMAN.COM V2 — PUBLIC APP CSS
   Mainpage luxury rebuild.
   Public CSS for homepage first, later reusable for all public pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Design Tokens
-------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  --font-main:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --bg: #070711;
  --bg-soft: #0b0b18;
  --bg-deep: #03030a;

  --surface: rgba(255, 255, 255, 0.06);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.095);
  --surface-premium: rgba(255, 255, 255, 0.078);

  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text: #f8f6ff;
  --muted: rgba(248, 246, 255, 0.72);
  --soft: rgba(248, 246, 255, 0.54);
  --faint: rgba(248, 246, 255, 0.38);

  --accent: #a78bfa;
  --accent-strong: #c4b5fd;
  --accent-deep: #7c3aed;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --accent-glow: rgba(167, 139, 250, 0.32);

  --success: #86efac;
  --warning: #facc15;

  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 18px 56px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.22);
  --shadow-float: 0 24px 74px rgba(0, 0, 0, 0.3);

  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 42px;

  --header-height: 52px;
  --header-shell-space: 48px;
  --shell: 1260px;
  --section-y: clamp(52px, 5vw, 82px);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #fbf8f3;
  --bg-soft: #f3eee7;
  --bg-deep: #ede6dc;

  --surface: rgba(255, 255, 255, 0.78);
  --surface-soft: rgba(42, 30, 54, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-premium: rgba(255, 255, 255, 0.82);

  --border: rgba(42, 30, 54, 0.13);
  --border-strong: rgba(42, 30, 54, 0.22);

  --text: #17111f;
  --muted: rgba(23, 17, 31, 0.72);
  --soft: rgba(23, 17, 31, 0.54);
  --faint: rgba(23, 17, 31, 0.36);

  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --accent-deep: #5b21b6;
  --accent-soft: rgba(124, 58, 237, 0.1);
  --accent-glow: rgba(124, 58, 237, 0.18);

  --shadow: 0 28px 90px rgba(82, 62, 108, 0.18);
  --shadow-soft: 0 18px 56px rgba(82, 62, 108, 0.12);
  --shadow-card: 0 18px 60px rgba(82, 62, 108, 0.1);
  --shadow-float: 0 24px 74px rgba(82, 62, 108, 0.14);
}

/* --------------------------------------------------------------------------
   02. Reset & Base
-------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 280px;
  font-family: var(--font-main);
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--accent-soft), transparent 34rem),
    radial-gradient(
      circle at 90% 10%,
      rgba(236, 72, 153, 0.1),
      transparent 30rem
    ),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 48%, var(--bg));
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--text);
  background: rgba(167, 139, 250, 0.34);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   03. Layout Base
-------------------------------------------------------------------------- */

.site-shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: var(--section-y) 0;
}

main {
  padding-top: var(--header-height);
}

main > section:nth-child(even) {
  background: linear-gradient(
    180deg,
    transparent,
    var(--surface-soft),
    transparent
  );
}

.kicker {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead,
.section-lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.82;
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 4.15vw, 4rem);
  line-height: 1;
  letter-spacing: -0.058em;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.cta-micro {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.cta-micro a {
  color: var(--accent-strong);
  font-weight: 800;
}

.section-micro {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   04. Buttons
-------------------------------------------------------------------------- */

.btn,
.header-cta {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.btn-primary,
.header-cta {
  color: #120a24;
  background: linear-gradient(135deg, #ddd6fe, var(--accent));
  box-shadow: 0 18px 42px var(--accent-glow);
}

/* Light theme primary buttons: clean solid premium pill, no edge artifact */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .header-cta,
html[data-theme="light"] .nav-command .nav-cta-primary,
html[data-theme="light"] .cta-primary {
  color: #160b2f;
  border-color: rgba(124, 58, 237, 0.16);
  background: #a78bfa;
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.16);
  background-clip: padding-box;
}

.btn-secondary,
.header-cta-soft {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
  box-shadow: none;
}

.btn-secondary:hover,
.header-cta-soft:hover {
  border-color: var(--accent);
  background: var(--surface-strong);
}

.btn-ghost {
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-soft);
}

.header-cta {
  min-height: 42px;
  padding-inline: 15px;
  font-size: 0.88rem;
}

/* Final interactive polish */
.btn:focus-visible,
.header-cta:focus-visible,
.nav-command a:focus-visible,
.menu-link:focus-visible,
.menu-theme-btn:focus-visible,
.proof-links a:focus-visible,
.project-link:focus-visible,
.price-card a:focus-visible,
.footer-nav a:focus-visible,
.footer-social a:focus-visible,
.footer-meta a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   05. Header
-------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  overflow: visible;
  background: rgba(7, 7, 17, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

html[data-theme="light"] .site-header {
  background: rgba(251, 248, 243, 0.78);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: var(--header-height);
  padding-top: 0;
  padding-bottom: 0;
  overflow: visible;
}

.site-header .header-inner {
  width: min(calc(100% - var(--header-shell-space)), var(--shell));
}

.brand {
  justify-self: start;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
  overflow: visible;
}

.brand-text {
  display: none !important;
}

.brand-logo {
  width: auto;
  height: 58px;
  max-width: 156px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
  opacity: 1;
}

/* Desktop command navigation */
.nav,
.nav-command {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: min(100%, 960px);
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(
    145deg,
    var(--surface-strong),
    var(--surface-soft)
  );
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav a,
.nav-command a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 820;
  white-space: nowrap;
  transition:
    color 0.22s var(--ease),
    background 0.22s var(--ease);
}

.nav a:hover,
.nav-command a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-divider {
  width: 1px;
  height: 22px;
  margin-inline: 4px;
  background: var(--border);
}

.nav-command .nav-cta {
  font-weight: 900;
}

.nav-command .nav-cta-soft {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.nav-command .nav-cta-primary {
  color: #120a24;
  background: linear-gradient(135deg, #ddd6fe, var(--accent));
  box-shadow: 0 14px 34px var(--accent-glow);
}

/* Desktop light theme header CTA hover */
@media (min-width: 1281px) {
  html[data-theme="light"] .nav-command .nav-cta {
    transition:
      transform 0.2s var(--ease),
      border-color 0.2s var(--ease),
      background 0.2s var(--ease),
      box-shadow 0.2s var(--ease),
      color 0.2s var(--ease);
  }

  html[data-theme="light"] .nav-command .nav-cta:hover,
  html[data-theme="light"] .nav-command .nav-cta:focus-visible {
    transform: translateY(-2px);
  }

  html[data-theme="light"] .nav-command .nav-cta-soft:hover,
  html[data-theme="light"] .nav-command .nav-cta-soft:focus-visible {
    color: var(--text);
    border-color: rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(82, 62, 108, 0.1);
  }

  html[data-theme="light"] .nav-command .nav-cta-primary:hover,
  html[data-theme="light"] .nav-command .nav-cta-primary:focus-visible {
    color: #160b2f;
    border-color: rgba(124, 58, 237, 0.18);
    background: #a78bfa;
    box-shadow: 0 16px 36px rgba(124, 58, 237, 0.18);
  }
}

/* Desktop dark theme header CTA hover */
@media (min-width: 1281px) {
  html[data-theme="dark"] .nav-command .nav-cta {
    transition:
      transform 0.2s var(--ease),
      border-color 0.2s var(--ease),
      background 0.2s var(--ease),
      box-shadow 0.2s var(--ease),
      color 0.2s var(--ease);
  }

  html[data-theme="dark"] .nav-command .nav-cta:hover,
  html[data-theme="dark"] .nav-command .nav-cta:focus-visible {
    transform: translateY(-2px);
  }

  html[data-theme="dark"] .nav-command .nav-cta-soft:hover,
  html[data-theme="dark"] .nav-command .nav-cta-soft:focus-visible {
    color: var(--text);
    border-color: rgba(196, 181, 253, 0.26);
    background: rgba(255, 255, 255, 0.085);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  }

  html[data-theme="dark"] .nav-command .nav-cta-primary:hover,
  html[data-theme="dark"] .nav-command .nav-cta-primary:focus-visible {
    color: #120a24;
    border-color: rgba(196, 181, 253, 0.26);
    background: linear-gradient(135deg, #ede9fe, #a78bfa 48%, #8b5cf6 100%);
    box-shadow: 0 18px 42px rgba(167, 139, 250, 0.32);
  }
}

.actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Remove old separated CTA buttons if any old class remains */
.actions .header-cta {
  display: none !important;
}

/* SVG-only theme button */
.theme-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent-strong);
  background: transparent;
  box-shadow: none;
  transition:
    color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.theme-btn:hover {
  color: var(--accent);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-1px) scale(1.04);
}

.theme-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 999px;
}

.theme-btn span,
.theme-btn span:first-child,
.theme-btn > #themeIcon,
#themeIcon,
#themeIconOverlay {
  width: 22px;
  height: 22px;
  display: grid !important;
  place-items: center;
  color: currentColor;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.theme-btn svg,
.theme-btn > #themeIcon svg {
  width: 22px;
  height: 22px;
  display: block;
  color: currentColor;
  stroke: currentColor;
}

.theme-btn span:last-child,
.theme-btn > #themeIcon + span {
  display: none !important;
}

.menu-btn {
  display: none;
  min-width: 54px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 900;
}

/* Compact header mode: 1280px and below */
@media (max-width: 1280px) {
  :root {
    --header-height: 48px;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .nav,
  .nav-command {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .site-header .actions > .theme-btn {
    display: none;
  }

  .site-header .actions {
    gap: 0;
  }

  .menu-btn {
    min-width: 68px;
    min-height: 41px;
    padding-inline: 14px;
    font-size: 0.84rem;
    font-weight: 850;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .brand-logo {
    width: 156px;
    height: 40px;
    max-width: 156px;
    max-height: 40px;
    object-fit: cover;
    object-position: center;
  }
}

/* Desktop premium header geometry */
@media (min-width: 1281px) {
  .site-header,
  .header-inner {
    height: var(--header-height);
    min-height: var(--header-height);
  }

  .site-header .brand {
    position: relative;
    min-width: 220px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    overflow: visible;
  }

  .site-header .brand-logo {
    position: absolute;
    left: 0;
    top: 50%;
    width: 550px;
    height: 85px;
    max-width: 550px;
    max-height: 85px;
    transform: translateY(-50%);
    object-fit: contain;
    object-position: left center;
  }

  .nav-command {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 40px;
    padding: 2px;
  }

  .nav-command > a {
    position: relative;
    z-index: 2;
  }

  .nav-command > a:not(.nav-cta) {
    transition:
      color 0.24s ease,
      text-shadow 0.24s ease;
  }

  .nav-command > a:not(.nav-cta):hover,
  .nav-command > a:not(.nav-cta):focus-visible {
    color: var(--text);
    background: transparent;
    text-shadow: 0 1px 14px rgba(139, 92, 246, 0.16);
  }

  .nav-command .nav-divider,
  .nav-command .nav-cta {
    position: relative;
    z-index: 3;
  }

  .nav-command .nav-cta {
    min-height: 34px;
    padding-top: 0;
    padding-bottom: 0;
    padding-inline: 12px;
  }

  .site-header .theme-btn {
    width: 32px;
    height: 32px;
    min-height: 32px;
  }

  /* Liquid hover layer */
  .nav-command::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: var(--liquid-w, 0px);
    height: var(--liquid-h, 0px);
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    transform: translate3d(var(--liquid-x, 0px), var(--liquid-y, 0px), 0)
      scale(0.9);
    transform-origin: center;
    transition:
      transform 0.52s cubic-bezier(0.18, 0.86, 0.22, 1),
      width 0.52s cubic-bezier(0.18, 0.86, 0.22, 1),
      height 0.52s cubic-bezier(0.18, 0.86, 0.22, 1),
      opacity 0.22s ease;
    background:
      radial-gradient(
        circle at 22% 20%,
        rgba(255, 255, 255, 0.95),
        transparent 34%
      ),
      radial-gradient(
        circle at 80% 76%,
        rgba(139, 92, 246, 0.34),
        transparent 45%
      ),
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.7),
        rgba(139, 92, 246, 0.18)
      );
    border: 1px solid rgba(139, 92, 246, 0.16);
    box-shadow:
      0 12px 30px rgba(139, 92, 246, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  .nav-command::after {
    content: "";
    position: absolute;
    left: var(--liquid-glow-x, 50%);
    top: 50%;
    width: 120px;
    height: 44px;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition:
      left 0.62s cubic-bezier(0.18, 0.86, 0.22, 1),
      opacity 0.24s ease;
    background: radial-gradient(
      circle,
      rgba(139, 92, 246, 0.2),
      transparent 70%
    );
    filter: blur(13px);
  }

  .nav-command.is-liquid-active::before {
    opacity: 1;
    transform: translate3d(var(--liquid-x, 0px), var(--liquid-y, 0px), 0)
      scale(1);
  }

  .nav-command.is-liquid-active::after {
    opacity: 1;
  }

  html[data-theme="dark"] .nav-command::before {
    background:
      radial-gradient(
        circle at 24% 18%,
        rgba(255, 255, 255, 0.16),
        transparent 34%
      ),
      radial-gradient(
        circle at 80% 78%,
        rgba(168, 85, 247, 0.42),
        transparent 46%
      ),
      linear-gradient(135deg, rgba(76, 29, 149, 0.38), rgba(139, 92, 246, 0.2));
    border-color: rgba(196, 181, 253, 0.18);
    box-shadow:
      0 12px 32px rgba(139, 92, 246, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  html[data-theme="dark"] .nav-command::after {
    background: radial-gradient(
      circle,
      rgba(168, 85, 247, 0.25),
      transparent 70%
    );
  }
}

@media (prefers-reduced-motion: reduce) and (min-width: 1281px) {
  .nav-command::before,
  .nav-command::after,
  .nav-command > a:not(.nav-cta) {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   06. Hero
-------------------------------------------------------------------------- */

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: clamp(38px, 4.2vw, 64px);
  padding-bottom: clamp(34px, 4vw, 56px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -230px;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.22),
    transparent 62%
  );
}

.hero::after {
  width: 480px;
  height: 480px;
  left: -190px;
  bottom: -160px;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.13),
    transparent 64%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.62fr);
  align-items: start;
  gap: clamp(22px, 3.8vw, 54px);
}

.hero-copy h1 {
  max-width: 700px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.7rem, 4.7vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-tagline {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.hero-copy .lead {
  max-width: 660px;
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-copy .cta-micro,
.hero-copy .hero-meta,
.hero-copy .hero-note {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.hero-panel {
  position: relative;
  align-self: center;
  max-width: 460px;
  min-height: auto;
  margin-left: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at top right,
      rgba(167, 139, 250, 0.18),
      transparent 56%
    ),
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(196, 181, 253, 0.18),
    transparent 64%
  );
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.panel-kicker {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

.panel-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.panel-list span {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.94rem;
}

.panel-list span::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 18px rgba(134, 239, 172, 0.46);
}

/* --------------------------------------------------------------------------
   07. Services
-------------------------------------------------------------------------- */

.services-grid {
  display: grid;
}
.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.service-card,
.workflow-card,
.proof-card,
.principle-card,
.trust-item,
.price-card,
.project-card,
.contact-card,
.music-callout,
.pricing-snapshot {
  border: 1px solid var(--border);
  background: linear-gradient(
    145deg,
    var(--surface-premium),
    var(--surface-soft)
  );
  box-shadow: var(--shadow-card);
}

/* Light theme shared card contrast */
html[data-theme="light"] .service-card,
html[data-theme="light"] .workflow-card,
html[data-theme="light"] .proof-card,
html[data-theme="light"] .principle-card,
html[data-theme="light"] .trust-item,
html[data-theme="light"] .price-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .music-callout,
html[data-theme="light"] .pricing-snapshot {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.58)
  );
}

/* Desktop card hover polish */
@media (hover: hover) and (pointer: fine) {
  .service-card,
  .workflow-card,
  .proof-card,
  .principle-card,
  .trust-item,
  .price-card {
    transition:
      transform 0.22s var(--ease),
      border-color 0.22s var(--ease),
      background 0.22s var(--ease),
      box-shadow 0.22s var(--ease);
  }

  .service-card:hover,
  .workflow-card:hover,
  .proof-card:hover,
  .principle-card:hover,
  .trust-item:hover,
  .price-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background:
      radial-gradient(circle at top right, var(--accent-soft), transparent 44%),
      linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
    box-shadow: var(--shadow-soft);
  }

  html[data-theme="light"] .service-card:hover,
  html[data-theme="light"] .workflow-card:hover,
  html[data-theme="light"] .proof-card:hover,
  html[data-theme="light"] .principle-card:hover,
  html[data-theme="light"] .trust-item:hover,
  html[data-theme="light"] .price-card:hover {
    background:
      radial-gradient(
        circle at top right,
        rgba(124, 58, 237, 0.08),
        transparent 44%
      ),
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.98),
        rgba(255, 255, 255, 0.68)
      );
    box-shadow: 0 20px 54px rgba(82, 62, 108, 0.12);
  }
}

.service-card {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 26px;
}

.service-card h3,
.workflow-card h3,
.proof-card h3,
.principle-card h3,
.price-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.service-card h3 {
  margin-bottom: 0;
  font-size: 1.16rem;
}

.service-card p,
.workflow-card p,
.proof-card p,
.principle-card p,
.price-card p {
  color: var(--muted);
  line-height: 1.72;
}

.service-card p {
  margin: 12px 0 0;
  font-size: 0.96rem;
  line-height: 1.65;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.service-card .card-spacer {
  flex: 1;
}

.section-micro {
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   07B. Homepage Service Pathway
-------------------------------------------------------------------------- */

.service-pathway {
  scroll-margin-top: calc(var(--header-height) + 26px);
  margin-top: clamp(24px, 4vw, 42px);
  padding: clamp(24px, 3.6vw, 38px);
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at top right,
      rgba(167, 139, 250, 0.16),
      transparent 44%
    ),
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

html[data-theme="light"] .service-pathway {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.09),
      transparent 44%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(255, 255, 255, 0.62)
    );
}

.pathway-head {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1fr);
  gap: 20px 34px;
  align-items: end;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.pathway-head h3 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.85rem, 3vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.pathway-head p:not(.kicker) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.pathway-shell {
  position: relative;
}

.pathway-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.pathway-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    radial-gradient(
      circle at top right,
      rgba(167, 139, 250, 0.1),
      transparent 44%
    ),
    linear-gradient(145deg, var(--surface-premium), var(--surface-soft));
  box-shadow: var(--shadow-card);
}

html[data-theme="light"] .pathway-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.07),
      transparent 44%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.62)
    );
}

.pathway-eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pathway-card h4 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 1.5vw, 1.48rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.pathway-card strong {
  display: block;
  margin-top: 16px;
  color: var(--text);
  font-size: clamp(1.65rem, 2.2vw, 2.18rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.pathway-card p:not(.pathway-eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.66;
}

.pathway-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.pathway-card li {
  position: relative;
  padding-left: 18px;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.48;
}

.pathway-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.pathway-card .btn {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  text-align: center;
  white-space: normal;
}

.pathway-arrow,
.pathway-dots {
  display: none;
}

.pathway-note {
  margin-top: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .pathway-card {
    transition:
      transform 0.22s var(--ease),
      border-color 0.22s var(--ease),
      box-shadow 0.22s var(--ease);
  }

  .pathway-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pathway-track {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   08. Start / Workflow / Pricing
-------------------------------------------------------------------------- */

.start.section {
  padding-top: clamp(54px, 5vw, 82px);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.workflow-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 26px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-card p {
  margin: 12px 0 0;
}

.pricing-snapshot {
  margin-top: 24px;
  padding: clamp(24px, 3.6vw, 36px);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at top right,
      rgba(167, 139, 250, 0.16),
      transparent 42%
    ),
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
}

.pricing-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.pricing-head h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.pricing-head p,
.pricing-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.price-card {
  min-height: 214px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.price-label {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-card strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.price-card p:not(.price-label) {
  margin: 12px 0 0;
  line-height: 1.62;
}

.price-card a,
.pricing-meta a,
.proof-links a,
.project-link {
  color: var(--accent-strong);
  font-weight: 850;
}

.price-card a {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
}

.price-card a,
.proof-links a,
.project-link {
  transition:
    color 0.22s var(--ease),
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background 0.22s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .price-card a:hover,
  .project-link:hover {
    color: var(--accent);
    transform: translateX(3px);
  }

  .proof-links a:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--surface);
    transform: translateY(-2px);
  }
}

.pricing-meta {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   09. Proof
-------------------------------------------------------------------------- */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.proof-card {
  min-height: 210px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.proof-card h3 {
  margin: 0;
}

.proof-card p {
  margin: 14px 0 0;
}

.proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.proof-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
}

/* --------------------------------------------------------------------------
   10. Portfolio + Music
-------------------------------------------------------------------------- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background 0.22s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 42%),
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
}

.project-thumb {
  min-height: 240px;
  cursor: zoom-in;
  background:
    radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 38%),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    );
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.45s var(--ease),
    filter 0.45s var(--ease);
}

.project-card:hover .project-thumb img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}

.project-thumb.has-missing-image,
.has-missing-image {
  display: grid;
  place-items: center;
  min-height: 240px;
}

.project-thumb.has-missing-image::after {
  content: "Preview";
  color: var(--soft);
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

img.is-missing {
  display: none;
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-body h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.project-body p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--soft);
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 720;
}

.project-link {
  margin-top: auto;
  padding-top: 22px;
}

.music-callout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(
      circle at top right,
      rgba(167, 139, 250, 0.2),
      transparent 46%
    ),
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
}

.music-callout h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.music-callout p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   11. About
-------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.about-profile {
  position: relative;
  display: grid;
  place-items: center;
}

.about-profile::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top, var(--accent-soft), transparent 58%),
    var(--surface-soft);
  border: 1px solid var(--border);
}

.about-profile picture,
.about-profile img {
  width: min(100%, 280px);
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 34px;
}

.about-profile picture {
  cursor: zoom-in;
  overflow: hidden;
}

.about-profile img {
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.45s var(--ease),
    filter 0.45s var(--ease);
}

.about-profile:hover img {
  transform: scale(1.02);
  filter: saturate(1.04) contrast(1.02);
}

.about-content {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    145deg,
    var(--surface-premium),
    var(--surface-soft)
  );
  box-shadow: var(--shadow-card);
}

.about-content h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.about-content p {
  color: var(--muted);
  line-height: 1.8;
}

.about-micro {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-strong) !important;
  background: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 780;
}

/* --------------------------------------------------------------------------
   12. Principles / Trust
-------------------------------------------------------------------------- */

.principles-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

.principles-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.principle-card {
  min-height: 230px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.principle-card p {
  margin: 14px 0 0;
}

.trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  min-height: 128px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 34px 24px 24px;
  border-radius: var(--radius-lg);
  color: var(--text);
  font-weight: 780;
  line-height: 1.55;
  text-align: left;
}

.trust-icon {
  flex: 0 0 24px;
  width: 24px;
  display: inline-flex;
  justify-content: center;
  line-height: 1.25;
  margin-top: 2px;
}

.trust-text {
  min-width: 0;
  flex: 1;
  display: block;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   13. Contact
-------------------------------------------------------------------------- */

.contact.section {
  padding-top: clamp(64px, 6vw, 104px);
  padding-bottom: clamp(64px, 6vw, 104px);
}

.contact-card {
  width: min(calc(100% - 40px), 1180px);
  max-width: 1180px;
  display: block;
  margin-inline: auto;
  padding: clamp(34px, 5.4vw, 72px);
  border-radius: clamp(30px, 4vw, 46px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(167, 139, 250, 0.2), transparent 46%),
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
}

.contact-copy,
.contact-side {
  width: 100%;
  max-width: none;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contact-copy .kicker {
  margin-bottom: 18px;
}

.contact-copy h2,
.contact-card h2 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(2.45rem, 4.6vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: -0.068em;
  text-align: center;
}

.contact-copy .section-lead,
.contact-card .section-lead {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.76;
  text-align: center;
}

.contact-mini {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  justify-content: center;
  margin: 24px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

.contact-side {
  margin-top: 30px;
}

.contact-actions {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.62fr;
  gap: 12px;
  margin: 0 auto;
}

.contact-actions .btn {
  width: 100%;
  min-height: 50px;
  white-space: nowrap;
}

.contact-checklist {
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
}

.contact-checklist li {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.24;
  text-align: left;
}

.contact-checklist li::before {
  content: "";
  position: static;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 18px rgba(134, 239, 172, 0.45);
  transform: none;
}

.contact-notes {
  width: min(100%, 820px);
  display: grid;
  gap: 8px;
  margin: 20px auto 0;
  text-align: center;
}

.contact-notes p {
  margin: 0;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.62;
}

/* --------------------------------------------------------------------------
   14. Footer
-------------------------------------------------------------------------- */

/* Light theme green contrast */
html[data-theme="light"] {
  --success: #16a34a;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 78px 0 28px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, var(--accent-soft), transparent 34rem),
    rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .site-footer {
  background:
    radial-gradient(circle at top left, var(--accent-soft), transparent 34rem),
    rgba(255, 255, 255, 0.42);
}

html[data-theme="light"] .footer-status {
  color: #15803d;
  border-color: rgba(22, 163, 74, 0.26);
  background: linear-gradient(
    180deg,
    rgba(240, 253, 244, 0.96),
    rgba(220, 252, 231, 0.72)
  );
  box-shadow: 0 12px 34px rgba(22, 163, 74, 0.1);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand,
.footer-column {
  min-width: 0;
}

.footer-status {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(134, 239, 172, 0.22);
  border-radius: 999px;
  color: var(--success);
  background: rgba(134, 239, 172, 0.08);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
}

.footer-tagline {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 22px;
}

.footer-social a {
  position: relative;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0 0 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition:
    color 0.22s var(--ease),
    transform 0.22s var(--ease),
    letter-spacing 0.22s var(--ease);
}

.footer-social a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  border-radius: 999px;
  opacity: 0.42;
  background: currentColor;
  transform: scaleX(0.42);
  transform-origin: left center;
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--accent-strong);
  transform: translateY(-1px);
  letter-spacing: 0.16em;
}

.footer-social a:hover::after,
.footer-social a:focus-visible::after {
  opacity: 0.85;
  transform: scaleX(1);
}

.footer-column {
  transition: transform 0.22s var(--ease);
}

.footer-column:hover {
  transform: translateY(-2px);
}

.footer-column h4 {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-nav a,
.footer-nav span {
  max-width: 100%;
  color: var(--muted);
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-nav a {
  position: relative;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.footer-nav a::after {
  content: "→";
  display: inline-block;
  color: var(--accent-strong);
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent-strong);
  transform: translateX(3px);
}

.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--soft);
  font-size: 0.9rem;
}

.copyright {
  color: var(--muted);
  line-height: 1.55;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px 18px;
}

.footer-meta a,
.footer-meta span {
  color: var(--muted);
  line-height: 1.5;
}

.footer-meta a {
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--accent-strong);
}

/* Homepage footer should not show support/donation link */
.footer-meta a[href*="paypal"],
.footer-meta a[href*="buy.stripe.com"] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   15. Mobile Menu Overlay
-------------------------------------------------------------------------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 28px;
  max-width: 100vw;
  background:
    radial-gradient(
      circle at top right,
      rgba(167, 139, 250, 0.18),
      transparent 34rem
    ),
    rgba(3, 3, 10, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s var(--ease);
}

html[data-theme="light"] .menu-overlay {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.14),
      transparent 34rem
    ),
    rgba(251, 248, 243, 0.82);
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
}

.menu-nav {
  width: min(100%, 520px);
  display: grid;
  gap: 10px;
}

.menu-link {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  background: var(--surface);
  font-size: clamp(1.02rem, 4vw, 1.28rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.menu-actions {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  justify-content: center;
}

.menu-theme-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   16. Sticky CTA + Scroll Top
-------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 980;
  display: none;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 7, 17, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
}

html[data-theme="light"] .sticky-cta {
  background: rgba(251, 248, 243, 0.84);
}

.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-cta a {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
}

.cta-primary {
  color: #120a24;
  background: linear-gradient(135deg, #ddd6fe, var(--accent));
}

.cta-secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.scroll-top-btn {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 970;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--accent-strong);
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    color 0.22s var(--ease);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn svg {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(124, 58, 237, 0.2));
  transition:
    transform 0.22s var(--ease),
    filter 0.22s var(--ease),
    color 0.22s var(--ease);
}

.scroll-top-btn:hover {
  color: var(--accent);
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translateY(-2px);
}

.scroll-top-btn:hover svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 16px 30px rgba(124, 58, 237, 0.32));
}

.scroll-top-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   17. Image Preview / Pagination / Motion Helpers
-------------------------------------------------------------------------- */

/* Global visibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}

[hidden] {
  display: none !important;
}

/* Image preview modal */
.image-preview {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 26px;
  background:
    radial-gradient(
      circle at top right,
      rgba(167, 139, 250, 0.18),
      transparent 34rem
    ),
    rgba(3, 3, 10, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

html[data-theme="light"] .image-preview {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.13),
      transparent 34rem
    ),
    rgba(251, 248, 243, 0.82);
}

.image-preview.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-preview-card {
  width: min(100%, 980px);
  max-height: min(82vh, 820px);
  display: grid;
  gap: 14px;
}

.image-preview-img-wrap {
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-preview-img-wrap img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.08);
}

.image-preview-caption {
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  font-size: 0.95rem;
}

.image-preview-close {
  position: fixed;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

/* Reusable pagination */
.pagination-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.pagination-controls.is-visible {
  display: flex;
}

.pagination-btn,
.pagination-page {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-weight: 850;
}

.pagination-btn {
  padding: 0 15px;
}

.pagination-page {
  min-width: 42px;
  padding: 0 12px;
}

.pagination-page.is-active {
  color: #120a24;
  background: linear-gradient(135deg, #ddd6fe, var(--accent));
  box-shadow: 0 14px 34px var(--accent-glow);
}

.pagination-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.72s var(--ease),
    transform 0.72s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Form Thanks Pages
-------------------------------------------------------------------------- */

.thanks-hero {
  min-height: calc(100svh - var(--header-height, 52px));
  display: flex;
  align-items: center;
  padding-top: clamp(30px, 4vw, 56px);
  padding-bottom: clamp(34px, 4vw, 64px);
}

.thanks-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.58fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
}

.thanks-card,
.thanks-side {
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 46%),
    linear-gradient(145deg, var(--surface-premium), var(--surface-soft));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html[data-theme="light"] .thanks-card,
html[data-theme="light"] .thanks-side {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.08),
      transparent 46%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.66)
    );
}

.thanks-card {
  border-radius: var(--radius-xl);
  padding: clamp(26px, 3.6vw, 44px);
}

.thanks-card h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.35rem, 4.6vw, 4.85rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.thanks-card .section-lead {
  max-width: 720px;
  margin-top: clamp(16px, 2vw, 22px);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 2.6vw, 28px);
}

.thanks-side {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 30px);
}

.thanks-side ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.thanks-side li {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 11px 13px;
  color: var(--muted);
  background: var(--surface-soft);
  line-height: 1.45;
}

.thanks-side li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.48em;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(255, 255, 255, 0.95),
      transparent 34%
    ),
    linear-gradient(135deg, var(--accent), #62d6a2);
  box-shadow:
    0 0 0 5px var(--accent-soft),
    0 8px 18px rgba(124, 82, 255, 0.22);
}

@media (max-width: 1020px) {
  .thanks-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .thanks-hero {
    align-items: flex-start;
  }

  .thanks-card h1 {
    max-width: 820px;
  }
}

@media (max-width: 860px) {
  .thanks-actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .thanks-hero {
    min-height: auto;
    padding-top: 34px;
  }

  .thanks-card h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
    letter-spacing: -0.06em;
  }

  .thanks-card,
  .thanks-side {
    padding: 22px;
  }
}

/* --------------------------------------------------------------------------
   18. Start Project Page
-------------------------------------------------------------------------- */

.start-project-hero {
  padding-top: clamp(62px, 6vw, 104px);
}

.start-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.start-project-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.start-project-copy h1,
.start-project-aside h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.start-project-copy h1 {
  max-width: 780px;
  font-size: clamp(2.65rem, 7vw, 6.8rem);
}

.start-project-aside h2 {
  font-size: clamp(2rem, 4vw, 4.35rem);
}

.start-project-copy .section-lead {
  max-width: 720px;
  margin-top: 24px;
}

.start-project-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.start-project-points span,
.start-project-note li {
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface-soft);
}

.start-project-points span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 750;
}

.start-project-note,
.start-project-form,
.start-project-aside {
  border: 1px solid var(--border);
  background: linear-gradient(
    145deg,
    var(--surface-premium),
    var(--surface-soft)
  );
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.start-project-note {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}

.start-project-note ul {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding: 0;
}

.start-project-note li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-radius: 18px;
  padding: 12px 14px;
  line-height: 1.45;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.start-project-note li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(255, 255, 255, 0.95),
      transparent 34%
    ),
    linear-gradient(135deg, var(--accent), #62d6a2);
  box-shadow:
    0 0 0 5px var(--accent-soft),
    0 8px 18px rgba(124, 82, 255, 0.22);
}

.start-project-note li:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  color: var(--text);
  background: linear-gradient(
    145deg,
    rgba(124, 82, 255, 0.1),
    var(--surface-soft)
  );
}

.start-project-form-section {
  padding-top: clamp(28px, 4vw, 54px);
}

.start-project-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}

.start-project-aside p {
  color: var(--muted);
  line-height: 1.78;
}

.project-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.project-link:hover {
  color: var(--text);
}

.start-project-form {
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3.4vw, 42px);
}

.form-group-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 6px 0 18px;
  padding-top: 10px;
}

.form-group-title:not(:first-of-type) {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.form-group-title span {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.form-group-title h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  letter-spacing: -0.025em;
}

.form-group-title p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-row {
  display: grid;
  gap: 18px;
}

.form-row.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  align-content: start;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field select {
  align-self: start;
}

.form-field label {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

html[data-theme="light"] .form-field input,
html[data-theme="light"] .form-field select,
html[data-theme="light"] .form-field textarea {
  background-color: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .form-field select {
  background-color: rgba(255, 255, 255, 0.88);
}

.form-field select {
  display: block;
  height: 56px;
  line-height: 1.2;
  margin: 0;
  padding: 0 54px 0 15px;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.055);
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%237C52FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
  background-size: 16px 16px;
}

.form-field select::-ms-expand {
  display: none;
}

.form-field select option {
  color: #161320;
  background-color: #ffffff;
}

html[data-theme="dark"] .form-field select option {
  color: #f7f2ff;
  background-color: #191720;
}

.form-field select:invalid {
  color: var(--faint);
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.65;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--faint);
}

.field-help,
.form-trust-note {
  margin: 0;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.choice-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

html[data-theme="light"] .choice-card {
  background: rgba(255, 255, 255, 0.76);
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  color: var(--text);
}

.choice-card input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.choice-card span {
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.45;
}

.choice-card:has(input:checked) {
  border-color: rgba(124, 82, 255, 0.55);
  color: var(--text);
  background: linear-gradient(
    145deg,
    rgba(124, 82, 255, 0.12),
    rgba(98, 214, 162, 0.08)
  );
  box-shadow: 0 14px 34px rgba(124, 82, 255, 0.12);
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form-trust-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.project-wizard {
  overflow: hidden;
}

.wizard-progress-card {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    rgba(124, 82, 255, 0.1),
    rgba(255, 255, 255, 0.035)
  );
}

.wizard-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wizard-progress-card h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: -0.03em;
}

.wizard-progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.wizard-progress-track span {
  display: block;
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #62d6a2);
  transition: width 0.25s var(--ease);
}

.wizard-step-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-step-dots span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--soft);
  background: var(--surface-soft);
  font-size: 0.76rem;
  font-weight: 850;
}

.wizard-step-dots span.is-active {
  color: var(--text);
  border-color: rgba(124, 82, 255, 0.55);
  background: var(--accent-soft);
}

.wizard-step-dots span.is-done {
  color: var(--accent);
}

.wizard-step[hidden] {
  display: none;
}

.wizard-step {
  animation: wizardFade 0.22s var(--ease);
}

@keyframes wizardFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.upload-field,
.upload-placeholder {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px dashed rgba(124, 82, 255, 0.55);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(124, 82, 255, 0.1),
    rgba(98, 214, 162, 0.055)
  );
}

.upload-placeholder {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.upload-placeholder-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  flex-shrink: 0;
}

.upload-placeholder-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.upload-field-main {
  min-width: 0;
}

.upload-field label,
.upload-placeholder h4 {
  display: block;
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
}

.upload-field p,
.upload-placeholder p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.upload-picker {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.upload-pick-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.1rem !important;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.98rem !important;
  font-weight: 900 !important;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(124, 82, 255, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.upload-pick-status {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.3;
}

.upload-pick-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 20px 38px rgba(124, 82, 255, 0.28);
}

.upload-pick-button:active {
  transform: translateY(0);
}

.upload-input:focus-visible + .upload-pick-button {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 4px;
}

@media (max-width: 520px) {
  .upload-picker {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: auto;
    padding: 16px 12px;
    text-align: center;
  }

  .upload-pick-status {
    font-size: 0.88rem;
  }

  .upload-pick-button {
    width: auto;
    max-width: 100%;
    min-height: 44px;
    padding-inline: 1rem !important;
  }

  .upload-file-item {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .upload-file-actions {
    justify-content: center;
  }

  .upload-file-action {
    flex: 1;
  }

  .upload-preview-modal {
    padding: 12px;
  }

  .upload-preview-dialog {
    width: 100%;
    max-width: 100%;
    border-radius: 22px;
  }

  .upload-preview-header {
    padding: 12px 14px;
  }

  .upload-preview-frame {
    padding: 10px;
  }

  .upload-preview-frame img {
    max-height: 68vh;
  }
}

.upload-file-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.upload-file-list span {
  display: block;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-raised) 90%, transparent);
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.upload-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-raised) 90%, transparent);
}

.upload-file-meta {
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.upload-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.upload-file-action {
  min-height: 34px;
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.upload-file-action:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
}

.upload-file-action-danger:hover {
  border-color: rgba(220, 38, 38, 0.35);
  color: #dc2626;
}

.upload-preview-modal[hidden] {
  display: none !important;
}

.upload-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.upload-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 11, 22, 0.72);
  backdrop-filter: blur(10px);
}

.upload-preview-dialog {
  position: relative;
  width: min(920px, 100%);
  max-width: 100%;
  max-height: 90vh;
  margin: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  box-sizing: border-box;
}

.upload-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.upload-preview-header strong {
  min-width: 0;
  color: var(--text);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-preview-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-raised) 92%, transparent);
  color: var(--text);
  line-height: 0;
  cursor: pointer;
}

.upload-preview-close svg {
  width: 17px;
  height: 17px;
  display: block;
  transform: translateY(1px);
}

.upload-preview-close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.upload-preview-frame {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 14px;
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  box-sizing: border-box;
  overflow: hidden;
}

.upload-preview-frame img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 18px;
}

body.is-upload-preview-open {
  overflow: hidden;
}

.upload-limit-note {
  margin-top: 10px !important;
  font-size: 0.86rem;
}

.upload-placeholder .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.68;
}

.upload-field {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.upload-field > .upload-placeholder-icon {
  justify-self: start;
}

.upload-field-main {
  width: 100%;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.review-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  background: var(--surface-soft);
}

.review-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.review-card strong {
  display: block;
  color: var(--text);
  line-height: 1.45;
}

.consent-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  background: linear-gradient(
    145deg,
    rgba(124, 82, 255, 0.08),
    rgba(255, 255, 255, 0.035)
  );
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.consent-card:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  color: var(--text);
}

.consent-card input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.consent-card span {
  line-height: 1.6;
  font-size: 0.92rem;
  font-weight: 700;
}

.consent-card:has(input:checked) {
  border-color: rgba(98, 214, 162, 0.4);
  color: var(--text);
  background: linear-gradient(
    145deg,
    rgba(98, 214, 162, 0.1),
    rgba(124, 82, 255, 0.08)
  );
}

.wizard-demo-message {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(98, 214, 162, 0.35);
  border-radius: 20px;
  color: var(--text);
  background: linear-gradient(
    145deg,
    rgba(98, 214, 162, 0.12),
    rgba(124, 82, 255, 0.08)
  );
}

.wizard-demo-message[hidden] {
  display: none;
}

.wizard-demo-message span {
  color: var(--soft);
  line-height: 1.55;
}

/* Start Project Wizard Final Polish */

.project-wizard {
  position: relative;
}

.project-wizard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 18% 8%,
      rgba(124, 82, 255, 0.14),
      transparent 34%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(98, 214, 162, 0.08),
      transparent 30%
    );
  opacity: 0.78;
}

.project-wizard > * {
  position: relative;
  z-index: 1;
}

.project-wizard .form-group-title {
  margin-top: 2px;
}

.project-wizard .form-group-title h3 {
  max-width: 680px;
}

.project-wizard .form-group-title p {
  max-width: 760px;
}

.wizard-progress-card {
  position: relative;
  overflow: hidden;
}

.wizard-progress-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(124, 82, 255, 0.12);
  filter: blur(22px);
  pointer-events: none;
}

.wizard-progress-card h3,
.wizard-progress-track,
.wizard-step-dots {
  position: relative;
  z-index: 1;
}

.wizard-step {
  min-height: 420px;
}

.wizard-step .form-field:last-child {
  margin-bottom: 0;
}

.wizard-step-dots span {
  white-space: nowrap;
}

.project-wizard .choice-card {
  min-height: 62px;
}

.project-wizard .choice-card span {
  overflow-wrap: anywhere;
}

.project-wizard .form-field textarea {
  scrollbar-width: thin;
}

.wizard-actions .btn {
  min-width: 180px;
}

.upload-placeholder {
  position: relative;
  overflow: hidden;
}

.upload-placeholder::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(124, 82, 255, 0.12);
  pointer-events: none;
}

.review-card {
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: linear-gradient(
    145deg,
    rgba(124, 82, 255, 0.09),
    var(--surface-soft)
  );
}

/* --------------------------------------------------------------------------
   Free Quick Check Page
-------------------------------------------------------------------------- */

.free-check-hero {
  padding-top: clamp(62px, 6vw, 104px);
}

.free-check-grid,
.free-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.74fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.free-check-copy h1,
.free-check-aside h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.free-check-copy h1 {
  max-width: 780px;
  font-size: clamp(2.65rem, 7vw, 6.4rem);
}

.free-check-copy .section-lead {
  max-width: 720px;
  margin-top: 24px;
}

.free-check-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.free-check-points span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.88rem;
  font-weight: 750;
}

.free-check-panel,
.free-check-form,
.free-check-aside {
  border: 1px solid var(--border);
  background: linear-gradient(
    145deg,
    var(--surface-premium),
    var(--surface-soft)
  );
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.free-check-panel {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}

.free-check-panel ul {
  list-style: none;
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding: 0;
}

.free-check-panel li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--surface-soft);
  line-height: 1.45;
}

.free-check-panel li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(255, 255, 255, 0.95),
      transparent 34%
    ),
    linear-gradient(135deg, var(--accent), #62d6a2);
  box-shadow:
    0 0 0 5px var(--accent-soft),
    0 8px 18px rgba(124, 82, 255, 0.22);
}

.free-check-form-section {
  padding-top: clamp(28px, 4vw, 54px);
}

.free-check-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}

.free-check-aside h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.free-check-aside p {
  color: var(--muted);
  line-height: 1.78;
}

.free-check-form {
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3.4vw, 42px);
}

@media (min-width: 961px) {
  .free-check-panel {
    margin-top: clamp(28px, 4vw, 70px);
  }
}

.free-check-success {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(98, 214, 162, 0.35);
  border-radius: 20px;
  color: var(--text);
  background: linear-gradient(
    145deg,
    rgba(98, 214, 162, 0.12),
    rgba(124, 82, 255, 0.08)
  );
}

.free-check-success[hidden] {
  display: none;
}

.free-check-success span {
  color: var(--soft);
  line-height: 1.55;
}

.form-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.form-success-actions .btn {
  min-height: auto;
  padding: 0.72rem 1rem;
  font-size: 0.86rem;
}

@media (max-width: 520px) {
  .form-success-actions {
    display: grid;
  }

  .form-success-actions .btn {
    width: 100%;
  }
}

.field-error {
  display: none;
  margin: 0;
  color: #d94657;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.5;
}

.form-field input[data-url-field]:invalid:not(:focus):not(:placeholder-shown) {
  border-color: rgba(217, 70, 87, 0.72);
  box-shadow: 0 0 0 4px rgba(217, 70, 87, 0.12);
}

.form-field
  input[data-url-field]:invalid:not(:focus):not(:placeholder-shown)
  ~ .field-error {
  display: block;
}

/* --------------------------------------------------------------------------
   18B. Pay Page
-------------------------------------------------------------------------- */

.pay-hero {
  padding-top: calc(var(--header-height) + clamp(44px, 6vw, 86px));
}

.pay-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.pay-hero-copy h1 {
  max-width: 840px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3.25rem, 7vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.pay-hero-copy .section-lead {
  max-width: 720px;
  margin-top: 22px;
}

.pay-notice,
.payment-group,
.payment-card {
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 46%),
    linear-gradient(145deg, var(--surface-premium), var(--surface-soft));
  box-shadow: var(--shadow-card);
}

html[data-theme="light"] .pay-notice,
html[data-theme="light"] .payment-group,
html[data-theme="light"] .payment-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.08),
      transparent 46%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.62)
    );
}

.pay-notice {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}

.pay-notice h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.pay-notice ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pay-notice li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.62;
}

.pay-notice li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.payment-group-list {
  display: grid;
  gap: 22px;
}

.payment-group {
  scroll-margin-top: calc(var(--header-height) + 22px);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3.4vw, 38px);
}

.payment-group-head {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-bottom: clamp(22px, 3vw, 32px);
}

.payment-group-head .kicker {
  margin-bottom: 4px;
}

.payment-group-head h3 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.95rem, 3.4vw, 3.35rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.payment-group-head p:not(.kicker) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.72;
}

.payment-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

#care .payment-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.payment-card {
  min-height: 292px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border-radius: var(--radius-md);
  padding: 22px;
}

.payment-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.payment-card strong {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(1.7rem, 2.2vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.payment-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.payment-card .btn {
  width: 100%;
  min-width: 0;
  text-align: center;
  white-space: normal;
}

.payment-group.is-targeted-group {
  border-color: rgba(124, 58, 237, 0.36);
  box-shadow:
    0 28px 90px rgba(124, 58, 237, 0.12),
    var(--shadow-card);
}

.payment-card {
  position: relative;
  overflow: hidden;
}

.payment-card:focus:not(:focus-visible) {
  outline: none;
}

.payment-card.is-targeted {
  border-color: rgba(124, 58, 237, 0.58);
  outline: 1px solid rgba(124, 58, 237, 0.34);
  outline-offset: -2px;
  box-shadow:
    0 24px 80px rgba(124, 58, 237, 0.16),
    0 0 0 1px rgba(167, 139, 250, 0.2) inset,
    var(--shadow-card);
}

.payment-card.is-targeted::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(167, 139, 250, 0.16),
      transparent 38%
    ),
    linear-gradient(135deg, rgba(124, 58, 237, 0.08), transparent 42%);
  opacity: 0.9;
}

.selected-package-badge {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-card.is-targeted > *:not(.selected-package-badge) {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] .payment-group.is-targeted-group {
  border-color: rgba(124, 58, 237, 0.32);
  box-shadow:
    0 28px 90px rgba(124, 58, 237, 0.11),
    var(--shadow-card);
}

html[data-theme="light"] .payment-card.is-targeted {
  border-color: rgba(124, 58, 237, 0.52);
  box-shadow:
    0 24px 80px rgba(124, 58, 237, 0.14),
    0 0 0 1px rgba(124, 58, 237, 0.14) inset,
    var(--shadow-card);
}

html[data-theme="light"] .selected-package-badge {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
}

@media (hover: hover) and (pointer: fine) {
  .payment-card {
    transition:
      transform 0.22s var(--ease),
      border-color 0.22s var(--ease),
      box-shadow 0.22s var(--ease);
  }

  .payment-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
  }
}

/* --------------------------------------------------------------------------
   18C. Privacy Policy Page
-------------------------------------------------------------------------- */

.privacy-hero {
  padding-top: calc(var(--header-height) + clamp(44px, 6vw, 86px));
}

.privacy-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.privacy-hero-copy h1 {
  max-width: 920px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 6.4vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.privacy-hero-copy .section-lead {
  max-width: 760px;
  margin-top: 22px;
}

.privacy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.privacy-meta span,
.privacy-mini-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.2;
}

html[data-theme="light"] .privacy-meta span,
html[data-theme="light"] .privacy-mini-list span {
  background: rgba(255, 255, 255, 0.72);
}

.privacy-summary-card,
.privacy-toc,
.privacy-panel,
.privacy-final-card {
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 46%),
    linear-gradient(145deg, var(--surface-premium), var(--surface-soft));
  box-shadow: var(--shadow-card);
}

html[data-theme="light"] .privacy-summary-card,
html[data-theme="light"] .privacy-toc,
html[data-theme="light"] .privacy-panel,
html[data-theme="light"] .privacy-final-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.08),
      transparent 46%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.62)
    );
}

.privacy-summary-card {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  transform: translateY(clamp(-42px, -2.6vw, -24px));
}

.privacy-summary-card h2,
.privacy-final-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.privacy-summary-card p,
.privacy-final-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.privacy-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 42px);
  align-items: start;
}

.privacy-toc {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.privacy-toc nav {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.privacy-toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.privacy-toc a:hover {
  transform: translateX(3px);
  border-color: var(--border-strong);
  background: rgba(124, 58, 237, 0.1);
  color: var(--text);
}

.privacy-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.privacy-section-head {
  margin-bottom: 6px;
}

.privacy-panel {
  scroll-margin-top: calc(var(--header-height) + 26px);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}

.privacy-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.privacy-panel p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.74;
}

.privacy-panel ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-panel li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.62;
}

.privacy-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.privacy-contact-actions,
.privacy-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.privacy-final-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
}

.privacy-final-actions {
  justify-content: flex-end;
}

.privacy-final-actions .btn {
  min-width: min(100%, 190px);
}

/* --------------------------------------------------------------------------
   18D. Blog Index Page
-------------------------------------------------------------------------- */

.blog-hero {
  min-height: auto;
  padding-top: clamp(28px, 3.4vw, 48px);
  padding-bottom: clamp(22px, 3vw, 40px);
}

.blog-hero-compact {
  min-height: auto;
  padding-top: clamp(22px, 3vw, 38px);
  padding-bottom: clamp(12px, 1.8vw, 22px);
}

.blog-editorial-head {
  max-width: 1080px;
}

.blog-editorial-head h1 {
  max-width: 840px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.35rem, 4.25vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.blog-editorial-head .section-lead {
  max-width: 720px;
  margin-top: 16px;
}

.blog-hero-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 24px;
}

.blog-hero-row .blog-topic-strip {
  margin-top: 0;
}

.blog-telegram-link {
  flex: 0 0 auto;
  min-width: 176px;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.blog-hero-copy h1 {
  max-width: 980px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3rem, 6.1vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.blog-hero-copy .section-lead {
  max-width: 780px;
  margin-top: 22px;
}

.blog-topic-strip,
.blog-panel-list,
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-topic-strip {
  margin-top: 24px;
}

.blog-hero-actions {
  margin-top: 26px;
}

.blog-hero-actions .btn {
  min-width: min(100%, 190px);
}

.blog-topic-strip span,
.blog-panel-list span,
.blog-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.2;
}

html[data-theme="light"] .blog-topic-strip span,
html[data-theme="light"] .blog-panel-list span,
html[data-theme="light"] .blog-tags span {
  background: rgba(255, 255, 255, 0.72);
}

.blog-hero-panel,
.blog-card,
.blog-cta-card,
.blog-updates-card {
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 46%),
    linear-gradient(145deg, var(--surface-premium), var(--surface-soft));
  box-shadow: var(--shadow-card);
}

html[data-theme="light"] .blog-hero-panel,
html[data-theme="light"] .blog-card,
html[data-theme="light"] .blog-cta-card,
html[data-theme="light"] .blog-updates-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.08),
      transparent 46%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.62)
    );
}

.blog-hero-panel {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  transform: translateY(clamp(-34px, -2.1vw, -18px));
}

.blog-hero-panel h2,
.blog-cta-card h2,
.blog-updates-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.5vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.blog-hero-panel p,
.blog-cta-card p,
.blog-updates-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.blog-panel-list {
  margin-top: 24px;
}

.blog-index-head {
  max-width: 860px;
}

.blog-index-section.section {
  padding-top: clamp(2px, 0.8vw, 12px);
}

.blog-archive-bar {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(16px, 2.2vw, 26px);
}

.blog-archive-count {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.blog-archive-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.blog-archive-link:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(124, 58, 237, 0.1);
  color: var(--text);
}

.blog-filter-panel {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
  align-items: center;
  width: 100%;
  margin: clamp(16px, 2vw, 24px) 0 clamp(20px, 2.4vw, 30px);
}

.blog-search-field {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.blog-search-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 52px 14px 20px;
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 42%),
    rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-weight: 760;
  outline: none;
  box-shadow: var(--shadow-card);
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}

.blog-search-input::placeholder {
  color: var(--soft);
}

.blog-search-input::-webkit-search-decoration,
.blog-search-input::-webkit-search-cancel-button,
.blog-search-input::-webkit-search-results-button,
.blog-search-input::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.blog-search-input:focus {
  border-color: var(--border-strong);
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.12),
    var(--shadow-card);
}

.blog-search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.blog-search-clear::before {
  content: "×";
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(1px);
}

.blog-search-clear:hover {
  border-color: var(--border-strong);
  background: rgba(124, 58, 237, 0.12);
  transform: translateY(-50%) scale(1.04);
}

.blog-filter-rail-shell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.blog-filter-rail {
  display: flex;
  min-width: 0;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px;
  cursor: grab;
  user-select: none;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.blog-filter-rail::-webkit-scrollbar {
  display: none;
}

.blog-filter-rail.is-grabbing,
.blog-filter-rail.is-wheel-scrolling {
  cursor: grabbing;
  scroll-behavior: auto;
}

.blog-filter-chip,
.blog-rail-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.blog-filter-chip {
  min-height: 38px;
  padding: 10px 15px;
  font-size: 0.88rem;
}

.blog-filter-chip:hover,
.blog-filter-chip.is-active,
.blog-filter-chip[aria-pressed="true"] {
  border-color: var(--border-strong);
  background: rgba(124, 58, 237, 0.14);
  color: var(--text);
}

.blog-filter-chip:hover {
  transform: translateY(-1px);
}

@media (hover: hover) and (pointer: fine) {
  .blog-filter-rail .blog-filter-chip {
    cursor: grab;
  }

  .blog-filter-rail.is-grabbing,
  .blog-filter-rail.is-wheel-scrolling,
  .blog-filter-rail.is-grabbing .blog-filter-chip,
  .blog-filter-rail.is-wheel-scrolling .blog-filter-chip {
    cursor: grabbing;
  }
}

.blog-rail-arrow {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: var(--text);
  font-size: 0;
  font-weight: 900;
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 52%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 26px rgba(15, 10, 30, 0.08);
}

.blog-rail-arrow::before {
  display: block;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(1px);
}

.blog-rail-arrow[data-rail-prev]::before {
  content: "‹";
}

.blog-rail-arrow[data-rail-next]::before {
  content: "›";
}

.blog-rail-arrow:hover {
  border-color: var(--border-strong);
  background: rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

.blog-rail-arrow:disabled {
  cursor: default;
  opacity: 0.28;
  transform: none;
}

.blog-empty-state {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 42%),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
}

.blog-empty-state h2 {
  margin: 8px 0 0;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  letter-spacing: -0.045em;
}

.blog-empty-state p:last-child {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

html[data-theme="light"] .blog-search-input,
html[data-theme="light"] .blog-search-clear,
html[data-theme="light"] .blog-filter-chip,
html[data-theme="light"] .blog-rail-arrow,
html[data-theme="light"] .blog-empty-state {
  background: rgba(255, 255, 255, 0.72);
}

@media (min-width: 1200px) {
  .blog-index-section.section {
    padding-top: 0;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: 0;
}

.blog-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 280px;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.8vw, 32px);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.blog-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.blog-card.has-image {
  min-height: 350px;
  padding: 0;
}

.blog-card.has-image .blog-card-inner {
  padding: clamp(18px, 2vw, 24px);
}

.blog-card-media {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  margin: 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 22% 18%, var(--accent-soft), transparent 36%),
    var(--surface-soft);
}

.blog-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition:
    transform 0.35s var(--ease),
    filter 0.35s var(--ease);
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.055);
  filter: saturate(1.04) contrast(1.03);
}

.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.16),
    transparent 42%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-float);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card.is-featured {
  grid-column: auto;
}

.blog-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.blog-card-category,
.blog-card-meta {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.blog-card-category {
  background: rgba(124, 58, 237, 0.14);
  color: var(--text);
}

.blog-card-meta {
  border: 1px solid var(--border);
  color: var(--soft);
}

.blog-card-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -6px 0 14px;
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.3;
}

.blog-card-info time,
.blog-card-info span {
  display: inline-flex;
  align-items: center;
}

.blog-card-info span::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}

.blog-card h3 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.18rem, 1.45vw, 1.55rem);
  line-height: 1.1;
  letter-spacing: -0.043em;
}

.blog-card p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.blog-tags {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 16px;
}

.blog-card-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 16px;
  color: var(--text);
  font-weight: 850;
  letter-spacing: -0.015em;
}

.blog-cta-card,
.blog-updates-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
}

.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.blog-cta-actions .btn {
  min-width: min(100%, 190px);
}

.blog-updates-card .btn {
  justify-self: end;
}

@media (min-width: 761px) and (max-width: 1440px) {
  .blog-grid {
    gap: 18px;
  }

  .blog-card.has-image {
    min-height: 330px;
  }

  .blog-card-media {
    aspect-ratio: 16 / 7.8;
  }

  .blog-card-category,
  .blog-card-meta,
  .blog-tags span {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .blog-card-info {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }
}

/* Blog pagination */

.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 46px);
}

.blog-pagination-shell {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 46%),
    rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-card);
}

.blog-page-btn,
.blog-page-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.2;
}

.blog-page-btn {
  min-width: 132px;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.blog-page-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(124, 58, 237, 0.1);
}

.blog-page-btn.is-disabled,
.blog-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  transform: none;
}

.blog-page-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
}

.blog-page-status {
  min-width: 128px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

html[data-theme="light"] .blog-pagination-shell,
html[data-theme="light"] .blog-page-btn {
  background: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------------------------------
   18E. Blog Article Page
-------------------------------------------------------------------------- */

.blog-post-header {
  padding-top: clamp(30px, 4.4vw, 58px);
  padding-bottom: clamp(18px, 2.7vw, 32px);
}

.blog-post-header-inner {
  max-width: 980px;
}

.blog-back-link,
.blog-breadcrumb a,
.blog-breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.blog-back-link {
  margin-bottom: 22px;
}

.blog-back-link:hover,
.blog-breadcrumb a:hover {
  transform: translateX(-3px);
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(124, 58, 237, 0.1);
}

.blog-breadcrumb {
  margin-bottom: 22px;
}

.blog-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.blog-breadcrumb li[aria-hidden="true"] {
  color: var(--muted);
  opacity: 0.62;
}

.blog-breadcrumb span[aria-current="page"] {
  max-width: min(100%, 580px);
  overflow: hidden;
  color: var(--text);
  background: rgba(124, 58, 237, 0.14);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-post-meta-row,
.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-post-meta-row {
  margin-bottom: 18px;
}

.blog-post-meta-row span,
.blog-post-meta-row time,
.blog-post-tags span,
.blog-post-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.2;
}

.blog-post-meta-row span:first-child {
  color: var(--text);
  background: rgba(124, 58, 237, 0.14);
}

.blog-post-header h1 {
  max-width: 920px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.35rem, 4.6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.blog-post-lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.7;
}

.blog-post-tags {
  margin-top: 22px;
}

.blog-post-cover-section {
  padding-top: 0;
  padding-bottom: clamp(24px, 3.6vw, 48px);
}

.blog-post-cover-section .site-shell {
  max-width: 1040px;
}

.blog-post-cover {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 44%),
    var(--surface-soft);
  box-shadow: var(--shadow-card);
}

.blog-post-cover-button {
  display: block;
  width: 100%;
  max-height: min(58vh, 520px);
  aspect-ratio: 16 / 8.6;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.blog-post-cover-button:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.38);
  outline-offset: 5px;
}

.blog-post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  transform: scale(1.01);
  transition:
    transform 0.35s var(--ease),
    filter 0.35s var(--ease);
}

.blog-related {
  margin-top: clamp(42px, 6vw, 74px);
  padding-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--border);
}

.blog-related-head {
  max-width: 720px;
  margin-bottom: 22px;
}

.blog-related-head h2 {
  margin: 10px 0 10px;
  color: var(--text);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.blog-related-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-related-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.18),
      transparent 38%
    ),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.24s var(--ease),
    border-color 0.24s var(--ease),
    background 0.24s var(--ease);
}

.blog-related-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background:
    radial-gradient(
      circle at top left,
      rgba(124, 58, 237, 0.24),
      transparent 42%
    ),
    rgba(255, 255, 255, 0.065);
}

.blog-related-card-top,
.blog-related-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.blog-related-card-top span,
.blog-related-card-bottom time {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.blog-related-card h3 {
  margin: 22px 0 10px;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.blog-related-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-related-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.blog-related-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.blog-related-card-bottom span {
  color: var(--accent-strong);
  font-size: 1.15rem;
}

.blog-post-cover:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.03);
}

.blog-post-body-section {
  padding-top: clamp(18px, 2.8vw, 38px);
}

.blog-post-body {
  max-width: 980px;
}

.blog-post-note,
.blog-faq-item,
.blog-post-next-card {
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 46%),
    linear-gradient(145deg, var(--surface-premium), var(--surface-soft));
  box-shadow: var(--shadow-card);
}

html[data-theme="light"] .blog-back-link,
html[data-theme="light"] .blog-breadcrumb a,
html[data-theme="light"] .blog-breadcrumb span,
html[data-theme="light"] .blog-post-meta-row span,
html[data-theme="light"] .blog-post-meta-row time,
html[data-theme="light"] .blog-post-tags span,
html[data-theme="light"] .blog-post-jump a {
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .blog-post-note,
html[data-theme="light"] .blog-faq-item,
html[data-theme="light"] .blog-post-next-card,
html[data-theme="light"] .blog-post-cover {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.08),
      transparent 46%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.62)
    );
}

.blog-post-note {
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
}

.blog-post-note ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-post-note li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.72;
}

.blog-post-note li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.blog-post-jump {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 18px;
  padding: 4px 0 10px;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
}

.blog-post-jump::-webkit-scrollbar {
  display: none;
}

.blog-post-jump.is-grabbing,
.blog-post-jump.is-wheel-scrolling {
  cursor: grabbing;
  scroll-behavior: auto;
}

.blog-post-jump.is-grabbing a,
.blog-post-jump.is-wheel-scrolling a {
  cursor: grabbing;
  user-select: none;
}

.blog-post-jump a {
  flex: 0 0 auto;
  text-decoration: none;
  -webkit-user-drag: none;
  transition:
    transform 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .blog-post-jump a {
    cursor: grab;
  }

  .blog-post-jump.is-grabbing a,
  .blog-post-jump.is-wheel-scrolling a {
    cursor: grabbing;
  }
}

.blog-post-jump a:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(124, 58, 237, 0.1);
}

.blog-post-content {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  margin-top: clamp(24px, 3.5vw, 42px);
}

.blog-faq-section {
  scroll-margin-top: calc(var(--header-height) + 26px);
  display: grid;
  gap: 14px;
}

.blog-faq-section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.056em;
}

.blog-faq-list {
  display: grid;
  gap: 12px;
}

.blog-faq-item {
  overflow: hidden;
  border-radius: 24px;
  padding: 0;
}

.blog-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 18px 22px;
  color: var(--text);
  cursor: pointer;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  font-weight: 850;
  line-height: 1.28;
  letter-spacing: -0.026em;
  list-style: none;
}

.blog-faq-item summary::-webkit-details-marker {
  display: none;
}

.blog-faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  padding-bottom: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  transform: none;
}

.blog-faq-item[open] summary::after {
  content: "−";
  font-size: 1.18rem;
  padding-bottom: 3px;
  transform: none;
}

.blog-faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.72;
}

.blog-post-next-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: clamp(34px, 5vw, 62px);
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.18),
      transparent 38%
    ),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow-soft);
}

.blog-post-next-card h2 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.056em;
}

.blog-post-next-card p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.blog-post-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-post-next-actions .btn {
  justify-content: center;
}

.blog-post-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.blog-post-actions .btn {
  min-width: min(100%, 190px);
}

/* --------------------------------------------------------------------------
   18F. Services Page
-------------------------------------------------------------------------- */

.page-services .nav-command a[href="/services"],
.page-services .menu-link[href="/services"] {
  color: var(--text);
  background: rgba(124, 58, 237, 0.14);
}

html[data-theme="light"] .page-services .nav-command a[href="/services"],
html[data-theme="light"] .page-services .menu-link[href="/services"] {
  color: var(--text);
  background: rgba(124, 58, 237, 0.11);
}

.page-services .hero {
  min-height: min(760px, calc(100vh - var(--header-height)));
  align-items: center;
  padding-top: clamp(56px, 5vw, 88px);
  padding-bottom: clamp(46px, 4.6vw, 78px);
}

.page-services .hero-grid {
  align-items: center;
}

.page-services .hero-copy h1 {
  max-width: 860px;
}

.page-services .hero-tagline {
  max-width: 760px;
}

.page-services .hero-copy .lead {
  max-width: 780px;
}

.page-services .hero-panel {
  background:
    radial-gradient(
      circle at top right,
      rgba(167, 139, 250, 0.2),
      transparent 56%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(236, 72, 153, 0.08),
      transparent 48%
    ),
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
}

html[data-theme="light"] .page-services .hero-panel {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.1),
      transparent 56%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(236, 72, 153, 0.06),
      transparent 48%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.62)
    );
}

.page-services .services.section {
  padding-top: clamp(58px, 5vw, 92px);
}

.page-services .services .section-head {
  max-width: 1180px;
  margin-bottom: clamp(28px, 3.5vw, 46px);
}

.page-services .services .section-head h2 {
  max-width: 1040px;
}

.page-services .services .section-head p {
  max-width: 980px;
}

.page-services .service-card {
  position: relative;
  min-height: 318px;
  overflow: hidden;
}

.page-services .service-card::after {
  content: "";
  position: absolute;
  right: -76px;
  bottom: -86px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.page-services .service-card h3,
.page-services .service-card p,
.page-services .service-card ul {
  position: relative;
  z-index: 1;
}

.page-services .service-card ul {
  margin-top: 20px;
}

.page-services .services-fit.section,
.page-services .services-pricing.section {
  padding-top: clamp(58px, 5vw, 92px);
  padding-bottom: clamp(58px, 5vw, 92px);
}

.page-services .services-fit .section-head {
  max-width: 1180px;
}

.page-services .services-fit .section-head h2 {
  max-width: 1080px;
}

.page-services .services-fit .section-head p {
  max-width: 980px;
}

.services-fit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.services-fit-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, var(--accent-soft), transparent 42%),
    linear-gradient(145deg, var(--surface-premium), var(--surface-soft));
  box-shadow: var(--shadow-card);
}

html[data-theme="light"] .services-fit-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.08),
      transparent 42%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.62)
    );
}

.services-fit-card span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.services-fit-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.services-fit-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.services-pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(
      circle at top right,
      rgba(167, 139, 250, 0.18),
      transparent 46%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(236, 72, 153, 0.09),
      transparent 44%
    ),
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
  box-shadow: var(--shadow-card);
}

html[data-theme="light"] .services-pricing-card {
  background:
    radial-gradient(
      circle at top right,
      rgba(124, 58, 237, 0.1),
      transparent 46%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(236, 72, 153, 0.06),
      transparent 44%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.64)
    );
}

.services-pricing-card h2 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.services-pricing-card .section-lead {
  max-width: 760px;
  margin-top: 18px;
}

.services-pricing-points {
  display: grid;
  gap: 10px;
}

.services-pricing-points span {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--muted);
  background: var(--surface-soft);
  line-height: 1.45;
}

.services-pricing-points span::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 18px rgba(134, 239, 172, 0.45);
}

.services-pricing-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .services-fit-card {
    transition:
      transform 0.22s var(--ease),
      border-color 0.22s var(--ease),
      box-shadow 0.22s var(--ease);
  }

  .services-fit-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft);
  }
}

@media (max-width: 1180px) {
  .services-fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-fit-card:last-child {
    grid-column: 1 / -1;
  }

  .services-pricing-card {
    grid-template-columns: 1fr;
  }
}

.page-services .start.section {
  padding-top: clamp(58px, 5vw, 92px);
}

.page-services .start .section-head {
  max-width: 1180px;
}

.page-services .start .section-head h2 {
  max-width: 1080px;
}

.page-services .start .section-head p {
  max-width: 1040px;
}

.page-services .workflow-card {
  position: relative;
  overflow: hidden;
}

.page-services .workflow-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.page-services .workflow-card > * {
  position: relative;
  z-index: 1;
}

.page-services .contact.section {
  padding-top: clamp(62px, 5vw, 96px);
}

.page-services .contact-card {
  background:
    radial-gradient(circle at top, rgba(167, 139, 250, 0.22), transparent 46%),
    radial-gradient(
      circle at bottom left,
      rgba(236, 72, 153, 0.1),
      transparent 48%
    ),
    linear-gradient(145deg, var(--surface-strong), var(--surface-soft));
}

html[data-theme="light"] .page-services .contact-card {
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.11), transparent 46%),
    radial-gradient(
      circle at bottom left,
      rgba(236, 72, 153, 0.06),
      transparent 48%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(255, 255, 255, 0.62)
    );
}

@media (min-width: 1241px) {
  .page-services .services-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
  }

  .page-services .service-card {
    grid-column: span 4;
  }

  .page-services .service-card:nth-child(4),
  .page-services .service-card:nth-child(5) {
    grid-column: span 6;
    min-height: 286px;
  }
}

@media (min-width: 1181px) {
  .page-services .start .workflow-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .page-services .start .workflow-card {
    min-height: 260px;
    padding: 22px;
  }

  .page-services .start .workflow-card p {
    font-size: 0.94rem;
    line-height: 1.65;
  }
}

@media (max-width: 760px) {
  .page-services .hero {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 46px;
  }

  .page-services .services.section,
  .page-services .start.section {
    padding-top: 58px;
  }

  .page-services .service-card {
    min-height: auto;
  }

  .page-services .services .section-head h2 {
    font-size: clamp(2rem, 11vw, 3.05rem);
  }

  .services-fit-grid {
    grid-template-columns: 1fr;
  }

  .services-fit-card,
  .services-pricing-card {
    border-radius: 28px;
  }

  .services-fit-card:last-child {
    grid-column: auto;
  }

  .services-pricing-actions .btn {
    width: 100%;
  }

  .page-services .contact-checklist li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }

  .page-services .contact-checklist li::before {
    flex: 0 0 8px;
    margin-top: 0;
    align-self: center;
  }
}

/* --------------------------------------------------------------------------
   19. Responsive
-------------------------------------------------------------------------- */

@media (min-width: 1441px) {
  /* Global Layout */
  :root {
    --section-y: clamp(58px, 4.6vw, 88px);
  }

  .section {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
  }

  /* Hero */
  .hero {
    min-height: min(760px, calc(100vh - var(--header-height)));
    padding-top: clamp(58px, 4vw, 72px);
    padding-bottom: clamp(48px, 4vw, 66px);
  }

  .hero-grid {
    align-items: center;
    grid-template-columns: minmax(0, 1.04fr) minmax(410px, 0.66fr);
    gap: clamp(46px, 5vw, 86px);
  }

  .hero-copy h1 {
    max-width: 760px;
  }

  .hero-tagline,
  .hero-copy .lead {
    max-width: 690px;
  }

  .hero-panel {
    width: min(100%, 480px);
    max-width: 480px;
    justify-self: end;
  }

  /* Services */
  .services-grid {
    gap: 20px;
  }

  /* Portfolio */
  .portfolio-grid {
    gap: 22px;
  }

  .project-card {
    min-height: 300px;
  }

  /* Principles / Trust */
  .principles-grid,
  .trust-grid {
    gap: 20px;
  }

  /* Contact */
  .contact-card {
    width: min(calc(100% - 120px), 1180px);
    max-width: 1180px;
  }

  /* Footer */
  .footer-container {
    align-items: start;
  }
}

@media (min-width: 1600px) {
  /* Global Layout */
  :root {
    --shell: 1280px;
  }

  .site-shell {
    width: min(calc(100% - 120px), var(--shell));
  }

  /* Hero */
  .hero-copy h1 {
    font-size: clamp(4.35rem, 4.45vw, 5.35rem);
  }
}

@media (min-width: 1800px) {
  /* Global Layout */
  :root {
    --shell: 1320px;
  }

  .site-shell {
    width: min(calc(100% - 180px), var(--shell));
  }

  /* Hero */
  .hero-panel {
    max-width: 490px;
  }
}

@media (min-width: 2000px) {
  /* Hero */
  .hero {
    min-height: 780px;
  }

  .hero-copy h1 {
    max-width: 790px;
  }

  /* Contact */
  .contact-card {
    width: min(calc(100% - 220px), 1180px);
  }
}

/* Large tablet / compact desktop layout consolidation */
@media (max-width: 1240px) {
  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Principles / Trust */
  .principles-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet landscape layout consolidation */
@media (max-width: 1180px) {
  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-panel {
    max-width: 680px;
    margin-left: 0;
  }

  /* Homepage Service Pathway */
  .pathway-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pathway-card {
    min-height: 390px;
  }

  /* Pay Page */
  .payment-card-grid,
  #care .payment-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Footer */
  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow desktop layout consolidation */
@media (max-width: 1120px) {
  /* Start Project */
  .start-project-layout {
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.1fr);
  }

  /* Blog Index */
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet / small desktop layout consolidation */
@media (max-width: 1020px) {
  /* Privacy Policy */
  .privacy-layout,
  .privacy-hero-grid,
  .privacy-final-card {
    grid-template-columns: 1fr;
  }

  .privacy-summary-card {
    max-width: 720px;
    transform: none;
  }

  .privacy-toc {
    position: static;
  }

  .privacy-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .privacy-final-actions {
    justify-content: flex-start;
  }

  /* Blog Index */
  .blog-hero-grid,
  .blog-cta-card,
  .blog-updates-card {
    grid-template-columns: 1fr;
  }

  .blog-hero-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-hero-panel {
    max-width: 720px;
    transform: none;
  }

  .blog-cta-actions {
    justify-content: flex-start;
  }

  .blog-updates-card .btn {
    justify-self: start;
  }

  /* Blog Article */
  .blog-post-next-card {
    grid-template-columns: 1fr;
  }

  .blog-post-actions {
    justify-content: flex-start;
  }
}

/* Tablet portrait layout consolidation */
@media (max-width: 960px) {
  /* Start Project */
  .start-project-grid,
  .start-project-layout,
  .form-row.two-columns,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .start-project-aside {
    position: relative;
    top: auto;
  }

  /* Free Quick Check */
  .free-check-grid,
  .free-check-layout {
    grid-template-columns: 1fr;
  }

  .free-check-aside {
    position: relative;
    top: auto;
  }

  /* Pay Page */
  .pay-hero-grid {
    grid-template-columns: 1fr;
  }

  .pay-notice {
    max-width: 720px;
  }
}

/* Tablet layout consolidation */
@media (max-width: 900px) {
  /* Homepage Service Pathway */
  .pathway-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  /* Workflow / Pricing */
  .workflow-grid,
  .pricing-grid,
  .pricing-head {
    grid-template-columns: 1fr;
  }

  /* Proof */
  .proof-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio / Music Callout */
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-thumb {
    min-height: 280px;
  }

  .music-callout {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-profile {
    justify-content: start;
  }

  /* Blog Index Filter */
  .blog-filter-panel {
    grid-template-columns: 1fr;
    width: min(100%, 980px);
  }

  .blog-search-field {
    width: min(100%, 580px);
  }

  /* Blog Article Related */
  .blog-post-page .blog-related-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-page .blog-related-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --section-y: 62px;
    --header-shell-space: 32px;
  }

  /* Header */
  .header-inner {
    align-items: center;
  }

  .brand-logo {
    width: 136px;
    height: 38px;
    max-width: 136px;
    max-height: 38px;
    object-fit: cover;
    object-position: center;
  }

  .actions {
    flex: 0 0 auto;
  }

  .menu-btn {
    min-width: 66px;
    min-height: 41px;
    padding: 0 14px;
    font-size: 0.82rem;
    font-weight: 850;
  }

  /* Hero */
  .hero {
    overflow: hidden;
    padding-top: 34px;
    padding-bottom: 44px;
  }

  .hero-grid {
    gap: 22px;
  }

  .hero-copy,
  .hero-panel {
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.45rem);
    line-height: 1;
    letter-spacing: -0.068em;
    overflow-wrap: anywhere;
  }

  .hero-tagline {
    margin-top: 14px;
    font-size: 0.98rem;
  }

  .hero-copy .lead {
    font-size: 0.94rem;
    line-height: 1.64;
  }

  .hero-actions {
    width: 100%;
    min-width: 0;
    display: grid;
    margin-top: 24px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .hero-panel {
    width: 100%;
    margin-inline: 0;
    padding: 20px;
    border-radius: 24px;
  }

  .panel-list span {
    min-height: 32px;
    font-size: 0.9rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    border-radius: 24px;
  }

  /* Homepage Service Pathway */
  .service-pathway {
    padding: 22px;
    border-radius: 30px;
  }

  .pathway-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    padding: 2px 2px 14px;
    margin-inline: -2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pathway-track::-webkit-scrollbar {
    display: none;
  }

  .pathway-card {
    min-height: auto;
    flex: 0 0 min(88%, 340px);
    scroll-snap-align: center;
    border-radius: 26px;
  }

  .pathway-arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--text);
    box-shadow: var(--shadow-card);
    transform: translateY(-50%);
  }

  .pathway-arrow span {
    display: block;
    transform: translateY(-4px);
    font-size: 1.8rem;
    line-height: 1;
  }

  .pathway-arrow:disabled,
  .pathway-arrow.is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
    color: var(--muted);
    box-shadow: none;
  }

  .pathway-arrow:disabled span,
  .pathway-arrow.is-disabled span {
    opacity: 0.72;
  }

  .pathway-arrow-prev {
    left: -4px;
  }

  .pathway-arrow-next {
    right: -4px;
  }

  .pathway-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }

  .pathway-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--border-strong);
    cursor: pointer;
  }

  .pathway-dots button.is-active {
    width: 24px;
    background: var(--accent);
  }

  /* Workflow / Pricing */
  .workflow-card {
    border-radius: 24px;
  }

  .pricing-snapshot {
    border-radius: 28px;
  }

  .price-card {
    min-height: auto;
  }

  /* Proof */
  .proof-card {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    text-align: center;
  }

  .proof-card h3,
  .proof-card p {
    width: 100%;
    max-width: 30ch;
    text-align: center;
  }

  .proof-card p {
    margin-inline: auto;
  }

  .proof-links {
    justify-content: center;
  }

  /* Portfolio / Music */
  .music-callout {
    border-radius: 28px;
  }

  /* About */
  .about-profile {
    justify-content: center;
    max-width: calc(100vw - 56px);
    margin-inline: auto;
  }

  .about-profile::before {
    inset: -10px;
  }

  .about-profile picture,
  .about-profile img {
    max-width: 100%;
  }

  .about-content {
    border-radius: 28px;
    text-align: center;
  }

  .about-content .kicker {
    justify-content: center;
    margin-inline: auto;
  }

  .about-content p {
    max-width: 31ch;
    margin-inline: auto;
  }

  .about-micro {
    width: fit-content;
    max-width: min(100%, 292px);
    display: flex;
    justify-content: center;
    margin: 24px auto 0;
    padding: 13px 16px;
    border-radius: 24px;
    text-align: center;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  /* Principles / Trust */
  .principles-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .principle-card,
  .trust-item {
    min-height: auto;
  }

  .trust-item {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 24px;
    text-align: left;
  }

  .trust-icon {
    flex: 0 0 24px;
    width: 24px;
    line-height: 1.35;
    margin-top: 1px;
  }

  .trust-text {
    line-height: 1.48;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 0;
  }

  main,
  section,
  .site-header,
  .site-footer,
  .menu-overlay,
  .sticky-cta {
    max-width: 100vw;
  }

  .site-shell,
  .header-inner,
  .hero-grid,
  .workflow-grid,
  .pricing-grid,
  .portfolio-grid,
  .about-grid,
  .principles-grid,
  .trust-grid,
  .footer-container {
    min-width: 0;
  }

  .site-shell {
    width: min(calc(100% - 28px), var(--shell));
  }
  /* Contact */
  .contact-card {
    width: min(calc(100% - 28px), 100%);
    max-width: 100%;
    margin-inline: auto;
    padding: 28px 20px;
    border-radius: 28px;
  }

  .contact-copy h2,
  .contact-card h2 {
    font-size: clamp(2.05rem, 11vw, 3.2rem);
    overflow-wrap: anywhere;
  }

  .contact-actions,
  .contact-checklist,
  .contact-notes {
    width: 100%;
  }

  .contact-actions,
  .contact-checklist {
    grid-template-columns: 1fr;
  }

  .contact-actions .btn {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .contact-checklist {
    gap: 11px;
  }

  .contact-checklist li {
    min-height: 50px;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    align-items: start;
    justify-content: start;
    justify-items: start;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 18px;
    text-align: left;
    line-height: 1.32;
  }

  .contact-checklist li::before {
    justify-self: start;
    align-self: start;
    margin-top: 0.42em;
    width: 8px;
    height: 8px;
  }

  .contact-mini {
    width: 100%;
    border-radius: 18px;
  }

  .contact-notes p {
    overflow-wrap: anywhere;
  }

  /* Footer */
  .site-footer {
    padding-top: 64px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand,
  .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-column:hover {
    transform: none;
  }

  .footer-status {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.82rem;
  }

  .footer-tagline {
    max-width: 31ch;
    margin: 18px auto 0;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    gap: 14px 18px;
    margin-top: 20px;
  }

  .footer-column h4 {
    margin-bottom: 12px;
    text-align: center;
  }

  .footer-nav {
    justify-items: center;
    gap: 11px;
  }

  .footer-nav a,
  .footer-nav span {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-nav a::after {
    content: none;
    display: none;
  }

  .footer-nav a:hover,
  .footer-nav a:focus-visible {
    transform: none;
  }

  .footer-bottom {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 38px;
    padding-top: 22px;
    text-align: center;
  }

  .copyright {
    text-align: center;
  }

  .footer-meta {
    justify-content: center;
    gap: 10px 16px;
    text-align: center;
  }

  .footer-meta span {
    width: 100%;
  }

  .footer-meta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
  }

  /* Mobile Menu Overlay */
  .menu-overlay {
    place-items: start center;
    padding: calc(76px + env(safe-area-inset-top)) 18px
      calc(92px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .close-btn {
    top: calc(18px + env(safe-area-inset-top));
    right: calc(18px + env(safe-area-inset-right));
    width: 42px;
    height: 42px;
  }

  .menu-nav {
    width: min(100%, 500px);
    max-height: calc(100dvh - 178px);
    overflow-y: auto;
    padding-bottom: 10px;
  }

  .menu-link {
    min-height: 50px;
    border-radius: 16px;
    font-size: clamp(0.98rem, 4vw, 1.14rem);
  }

  .menu-actions {
    position: fixed;
    left: calc(18px + env(safe-area-inset-left));
    right: calc(18px + env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .menu-theme-btn {
    min-height: 44px;
  }

  /* Sticky CTA + Scroll Top */
  .sticky-cta {
    display: flex;
  }

  .scroll-top-btn {
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(70px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .page-start-project .scroll-top-btn {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .scroll-top-btn svg {
    width: 32px;
    height: 32px;
  }

  /* Start Project Wizard */
  .wizard-progress-card {
    padding: 14px;
    border-radius: 22px;
    margin-bottom: 20px;
  }

  .wizard-step {
    min-height: auto;
  }

  .wizard-step-dots {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .wizard-step-dots span {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .project-wizard .form-group-title {
    margin-bottom: 16px;
  }

  .project-wizard .form-group-title span {
    width: 34px;
    height: 34px;
  }

  .project-wizard .choice-card {
    min-height: 56px;
    padding: 13px;
  }

  .wizard-actions {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
  }

  .wizard-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .upload-field,
  .upload-placeholder {
    grid-template-columns: 1fr;
  }

  .upload-field p,
  .upload-placeholder p {
    font-size: 0.9rem;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .consent-card {
    padding: 14px;
  }

  /* Free Quick Check */
  .page-free-check .scroll-top-btn {
    bottom: calc(18px + env(safe-area-inset-bottom));
  }

  /* Pay Page */
  .pay-hero {
    padding-top: calc(var(--header-height) + 38px);
  }

  .payment-card-grid,
  #care .payment-card-grid {
    grid-template-columns: 1fr;
  }

  .payment-group,
  .pay-notice {
    border-radius: 28px;
  }

  .payment-card {
    min-height: auto;
    border-radius: 24px;
  }

  /* Privacy Policy */
  .privacy-hero {
    padding-top: calc(var(--header-height) + 38px);
  }

  .privacy-toc,
  .privacy-panel,
  .privacy-summary-card,
  .privacy-final-card {
    border-radius: 28px;
  }

  .privacy-toc nav {
    grid-template-columns: 1fr;
  }

  .privacy-contact-actions .btn,
  .privacy-final-actions .btn,
  .privacy-hero .hero-actions .btn {
    width: 100%;
  }

  /* Blog Index Filter */
  .blog-index-section.section {
    padding-top: 4px;
  }

  .blog-filter-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    width: min(100%, 980px);
    margin-top: 16px;
  }

  .blog-archive-bar {
    gap: 14px;
  }

  .blog-search-field {
    width: 100%;
    max-width: none;
  }

  .blog-search-input {
    min-height: 50px;
    padding-left: 17px;
    font-size: 0.95rem;
  }

  .blog-filter-rail-shell {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 7px;
  }

  .blog-rail-arrow {
    width: 34px;
    height: 34px;
  }

  .blog-filter-chip {
    min-height: 36px;
    padding: 9px 13px;
    font-size: 0.82rem;
  }

  /* Blog Index Layout */
  .blog-hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 34px;
  }

  .blog-hero-compact {
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero-panel,
  .blog-card,
  .blog-cta-card,
  .blog-updates-card {
    border-radius: 28px;
  }

  .blog-hero .hero-actions .btn,
  .blog-updates-card .btn {
    width: 100%;
  }

  .blog-card {
    min-height: auto;
  }

  .blog-archive-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-archive-link {
    width: 100%;
    justify-content: center;
  }

  .blog-card.has-image {
    min-height: auto;
  }

  .blog-card.has-image .blog-card-inner {
    padding: 20px;
  }

  /* Blog Pagination */
  .blog-pagination {
    margin-top: 28px;
  }

  .blog-pagination-shell {
    display: grid;
    width: min(100%, 232px);
    grid-template-columns: 38px minmax(96px, 1fr) 38px;
    gap: 6px;
    margin-inline: auto;
    padding: 6px;
    border-radius: 999px;
  }

  .blog-page-btn,
  .blog-page-status {
    min-height: 38px;
  }

  .blog-page-btn {
    width: 38px;
    height: 38px;
    min-width: 0;
    gap: 0;
    padding: 0;
  }

  .blog-page-text {
    display: none;
  }

  .blog-page-status {
    width: 100%;
    min-width: 0;
    padding: 8px 6px;
    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
    white-space: nowrap;
  }

  /* Blog Article */
  .blog-post-header {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .blog-post-header h1 {
    font-size: clamp(2rem, 10.5vw, 3rem);
  }

  .blog-post-lead {
    font-size: 1rem;
  }

  .blog-post-cover {
    border-radius: 28px;
  }

  .blog-post-cover-button {
    max-height: none;
    aspect-ratio: 16 / 9.4;
  }

  .blog-post-cover img {
    height: 100%;
  }

  .blog-post-cover figcaption {
    font-size: 0.8rem;
  }

  .blog-post-note,
  .blog-faq-item,
  .blog-post-next-card {
    border-radius: 24px;
  }

  .blog-faq-item summary {
    min-height: 54px;
    padding: 16px 18px;
  }

  .blog-faq-item p {
    padding: 0 18px 18px;
  }

  .blog-post-actions .btn {
    width: 100%;
  }
}

@supports (overflow: clip) {
  @media (max-width: 760px) {
    html,
    body {
      overflow-x: clip;
    }
  }
}

@media (max-width: 520px) {
  /* Global Layout */
  .site-shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .section-head h2,
  .contact-card h2 {
    font-size: clamp(2rem, 12vw, 3.05rem);
  }

  /* Header */
  .brand-logo {
    width: 132px;
    height: 38px;
    max-width: 44vw;
    max-height: 38px;
  }

  .actions {
    gap: 7px;
  }

  .menu-btn {
    min-width: 65px;
    min-height: 41px;
    padding-inline: 13px;
    font-size: 0.81rem;
  }

  /* Hero */
  .hero-copy h1 {
    font-size: clamp(2.08rem, 11.7vw, 3.15rem);
  }

  .hero-tagline {
    font-size: 0.98rem;
  }

  .hero-copy .lead {
    font-size: 0.94rem;
  }

  /* Workflow / Pricing */
  .workflow-card,
  .price-card {
    border-radius: 24px;
  }

  /* Proof */
  .proof-card h3,
  .proof-card p {
    max-width: 28ch;
  }

  /* Portfolio / Music */
  .project-thumb {
    min-height: 220px;
  }

  .music-callout {
    border-radius: 24px;
  }

  /* About */
  .about-content {
    border-radius: 24px;
  }

  .about-content h2 {
    font-size: clamp(2rem, 12vw, 3.05rem);
  }

  /* Principles */
  .principle-card {
    border-radius: 24px;
  }

  /* Contact */
  .contact-card {
    border-radius: 24px;
  }

  /* Sticky CTA */
  .sticky-cta {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
    padding: 8px;
  }

  .sticky-cta a {
    min-height: 40px;
    font-size: 0.76rem;
  }

  /* Image Preview / Pagination */
  .image-preview {
    padding: 16px;
  }

  .image-preview-img-wrap {
    border-radius: 22px;
  }

  .pagination-controls {
    flex-wrap: wrap;
  }

  .pagination-btn,
  .pagination-page {
    min-height: 38px;
  }

  /* Start Project */
  .start-project-copy h1 {
    font-size: clamp(2.35rem, 15vw, 3.55rem);
  }

  .start-project-note,
  .start-project-form,
  .start-project-aside {
    border-radius: 26px;
  }

  .form-group-title {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .form-submit-row .btn {
    width: 100%;
  }

  /* Free Quick Check */
  .free-check-copy h1 {
    font-size: clamp(2.35rem, 15vw, 3.55rem);
  }

  .free-check-panel,
  .free-check-form,
  .free-check-aside {
    border-radius: 26px;
  }

  .free-check-form .form-submit-row .btn {
    width: 100%;
  }

  /* Pay Page */
  .pay-hero-copy h1 {
    font-size: clamp(2.45rem, 15vw, 3.7rem);
  }

  .pay-hero .hero-actions .btn {
    width: 100%;
  }

  /* Privacy Policy */
  .privacy-hero-copy h1 {
    font-size: clamp(2.35rem, 14vw, 3.55rem);
  }

  .privacy-meta span,
  .privacy-mini-list span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Blog Index */
  .blog-hero-copy h1,
  .blog-editorial-head h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .blog-panel-list span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .blog-hero-compact .blog-topic-strip span {
    width: auto;
    justify-content: flex-start;
    text-align: left;
  }

  .blog-telegram-link {
    width: 100%;
  }

  .blog-card-top {
    display: grid;
    justify-content: stretch;
  }

  .blog-card-category,
  .blog-card-meta {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  /* Global Layout */
  .site-shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .btn {
    min-height: 46px;
    padding-inline: 15px;
  }

  /* Hero */
  .hero-copy h1 {
    font-size: 2.08rem;
  }

  .hero-tagline {
    font-size: 0.98rem;
  }

  /* Services */
  .service-card {
    padding: 20px;
  }

  /* Homepage Service Pathway */
  .service-pathway,
  .pathway-card {
    padding: 20px;
  }

  .pathway-card {
    flex-basis: 90%;
  }

  /* Workflow / Pricing */
  .workflow-card,
  .price-card {
    padding: 20px;
  }

  /* Proof */
  .proof-card {
    padding: 20px;
  }

  /* Portfolio */
  .project-body {
    padding: 20px;
  }

  /* Principles */
  .principle-card {
    padding: 20px;
  }

  /* Contact */
  .contact-card {
    width: min(calc(100% - 24px), 100%);
    padding: 24px 16px;
  }

  .contact-notes p {
    font-size: 0.84rem;
  }

  /* Pay Page */
  .payment-group,
  .pay-notice,
  .payment-card {
    padding: 20px;
  }

  /* Privacy Policy */
  .privacy-toc,
  .privacy-panel,
  .privacy-summary-card,
  .privacy-final-card {
    padding: 20px;
  }

  /* Blog Index */
  .blog-hero-panel,
  .blog-card,
  .blog-cta-card,
  .blog-updates-card {
    padding: 20px;
  }

  /* Blog Related Articles */
  .blog-post-page .blog-related {
    margin-top: 36px;
    padding-top: 28px;
  }

  .blog-post-page .blog-related-head {
    margin-bottom: 18px;
  }

  .blog-post-page .blog-related-head h2 {
    font-size: 1.7rem;
    line-height: 1;
  }

  .blog-post-page .blog-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-post-page .blog-related-card {
    width: 100%;
    min-width: 0;
    padding: 17px;
    border-radius: 22px;
  }

  .blog-post-page .blog-related-card-top,
  .blog-post-page .blog-related-card-bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .blog-post-page .blog-related-card h3 {
    margin-top: 18px;
    font-size: 1.08rem;
    line-height: 1.15;
  }

  .blog-post-page .blog-related-card p {
    font-size: 0.9rem;
  }

  /* Blog Article */
  .blog-post-note,
  .blog-post-next-card {
    padding: 20px;
  }

  .blog-post-meta-row span,
  .blog-post-meta-row time,
  .blog-post-tags span,
  .blog-breadcrumb a,
  .blog-breadcrumb span {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .blog-breadcrumb ol {
    gap: 6px;
  }

  .blog-breadcrumb span[aria-current="page"] {
    max-width: min(100%, 260px);
  }

  .blog-breadcrumb li:last-child,
  .blog-breadcrumb li:nth-last-child(2) {
    display: none;
  }

  .blog-breadcrumb {
    margin-bottom: 18px;
  }
}

@media (max-width: 390px) {
  :root {
    --header-shell-space: 20px;
  }

  /* Global Layout */
  .site-shell {
    width: min(calc(100% - 22px), var(--shell));
  }

  .section-head h2,
  .contact-card h2 {
    font-size: clamp(1.9rem, 11vw, 2.65rem);
    letter-spacing: -0.055em;
  }

  .btn {
    padding-inline: 14px;
  }

  /* Header */
  .brand-logo {
    width: 124px;
    height: 36px;
    max-width: 44vw;
    max-height: 36px;
  }

  .menu-btn {
    min-width: 64px;
    min-height: 41px;
    padding-inline: 12px;
    font-size: 0.8rem;
  }

  /* Hero */
  .hero-copy h1 {
    font-size: 2.08rem;
    letter-spacing: -0.055em;
  }

  /* About */
  .about-content h2 {
    font-size: clamp(1.9rem, 11vw, 2.65rem);
    letter-spacing: -0.055em;
  }

  .about-content p {
    max-width: 29ch;
  }

  .about-micro {
    max-width: 100%;
    font-size: 0.86rem;
  }

  /* Trust */
  .trust-item {
    gap: 10px;
  }

  .trust-icon {
    flex-basis: 22px;
    width: 22px;
  }

  /* Contact */
  .contact-card {
    width: min(calc(100% - 22px), 100%);
    padding: 24px 15px;
  }

  .contact-mini {
    font-size: 0.84rem;
  }

  .contact-checklist li {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 16px;
  }

  /* Footer */
  .footer-tagline {
    max-width: 29ch;
  }

  .footer-social {
    gap: 12px 16px;
  }

  .footer-meta {
    gap: 8px 14px;
  }
}

@media (max-width: 380px) {
  .wizard-progress-card h3 {
    font-size: 1rem;
  }

  .wizard-step-dots span {
    font-size: 0.65rem;
  }

  .project-wizard .form-group-title h3 {
    font-size: 1.08rem;
  }

  .project-wizard .choice-card span,
  .consent-card span {
    font-size: 0.88rem;
  }
}

@media (max-width: 340px) {
  /* Global Layout */
  .site-shell {
    width: min(calc(100% - 20px), var(--shell));
  }

  /* Header */
  .brand-logo {
    width: 116px;
    height: 34px;
    max-width: 43vw;
    max-height: 34px;
  }

  .actions {
    gap: 6px;
  }

  .menu-btn {
    min-width: 60px;
    min-height: 41px;
    padding-inline: 11px;
    font-size: 0.78rem;
  }

  /* Hero */
  .hero-copy h1 {
    font-size: 1.95rem;
  }

  .hero-panel {
    padding: 18px;
  }

  /* Services */
  .service-card {
    padding: 18px;
  }

  /* Homepage Service Pathway */
  .service-pathway,
  .pathway-card {
    padding: 18px;
  }

  .pathway-card {
    flex-basis: 92%;
  }

  .pathway-arrow {
    width: 38px;
    height: 38px;
  }

  /* Workflow / Pricing */
  .workflow-card,
  .price-card {
    padding: 18px;
  }

  /* Proof */
  .proof-card {
    padding: 18px;
  }

  /* Portfolio / Music */
  .project-body,
  .music-callout {
    padding: 18px;
  }

  /* About */
  .about-content {
    padding: 18px;
  }

  /* Principles */
  .principle-card {
    padding: 18px;
  }

  /* Contact */
  .contact-card {
    padding: 18px;
  }

  .contact-checklist li {
    grid-template-columns: 11px minmax(0, 1fr);
    gap: 9px;
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  /* Sticky CTA + Scroll Top */
  .sticky-cta a {
    font-size: 0.71rem;
  }

  .scroll-top-btn {
    bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .page-start-project .scroll-top-btn {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  /* Pay Page */
  .payment-group,
  .pay-notice,
  .payment-card {
    padding: 18px;
  }

  /* Privacy Policy */
  .privacy-toc,
  .privacy-panel,
  .privacy-summary-card,
  .privacy-final-card {
    padding: 18px;
  }

  /* Blog Index Filter */
  .blog-filter-rail-shell {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
  }

  .blog-rail-arrow {
    width: 32px;
    height: 32px;
  }

  .blog-filter-chip {
    padding-inline: 12px;
  }

  /* Blog Pagination */
  .blog-pagination-shell {
    width: min(100%, 218px);
    grid-template-columns: 36px minmax(90px, 1fr) 36px;
    gap: 5px;
    padding: 5px;
  }

  .blog-page-btn,
  .blog-page-status {
    min-height: 36px;
  }

  .blog-page-btn {
    width: 36px;
    height: 36px;
  }

  .blog-page-status {
    font-size: 0.8rem;
  }

  /* Blog Article */
  .blog-post-note,
  .blog-post-next-card {
    padding: 18px;
  }
}

/* --------------------------------------------------------------------------
   Responsive Safety Patch — Public Pages
-------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .site-shell,
  .header-inner,
  .hero-grid,
  .services-grid,
  .workflow-grid,
  .pricing-grid,
  .portfolio-grid,
  .about-grid,
  .principles-grid,
  .trust-grid,
  .footer-container,
  .blog-grid,
  .blog-card,
  .blog-card-inner,
  .blog-filter-panel,
  .blog-filter-rail-shell,
  .blog-post-body,
  .blog-related-card,
  .start-project-layout,
  .free-check-layout,
  .privacy-layout {
    min-width: 0;
  }

  .btn,
  .hero-actions .btn,
  .contact-actions .btn,
  .privacy-contact-actions .btn,
  .privacy-final-actions .btn,
  .blog-cta-actions .btn,
  .blog-updates-card .btn,
  .form-submit-row .btn,
  .wizard-actions .btn,
  .form-success-actions .btn {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .blog-card h3,
  .blog-card p,
  .blog-post-header h1,
  .blog-post-lead,
  .blog-faq-item summary,
  .blog-faq-item p,
  .blog-related-card h3,
  .blog-related-card p,
  .privacy-panel p,
  .privacy-panel li,
  .start-project-copy h1,
  .free-check-copy h1,
  .contact-card h2,
  .contact-mini,
  .footer-nav a,
  .footer-meta a {
    overflow-wrap: anywhere;
  }

  .pathway-card {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .pathway-card h3,
  .pathway-card p,
  .pathway-card span {
    overflow-wrap: anywhere;
  }

  .blog-filter-rail {
    min-width: 0;
    max-width: 100%;
  }

  .blog-search-input {
    min-width: 0;
  }

  .blog-related-card-top,
  .blog-related-card-bottom {
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .blog-card h3,
  .blog-related-card h3 {
    letter-spacing: -0.035em;
  }

  .blog-faq-item summary {
    gap: 12px;
  }

  .blog-faq-item summary::after {
    width: 26px;
    height: 26px;
  }

  .form-success-actions {
    display: grid;
    width: 100%;
  }

  .form-success-actions .btn {
    width: 100%;
  }
}

@media (max-width: 340px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--shell));
  }

  .blog-card,
  .blog-cta-card,
  .blog-updates-card,
  .blog-post-note,
  .blog-post-next-card,
  .blog-related-card,
  .start-project-form,
  .free-check-form,
  .privacy-panel {
    padding-inline: 16px;
  }

  .btn {
    padding-inline: 12px;
  }

  .blog-search-input {
    padding-left: 15px;
    padding-right: 48px;
  }
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.public-form-alert {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: color-mix(
    in srgb,
    var(--surface-raised) 92%,
    var(--danger, #ff6b6b) 8%
  );
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.public-form-alert strong {
  font-size: 0.95rem;
}

.public-form-alert span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
