:root {
  --ink: #172033;
  --muted: #667085;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --line: rgba(99, 102, 241, 0.18);
  --violet: #7c3aed;
  --blue: #2563eb;
  --sky: #06b6d4;
  --pink: #ec4899;
  --orange: #f97316;
  --green: #10b981;
  --yellow: #facc15;
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.16);
  --shadow-soft: 0 14px 35px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(236, 72, 153, 0.28), transparent 32rem),
    radial-gradient(circle at 88% 16%, rgba(6, 182, 212, 0.26), transparent 30rem),
    linear-gradient(135deg, #fff7ed 0%, #eff6ff 36%, #f5f3ff 69%, #fff1f2 100%);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.36) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.36) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

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

a {
  color: inherit;
}

.container,
.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page {
  padding: 42px 0 72px;
}

.bg-orb {
  position: fixed;
  z-index: -2;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(14px);
  opacity: 0.52;
  pointer-events: none;
}

.orb-1 {
  top: 90px;
  left: -90px;
  background: linear-gradient(135deg, #fb7185, #facc15);
}

.orb-2 {
  right: -70px;
  top: 210px;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
}

.orb-3 {
  bottom: -110px;
  left: 38%;
  background: linear-gradient(135deg, #34d399, #60a5fa);
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px);
}

.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #111827, #312e81, #831843);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.deal-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 16px;
  background: linear-gradient(90deg, #581c87, #be185d, #ea580c);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.deal-bar a {
  color: #fef3c7;
  font-weight: 950;
  text-decoration: none;
}

.promo-bar a {
  color: #fde68a;
  text-decoration: none;
}

.promo-bar a:hover {
  text-decoration: underline;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--pink), var(--orange), var(--sky)) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
  color: var(--violet);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand-icon svg {
  width: 26px;
  height: 26px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-account-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.header-credit-pill {
  display: grid;
  min-width: 108px;
  place-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.header-credit-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.14);
}

.header-credit-pill span {
  color: var(--violet);
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}

.header-credit-pill small {
  color: #475467;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-login-link,
.header-logout-button {
  width: auto;
  min-width: 94px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover {
  color: var(--violet);
  background: rgba(124, 58, 237, 0.1);
  transform: translateY(-1px);
}

.hero,
.directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: 34px;
  margin-bottom: 34px;
}

.video-hero,
.directory-hero {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(6, 182, 212, 0.16));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-content,
.directory-hero-content {
  min-width: 0;
}

.hero-info-panel {
  display: grid;
  gap: 20px;
  align-content: start;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.78)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(236, 72, 153, 0.24), rgba(6, 182, 212, 0.28))
      border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
}

.hero-info-panel .stat-strip,
.hero-info-panel .prompt-chip-grid {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.04em;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.9rem);
  line-height: 0.9;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

.hero-content > p,
.directory-hero-content > p,
.preview-card p,
.image-gallery p,
.footer-meta {
  color: var(--muted);
  line-height: 1.7;
}

.hero-content > p,
.directory-hero-content > p {
  max-width: 680px;
  margin: 22px 0;
  font-size: 1.08rem;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.button-link,
button,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--pink), var(--orange));
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.28);
  color: white;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    box-shadow 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
}

.button-link,
button {
  width: 100%;
  padding: 12px 18px;
}

.button-link {
  width: auto;
}

.hero-start-button {
  min-height: 68px;
  padding: 18px 34px;
  border-radius: 26px;
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.34);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em;
}

.hero-start-button::after {
  margin-left: 10px;
  content: "->";
}

.button-link:hover,
button:hover:not(:disabled),
.secondary-btn:hover:not(:disabled) {
  filter: saturate(1.12);
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(236, 72, 153, 0.28);
}

.button-link.secondary,
.secondary-btn {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.18), var(--shadow-soft);
  color: var(--violet);
}

.button-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: white;
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

button.is-loading .button-spinner {
  display: inline-block;
}

button:disabled,
.secondary-btn:disabled {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.66;
  transform: none;
}

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

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.stat-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.stat-strip strong {
  color: var(--violet);
  font-size: 1.2rem;
}

.prompt-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.prompt-chip-grid span {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  color: #344054;
  font-size: 0.9rem;
  font-weight: 850;
}

.hero-collage {
  display: grid;
  min-height: 520px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  transform: rotate(1deg);
}

.hero-collage img,
.directory-hero img,
.preview-card img,
.image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-collage img {
  min-height: 170px;
  border: 8px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.2);
}

.hero-collage .collage-large {
  grid-row: span 2;
}

.hero-generator-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(236, 72, 153, 0.34), rgba(6, 182, 212, 0.4))
      border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}

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

.generator-tabs span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  color: #5b21b6;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.model-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.model-strip span {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(17, 24, 39, 0.06);
  color: #344054;
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-form {
  display: grid;
  gap: 4px;
}

.generator-back-link {
  justify-self: start;
  width: auto;
}

.prompt-login-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 12%, rgba(236, 72, 153, 0.12), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  box-shadow: var(--shadow-soft);
}

.prompt-login-panel h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

.prompt-login-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero-preview-panel {
  display: grid;
  gap: 12px;
}

.mini-status {
  padding: 16px;
  border-radius: 22px;
  box-shadow: none;
}

.preview-note {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: #475467;
  font-size: 0.9rem;
}

.preview-note strong {
  color: var(--ink);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}

.section-heading h2 {
  max-width: 720px;
}

.section-heading.centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-heading.centered h2 {
  max-width: 860px;
}

/* Fallback behavior when frontend JS fails to initialize. */
#generator:target {
  grid-template-columns: 1fr;
}

#generator:target .hero-content,
#generator:target .hero-info-panel {
  display: none;
}

#generator:target #generator-panel {
  display: grid !important;
  width: min(100%, 980px);
  margin: 0 auto;
}

#account:target {
  display: grid !important;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

#account:target .purchase-card {
  display: none;
}

body.generator-active .page > section:not(#generator):not(#account) {
  display: none;
}

body.account-flow-active .page > section:not(#account),
body.checkout-flow-active .page > section:not(#account) {
  display: none;
}

body.generator-active .video-hero {
  grid-template-columns: 1fr;
}

body.generator-active .hero-content {
  display: none;
}

body.generator-active .hero-info-panel {
  display: none;
}

body.generator-active .hero-generator-card {
  width: min(100%, 980px);
  margin: 0 auto;
}

body.account-flow-active .account-credit-grid,
body.checkout-flow-active .account-credit-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

body.account-flow-active .purchase-card,
body.checkout-flow-active .account-card {
  display: none;
}

.section-subtitle {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.section-heading.compact {
  align-items: center;
  margin-bottom: 16px;
}

.section-heading.compact h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
}

.generator-shell,
.inspiration-section {
  margin-top: 38px;
}

.account-credit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: start;
  margin: 38px 0;
}

.creative-grid,
.status-result-grid,
.directory-layout,
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.card,
.status-card,
.result-card,
.preview-card,
.directory-filter-card,
.lawyer-detail-card,
.auth-review-card,
.lawyer-card,
.review-item {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.card,
.status-card,
.result-card,
.directory-filter-card,
.lawyer-detail-card,
.auth-review-card {
  padding: 22px;
}

.form-card,
.status-card,
.result-card,
.directory-filter-card,
.lawyer-detail-card,
.auth-review-card {
  backdrop-filter: blur(16px);
}

.form-card {
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--pink), var(--sky), var(--yellow)) border-box;
  border: 2px solid transparent;
}

.account-card,
.purchase-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.42), rgba(236, 72, 153, 0.32), rgba(6, 182, 212, 0.36))
      border-box;
  border: 2px solid transparent;
}

.credit-pill {
  display: grid;
  min-width: 112px;
  place-items: center;
  padding: 13px 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--violet), var(--pink), var(--orange));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.24);
  color: white;
}

.credit-pill span {
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.credit-pill small {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.purchase-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.package-details {
  min-height: 74px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.1));
  color: #344054;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.55;
}

.package-details strong {
  color: var(--violet);
}

.payment-grid {
  margin-top: 0;
}

.paypal-checkout-card {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.paypal-checkout-card h3 {
  margin: 0;
}

#paypal-buttons {
  min-height: 46px;
}

.preview-card {
  overflow: hidden;
  background: #111827;
  color: white;
}

.preview-card img {
  height: 310px;
}

.preview-card div {
  padding: 22px;
}

.preview-card h3 {
  color: white;
  font-size: 1.5rem;
}

.preview-card p:last-child {
  color: #d1d5db;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(236, 72, 153, 0.75);
  background: white;
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

textarea {
  min-height: 164px;
  resize: vertical;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.prompt-suggestions,
.category-tags,
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-suggestions {
  margin: 12px 0 4px;
}

.prompt-suggestions span,
.category-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(6, 182, 212, 0.14));
  color: #5b21b6;
  font-size: 0.82rem;
  font-weight: 800;
}

.prompt-suggestions span {
  padding: 8px 10px;
}

.category-tags span {
  padding: 7px 9px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--pink);
}

.status-result-grid {
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr);
  margin-top: 22px;
}

.status-card {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.93), rgba(49, 46, 129, 0.9)),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.5), transparent 24rem);
  color: white;
}

.status-card h2,
.status-card p {
  color: white;
}

.status-card #status-text {
  color: #dbeafe;
  font-size: 1.05rem;
  line-height: 1.6;
}

#task-id {
  color: #bfdbfe;
  font-size: 0.9rem;
}

#result-video {
  width: 100%;
  min-height: 280px;
  border: 8px solid white;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow-soft);
}

.showcase-video-section {
  margin-top: 42px;
}

.prompt-showcase {
  margin-top: 6px;
}

.showcase-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.prompt-showcase .showcase-video-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.prompt-showcase .section-heading.compact {
  margin-bottom: 12px;
}

.prompt-showcase .section-heading h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.prompt-showcase .showcase-video-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1fr);
}

.prompt-showcase .showcase-video-card video {
  height: 100%;
}

.prompt-showcase .showcase-video-card div {
  padding: 14px;
}

.prompt-showcase .showcase-video-card p {
  font-size: 0.9rem;
}

.showcase-video-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.84)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.44), rgba(236, 72, 153, 0.32), rgba(6, 182, 212, 0.36))
      border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
}

.showcase-video-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #020617;
  object-fit: cover;
}

.showcase-video-card div {
  padding: 18px;
}

.showcase-video-card h3 {
  margin-top: 10px;
}

.showcase-video-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.showcase-tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(6, 182, 212, 0.14));
  color: var(--violet);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.special-section,
.advantage-section,
.feature-section,
.use-case-section,
.testimonial-section,
.faq-section,
.pricing-section,
.template-section,
.cta-section {
  margin-top: 58px;
}

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

.template-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.34), rgba(236, 72, 153, 0.24), rgba(6, 182, 212, 0.28))
      border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-soft);
}

.template-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.template-grid article div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.template-grid article div strong {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  color: #5b21b6;
  font-size: 0.78rem;
}

.template-cta {
  margin: 18px auto 0;
}

.billing-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.billing-toggle span,
.billing-toggle strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #475467;
  font-size: 0.9rem;
}

.billing-toggle strong {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: white;
}

.billing-toggle small {
  color: #fde68a;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.pricing-grid,
.credit-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-grid {
  margin-top: 24px;
}

.pricing-card,
.credit-pack-panel,
.credits-policy {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.pricing-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 22px;
}

.pricing-card.featured-plan,
.credit-pack-grid .featured-pack {
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)) padding-box,
    linear-gradient(135deg, var(--violet), var(--pink), var(--orange)) border-box;
  border: 2px solid transparent;
  transform: translateY(-8px);
}

.plan-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
}

.price strong {
  color: var(--violet);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.price span,
.plan-note {
  color: var(--muted);
}

.pricing-card h4 {
  margin: 8px 0 0;
}

.pricing-card ul,
.credits-policy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.55;
}

.credit-pack-panel,
.credits-policy {
  margin-top: 22px;
  padding: 22px;
}

.credit-pack-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.credit-pack-grid p {
  margin: 0;
  color: var(--muted);
}

.credit-pack-grid p strong {
  color: var(--violet);
  font-size: 1.7rem;
}

.credit-pack-grid article > span:not(.plan-badge) {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
}

.credits-policy h3 {
  margin-top: 0;
}

.special-stack {
  display: grid;
  gap: 22px;
}

.special-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.special-row.reverse {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.85fr);
}

.special-row.reverse div {
  order: 2;
}

.special-row.reverse video {
  order: 1;
}

.special-row video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 8px solid white;
  border-radius: 26px;
  background: #020617;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.special-row h3 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.special-row p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.advantage-grid,
.feature-grid,
.use-case-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.advantage-grid article,
.feature-grid article,
.use-case-grid article,
.testimonial-grid article,
.faq-list details,
.cta-section {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.advantage-grid article,
.feature-grid article,
.use-case-grid article,
.testimonial-grid article {
  padding: 20px;
}

.advantage-grid article {
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.42), rgba(6, 182, 212, 0.32)) border-box;
  border: 2px solid transparent;
}

.advantage-grid p,
.feature-grid p,
.use-case-grid p,
.testimonial-grid p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.testimonial-grid article {
  position: relative;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: white;
  font-size: 1.2rem;
  font-weight: 950;
}

.testimonial-grid strong {
  color: var(--violet);
}

.faq-list {
  display: grid;
  max-width: 900px;
  margin: 0 auto;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.cta-section {
  display: grid;
  justify-items: center;
  padding: 42px 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(250, 204, 21, 0.18), transparent 20rem),
    linear-gradient(135deg, rgba(49, 46, 129, 0.94), rgba(131, 24, 67, 0.9));
  color: white;
  text-align: center;
}

.cta-section h2 {
  max-width: 760px;
  color: white;
}

.cta-section .eyebrow {
  color: #fde68a;
}

.cta-section .button-link {
  margin-top: 18px;
  background: white;
  color: var(--violet);
}

.message-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
}

.message-modal-card {
  width: min(100%, 480px);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 15%, rgba(236, 72, 153, 0.14), transparent 16rem),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.message-modal-card h2 {
  margin: 0;
}

.message-modal-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

.image-gallery article {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.image-gallery img {
  height: 210px;
}

.image-gallery h3,
.image-gallery p {
  margin-right: 18px;
  margin-left: 18px;
}

.image-gallery h3 {
  margin-top: 18px;
}

.image-gallery p {
  margin-bottom: 20px;
}

.directory-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(16, 185, 129, 0.24), transparent 26rem),
    radial-gradient(circle at 84% 14%, rgba(245, 158, 11, 0.24), transparent 26rem),
    linear-gradient(135deg, #f0fdf4 0%, #eff6ff 46%, #fff7ed 100%);
}

.directory-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.9fr);
}

.directory-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.7rem);
}

.directory-hero ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.directory-hero li {
  position: relative;
  padding-left: 28px;
  color: #344054;
  font-weight: 800;
}

.directory-hero li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--sky));
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.72);
  content: "";
}

.directory-hero img {
  min-height: 390px;
  border: 8px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.directory-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  margin-top: 32px;
}

.directory-filter-card {
  position: sticky;
  top: 96px;
}

.directory-filter-card h2,
.lawyer-detail-card h2,
.auth-review-card h2 {
  margin-top: 0;
}

.directory-filter-card input,
.directory-filter-card select,
.auth-form input,
.review-form textarea,
.review-form select {
  margin-bottom: 14px;
}

.result-summary,
.muted {
  color: var(--muted);
}

.pager {
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.pager button {
  width: auto;
  min-height: 40px;
  padding: 9px 13px;
}

#page-label {
  color: #475467;
  font-size: 0.9rem;
  font-weight: 800;
}

.lawyer-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lawyer-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  overflow: hidden;
}

.lawyer-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--green), var(--sky), var(--violet), var(--pink));
  content: "";
}

.lawyer-card-head h3 {
  margin-bottom: 6px;
}

.lawyer-card-head p,
.lawyer-firm {
  margin: 0;
}

.lawyer-firm {
  color: #344054;
  font-weight: 900;
}

.full-width {
  width: 100%;
}

.review-layout {
  margin-top: 28px;
}

.lawyer-detail-placeholder {
  padding: 24px;
  border: 1px dashed rgba(124, 58, 237, 0.28);
  border-radius: 18px;
  background: rgba(124, 58, 237, 0.06);
  color: var(--muted);
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-item {
  padding: 16px;
}

.review-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-item small {
  color: var(--muted);
}

.auth-status {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(236, 72, 153, 0.12));
  color: #344054;
  font-weight: 800;
}

.auth-status.is-error {
  background: linear-gradient(135deg, rgba(251, 113, 133, 0.16), rgba(254, 202, 202, 0.22));
  color: #9f1239;
}

.auth-form,
.review-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.auth-form h3,
.review-form h3 {
  margin-top: 0;
}

.google-auth-block {
  margin-top: 4px;
}

.google-signin-button {
  min-height: 40px;
}

.auth-divider {
  margin: 4px 0 2px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
}

.auth-divider span::before,
.auth-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 52px;
  border-top: 1px solid rgba(148, 163, 184, 0.45);
}

.auth-divider span::before {
  right: 100%;
}

.auth-divider span::after {
  left: 100%;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.footer-brand {
  margin: 0 0 4px;
  font-weight: 900;
}

.footer-meta {
  margin: 0;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero,
  .directory-hero,
  .account-credit-grid,
  .creative-grid,
  .status-result-grid,
  .special-row,
  .special-row.reverse,
  .directory-layout,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .special-row.reverse div,
  .special-row.reverse video {
    order: initial;
  }

  .hero-collage {
    min-height: 420px;
  }

  .directory-filter-card {
    position: static;
  }

  .lawyer-results,
  .showcase-video-grid,
  .advantage-grid,
  .feature-grid,
  .use-case-grid,
  .testimonial-grid,
  .pricing-grid,
  .credit-pack-grid,
  .template-grid,
  .image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .promo-bar {
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }

  .deal-bar {
    align-items: center;
    flex-direction: column;
    gap: 4px;
  }

  .nav-inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-account-tools {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .video-hero,
  .directory-hero {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-collage {
    min-height: auto;
    grid-template-columns: 1fr;
    transform: none;
  }

  .hero-collage .collage-large {
    grid-row: auto;
  }

  .generator-tabs {
    grid-template-columns: 1fr;
  }

  .hero-collage img,
  .directory-hero img {
    min-height: 220px;
  }

  .prompt-showcase .showcase-video-card {
    grid-template-columns: 1fr;
  }

  .lawyer-results,
  .showcase-video-grid,
  .advantage-grid,
  .feature-grid,
  .use-case-grid,
  .testimonial-grid,
  .pricing-grid,
  .credit-pack-grid,
  .template-grid,
  .image-gallery {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured-plan,
  .credit-pack-grid .featured-pack {
    transform: none;
  }

  .button-link {
    width: 100%;
  }

  .nav-account-tools .button-link,
  .nav-account-tools .secondary-btn {
    width: auto;
  }
}
