:root {
  --ink: #07110f;
  --ink-soft: #101c19;
  --panel: rgba(12, 24, 22, 0.86);
  --panel-strong: #142521;
  --paper: #f7f4ea;
  --paper-soft: #ebe6d8;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(7, 17, 15, 0.12);
  --text: #f7fbf6;
  --muted: #b8c9c1;
  --muted-dark: #54645d;
  --teal: #35e5ad;
  --green: #78d36f;
  --gold: #f4be4f;
  --violet: #8b72ff;
  --coral: #ff7a66;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(53, 229, 173, 0.12), transparent 32%),
    linear-gradient(215deg, rgba(139, 114, 255, 0.16), transparent 38%),
    var(--ink);
  color: var(--text);
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(7, 17, 15, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(53, 229, 173, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, #19362f, #243128);
  color: var(--teal);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.nav-links a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(53, 229, 173, 0.45);
  border-radius: 8px;
  background: rgba(53, 229, 173, 0.12);
  color: var(--teal);
  font-weight: 750;
}

.studio-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 0.62fr) minmax(0, 1.48fr);
  gap: 28px;
  min-height: clamp(860px, calc(100svh - 70px), 1080px);
  padding: 46px 32px 34px;
  overflow: hidden;
}

.studio-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 88%);
}

.intro-copy,
.app-shell {
  position: relative;
  z-index: 1;
}

.studio-screen > * {
  min-width: 0;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 510px;
  padding: 16px 0;
  min-width: 0;
}

.eyebrow,
.panel-kicker,
.result-label,
.plan-name {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 4.15rem;
  line-height: 0.95;
  max-width: 100%;
}

h1 span {
  display: block;
}

.hero-text {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.72;
  overflow-wrap: break-word;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.trust-strip span {
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.trust-strip strong {
  display: block;
  color: var(--text);
  font-size: 1.45rem;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
  gap: 14px;
  align-self: center;
  min-height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(6, 14, 13, 0.68);
  box-shadow: var(--shadow);
  padding: 14px;
  backdrop-filter: blur(18px);
  min-width: 0;
}

.control-panel,
.analysis-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 0;
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 16px;
}

.panel-heading h2,
.scanner-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

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

.field > span,
.email-form label {
  color: #dce8e2;
  font-size: 0.84rem;
  font-weight: 750;
}

select,
input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

select:focus,
input:focus {
  border-color: rgba(53, 229, 173, 0.72);
  box-shadow: 0 0 0 3px rgba(53, 229, 173, 0.12);
}

select option {
  background: #12211d;
  color: var(--text);
}

.segmented,
.format-grid,
.option-grid {
  display: grid;
  gap: 8px;
}

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

.choice-button,
.format-grid span,
.option-card span {
  display: grid;
  min-height: 42px;
  align-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  padding: 9px;
}

.choice-button {
  place-items: center;
  padding: 0 8px;
}

.choice-button.is-active,
.format-grid input:checked + span,
.option-card input:checked + span {
  border-color: rgba(53, 229, 173, 0.72);
  background: rgba(53, 229, 173, 0.14);
  color: var(--text);
}

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

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

.format-grid label,
.option-card {
  display: block;
}

.format-grid input,
.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.format-grid strong,
.format-grid small,
.option-card strong,
.option-card small {
  display: block;
}

.format-grid strong,
.option-card strong {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.1;
}

.format-grid small,
.option-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.22;
}

.option-card.is-pack span {
  border-color: rgba(244, 190, 79, 0.34);
  background: rgba(244, 190, 79, 0.08);
}

.option-card.is-pack input:checked + span {
  border-color: rgba(244, 190, 79, 0.72);
  background: rgba(244, 190, 79, 0.15);
}

.range-field input {
  accent-color: var(--teal);
}

.range-field output {
  color: var(--gold);
  font-weight: 800;
}

.generate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 2px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #07110f;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(53, 229, 173, 0.22);
}

.button-symbol {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.16);
  font-weight: 900;
}

.order-message {
  display: block;
  min-height: 34px;
  color: var(--gold);
  font-size: 0.78rem;
  line-height: 1.35;
}

.analysis-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
}

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

.live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 34px;
  border: 1px solid rgba(244, 190, 79, 0.42);
  border-radius: 8px;
  background: rgba(244, 190, 79, 0.12);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 850;
}

.live-pill.is-running {
  border-color: rgba(53, 229, 173, 0.58);
  background: rgba(53, 229, 173, 0.13);
  color: var(--teal);
}

.ai-stage {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(250px, 1fr);
  gap: 14px;
  min-height: 390px;
  min-width: 0;
}

.book-zone,
.result-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(139, 114, 255, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.055);
}

.book-zone {
  position: relative;
  display: grid;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
}

.book-zone::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.book-visual {
  position: relative;
  width: 214px;
  height: 300px;
  perspective: 900px;
}

.book-spine {
  position: absolute;
  top: 18px;
  left: 14px;
  width: 52px;
  height: 274px;
  border-radius: 8px;
  background: linear-gradient(180deg, #25453c, #111b19);
  transform: rotateY(-26deg) skewY(-2deg);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.28);
}

.book-cover {
  position: absolute;
  inset: 0 0 0 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 185px;
  min-height: 300px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(53, 229, 173, 0.18), transparent 28%),
    linear-gradient(220deg, rgba(255, 122, 102, 0.18), transparent 40%),
    linear-gradient(180deg, #183e36, #15211e 58%, #f0c15f 58%, #f0c15f 100%);
  transform: rotateY(-8deg);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.cover-label {
  align-self: flex-start;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  color: #dffcf1;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.book-cover h3 {
  margin: 36px 0 8px;
  color: #fffdf5;
  font-size: 1.62rem;
  line-height: 1.04;
}

.book-cover p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cover-lines {
  display: grid;
  gap: 8px;
}

.cover-lines span {
  display: block;
  height: 8px;
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.28);
}

.cover-lines span:nth-child(2) {
  width: 72%;
}

.cover-lines span:nth-child(3) {
  width: 46%;
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 134px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 17, 15, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.floating-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.floating-card strong {
  color: var(--text);
  font-size: 0.95rem;
}

.card-outline {
  top: 34px;
  right: 26px;
}

.card-keywords {
  bottom: 32px;
  left: 24px;
}

.result-panel {
  padding: 18px;
}

.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-top span:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(139, 114, 255, 0.14);
  color: #dcd6ff;
  font-size: 0.78rem;
  font-weight: 850;
}

.result-panel h3 {
  margin: 22px 0 10px;
  font-size: 2rem;
  line-height: 1.04;
}

.result-panel p {
  color: var(--muted);
  line-height: 1.62;
}

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

.artifact-card {
  min-width: 0;
  min-height: 118px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.artifact-card > span,
.delivery-slot small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.artifact-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.24;
}

.mockup-stack,
.page-lines,
.banner-stack {
  margin-top: 12px;
}

.mockup-stack {
  position: relative;
  height: 46px;
}

.mockup-stack i {
  position: absolute;
  bottom: 0;
  display: block;
  border-radius: 6px;
  background: linear-gradient(135deg, #183e36, #f4be4f);
}

.mockup-stack i:first-child {
  left: 0;
  width: 44px;
  height: 46px;
}

.mockup-stack i:last-child {
  left: 34px;
  width: 58px;
  height: 40px;
  background: linear-gradient(135deg, #20354b, #35e5ad);
}

.page-lines {
  display: grid;
  gap: 7px;
}

.page-lines i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.page-lines i:nth-child(2) {
  width: 86%;
}

.page-lines i:nth-child(3) {
  width: 72%;
}

.page-lines i:nth-child(4) {
  width: 48%;
}

.banner-stack {
  display: grid;
  gap: 5px;
}

.banner-stack i {
  display: block;
  height: 11px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(53, 229, 173, 0.68), rgba(244, 190, 79, 0.68));
}

.keyword-slot,
.delivery-slot {
  grid-column: 1 / -1;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.keyword-list li {
  padding: 8px 10px;
  border: 1px solid rgba(53, 229, 173, 0.28);
  border-radius: 8px;
  background: rgba(53, 229, 173, 0.09);
  color: #dffcf1;
  font-size: 0.82rem;
  font-weight: 760;
}

.progress-area {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-track span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 420ms ease;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pipeline li > span {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.pipeline strong,
.pipeline small {
  display: block;
}

.pipeline strong {
  color: #eaf5ef;
  font-size: 0.82rem;
}

.pipeline small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.pipeline li.is-active {
  border-color: rgba(53, 229, 173, 0.48);
  background: rgba(53, 229, 173, 0.09);
}

.pipeline li.is-active > span {
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(53, 229, 173, 0.13);
}

.pipeline li.is-complete > span {
  background: var(--gold);
}

.deliverables-section,
.process-section,
.pricing-section,
.faq-section {
  padding: 86px 32px;
}

.deliverables-section,
.pricing-section {
  background: var(--paper);
  color: var(--ink);
}

.process-section {
  background:
    linear-gradient(90deg, rgba(255, 122, 102, 0.1), transparent 34%),
    linear-gradient(180deg, #101c19, #07110f);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2 {
  font-size: 2.55rem;
  line-height: 1.08;
}

.deliverable-grid,
.pricing-grid,
.pricing-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.pricing-layout {
  grid-template-columns: minmax(310px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}

.deliverable-card,
.price-card,
.process-step,
.waitlist-card,
.faq-list details {
  border-radius: 8px;
}

.deliverable-card,
.price-card {
  border: 1px solid var(--line-dark);
  background: #fffdf7;
}

.deliverable-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.deliverable-card h3,
.price-card h3,
.process-step h3 {
  margin-bottom: 9px;
  font-size: 1.28rem;
}

.deliverable-card p,
.price-card p {
  color: var(--muted-dark);
  line-height: 1.62;
}

.mini-asset {
  min-height: 154px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--paper-soft);
  overflow: hidden;
}

.manuscript-asset {
  background:
    linear-gradient(90deg, transparent 20px, rgba(7, 17, 15, 0.09) 21px, transparent 22px),
    repeating-linear-gradient(180deg, transparent 0 17px, rgba(7, 17, 15, 0.18) 18px 19px),
    #fffdf7;
}

.cover-asset {
  background:
    linear-gradient(90deg, transparent 36%, rgba(7, 17, 15, 0.18) 36% 38%, transparent 38%),
    linear-gradient(135deg, #143b34, #f4be4f);
}

.amazon-asset {
  background:
    linear-gradient(180deg, rgba(244, 190, 79, 0.28), transparent 40%),
    linear-gradient(90deg, #fffdf7 0 62%, #16332c 62% 100%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto;
}

.process-step {
  min-height: 218px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.process-step span {
  display: inline-grid;
  width: 44px;
  height: 36px;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid rgba(53, 229, 173, 0.36);
  border-radius: 8px;
  color: var(--teal);
  font-weight: 900;
}

.process-step p {
  color: var(--muted);
  line-height: 1.55;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 22px;
}

.price-card h3 {
  font-size: 2.2rem;
}

.price-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  border: 1px solid rgba(7, 17, 15, 0.14);
  border-radius: 8px;
  background: #14251f;
  color: #fffdf7;
  font-weight: 850;
}

.price-card.is-featured {
  border-color: rgba(53, 229, 173, 0.46);
  background:
    linear-gradient(135deg, rgba(53, 229, 173, 0.16), transparent 34%),
    #fffdf7;
  box-shadow: 0 20px 70px rgba(7, 17, 15, 0.12);
}

.quote-card {
  min-height: 100%;
}

.price-breakdown {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.price-breakdown li {
  position: relative;
  padding-left: 18px;
  color: var(--muted-dark);
  line-height: 1.35;
}

.price-breakdown li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--teal);
}

.rate-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rate-table div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 130px;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffdf7;
}

.rate-table div.is-best {
  border-color: rgba(53, 229, 173, 0.55);
  background:
    linear-gradient(135deg, rgba(53, 229, 173, 0.16), transparent 42%),
    #fffdf7;
}

.rate-table span,
.rate-table strong,
.rate-table small {
  display: block;
}

.rate-table span {
  font-weight: 850;
}

.rate-table strong {
  font-size: 1.5rem;
}

.rate-table small {
  color: var(--muted-dark);
  line-height: 1.4;
}

.royalty-simulator {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  max-width: 1120px;
  margin: 18px auto 0;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffdf7;
  padding: 22px;
}

.simulator-copy h3 {
  margin-bottom: 12px;
  font-size: 1.7rem;
  line-height: 1.08;
}

.simulator-copy p:last-child {
  color: var(--muted-dark);
  line-height: 1.62;
}

.simulator-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(53, 229, 173, 0.12), transparent 40%),
    var(--paper);
}

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

.slider-head span {
  color: var(--muted-dark);
  font-weight: 780;
}

.slider-head strong {
  font-size: 2rem;
}

.simulator-panel input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.advice-meter {
  display: grid;
  grid-template-columns: 0.42fr 0.23fr 0.35fr;
  gap: 5px;
  height: 10px;
}

.advice-meter span {
  display: block;
  border-radius: 999px;
}

.advice-meter span:nth-child(1) {
  background: rgba(255, 122, 102, 0.42);
}

.advice-meter span:nth-child(2) {
  background: rgba(53, 229, 173, 0.78);
}

.advice-meter span:nth-child(3) {
  background: rgba(244, 190, 79, 0.56);
}

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

.advice-labels small {
  color: var(--muted-dark);
  font-size: 0.76rem;
}

.advice-labels small:nth-child(2) {
  text-align: center;
  font-weight: 850;
}

.advice-labels small:nth-child(3) {
  text-align: right;
}

.royalty-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.royalty-result div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: #fffdf7;
}

.royalty-result span,
.royalty-result strong {
  display: block;
}

.royalty-result span {
  min-height: 34px;
  color: var(--muted-dark);
  font-size: 0.78rem;
  line-height: 1.3;
}

.royalty-result strong {
  margin-top: 8px;
  font-size: 1.2rem;
  line-height: 1.18;
}

#royaltyOutput {
  color: #0b6b4f;
  font-size: 1.55rem;
}

#priceAdvice[data-state="fourchette-basse"] {
  color: var(--coral);
}

#priceAdvice[data-state="prix-conseillé"] {
  color: #0b6b4f;
}

#priceAdvice[data-state="fourchette-haute"] {
  color: #9a6b00;
}

.royalty-note {
  margin: 0;
  color: var(--muted-dark);
  font-size: 0.82rem;
  line-height: 1.5;
}

.waitlist-section {
  padding: 86px 32px;
  background:
    linear-gradient(135deg, rgba(53, 229, 173, 0.12), transparent 38%),
    #07110f;
}

.waitlist-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.waitlist-card h2 {
  max-width: 660px;
  font-size: 2.6rem;
  line-height: 1.06;
}

.waitlist-card p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.65;
}

.email-form {
  display: grid;
  align-content: center;
  gap: 10px;
}

.email-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
}

.email-form button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: var(--ink);
  font-weight: 900;
}

.email-form small {
  min-height: 18px;
  color: var(--gold);
}

.checkout-reminder {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(53, 229, 173, 0.28);
  border-radius: 8px;
  background: rgba(53, 229, 173, 0.08);
}

.checkout-reminder span,
.checkout-reminder strong,
.checkout-reminder p {
  display: block;
}

.checkout-reminder span {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.checkout-reminder strong {
  font-size: 1.35rem;
  line-height: 1.18;
}

.checkout-reminder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.checkout-reminder a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--ink);
  font-weight: 900;
}

.faq-section {
  background: var(--paper);
  color: var(--ink);
}

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

.faq-list details {
  border: 1px solid var(--line-dark);
  background: #fffdf7;
  padding: 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 850;
}

.faq-list p {
  color: var(--muted-dark);
  line-height: 1.62;
}

.payment-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(53, 229, 173, 0.12), transparent 34%),
    linear-gradient(215deg, rgba(244, 190, 79, 0.14), transparent 42%),
    var(--ink);
}

.payment-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.payment-card {
  width: min(100%, 720px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.payment-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 6vw, 4rem);
  line-height: 0.98;
}

.payment-lead {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.payment-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.payment-summary div,
.agent-next {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.payment-summary span,
.payment-summary strong,
.agent-next span,
.agent-next strong,
.agent-next small {
  display: block;
}

.payment-summary span,
.agent-next span,
.agent-next small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.payment-summary strong,
.agent-next strong {
  margin-top: 8px;
  overflow-wrap: break-word;
  font-size: 1.12rem;
}

.agent-next {
  margin-bottom: 18px;
}

.agent-next small {
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.payment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: var(--ink);
  font-weight: 900;
}

.payment-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.payment-button.as-link {
  margin-top: 8px;
}

.payment-link {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

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

.payment-message {
  display: block;
  min-height: 20px;
  margin-top: 12px;
  color: var(--gold);
  text-align: center;
}

@media (max-width: 1180px) {
  .studio-screen {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    max-width: 860px;
    justify-content: flex-start;
  }

  h1 {
    font-size: 3.4rem;
  }

  .app-shell {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-links {
    display: none;
  }

  .studio-screen,
  .deliverables-section,
  .process-section,
  .pricing-section,
  .waitlist-section,
  .faq-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .app-shell,
  .ai-stage,
  .pricing-layout,
  .royalty-simulator,
  .waitlist-card {
    grid-template-columns: 1fr;
  }

  .control-panel {
    order: 2;
  }

  .analysis-panel {
    order: 1;
  }

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

  .deliverable-grid,
  .pricing-grid,
  .rate-table,
  .royalty-result,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .studio-screen {
    padding-top: 28px;
    max-width: 100vw;
  }

  .studio-screen > * {
    max-width: calc(100vw - 36px);
  }

  h1 {
    font-size: 2.18rem;
    line-height: 1.04;
  }

  .hero-text {
    font-size: 1rem;
    max-width: 330px;
  }

  .trust-strip,
  .segmented,
  .format-grid,
  .option-grid,
  .artifact-board,
  .advice-labels,
  .email-form > div,
  .payment-summary {
    grid-template-columns: 1fr;
  }

  .payment-shell {
    padding: 18px;
  }

  .payment-card {
    padding: 22px;
  }

  .advice-labels small,
  .advice-labels small:nth-child(2),
  .advice-labels small:nth-child(3) {
    text-align: left;
  }

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

  .app-shell {
    padding: 8px;
  }

  .scanner-header,
  .result-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-zone {
    min-height: 360px;
  }

  .book-visual {
    width: 190px;
    height: 268px;
  }

  .book-cover {
    width: 164px;
    min-height: 268px;
  }

  .book-cover h3 {
    font-size: 1.34rem;
  }

  .floating-card {
    min-width: 104px;
    padding: 8px 10px;
  }

  .card-outline {
    right: auto;
    left: 8px;
  }

  .card-keywords {
    left: 8px;
  }

  .section-heading h2,
  .waitlist-card h2 {
    font-size: 2rem;
  }
}

/* Production layout patch: keeps the studio readable on very wide screens. */
@media (min-width: 1181px) {
  .site-header {
    padding-left: max(32px, calc((100vw - 1520px) / 2));
    padding-right: max(32px, calc((100vw - 1520px) / 2));
  }

  .studio-screen {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1090px);
    justify-content: center;
    align-items: center;
    gap: 24px;
    min-height: auto;
    padding: 54px 32px 46px;
  }

  .intro-copy {
    justify-content: center;
    max-width: 380px;
  }

  h1 {
    font-size: clamp(2.9rem, 4.1vw, 4.15rem);
    line-height: 0.98;
  }

  .hero-text {
    max-width: 430px;
    font-size: 1.02rem;
    line-height: 1.68;
  }

  .trust-strip span {
    min-height: 70px;
  }

  .trust-strip strong {
    font-size: 1.25rem;
  }

  .app-shell {
    grid-template-columns: minmax(460px, 520px) minmax(0, 540px);
    justify-content: center;
    gap: 12px;
    width: min(100%, 1090px);
    min-height: auto;
    padding: 12px;
  }

  .control-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 11px;
    padding: 14px;
  }

  .control-panel > * {
    min-width: 0;
  }

  .control-panel > .panel-heading,
  .control-panel > .field,
  .control-panel > .generate-button,
  .control-panel > .order-message {
    grid-column: 1 / -1;
  }

  .control-panel > :nth-child(2) {
    order: 2;
    grid-column: auto;
  }

  .control-panel > :nth-child(8) {
    order: 3;
    grid-column: auto;
  }

  .control-panel > :nth-child(3) {
    order: 4;
  }

  .control-panel > :nth-child(4) {
    order: 5;
  }

  .control-panel > :nth-child(5) {
    order: 6;
    grid-column: auto;
  }

  .control-panel > :nth-child(6) {
    order: 7;
    grid-column: auto;
  }

  .control-panel > :nth-child(7) {
    order: 8;
  }

  .control-panel > :nth-child(9) {
    order: 9;
  }

  .control-panel > :nth-child(10) {
    order: 10;
  }

  .control-panel > :nth-child(11) {
    order: 11;
  }

  .control-panel > .generate-button {
    order: 12;
  }

  .control-panel > .order-message {
    order: 13;
  }

  select,
  input[type="text"],
  input[type="email"] {
    min-height: 40px;
  }

  .choice-button,
  .format-grid span,
  .option-card span {
    min-height: 40px;
    padding: 8px;
  }

  .format-grid small,
  .option-card small {
    font-size: 0.68rem;
  }

  .generate-button {
    min-height: 48px;
  }

  .analysis-panel {
    padding: 14px;
  }

  .scanner-header {
    margin-bottom: 12px;
  }

  .ai-stage {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: auto;
  }

  .book-zone {
    display: none;
  }

  .book-visual {
    width: 176px;
    height: 248px;
  }

  .book-spine {
    width: 42px;
    height: 226px;
  }

  .book-cover {
    width: 153px;
    min-height: 248px;
    padding: 18px 14px 14px;
  }

  .book-cover h3 {
    margin: 28px 0 8px;
    font-size: 1.28rem;
  }

  .book-cover p {
    font-size: 0.7rem;
  }

  .floating-card {
    min-width: 116px;
    padding: 8px 10px;
  }

  .result-panel {
    padding: 14px;
  }

  .result-panel h3 {
    margin: 16px 0 8px;
    font-size: 1.55rem;
    line-height: 1.08;
  }

  .result-panel p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .artifact-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .artifact-card {
    min-height: 92px;
    padding: 10px;
  }

  .keyword-list li {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .progress-area {
    margin-top: 10px;
    padding: 10px;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
  }

  .pipeline li {
    min-height: 56px;
    padding: 8px;
  }

  .deliverables-section,
  .process-section,
  .pricing-section,
  .faq-section {
    padding-left: max(32px, calc((100vw - 1180px) / 2));
    padding-right: max(32px, calc((100vw - 1180px) / 2));
  }
}

@media (min-width: 1181px) and (max-width: 1380px) {
  .studio-screen {
    grid-template-columns: minmax(280px, 340px) minmax(0, 960px);
  }

  .app-shell {
    grid-template-columns: minmax(300px, 330px) minmax(0, 1fr);
  }

  .artifact-board {
    grid-template-columns: 1fr;
  }

  .keyword-slot,
  .delivery-slot {
    grid-column: auto;
  }
}

/* Landing-first vertical layout. */
@media (min-width: 901px) {
  .studio-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    min-height: auto;
    padding: 64px 24px 56px;
  }

  .intro-copy {
    align-items: center;
    justify-content: flex-start;
    max-width: 760px;
    padding: 0;
    text-align: center;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(3.2rem, 5vw, 5.2rem);
    line-height: 0.98;
  }

  .hero-text {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.08rem;
  }

  .trust-strip {
    width: min(100%, 680px);
  }

  .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 780px);
    gap: 14px;
    padding: 14px;
  }

  .control-panel {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 18px;
  }

  .control-panel > * {
    order: initial !important;
    grid-column: auto !important;
  }

  .panel-heading h2,
  .scanner-header h2 {
    font-size: 1.45rem;
  }

  select,
  input[type="text"],
  input[type="email"] {
    min-height: 46px;
  }

  .choice-button,
  .format-grid span,
  .option-card span {
    min-height: 48px;
    padding: 10px;
  }

  .format-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .format-grid strong,
  .option-card strong {
    font-size: 0.95rem;
  }

  .format-grid small,
  .option-card small {
    font-size: 0.78rem;
  }

  .generate-button {
    min-height: 54px;
    font-size: 1rem;
  }

  .analysis-panel {
    padding: 18px;
  }

  .ai-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .book-zone {
    display: none;
  }

  .result-panel {
    padding: 18px;
  }

  .result-panel h3 {
    font-size: 1.9rem;
  }

  .result-panel p {
    font-size: 0.96rem;
  }

  .artifact-board {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .keyword-slot,
  .delivery-slot {
    grid-column: auto;
  }

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