/* CVLift shared styles. Self-hosted fonts only (CSP: font-src 'self'); no inline styles anywhere. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/manrope-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-800-normal.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --font-display: "Manrope", "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;

  --navy-950: #071426;
  --navy-900: #0b1f3a;
  --navy-800: #13294b;
  --navy-700: #1d3a66;

  --bg: #f7f9fc;
  --bg-alt: #eef3f9;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #dde4ee;
  --border-strong: #c3cede;
  --text: #0b1f3a;
  --text-muted: #4a5b74;
  --text-subtle: #6b7a90;

  --accent: #0c9b6e;
  --accent-strong: #087a57;
  --accent-soft: #e3f6ee;
  --accent-contrast: #ffffff;

  --highlight: #f5b638;
  --danger: #c2342b;
  --danger-soft: #fdeceb;
  --warning-soft: #fff6e3;
  --warning-text: #7a5200;

  --hero-bg: linear-gradient(160deg, #0b1f3a 0%, #13294b 55%, #0f3a4a 100%);
  --hero-text: #ffffff;
  --hero-muted: #b9c6da;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 3px rgba(11, 31, 58, 0.08);
  --shadow: 0 4px 12px rgba(11, 31, 58, 0.06), 0 12px 32px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 10px 30px rgba(11, 31, 58, 0.1), 0 30px 60px rgba(11, 31, 58, 0.12);
  --focus-ring: 0 0 0 3px var(--surface), 0 0 0 6px rgba(12, 155, 110, 0.55);

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071426;
    --bg-alt: #0a1a30;
    --surface: #0e1f38;
    --surface-raised: #132845;
    --border: #1f3557;
    --border-strong: #2c4670;
    --text: #eef3fa;
    --text-muted: #b2c0d4;
    --text-subtle: #8a9ab2;

    --accent: #2fcf95;
    --accent-strong: #5adfae;
    --accent-soft: rgba(47, 207, 149, 0.12);
    --accent-contrast: #052117;

    --danger: #ff8a80;
    --danger-soft: rgba(255, 138, 128, 0.12);
    --warning-soft: rgba(245, 182, 56, 0.12);
    --warning-text: #f5c96b;

    --hero-bg: linear-gradient(160deg, #050f1e 0%, #0b1f3a 60%, #0b3340 100%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    --focus-ring: 0 0 0 3px var(--bg), 0 0 0 6px rgba(47, 207, 149, 0.6);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 750;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* Headings that receive focus from script (tabindex="-1") so screen readers announce a view change.
   They are not interactive, so they never show the focus ring. */
:is(h1, h2, h3)[tabindex="-1"]:focus,
:is(h1, h2, h3)[tabindex="-1"]:focus-visible {
  outline: none;
  box-shadow: none;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  box-shadow: var(--shadow), var(--focus-ring);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 760px;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  max-width: 640px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section__header p {
  color: var(--text-muted);
  font-size: 1.075rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

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

.small {
  font-size: 0.875rem;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(12, 155, 110, 0.22);
}

.btn:hover {
  background: var(--accent-strong);
  color: var(--btn-fg);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn--lg {
  min-height: 56px;
  padding: 16px 32px;
  font-size: 1.075rem;
}

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

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
  box-shadow: none;
}

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

.btn--on-dark {
  --btn-fg: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn .icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
  flex: none;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

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

.brand__mark {
  width: 32px;
  height: 32px;
}

.brand__accent {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a:not(.btn) {
  padding: 8px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.site-nav a:not(.btn):hover {
  color: var(--text);
  background: var(--bg-alt);
}

.site-nav .btn {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.95rem;
  margin-left: 8px;
}

@media (max-width: 760px) {
  .site-nav a:not(.btn) {
    display: none;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 10vw, 120px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 85% 20%, rgba(47, 207, 149, 0.22), transparent 70%),
    radial-gradient(500px 300px at 10% 100%, rgba(80, 140, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero .eyebrow {
  color: #6ee7bc;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: #6ee7bc;
}

.hero__lead {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  color: var(--hero-muted);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--hero-muted);
  font-size: 0.95rem;
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__points svg {
  width: 18px;
  height: 18px;
  color: #6ee7bc;
  flex: none;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}

.step__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.step__icon svg {
  width: 22px;
  height: 22px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step h3::before {
  content: counter(step) ". ";
  color: var(--text-subtle);
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

@media (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .step:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tier--featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}

.tier__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier__name {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.tier__tagline {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tier__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}

.tier__amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.tier__once {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
  flex: 1;
}

.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.tier .btn--ghost {
  border-color: var(--border-strong);
}

.tiers-skeleton {
  height: 420px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--surface) 0%, var(--bg-alt) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border: 1px solid var(--border);
}

@keyframes shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@media (max-width: 960px) {
  .tiers {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .tier--featured {
    order: -1;
  }
}

/* ---------- Cards / panels ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

/* ---------- Upload form ---------- */

.upload-card {
  max-width: 760px;
  margin: 0 auto;
}

.form-section + .form-section {
  margin-top: 32px;
}

.form-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.form-section__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  flex: none;
}

@media (prefers-color-scheme: dark) {
  .form-section__num {
    background: var(--accent);
    color: var(--accent-contrast);
  }
}

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px;
  text-align: center;
  background: var(--bg);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.dropzone__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
  margin-bottom: 4px;
}

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

.dropzone__title {
  font-weight: 650;
  font-size: 1.05rem;
}

.dropzone__title span {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dropzone__hint {
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius);
}

.file-chip__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent-strong);
  flex: none;
}

.file-chip__icon svg {
  width: 20px;
  height: 20px;
}

.file-chip__meta {
  flex: 1;
  min-width: 0;
}

.file-chip__name {
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-chip__size {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex: none;
}

.icon-btn:hover {
  background: var(--surface);
  color: var(--text);
}

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

.tier-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.tier-option {
  position: relative;
}

.tier-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.tier-option label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 16px 16px 16px 48px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.tier-option label::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tier-option label:hover {
  border-color: var(--text-subtle);
}

.tier-option input:checked + label {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tier-option input:checked + label::before {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--surface);
  background: var(--accent);
}

.tier-option input:focus-visible + label {
  box-shadow: var(--focus-ring);
}

.tier-option__name {
  font-weight: 700;
}

.tier-option__price {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.tier-option__tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .tier-options {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 650;
}

.field__optional {
  color: var(--text-subtle);
  font-weight: 500;
}

.field__hint {
  color: var(--text-subtle);
  font-size: 0.875rem;
  margin: 0;
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.15s ease;
}

.input::placeholder {
  color: var(--text-subtle);
}

.input:focus-visible {
  border-color: var(--accent);
  border-radius: 10px;
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.privacy-note {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.privacy-note svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent-strong);
  margin-top: 1px;
}

.privacy-note p {
  margin: 0;
}

.form-actions {
  margin-top: 24px;
}

.form-actions .small {
  margin: 12px 0 0;
  text-align: center;
  color: var(--text-subtle);
}

/* ---------- Alerts ---------- */

.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  margin-top: 16px;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}

.alert p {
  margin: 0;
}

.alert--error {
  background: var(--danger-soft);
  color: var(--danger);
}

.alert--warning {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.alert--info {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 650;
  font-size: 1.025rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}

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

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
  flex: none;
}

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

.faq__body {
  padding: 0 22px 20px;
  color: var(--text-muted);
}

.faq__body p:last-child {
  margin-bottom: 0;
}

.faq__body ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

code.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--warning-soft);
  color: var(--warning-text);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--hero-bg);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  margin: 0 0 6px;
}

.cta-band p {
  margin: 0;
  color: var(--hero-muted);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Order page ---------- */

.order-page {
  padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.order-head {
  text-align: center;
  margin-bottom: 32px;
}

.order-head h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  margin-bottom: 8px;
}

.order-head p {
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 540px;
}

.order-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-muted);
}

.pill--accent {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-strong);
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.panel {
  max-width: 640px;
  margin: 0 auto;
}

.panel--wide {
  max-width: 980px;
}

.state-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.state-icon svg {
  width: 30px;
  height: 30px;
}

.state-icon--danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.state-icon--warning {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.state-center {
  text-align: center;
}

.state-center h2 {
  font-size: 1.5rem;
}

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

.state-center .btn {
  margin-top: 8px;
}

/* Progress steps */
.progress {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 4px;
}

.progress__step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--text-subtle);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.progress__marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  flex: none;
}

.progress__marker svg {
  width: 18px;
  height: 18px;
  opacity: 0;
}

.progress__label {
  font-weight: 650;
}

.progress__desc {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-subtle);
}

.progress__step.is-active {
  background: var(--accent-soft);
  color: var(--text);
}

.progress__step.is-active .progress__marker {
  border-color: var(--accent);
}

.progress__step.is-active .progress__marker::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: spin 0.9s linear infinite;
}

.progress__step.is-done {
  color: var(--text);
}

.progress__step.is-done .progress__marker {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.progress__step.is-done .progress__marker svg {
  opacity: 1;
}

.progress-note {
  margin: 20px 0 0;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

/* Ready state */
.ready-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

@media (max-width: 860px) {
  .ready-grid {
    grid-template-columns: 1fr;
  }
}

.preview-frame {
  position: relative;
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.preview-frame__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  -webkit-user-drag: none;
  user-select: none;
}

.preview-frame__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.414;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-subtle);
}

.preview-frame__caption {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 4px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.preview-frame__caption svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
}

.checkout h2 {
  font-size: 1.5rem;
}

.checkout__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  margin: 8px 0 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.checkout__price strong {
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.checkout .feature-list {
  margin-bottom: 24px;
}

.checkout form {
  display: grid;
  gap: 16px;
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
  color: var(--text-subtle);
  font-size: 0.85rem;
  text-align: center;
}

.secure-note svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* Paid state */
.success-card {
  text-align: center;
}

.success-card .btn {
  margin-top: 8px;
}

.success-list {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 28px auto 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.success-list li {
  display: flex;
  gap: 10px;
}

.success-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* ---------- Legal pages ---------- */

.legal {
  padding: clamp(40px, 6vw, 80px) 0;
}

.legal h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 6px;
}

.review-banner {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 32px;
  border-radius: var(--radius);
  background: var(--warning-soft);
  color: var(--warning-text);
  font-size: 0.925rem;
}

.review-banner svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}

.review-banner p {
  margin: 0;
  color: inherit;
}

/* ---------- Small screens ---------- */

@media (max-width: 420px) {
  .btn--lg {
    padding: 14px 22px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .tier {
    padding: 28px 22px;
  }
  .card {
    border-radius: var(--radius);
  }
}

.link-btn {
  padding: 4px 2px;
  font: inherit;
  color: var(--accent-strong);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--accent);
}

figure.preview-frame {
  margin: 0;
}

[data-slot="notice"] .alert {
  margin: 0 0 24px;
}

.site-footer p {
  margin: 0;
}

/* =====================================================================
   v3: typography, hero showcase, designs, order design switcher, help,
   legal pages and footer.
   ===================================================================== */

.brand,
.tier__amount,
.tier-option__price,
.checkout__price strong,
.section__header h2,
.cta-band h2 {
  font-family: var(--font-display);
}

h1,
h2 {
  font-weight: 800;
}

.eyebrow--chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 188, 0.35);
  background: rgba(110, 231, 188, 0.08);
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.eyebrow--chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(110, 231, 188, 0.18);
}

.btn--sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.925rem;
}

.site-nav .btn--ghost {
  --btn-fg: var(--text);
}

/* ---------- Hero showcase (real design thumbnails) ---------- */

.hero__copy {
  position: relative;
  z-index: 1;
}

.showcase {
  position: relative;
  height: 500px;
}

.showcase__page {
  position: absolute;
  width: 280px;
  height: auto;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(2, 8, 20, 0.45), 0 8px 18px rgba(2, 8, 20, 0.3);
  user-select: none;
  -webkit-user-drag: none;
}

.showcase__page--back-left {
  top: 46px;
  left: 0;
  transform: rotate(-8deg);
  opacity: 0.9;
}

.showcase__page--back-right {
  top: 30px;
  right: 0;
  transform: rotate(7deg);
  opacity: 0.92;
}

.showcase__page--front {
  top: 0;
  left: 50%;
  width: 300px;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 40px 80px rgba(2, 8, 20, 0.55), 0 10px 24px rgba(2, 8, 20, 0.35);
}

.showcase__badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(7, 20, 38, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 650;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.showcase__badge svg {
  width: 16px;
  height: 16px;
  color: #6ee7bc;
}

.showcase__badge--top {
  top: 70px;
  right: -8px;
}

.showcase__badge--bottom {
  bottom: 40px;
  left: 4px;
}

@media (max-width: 1100px) {
  .showcase__page {
    width: 230px;
  }
  .showcase__page--front {
    width: 250px;
  }
  .showcase {
    height: 420px;
  }
}

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

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.trust-item svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-weight: 650;
}

@media (max-width: 900px) {
  .trust-strip__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .trust-strip__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---------- Before / after ---------- */

.compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.compare__card {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.compare__card--after {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: var(--shadow);
}

.compare__label {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg-alt);
  color: var(--text-subtle);
}

.compare__card--after .compare__label {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.compare__role {
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.compare__card ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.compare__card--before ul {
  color: var(--text-subtle);
}

.compare__card--after li::marker {
  color: var(--accent);
}

.compare__arrow {
  display: grid;
  place-items: center;
  align-self: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 8px 20px rgba(12, 155, 110, 0.3);
}

.compare__arrow svg {
  width: 22px;
  height: 22px;
}

.compare__note {
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

@media (max-width: 820px) {
  .compare {
    grid-template-columns: 1fr;
  }
  .compare__arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* ---------- Design gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.gallery-skeleton {
  aspect-ratio: 0.62;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--surface) 0%, var(--bg-alt) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border: 1px solid var(--border);
}

.design-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.design-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.design-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.design-card__thumb {
  position: relative;
  display: block;
  padding: 18px 18px 0;
  border: 0;
  background: linear-gradient(180deg, var(--bg-alt), color-mix(in srgb, var(--bg-alt) 40%, var(--surface)));
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 0;
}

.design-card__thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 679;
  object-fit: cover;
  object-position: top;
  border-radius: 6px 6px 0 0;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.14);
  transition: transform 0.35s ease;
  transform-origin: top center;
}

.design-card__thumb:hover img {
  transform: scale(1.025);
}

.design-card__thumb img.is-missing,
.design-option__img.is-missing,
.switch-card__img.is-missing {
  visibility: hidden;
}

.design-card__zoom {
  position: absolute;
  right: 26px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 20, 38, 0.82);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 650;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.design-card__zoom svg {
  width: 14px;
  height: 14px;
}

.design-card__thumb:hover .design-card__zoom,
.design-card__thumb:focus-visible .design-card__zoom {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .design-card__zoom {
    opacity: 1;
    transform: none;
  }
}

.design-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
}

.design-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.design-card__name {
  margin: 0;
  font-size: 1.1rem;
}

.design-card__tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.design-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.design-card__best {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 2px 0 8px;
  font-size: 0.85rem;
  color: var(--text-subtle);
  line-height: 1.4;
  flex: 1;
}

.design-card__best svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.design-card__choose .icon {
  width: 18px;
  height: 18px;
}

.design-card.is-selected .design-card__choose {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  border-color: transparent;
}

.gallery__status {
  min-height: 1.6em;
  margin: 20px 0 0;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
}

.gallery__status a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 650;
}

.gallery__status svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1000px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .design-card__thumb {
    padding: 12px 12px 0;
  }
  .design-card__body {
    padding: 14px 14px 16px;
  }
  .design-card__desc {
    display: none;
  }
  .design-card__tag {
    display: none;
  }
  .design-card__zoom {
    right: 18px;
    bottom: 10px;
    padding: 5px 9px;
  }
  .design-card__zoom span {
    display: none;
  }
}

/* ---------- Design picker inside the upload form ---------- */

.design-picker {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.design-picker__hint {
  margin: -4px 0 14px;
}

.design-picker__hint span {
  color: var(--text);
  font-weight: 600;
}

.design-options {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.design-option {
  position: relative;
  min-width: 0;
}

.design-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.design-option label {
  display: grid;
  gap: 6px;
  cursor: pointer;
  text-align: center;
}

.design-option__frame {
  position: relative;
  display: block;
  padding: 5px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-alt);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.design-option__img {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 679;
  border-radius: 4px;
  background: #ffffff;
}

.design-option__name {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.design-option__check {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 0 0 2px var(--surface);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.design-option__check svg {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}

.design-option label:hover .design-option__frame {
  border-color: var(--text-subtle);
  transform: translateY(-2px);
}

.design-option input:checked + label .design-option__frame {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.design-option input:checked + label .design-option__check {
  opacity: 1;
  transform: none;
}

.design-option input:checked + label .design-option__name {
  color: var(--text);
}

.design-option input:focus-visible + label .design-option__frame {
  box-shadow: var(--focus-ring);
}

@media (max-width: 760px) {
  .design-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 10px;
  }
}

/* ---------- Lightbox ---------- */

html.has-modal {
  overflow: hidden;
}

.lightbox {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(4, 12, 24, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox[open] {
  animation: lightbox-in 0.22s ease-out;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.lightbox__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  max-height: calc(100vh - 32px);
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--bg-alt);
}

.lightbox__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 56px;
  background: var(--bg-alt);
  overflow: auto;
}

.lightbox__img {
  width: 100%;
  max-width: 520px;
  height: auto;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.2s ease;
}

.lightbox.is-loading .lightbox__img {
  opacity: 0.35;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.lightbox__nav:hover {
  border-color: var(--text-subtle);
}

.lightbox__nav svg {
  width: 20px;
  height: 20px;
}

.lightbox__nav--prev {
  left: 10px;
}

.lightbox__nav--next {
  right: 10px;
}

.lightbox__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 48px 36px 36px;
}

.lightbox__count {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.lightbox__title {
  margin: 4px 0 6px;
  font-size: 2rem;
}

.lightbox__desc {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.lightbox__best {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  margin: 4px 0 20px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  font-size: 0.95rem;
}

.lightbox__best span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.lightbox__note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--text-subtle);
}

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

@media (max-width: 760px) {
  .lightbox__inner {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .lightbox__media {
    padding: 20px 52px;
  }
  .lightbox__img {
    max-height: 56vh;
    width: auto;
  }
  .lightbox__info {
    padding: 20px 22px 24px;
  }
  .lightbox__title {
    font-size: 1.5rem;
  }
}

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

.site-footer {
  padding: 48px 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 36px;
}

.site-footer__brand p {
  max-width: 320px;
  margin: 12px 0 0;
  color: var(--text-muted);
}

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

.site-footer .brand:hover {
  text-decoration: none;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__heading {
  margin: 0 0 4px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.site-footer__col a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.site-footer__base {
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-subtle);
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Order page additions ---------- */

.order-head--meta {
  margin-bottom: 20px;
}

.order-head--meta .order-meta {
  margin-bottom: 0;
}

.preview-frame__stage {
  position: relative;
}

.preview-frame__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: var(--text);
  font-weight: 650;
  text-align: center;
  padding: 24px;
  animation: fade-in 0.2s ease-out;
}

.preview-frame__overlay .spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
  color: var(--accent);
}

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

.checkout__design {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  font-size: 0.95rem;
}

.checkout__design-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.checkout__design strong {
  flex: 1;
}

.checkout__design-change {
  font-weight: 650;
  font-size: 0.9rem;
}

.btn--pay {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(12, 155, 110, 0.3);
}

.pay-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -6px 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pay-methods svg {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.order-help {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.order-help a {
  font-weight: 600;
}

/* Design switcher */

.switcher {
  margin-top: clamp(32px, 5vw, 48px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
}

.switcher__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.switcher__title {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.switcher__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.switcher .alert {
  margin: 0 0 16px;
}

.switcher__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.switch-card {
  position: relative;
  min-width: 0;
}

.switch-card__btn {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.switch-card__btn:disabled {
  cursor: progress;
}

.switch-card__frame {
  position: relative;
  display: block;
  padding: 6px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-alt);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.switch-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 679;
  border-radius: 5px;
  background: #ffffff;
}

.switch-card__name {
  font-weight: 650;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.switch-card__best {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-subtle);
  text-align: center;
}

.switch-card__badge {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.switch-card__badge:empty {
  display: none;
}

.switch-card__badge svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.switch-card__spinner {
  position: absolute;
  inset: 6px;
  display: none;
  place-items: center;
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--accent);
}

.switch-card.is-applying .switch-card__spinner {
  display: grid;
}

.switch-card__zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(7, 20, 38, 0.78);
  color: #ffffff;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.switch-card__zoom svg {
  width: 14px;
  height: 14px;
}

.switch-card:hover .switch-card__zoom,
.switch-card__zoom:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .switch-card__zoom {
    opacity: 1;
  }
}

.switch-card__btn:hover:not(:disabled) .switch-card__frame {
  border-color: var(--text-subtle);
  transform: translateY(-2px);
}

.switch-card.is-current .switch-card__frame {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.switch-card__btn:focus-visible {
  box-shadow: none;
}

.switch-card__btn:focus-visible .switch-card__frame {
  box-shadow: var(--focus-ring);
}

.switcher__grid[aria-busy="true"] .switch-card:not(.is-applying) .switch-card__frame {
  opacity: 0.55;
}

@media (max-width: 1000px) {
  .switcher__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .switcher__grid {
    gap: 12px 10px;
  }
  .switch-card__best {
    display: none;
  }
  .switch-card__name {
    font-size: 0.8rem;
  }
  .switch-card__badge span {
    display: none;
  }
  .switch-card__badge {
    padding: 3px 5px;
  }
}

/* Paid state layout */

.paid-design {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 32px;
}

.paid-design .switcher {
  margin-top: 0;
}

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

.paid-design--no-preview {
  grid-template-columns: 1fr;
}

.paid-design--no-preview .switcher__grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.preview-frame--compact {
  padding: 12px;
}

@media (max-width: 860px) {
  .paid-design {
    grid-template-columns: 1fr;
  }
  .preview-frame--compact {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ---------- Help page ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 120px);
  background: var(--hero-bg);
  color: var(--hero-text);
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(520px 320px at 80% 0%, rgba(47, 207, 149, 0.2), transparent 70%),
    radial-gradient(420px 260px at 10% 100%, rgba(80, 140, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  max-width: 720px;
}

.page-hero .eyebrow {
  color: #6ee7bc;
}

.page-hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  margin-bottom: 14px;
}

.page-hero p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--hero-muted);
  font-size: 1.075rem;
}

.section--tight {
  padding-top: 0;
}

.help-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: clamp(-72px, -6vw, -48px);
}

.support-form {
  display: grid;
  gap: 20px;
}

.support-form__title {
  margin: 0;
  font-size: 1.4rem;
}

.support-form__privacy {
  margin: -4px 0 0;
  text-align: center;
  color: var(--text-subtle);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.select {
  position: relative;
}

.select::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}

.input--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.field__count {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.field__count.is-over {
  color: var(--danger);
}

.hp-field {
  position: absolute !important;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-form .alert {
  margin: 0;
}

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

.support-success h2 {
  font-size: 1.6rem;
}

.support-success h2:focus {
  outline: none;
  box-shadow: none;
}

.support-success__ref {
  font-size: 1.05rem;
}

.support-success__ref strong {
  display: inline-block;
  margin-left: 4px;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.support-success__actions {
  margin-top: 20px;
}

.help-aside {
  display: grid;
  gap: 20px;
}

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

.help-card--muted {
  background: var(--bg-alt);
  box-shadow: none;
}

.help-card__title {
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.help-qa {
  display: grid;
  gap: 16px;
  margin: 0;
}

.help-qa div + div {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.help-qa dt {
  font-weight: 650;
  margin-bottom: 4px;
}

.help-qa dd {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.help-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.925rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .help-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 0 0 clamp(56px, 8vw, 96px);
}

.legal-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.legal-hero h1 {
  margin-bottom: 8px;
}

.legal-hero__meta {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.95rem;
}

.legal__body {
  font-size: 1.02rem;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.legal-toc a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.legal h2 {
  scroll-margin-top: 90px;
}

.policy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 32px;
}

.policy-summary__item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  line-height: 1.4;
}

.policy-summary__item svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.policy-summary__item strong {
  display: block;
  margin-bottom: 2px;
}

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

@media (max-width: 700px) {
  .policy-summary {
    grid-template-columns: 1fr;
  }
}

.retention {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.retention__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  font-size: 0.95rem;
}

.retention__row + .retention__row {
  border-top: 1px solid var(--border);
}

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

.retention__row strong {
  font-weight: 600;
}

@media (max-width: 600px) {
  .retention__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.legal-steps {
  display: grid;
  gap: 10px;
  padding-left: 1.3em;
}

.legal-steps li {
  color: var(--text-muted);
  padding-left: 4px;
}

.legal-steps li::marker {
  color: var(--accent-strong);
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  .design-card__thumb {
    background: linear-gradient(180deg, #0c1c33, #0a182c);
  }
  .site-nav .btn--ghost:hover {
    background: var(--surface-raised);
  }
  .lightbox__close {
    background: var(--surface-raised);
  }
}

/* ---------- v3 refinements ---------- */

.form-section__title {
  font-family: var(--font-display);
  font-weight: 700;
}

legend.form-section__title {
  padding: 0;
}

code.placeholder {
  white-space: nowrap;
}

.success-card h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.4rem);
  margin-bottom: 8px;
}

.success-list {
  max-width: 480px;
}

@media (max-width: 480px) {
  .switch-card__zoom {
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
  }
  .switch-card__zoom svg {
    width: 12px;
    height: 12px;
  }
}

.field {
  align-content: start;
}

.field-row {
  align-items: start;
}

.input--mono {
  font-size: 0.82rem;
  text-overflow: ellipsis;
}

@media (max-width: 760px) {
  .design-card__choose {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

/* ==========================================================================
   v4: tier integrity (Executive design lock, Basic keeps the customer's layout)
   ========================================================================== */

:root {
  --tier-gold: #8a5a00;
  --tier-gold-strong: #6b4500;
  --tier-gold-soft: #fff4dc;
  --tier-gold-border: #f0cf86;
  --tier-gold-chip: linear-gradient(135deg, #fff6e0 0%, #fde7b3 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --tier-gold: #f5c96b;
    --tier-gold-strong: #ffd98a;
    --tier-gold-soft: rgba(245, 182, 56, 0.12);
    --tier-gold-border: rgba(245, 182, 56, 0.4);
    --tier-gold-chip: linear-gradient(135deg, rgba(245, 182, 56, 0.22) 0%, rgba(245, 182, 56, 0.12) 100%);
  }
}

/* Tier badge: "Executive tier" with a lock (locked) or a check (included). */

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--tier-gold-border);
  background: var(--tier-gold-chip);
  color: var(--tier-gold);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(11, 31, 58, 0.12);
}

.lock-badge svg {
  width: 13px;
  height: 13px;
  flex: none;
  stroke-width: 2.4;
}

.lock-badge.is-unlocked {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Home gallery cards */

.design-card__lock {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 1;
}

.design-card.is-locked .design-card__thumb img {
  filter: saturate(0.75);
}

.design-card.is-locked .design-card__thumb::after {
  content: "";
  position: absolute;
  inset: 18px 18px 0;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0) 55%, rgba(11, 31, 58, 0.16) 100%);
  pointer-events: none;
}

.design-card__choose--upgrade {
  --btn-fg: var(--tier-gold);
  border-color: var(--tier-gold-border) !important;
  background: var(--tier-gold-soft);
}

.design-card__choose--upgrade:hover {
  --btn-fg: var(--tier-gold-strong);
  background: color-mix(in srgb, var(--tier-gold-soft) 70%, var(--tier-gold-border));
}

.design-card__choose--upgrade .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 760px) {
  .design-card__lock {
    top: 18px;
    left: 18px;
    padding: 3px 7px 3px 6px;
    font-size: 0.66rem;
  }
  .design-card.is-locked .design-card__thumb::after {
    inset: 12px 12px 0;
  }
}

/* Upload form picker: locked tile and tier caption */

.design-option__locked {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.design-option__locked .design-option__frame {
  border-style: dashed;
  border-color: var(--tier-gold-border);
}

.design-option__locked .design-option__img {
  filter: saturate(0.6) brightness(0.97);
  opacity: 0.8;
}

.design-option__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 31, 58, 0.04), rgba(11, 31, 58, 0.18));
}

.design-option__lock svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--tier-gold);
  stroke-width: 2.2;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.2), 0 0 0 1px var(--tier-gold-border);
}

.design-option__locked:hover .design-option__frame,
.design-option__locked[aria-expanded="true"] .design-option__frame {
  border-color: var(--tier-gold);
  transform: translateY(-2px);
}

.design-option__locked:focus-visible {
  box-shadow: none;
  outline: none;
}

.design-option__locked:focus-visible .design-option__frame {
  box-shadow: var(--focus-ring);
}

.design-option__tier {
  margin: -4px -4px 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--tier-gold);
  white-space: nowrap;
}

.design-option__tier--included {
  color: var(--accent-strong);
}

/* Offer to switch tier for a locked design */

.design-offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px 16px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--tier-gold-border);
  background: var(--tier-gold-soft);
  animation: fade-in 0.2s ease-out;
}

.design-offer[hidden] {
  display: none;
}

.design-offer__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--tier-gold);
  box-shadow: 0 0 0 1px var(--tier-gold-border);
}

.design-offer__icon svg {
  width: 20px;
  height: 20px;
}

.design-offer__title {
  margin: 0 0 2px;
  font-weight: 700;
  color: var(--text);
}

.design-offer__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.design-offer__actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.design-offer__actions .btn {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .design-offer__actions {
    grid-column: 1 / -1;
  }
  .design-offer__actions .btn {
    flex: 1 1 auto;
  }
}

/* Basic: own layout note (upload form), and the pricing card note */

.layout-note {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
}

.layout-note[hidden] {
  display: none;
}

.layout-note__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.layout-note__icon svg {
  width: 22px;
  height: 22px;
}

.layout-note__text {
  min-width: 0;
}

.layout-note__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 1.05rem;
  color: var(--text);
}

.layout-note__body {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.layout-note__ext {
  display: inline-block;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}

.layout-note__status {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
}

.layout-note__status[hidden] {
  display: none;
}

.layout-note__status svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}

.layout-note__status.is-docx {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.layout-note__status.is-other {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.layout-note__more {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--text-subtle);
}

.layout-note__more .link-btn {
  font-size: inherit;
}

.tier__note {
  display: flex;
  gap: 10px;
  margin: -12px 0 24px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.tier__note svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

/* Lightbox tier badge */

.lightbox__badge {
  margin: 0 0 8px;
}

/* Order page: locked designs in the switcher */

.switch-card__lock {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 8px 3px 6px;
  font-size: 0.64rem;
}

.switch-card__lock svg {
  width: 11px;
  height: 11px;
}

.switch-card.is-locked .switch-card__btn {
  cursor: not-allowed;
}

.switch-card.is-locked .switch-card__frame {
  border-style: dashed;
  border-color: var(--tier-gold-border);
}

.switch-card.is-locked .switch-card__img {
  filter: saturate(0.55);
  opacity: 0.72;
}

.switch-card.is-locked .switch-card__btn:hover:not(:disabled) .switch-card__frame {
  border-color: var(--tier-gold);
  transform: none;
}

.switch-card.is-locked .switch-card__name {
  color: var(--text-muted);
}

.switcher [data-slot="switcher-note"] {
  border: 1px solid var(--tier-gold-border);
  background: var(--tier-gold-soft);
  color: var(--text);
}

.switcher [data-slot="switcher-note"] svg {
  color: var(--tier-gold);
}

@media (max-width: 480px) {
  .switch-card__lock span {
    display: none;
  }
  .switch-card__lock {
    padding: 4px;
  }
}

/* Order page: Basic layout card in place of the design switcher */

.layout-card {
  display: flex;
  gap: 20px;
  margin-top: clamp(32px, 5vw, 48px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.paid-design .layout-card {
  margin-top: 0;
}

.layout-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.layout-card__icon svg {
  width: 26px;
  height: 26px;
}

.layout-card__body {
  flex: 1;
  min-width: 0;
}

.layout-card__eyebrow {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.layout-card__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.layout-card__text {
  margin: 0 0 16px;
  max-width: 62ch;
  color: var(--text-muted);
  line-height: 1.6;
}

.layout-card__points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layout-card__points li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.layout-card__points svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  color: var(--accent);
}

.layout-card__more {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.layout-card__more[hidden] {
  display: none;
}

.paid-design .layout-card__points {
  grid-template-columns: 1fr;
}

@media (max-width: 560px) {
  .layout-card {
    flex-direction: column;
    gap: 14px;
  }
}

.tier .feature-list {
  align-content: start;
}
