:root {
  --bg: #000;
  --panel: #090909;
  --panel-2: #101010;
  --text: #fff;
  --muted: #656565;
  --soft: #bdbdbd;
  --line: #202020;
  --accent: #12cb58;
  --accent-soft: rgba(18, 203, 88, 0.14);
  --accent-line: rgba(18, 203, 88, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 8%, rgba(18, 203, 88, 0.1), transparent 26%),
    linear-gradient(180deg, #041009 0%, #000 48%, #000 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
textarea {
  font: inherit;
}

.saas-page {
  width: min(1220px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 26px 0 60px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crest {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 24px;
  font-weight: 900;
}

.brand-name,
.brand-subtitle,
.pill {
  margin: 0;
  letter-spacing: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.reset-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.reset-link:hover {
  color: var(--text);
  border-color: var(--accent-line);
}

.nav-status {
  width: min(320px, 36vw);
  color: var(--muted);
  font-size: 13px;
}

.proof-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.proof-badge span {
  color: var(--accent);
}

.progress-track {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #1b1b1b;
}

.progress-bar {
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(18, 203, 88, 0.5);
  transition: width 0.25s ease;
}

.hero-header {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 88px auto 36px;
  text-align: center;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    max-height 0.32s ease,
    margin 0.32s ease;
}

.saas-page.is-started .hero-header {
  max-height: 0;
  margin: 18px auto 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-16px);
}

.pill {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-header h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-header p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--soft);
  font-size: 20px;
  line-height: 1.5;
}

.extractor-shell {
  max-width: 930px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.55);
}

.question-bar {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.question-bar span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.question-bar strong {
  color: var(--text);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.35;
}

.composer {
  position: relative;
  display: grid;
  min-height: 220px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: #fff;
}

.composer.is-thinking {
  animation: glow 0.85s infinite;
  border-color: var(--accent);
}

.composer.is-thinking::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: 24px;
  background: linear-gradient(90deg, transparent, rgba(18, 203, 88, 0.72), transparent);
  filter: blur(16px);
  opacity: 0.9;
  animation: sweep 1.25s infinite;
}

.composer textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 0;
  border-radius: 18px;
  padding: 28px 170px 28px 30px;
  outline: none;
  color: #050505;
  background: #fff;
  font-size: 18px;
  line-height: 1.55;
}

.composer textarea::placeholder {
  color: #777;
}

.composer.has-consent textarea {
  padding-bottom: 118px;
}

.composer button {
  position: absolute;
  right: 26px;
  bottom: 26px;
  min-width: 138px;
  min-height: 56px;
  border: 0;
  border-radius: 13px;
  color: #031207;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.composer button:disabled {
  cursor: wait;
  filter: saturate(0.9);
}

.thinking-card {
  display: none;
  grid-template-columns: 14px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(18, 203, 88, 0.08);
}

.thinking-card.is-visible {
  display: grid;
}

.thinking-card strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.thinking-card p {
  margin: 5px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.thinking-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 1.1s infinite;
}

.consent-panel {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  position: absolute;
  left: 22px;
  right: 184px;
  bottom: 24px;
  align-items: start;
  margin: 0;
  border: 1px solid #e4e4e4;
  border-radius: 13px;
  padding: 11px 12px;
  color: #4f4f4f;
  background: #f7f7f7;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.32;
}

.consent-panel.needs-attention {
  border-color: var(--accent);
  background: rgba(18, 203, 88, 0.1);
  box-shadow: 0 0 0 2px rgba(18, 203, 88, 0.18);
}

.consent-panel input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.consent-error {
  display: none;
  margin-top: 5px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.35;
}

.consent-panel.needs-attention .consent-error {
  display: block;
}

.generation-loader {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(18, 203, 88, 0.08);
}

.loader-orb {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(18, 203, 88, 0.2);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

.generation-loader strong {
  display: block;
  color: var(--text);
  font-size: 16px;
}

.generation-loader p {
  margin: 5px 0 12px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.45;
}

.generation-loader ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.generation-loader li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.generation-loader li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #080808;
}

.generation-loader li.is-active {
  color: var(--text);
}

.generation-loader li.is-active::before {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(18, 203, 88, 0.5);
}

.generation-loader li.is-done {
  color: var(--accent);
}

.generation-loader li.is-done::before {
  content: "✓";
  display: grid;
  place-items: center;
  color: #031207;
  background: var(--accent);
  border-color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.messages {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.message {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.45;
}

.message.user {
  justify-self: end;
  color: #031207;
  background: var(--accent);
  font-weight: 700;
}

.message strong {
  display: block;
  margin-bottom: 4px;
  color: inherit;
  font-size: 12px;
  opacity: 0.72;
}

.profile-section,
.report {
  max-width: 930px;
  margin: 18px auto 0;
}

.dashboard {
  max-width: 1180px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0 24px;
  background: transparent;
  box-shadow: none;
}

.dashboard-hero .pill {
  justify-self: start;
}

.dashboard-hero h2 {
  margin: 14px 0 8px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
}

.dashboard-hero p:not(.pill) {
  max-width: 680px;
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}

.access-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(18, 203, 88, 0.07);
}

.access-link-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.access-link-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.access-link-card button {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  color: #031207;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.profile-access {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.profile-access summary {
  cursor: pointer;
  padding: 13px 14px;
  color: var(--accent);
  font-weight: 900;
}

.mini-profile-grid {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.mini-profile-grid div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.mini-profile-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-profile-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.section-head p:not(.pill) {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.profile-card {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
  opacity: 0.5;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.profile-card.is-filled {
  border-color: var(--accent-line);
  background: rgba(18, 203, 88, 0.055);
  opacity: 0.86;
  transform: translateY(0);
}

.profile-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
}

.profile-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.3;
}

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

.offer-card,
.structure {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.compact-offer {
  display: grid;
  gap: 12px;
}

.offer-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.offer-index {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-card h4,
.structure h2 {
  margin: 0 0 10px;
  color: var(--text);
}

.compact-offer h4 {
  font-size: 21px;
}

.compact-problem,
.compact-promise {
  margin: 0;
}

.compact-promise {
  color: var(--accent);
  font-weight: 900;
}

.price-pill {
  display: inline-flex;
  min-width: 120px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
}

.offer-card p,
.structure p {
  color: var(--soft);
  line-height: 1.55;
}

.offer-card p strong {
  color: var(--text);
}

.promise {
  color: var(--accent) !important;
  font-weight: 900;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.meta-grid span {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--text);
  background: #080808;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.meta-grid i {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  margin-left: 6px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  cursor: help;
}

.meta-grid i::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: min(260px, 70vw);
  transform: translateX(-50%);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: #050505;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.44);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.meta-grid i:hover::after {
  opacity: 1;
}

.network-btn {
  justify-self: end;
  width: min(360px, 100%);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  padding: 11px 14px;
  color: #031207;
  background: var(--accent);
  font-weight: 900;
  cursor: pointer;
}

.network-btn:hover {
  filter: brightness(1.05);
}

.offer-details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.offer-details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 900;
}

.offer-details p {
  margin: 10px 0 0;
}

.share-studio {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.share-studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.share-studio-head h2 {
  margin: 12px 0 0;
  font-size: 28px;
}

.share-studio-head button,
.share-actions button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text);
  background: #101010;
  font-weight: 900;
  cursor: pointer;
}

.share-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1fr);
  gap: 18px;
}

.share-preview {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: #050505;
}

.share-loader {
  position: absolute;
  inset: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 18px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.76);
  border: 1px solid var(--accent-line);
  backdrop-filter: blur(10px);
}

.share-loader span {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(18, 203, 88, 0.22);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.share-loader strong {
  display: block;
  font-size: 15px;
}

.share-loader p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}

.share-preview canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.share-copy {
  display: grid;
  gap: 10px;
}

.share-copy label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.share-copy textarea {
  width: 100%;
  min-height: 340px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  color: var(--text);
  background: #080808;
  line-height: 1.55;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.share-actions button:first-child {
  color: #031207;
  background: var(--accent);
}

.share-actions button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.structure {
  margin-top: 24px;
}

.structure-block {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 14px;
  background: #090909;
}

.structure-block strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.hidden {
  display: none;
}

@keyframes glow {
  0%,
  100% {
    box-shadow:
      0 0 0 2px rgba(18, 203, 88, 0.48),
      0 0 26px rgba(18, 203, 88, 0.42),
      0 0 70px rgba(18, 203, 88, 0.24);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(18, 203, 88, 0.2),
      0 0 46px rgba(18, 203, 88, 0.8),
      0 0 120px rgba(18, 203, 88, 0.38);
  }
}

@keyframes sweep {
  0% {
    transform: translateX(-22%);
  }
  50% {
    transform: translateX(22%);
  }
  100% {
    transform: translateX(-22%);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(18, 203, 88, 0.44);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(18, 203, 88, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(18, 203, 88, 0);
  }
}

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

@media (max-width: 900px) {
  .saas-page {
    width: min(100% - 20px, 760px);
    padding-top: 18px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-status {
    width: 100%;
  }

  .hero-header {
    margin-top: 48px;
  }

  .extractor-shell {
    padding: 16px;
    border-radius: 20px;
  }

  .composer textarea {
    min-height: 240px;
    padding: 22px;
    padding-bottom: 92px;
  }

  .composer.has-consent textarea {
    padding-bottom: 184px;
  }

  .composer button {
    right: 18px;
    bottom: 18px;
  }

  .consent-panel {
    left: 18px;
    right: 18px;
    bottom: 88px;
  }

  .profile-grid,
  .meta-grid,
  .offer-summary,
  .dashboard-hero,
  .access-link-card,
  .share-grid,
  .share-actions {
    grid-template-columns: 1fr;
  }
}
