﻿:root {
  --rogers-red: #d71920;
  --ink: #141414;
  --charcoal: #232323;
  --paper: #fffaf7;
  --muted: #6f6a66;
  --success: #0f7b55;
  --radius: 16px;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top right, #ffe4d6 0%, var(--paper) 45%, #ffffff 100%);
}

html {
  scrollbar-gutter: stable;
}

body {
  overflow-y: scroll;
}

h1,
h2,
h3,
.brand {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

a {
  color: var(--rogers-red);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
details summary:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.22);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffde;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee3dd;
}

.site-header-inner {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.brand-link {
  text-decoration: none;
  color: var(--ink);
  font: 700 1.05rem "Space Grotesk", sans-serif;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  color: var(--charcoal);
  background: #f7f2ee;
  border: 1px solid #e7ddd7;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.site-nav a.active {
  background: var(--rogers-red);
  border-color: var(--rogers-red);
  color: #fff;
}

.page-shell {
  width: min(1180px, 94vw);
  margin: 20px auto 36px;
}

.page-hero {
  background:
    linear-gradient(120deg, rgba(215, 25, 32, 0.93), rgba(140, 15, 20, 0.95)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 12px, transparent 12px 24px);
  color: #fff;
}

.home-hero h1 {
  font-size: clamp(1.7rem, 4.3vw, 3rem);
  line-height: 1.08;
  margin-top: 6px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.home-hero .lead {
  max-width: 780px;
  color: #fff7f4;
}

.home-hero .eyebrow {
  color: #ffe9df;
}

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

.home-section {
  margin-top: 18px;
}

.section-headline h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  letter-spacing: 0.01em;
}

.section-headline p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-headline-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.section-side-copy {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-flow {
  margin-top: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.flow-card {
  border-top: 4px solid var(--rogers-red);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-card p:last-of-type {
  flex: 1;
}

.flow-step {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.last-script-card {
  border: 1px solid #eee2dc;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 244, 0.98)),
    radial-gradient(circle at top right, rgba(215, 25, 32, 0.08), transparent 45%);
}

.last-script-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.last-script-header h2 {
  margin-top: 4px;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

.last-script-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.last-script-panel {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #ece2dc;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.last-script-panel.secondary {
  background: linear-gradient(180deg, rgba(246, 242, 239, 0.92), rgba(255, 255, 255, 0.9));
}

.last-script-panel.is-empty {
  opacity: 0.8;
}

.last-script-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.last-script-label {
  margin: 0;
  font: 700 0.88rem "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8f1117;
}

.last-script-time {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #eadfd8;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.last-script-summary {
  margin: 10px 0 0;
  font-weight: 700;
  color: #2b2420;
  line-height: 1.45;
}

.last-script-preview {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.last-script-footer {
  margin-top: 14px;
}

.home-recent-activity {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eee2dc;
}

.home-recent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-recent-head h3 {
  margin-top: 4px;
  font-size: 1.12rem;
}

.home-recent-head p:last-child {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.home-recent-list {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.home-history-item {
  border: 1px solid #ece2dc;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 245, 0.96));
  box-shadow: 0 8px 18px rgba(40, 25, 19, 0.04);
}

.home-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.home-history-badge,
.history-item-badge,
.history-item-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font: 700 0.76rem "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
}

.home-history-badge.full,
.history-item-badge.full {
  background: #fff3ec;
  border: 1px solid #f0d5bf;
  color: #7a3a08;
}

.home-history-badge.objection,
.history-item-badge.objection {
  background: #fff0f2;
  border: 1px solid #f4cad3;
  color: #861738;
}

.history-item-tag {
  background: #f6f2ef;
  border: 1px solid #e4d7cf;
  color: #5a4b43;
}

.home-history-time {
  color: var(--muted);
  font-size: 0.82rem;
}

.home-history-summary {
  margin: 10px 0 0;
  color: #2b2420;
  font-weight: 700;
  line-height: 1.45;
}

.home-history-preview {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.home-history-item .btn {
  margin-top: 12px;
}

.topic-grid-strong .topic-card h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.topic-grid-strong .topic-card p {
  line-height: 1.5;
}

.section {
  margin-top: 22px;
}

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

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.lead {
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.6;
  opacity: 0.97;
  margin: 12px 0 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.74rem;
}

.grid {
  display: grid;
  gap: 14px;
}

.script-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.guided-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
}

.infos-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.topic-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card.page-hero {
  background:
    linear-gradient(120deg, rgba(215, 25, 32, 0.96), rgba(140, 15, 20, 0.97)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.09) 0 12px, transparent 12px 24px);
  color: #fff;
}

.card h3 {
  margin-bottom: 8px;
}

.card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}

.auth-list {
  margin: 8px 0 10px;
  padding: 0 0 0 22px;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.92rem;
}

.card a + a {
  margin-left: 12px;
}

.topic-card {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid #eee2dc;
}

.topic-card p {
  margin-bottom: 0;
}

.btn,
.chip {
  border: 0;
  background: var(--rogers-red);
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  font: 600 0.95rem "DM Sans", sans-serif;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover,
.chip:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.dark-ghost {
  background: #f6f2ef;
  color: var(--ink);
  border: 1px solid #ddd1ca;
}

.dark-ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-card {
  padding: 18px;
  border: 1px solid #eee2dc;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 245, 0.98));
}

.assistant-toolbox {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #eee2dc;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 245, 0.96));
}

.assistant-toolbox-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.assistant-toolbox-block {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #ebe1db;
  border-radius: 14px;
  background: #fdfaf8;
}

.toolbox-head h3 {
  margin: 0;
  font-size: 1rem;
}

.toolbox-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.93rem;
}

.preset-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.preset-card {
  border: 1px solid #e6dad3;
  border-radius: 12px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.preset-card:hover {
  transform: translateY(-1px);
  border-color: #d9c3b6;
}

.preset-card.active {
  border-color: rgba(215, 25, 32, 0.3);
  box-shadow: 0 0 0 2px rgba(215, 25, 32, 0.08);
  background: #fff8f6;
}

.preset-card strong {
  font: 700 0.96rem "Space Grotesk", sans-serif;
}

.preset-card span {
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.9rem;
}

.preset-card .preset-meta {
  margin-top: 2px;
  font: 700 0.8rem "DM Sans", sans-serif;
  color: #8f1117;
  letter-spacing: 0.01em;
}

.draft-status {
  min-height: 1.4em;
}

.draft-actions,
.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.recent-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.history-item {
  border: 1px solid #ece2dc;
  border-radius: 12px;
  padding: 10px 11px;
  background: #fff;
  box-shadow: none;
}

.history-item.full {
  border-left: 4px solid #f0d5bf;
}

.history-item.objection {
  border-left: 4px solid #f4cad3;
}

.history-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.history-item-main {
  min-width: 0;
}

.history-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.history-item h4 {
  margin: 0;
  font: 700 0.95rem "Space Grotesk", sans-serif;
}

.history-time {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.history-summary,
.history-preview,
.toolbox-empty {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.history-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-item .helper-actions {
  margin-top: 10px;
}

.helper-card {
  margin-bottom: 10px;
}

.helper-card p {
  margin: 0 0 8px;
}

.helper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draft-actions .btn,
.history-actions .btn,
.history-item .btn {
  padding: 8px 12px;
  font-size: 0.86rem;
}

.intent-section {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #ece2dc;
  border-radius: 16px;
  background: #fcf8f5;
}

.intent-title {
  margin: 0;
  font: 700 1rem "Space Grotesk", sans-serif;
}

.intent-subtitle {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.intent-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.intent-card {
  border: 1px solid #e6dad3;
  border-radius: 12px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  cursor: pointer;
  min-height: 164px;
}

.intent-card input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
  align-self: flex-start;
  flex: 0 0 auto;
}

.intent-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.intent-card strong {
  font: 700 0.98rem "Space Grotesk", sans-serif;
  line-height: 1.25;
}

.intent-summary,
.intent-objective {
  margin: 0;
}

.intent-summary {
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.42;
  font-size: 0.92rem;
}

.intent-objective {
  color: #475569;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.42;
  font-size: 0.91rem;
}

.intent-badge {
  display: inline-block;
  width: fit-content;
  background: #f2f4f7;
  color: #2f3a45;
  border: 1px solid #d9e0e8;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 2px 8px;
}

.intent-card:has(input:checked) {
  border-color: #94a3b8;
  box-shadow: 0 0 0 2px rgba(71, 85, 105, 0.12);
  background: #f8fafc;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.form-clusters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-cluster {
  padding: 14px;
  border: 1px solid #ece2dc;
  border-radius: 16px;
  background: #fcf9f7;
}

.form-cluster-head h3 {
  margin: 2px 0 0;
  font-size: 1.04rem;
}

.form-cluster-head p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.48;
  font-size: 0.92rem;
}

.form-cluster-kicker {
  margin: 0;
  font: 700 0.78rem "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8f1117;
}

.form-cluster-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.form-card label {
  padding: 10px 12px;
  border: 1px solid #eee3dd;
  border-radius: 14px;
  background: #fff;
  gap: 6px;
}

.assistant-actions {
  margin-top: 14px;
}

.assistant-mode-panel {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #ece2dc;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fcf8f5 100%);
}

.assistant-mode-head h3 {
  margin: 2px 0 0;
  font-size: 1.04rem;
}

.assistant-mode-head p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.93rem;
}

.assistant-mode-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mode-card {
  width: 100%;
  border: 1px solid #e6dad3;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 5px;
  box-shadow: none;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.mode-card:hover {
  transform: translateY(-1px);
  border-color: #d9c3b6;
}

.mode-card.active {
  border-color: rgba(215, 25, 32, 0.28);
  box-shadow: 0 0 0 2px rgba(215, 25, 32, 0.08);
  background: #fff7f4;
}

.mode-card strong {
  font: 700 1rem "Space Grotesk", sans-serif;
}

.mode-card span:last-child {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.mode-card-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f6f2ef;
  border: 1px solid #e4d7cf;
  color: #5a4b43;
  font: 700 0.76rem "Space Grotesk", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assistant-core-cluster {
  margin-top: 12px;
}

.assistant-advanced {
  margin-top: 12px;
  border: 1px solid #e7ddd7;
  border-radius: 14px;
  background: #fcf8f5;
  overflow: hidden;
}

.assistant-advanced summary {
  padding: 12px 14px;
}

.assistant-advanced p {
  margin: 0;
  padding: 0 14px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.assistant-advanced-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 12px 14px 14px;
}

.objection-assist {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e7ddd7;
  border-radius: 14px;
  background: #fcf8f5;
  margin-top: 12px;
}

.objection-assist[data-mode="objection"] {
  border-color: #f4cad3;
  background: #fff6f7;
}

.objection-assist[data-mode="manual"] {
  border-color: #ddd1ca;
  background: #faf6f3;
}

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

.objection-assist-copyblock {
  min-width: 0;
}

.objection-assist-kicker {
  margin: 0;
  font: 700 0.85rem "Space Grotesk", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a4b43;
}

.objection-assist-copy {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.93rem;
}

.objection-assist-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.objection-assist-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: #f6f2ef;
  border: 1px solid #e4d7cf;
  color: #463a33;
  font: 700 0.82rem "DM Sans", sans-serif;
  white-space: nowrap;
}

.objection-assist[data-mode="objection"] .objection-assist-pill {
  background: #fff0f2;
  border-color: #f4cad3;
  color: #861738;
}

.objection-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rogers-red);
  font: 700 0.9rem "DM Sans", sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.objection-link:hover {
  text-decoration: underline;
}

.objection-assist-manual {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid #ede2db;
}

.objection-assist-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 500;
  color: var(--charcoal);
}

input,
select,
textarea {
  border: 1px solid #dbd2cc;
  border-radius: 12px;
  padding: 10px;
  font: 0.95rem "DM Sans", sans-serif;
  background: #fff;
}

textarea {
  resize: vertical;
}

.result-card {
  margin-top: 16px;
  border-left: 5px solid var(--success);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 249, 0.99));
}

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

.result-card p,
.result-card li {
  line-height: 1.55;
}

.result-card .script-intro {
  margin-top: 8px;
  color: var(--muted);
  background: #f8f4f1;
  border: 1px solid #eee3dd;
  border-radius: 12px;
  padding: 10px 12px;
}

.script-step {
  margin-top: 14px;
  padding: 12px 12px 10px;
  border: 1px solid #ece2dc;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fffaf7 100%);
}

.script-step h4 {
  margin-bottom: 8px;
  font: 700 1.04rem/1.3 "Space Grotesk", sans-serif;
  color: #1f1a17;
  letter-spacing: 0.01em;
}

.script-goal {
  margin: 0 0 8px;
  color: #3a2f29;
  background: #fff8f3;
  border-left: 3px solid #d9c3b6;
  border-radius: 8px;
  padding: 7px 10px;
}

.script-line {
  margin: 8px 0;
  font-size: 0.98rem;
  line-height: 1.62;
  color: #221c19;
}

.script-tip {
  margin: 8px 0 6px;
  color: #2f2a26;
  font-size: 0.96rem;
}

.script-lines {
  margin: 8px 0 0;
  padding-left: 18px;
  line-height: 1.58;
}

.script-sublist {
  margin-top: 2px;
  background: #fcf8f5;
  border: 1px solid #efe3dd;
  border-radius: 12px;
  padding: 10px 12px 10px 28px;
}

.script-impact {
  background: #fff4ef;
  border-left: 4px solid #d71920;
  padding: 8px 10px;
  border-radius: 8px;
}

details summary {
  cursor: pointer;
  font: 700 1rem "Space Grotesk", sans-serif;
  list-style: none;
}

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

details[open] summary {
  color: var(--rogers-red);
}

.guided-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.guided-main-card,
.guided-checklist-card {
  border: 1px solid #eee2dc;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 245, 0.98));
}

.step-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Space Grotesk", sans-serif;
}

.timer {
  margin: 0;
  font: 700 1.25rem "Space Grotesk", sans-serif;
  color: var(--rogers-red);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #f0d5bf;
  background: #fff5ec;
}

.guided-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.guided-actions .btn {
  flex: 1 1 150px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.checklist li {
  padding: 9px 10px;
  border: 1px solid #ece3dd;
  border-radius: 12px;
  margin-top: 8px;
  font-size: 0.95rem;
  background: #fff;
}

.checklist li.done {
  border-color: #cfe8dc;
  background: #f3fcf7;
  color: #14533e;
}

.checklist li.active {
  border-color: #f2c9cc;
  background: #fff5f5;
  color: #7b1016;
}

footer {
  width: min(1180px, 94vw);
  margin: 26px auto 40px;
  color: var(--muted);
  font-size: 0.93rem;
}

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

  .assistant-toolbox-grid {
    grid-template-columns: 1fr;
  }

  .form-clusters {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .last-script-header,
  .section-headline-split,
  .home-recent-head,
  .last-script-meta,
  .history-item-head,
  .guided-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .last-script-time,
  .home-history-time,
  .history-time {
    white-space: normal;
  }

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

  .objection-assist-pill {
    white-space: normal;
  }

  .objection-assist-meta {
    justify-content: flex-start;
  }
}

.script-pre { white-space: pre-wrap; word-break: break-word; margin: 10px 0 0; }
.result-header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.result-header h3 { margin:0; }
.engine-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.engine-badge.ai { background:#eefaf4; color:#14533e; border:1px solid #cfe8dc; }
.engine-badge.fallback { background:#fff5ec; color:#7a3a08; border:1px solid #f0d5bf; }
.generation-source { display:inline-flex; align-items:center; border-radius:999px; padding:4px 10px; font-size:0.78rem; font-weight:700; margin-top: 6px; }
.generation-source.source-ai { background:#eefaf4; color:#14533e; border:1px solid #cfe8dc; }
.generation-source.source-local { background:#fff5ec; color:#7a3a08; border:1px solid #f0d5bf; }
.generation-source.source-error { background:#ffeef0; color:#861738; border:1px solid #f4cad3; }
.generation-details { margin:8px 0 4px; color:#7a3a08; font-size:0.8rem; line-height:1.4; word-break:break-word; }
.result-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }
.toggle { flex-direction: row; align-items:center; gap:10px; font-weight:600; }
.coach-box { margin-top: 14px; padding-top: 10px; border-top: 1px solid #ece2dc; }
.auth-chip {
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  background:#f7f2ee;
  border:1px solid #e7ddd7;
  color:var(--charcoal);
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
}
.auth-email { font-weight:700; font-size:0.9rem; }
.auth-link { color: var(--rogers-red); text-decoration:none; font-weight:700; font-size:0.9rem; }
.auth-link:hover { text-decoration: underline; }

/* ===== Pitch Assist — texte généré (amélioration affichage) ===== */
.result-card {
  overflow: hidden;
}

.script-pre {
  /* Reset du style <pre> */
  margin: 12px 0 0;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid #efe3dd;
  background: linear-gradient(180deg, #fff 0%, #fffaf7 100%);

  /* Lisibilité */
  font-family: "DM Sans", sans-serif; /* ✅ au lieu de monospace */
  font-size: 0.98rem;
  line-height: 1.72;
  color: #221c19;

  /* ✅ IMPORTANT: garder retours de ligne + empêcher overflow */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;

  /* Confort */
  letter-spacing: 0.01em;
}

/* Petite mise en valeur des titres "1) Opening" etc. via un style simple */
.script-pre strong {
  font-weight: 700;
}

/* Optionnel: si tu veux un léger accent à gauche comme tes "impact" */
.script-pre {
  border-left: 4px solid rgba(215, 25, 32, 0.22);
}

/* Mobile */
@media (max-width: 520px) {
  .script-pre {
    padding: 12px;
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .hero-actions .btn,
  .assistant-actions .btn,
  .guided-actions .btn {
    width: 100%;
  }

  .assistant-mode-grid,
  .assistant-advanced-grid {
    grid-template-columns: 1fr;
  }

  .home-recent-list,
  .last-script-grid {
    grid-template-columns: 1fr;
  }

  .home-history-item,
  .last-script-panel,
  .history-item {
    padding: 12px;
  }

  .home-history-item .btn,
  .last-script-panel .btn,
  .history-item .btn {
    width: 100%;
  }
}
