:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --primary: #2fbf8f;
  --primary-dark: #065f52;
  --text: #111827;
  --ink: #202124;
  --muted: #5f6368;
  --border: #e5eee9;
  --soft-green: #eefbf6;
  --line: rgba(60, 64, 67, 0.14);
  --glass: rgba(255, 255, 255, 0.82);
  --glass-strong: rgba(255, 255, 255, 0.96);
  --teal: #00a779;
  --teal-dark: #00796b;
  --coral: #ea4335;
  --gold: #fbbc04;
  --violet: #6750a4;
  --blue: #1a73e8;
  --rose: #d93025;
  --danger: #d93025;
  --green-soft: #e7f6ef;
  --gold-soft: #fff7df;
  --red-soft: #fce8e6;
  --violet-soft: #f0ecff;
  --blue-soft: #e8f0fe;
  --shadow: 0 24px 70px rgba(60, 64, 67, 0.12);
  --soft-shadow: 0 14px 36px rgba(60, 64, 67, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(61, 220, 132, 0.2), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(26, 115, 232, 0.14), transparent 24%),
    linear-gradient(135deg, #fbfcff 0%, #f1f6ff 48%, #f7fbf6 100%);
  color: var(--ink);
  font-family: var(--font);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.foda-mark {
  width: 42px;
  height: 42px;
  overflow: visible;
  animation: markBreath 4s ease-in-out infinite;
}

.foda-mark rect,
.foda-mark circle {
  stroke: none;
}

.foda-mark .mark-blue {
  fill: var(--blue);
}

.foda-mark .mark-green {
  fill: var(--teal);
}

.foda-mark .mark-yellow {
  fill: var(--gold);
}

.foda-mark .mark-red {
  fill: var(--coral);
}

.foda-mark .mark-center {
  fill: var(--ink);
}

.foda-mark .mark-line {
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-width: 3.1;
}

.foda-mark-large {
  width: 84px;
  height: 84px;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  width: 760px;
  height: 760px;
  border: 1px solid rgba(32, 185, 168, 0.16);
  border-radius: 42% 58% 68% 32% / 42% 38% 62% 58%;
  filter: blur(0.2px);
  animation: floatWave 18s ease-in-out infinite;
}

.wave-one {
  top: -340px;
  left: -180px;
  background: rgba(61, 220, 132, 0.1);
}

.wave-two {
  right: -260px;
  bottom: -360px;
  border-color: rgba(122, 103, 232, 0.16);
  background: rgba(26, 115, 232, 0.08);
  animation-delay: -6s;
}

.spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 26px rgba(32, 185, 168, 0.95);
  animation: drift 8s ease-in-out infinite;
}

.spark-a {
  top: 18%;
  left: 43%;
}

.spark-b {
  top: 66%;
  right: 14%;
  background: var(--coral);
  animation-delay: -2s;
}

.spark-c {
  bottom: 12%;
  left: 18%;
  background: var(--violet);
  animation-delay: -5s;
}

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 30;
  width: min(860px, calc(100% - 28px));
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon copy actions";
  justify-content: initial;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(60, 64, 67, 0.13);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 70px rgba(60, 64, 67, 0.22);
  backdrop-filter: blur(24px);
  transform: translateX(-50%);
  animation: consentSlide 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.onboarding-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.22);
  backdrop-filter: blur(10px);
}

.onboarding-modal.is-hidden {
  display: none;
}

.onboarding-card {
  width: min(520px, 100%);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 22px;
}

.onboarding-steps article {
  display: none;
}

.onboarding-steps article.is-active {
  display: grid;
  gap: 12px;
  animation: fadeSlide 260ms ease both;
}

.onboarding-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: var(--soft-green);
  color: var(--primary-dark);
  font-weight: 950;
}

.onboarding-steps h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.8rem;
}

.onboarding-steps p {
  margin: 0;
  color: #4f5d7d;
  line-height: 1.55;
}

.onboarding-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.onboarding-actions button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  font-weight: 950;
}

#skipOnboarding {
  background: #eef3fb;
  color: #34405f;
}

#nextOnboarding {
  background: var(--primary-dark);
  color: white;
}

.cookie-consent.is-required {
  border-color: rgba(26, 115, 232, 0.36);
  box-shadow:
    0 22px 70px rgba(60, 64, 67, 0.24),
    0 0 0 5px rgba(26, 115, 232, 0.12);
}

.cookie-consent.is-hidden {
  display: none;
  pointer-events: none;
}

.cookie-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: none;
}

.cookie-copy {
  grid-area: copy;
  min-width: 0;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cookie-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.18;
}

.cookie-copy p {
  max-width: 52rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.terms-details {
  display: none;
  margin-top: 12px;
  padding: 12px 12px 2px;
  border-top: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
}

.terms-details p + p {
  margin-top: 14px;
}

.cookie-consent.is-expanded .terms-details {
  display: block;
}

.cookie-actions {
  grid-area: actions;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.cookie-actions button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 13px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.cookie-actions button:hover {
  transform: translateY(-2px);
}

.cookie-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 24px rgba(26, 115, 232, 0.22);
}

.cookie-secondary {
  background: white;
  color: var(--blue);
  border-color: var(--line) !important;
}

.app {
  width: min(1480px, calc(100% - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  display: grid;
  grid-template-columns: minmax(240px, 270px) minmax(560px, 1fr) minmax(290px, 340px);
  grid-template-rows: auto auto;
  gap: 12px;
}

.rail,
.workspace,
.improvements {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  animation: surfaceRise 520ms ease both;
}

.rail {
  min-width: 0;
  padding: 16px;
}

.rail-left,
.rail-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail-left {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.rail-right {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.rail-right:focus {
  outline: none;
}

.rail-right.is-highlighted {
  animation: analysisPing 1.25s ease both;
}

.workspace {
  grid-column: 2;
  grid-row: 1;
}

.brand {
  display: grid;
  grid-template-columns: 44px 1fr 38px;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 24px rgba(60, 64, 67, 0.11);
}

.logo svg {
  width: 42px;
  height: 42px;
  stroke-width: 3;
}

.logo-coral {
  stroke: var(--coral);
}

.logo-teal {
  stroke: var(--teal-dark);
}

.brand h1,
.workspace-header h2,
.analysis-header h2,
.improvements h2 {
  margin: 0;
  letter-spacing: 0;
}

.brand h1 {
  font-size: 1.38rem;
  line-height: 1;
}

.brand p,
.workspace-header p,
.analysis-card p,
.improvements p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.brand p {
  font-size: 0.76rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.left-card,
.analysis-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.left-card:hover,
.analysis-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 115, 232, 0.18);
  box-shadow: 0 18px 44px rgba(60, 64, 67, 0.13);
}

.left-card {
  padding: 14px;
}

.account-card {
  display: grid;
  gap: 10px;
}

.auth-panel {
  display: grid;
  gap: 8px;
}

.auth-panel.is-hidden {
  display: none;
}

.auth-panel input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 750;
}

.auth-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.11);
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-actions button,
.auth-link,
#signOutButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.auth-actions button:last-child,
.auth-link,
#signOutButton {
  background: var(--teal-dark);
}

.auth-link.primary {
  background: var(--blue);
}

#authUserName {
  color: var(--ink);
  font-size: 0.9rem;
}

#authUserEmail,
.auth-status {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.auth-status {
  margin: 0;
}

.history-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.history-item {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.history-item strong {
  color: var(--ink);
  font-size: 0.78rem;
}

.history-item span {
  color: var(--muted);
  font-size: 0.7rem;
}

.reminder-box {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--soft-green);
}

.reminder-box strong {
  color: var(--primary-dark);
  font-size: 0.82rem;
}

.reminder-box p,
.reminder-box small {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 800;
}

.reminder-box > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.reminder-box button {
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 950;
}

.auth-page,
.dashboard-page {
  min-height: 100vh;
}

.dashboard-page:not(.is-authenticated) .dashboard-shell {
  display: none;
}

.auth-shell,
.dashboard-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 0.7fr);
  gap: 22px;
  align-items: center;
  padding: 42px 0;
}

.auth-brand-panel,
.auth-card,
.dashboard-panel,
.dashboard-header,
.dashboard-metrics article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(22px);
}

.auth-brand-panel {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 44px;
  border-radius: 34px;
}

.back-link,
.dashboard-actions a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.auth-logo {
  width: 74px;
  height: 74px;
}

.auth-brand-panel h1 {
  max-width: 620px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.auth-brand-panel p {
  max-width: 560px;
  margin: 0;
  color: #415073;
  font-size: 1.08rem;
  line-height: 1.65;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-benefits span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(232, 240, 254, 0.9);
  color: #174ea6;
  font-size: 0.82rem;
  font-weight: 900;
}

.auth-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: #eef3fb;
}

.auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #59647f;
  font-weight: 950;
}

.auth-tabs button.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(60, 64, 67, 0.12);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form.is-hidden {
  display: none;
}

.auth-form h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
}

.auth-form p,
.auth-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #34405f;
  font-size: 0.82rem;
  font-weight: 900;
}

.auth-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  padding: 0 14px;
  font-size: 0.98rem;
  font-weight: 750;
}

.auth-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(26, 115, 232, 0.12);
}

.solid-action {
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  background: var(--blue);
  color: #fff;
  font-weight: 950;
  box-shadow: 0 16px 32px rgba(26, 115, 232, 0.22);
}

.resend-button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 950;
}

.resend-button.is-hidden {
  display: none;
}

.auth-message {
  padding: 12px;
  border-radius: 14px;
  background: rgba(232, 240, 254, 0.8);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-message[data-tone="error"] {
  background: #fde7e4;
  color: #b3261e;
}

.auth-message[data-tone="success"] {
  background: #dff3ee;
  color: #006c55;
}

.dashboard-shell {
  display: grid;
  gap: 20px;
  padding: 24px 0 42px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 28px;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.5rem;
}

.dashboard-brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-actions a,
.dashboard-actions button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #e8f0fe;
  color: #174ea6;
  font-weight: 950;
}

.dashboard-actions button {
  background: var(--teal-dark);
  color: #fff;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dashboard-metrics article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
}

.dashboard-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.dashboard-metrics strong {
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(420px, 1.15fr);
  gap: 18px;
}

.dashboard-panel {
  padding: 22px;
  border-radius: 28px;
}

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

.panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
}

.panel-heading p,
.panel-heading span {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.dashboard-report-list {
  display: grid;
  gap: 10px;
}

.dashboard-report-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-report-item:hover,
.dashboard-report-item.is-active {
  transform: translateY(-2px);
  border-color: rgba(26, 115, 232, 0.36);
  box-shadow: 0 16px 30px rgba(60, 64, 67, 0.12);
}

.dashboard-report-item strong,
.detail-score-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
}

.dashboard-report-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.dashboard-report-item b {
  color: var(--teal-dark);
  font-size: 1.28rem;
}

.dashboard-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 850;
}

.dashboard-empty strong {
  color: var(--ink);
}

.dashboard-empty a {
  color: var(--blue);
}

.dashboard-timestamp {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.detail-score-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  background: #f7f9fc;
}

.detail-score {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #dff3ee;
  color: var(--teal-dark);
  font-size: 2rem;
  font-weight: 950;
}

.detail-score-row p {
  margin: 8px 0 0;
  color: #415073;
  line-height: 1.55;
}

.detail-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.detail-topics span {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff4d8;
  color: #9b6f00;
  font-size: 0.82rem;
  font-weight: 900;
}

.history-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.history-ai-grid article {
  padding: 18px;
  border-radius: 20px;
  background: #f7f9fc;
  border: 1px solid var(--line);
}

.history-ai-grid strong {
  color: var(--ink);
  font-size: 1rem;
}

.history-ai-grid p {
  margin: 8px 0 0;
  color: #415073;
  line-height: 1.5;
  font-weight: 750;
}

.compare-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compare-controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.compare-controls select {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 0 12px;
  font-weight: 850;
}

.compare-result {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--soft-green);
  color: var(--primary-dark);
  padding: 16px;
  font-weight: 850;
}

.compare-result span,
.compare-result p {
  margin: 0;
  color: #415073;
  line-height: 1.45;
}

.card-title,
.card-heading,
.ai-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  justify-content: flex-start;
  color: #36405f;
  font-size: 0.82rem;
}

.card-title svg {
  color: var(--teal-dark);
}

.health-card {
  background: rgba(255, 255, 255, 0.84);
}

.big-gauge,
.score-donut {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) var(--score), rgba(210, 222, 232, 0.8) 0);
  position: relative;
}

.big-gauge {
  width: 132px;
  height: 132px;
  margin: 18px auto 12px;
}

.big-gauge::before,
.score-donut::before {
  content: "";
  position: absolute;
  border-radius: inherit;
  background: var(--glass-strong);
}

.big-gauge::before {
  inset: 10px;
}

.big-gauge > div,
.score-donut strong,
.score-donut span {
  position: relative;
  z-index: 1;
}

.big-gauge > div {
  display: grid;
  place-items: center;
}

.big-gauge strong,
.score-donut strong {
  color: var(--teal-dark);
  line-height: 0.9;
}

.big-gauge strong {
  font-size: 2.35rem;
}

.big-gauge span,
.score-donut span {
  color: #59637f;
  font-size: 0.7rem;
  font-weight: 800;
}

.status-pill {
  display: block;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid rgba(32, 185, 168, 0.28);
  border-radius: 999px;
  background: rgba(32, 185, 168, 0.12);
  color: var(--teal-dark);
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 850;
}

.health-card p,
.signal-card p,
.note-card p {
  margin: 11px 0 0;
  color: #4e5a78;
  font-size: 0.83rem;
  line-height: 1.5;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #435070;
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(204, 213, 226, 0.72);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 250ms ease;
}

.progress-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

.signal-card h2 {
  margin: 13px 0 0;
  font-size: 1rem;
}

.trend {
  display: block;
  width: 100%;
  height: 62px;
  margin-top: 6px;
}

.trend-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.positive-fill {
  fill: rgba(32, 185, 168, 0.13);
}

.positive-line {
  stroke: var(--teal);
}

.warning-fill {
  fill: rgba(255, 109, 97, 0.11);
}

.warning-line {
  stroke: var(--coral);
}

.note-card {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  margin-top: auto;
  border: 1px solid rgba(122, 103, 232, 0.18);
  border-radius: var(--radius);
  background: rgba(238, 234, 255, 0.78);
  color: #594aa5;
  padding: 13px;
}

.note-card p {
  margin: 0;
  font-size: 0.76rem;
}

.workspace {
  min-width: 0;
  padding: 16px;
}

.welcome-view {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
#stepKicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(32, 185, 168, 0.22);
  border-radius: 999px;
  background: rgba(230, 251, 245, 0.75);
  color: var(--teal-dark);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-copy h2 {
  max-width: 100%;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 520px;
  margin: 20px 0 0;
  color: #4f5d7d;
  font-size: 1.04rem;
  line-height: 1.6;
}

.hero-benefits {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.hero-benefits span {
  position: relative;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: #26314f;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
}

.hero-benefits span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(47, 191, 143, 0.12);
}

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

.hero-actions button,
.step-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero-actions button:hover,
.step-controls button:hover {
  transform: translateY(-2px);
}

#startJourney,
#nextStep {
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 32px rgba(26, 115, 232, 0.22);
}

#startJourney:hover,
#nextStep:hover {
  background: #1558b0;
  box-shadow: 0 20px 40px rgba(26, 115, 232, 0.28);
}

#jumpResults,
#prevStep {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.hero-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.orbit-ring {
  position: absolute;
  width: min(270px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(32, 185, 168, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 38%, transparent 39%),
    conic-gradient(from 120deg, rgba(0, 167, 121, 0.2), rgba(251, 188, 4, 0.2), rgba(26, 115, 232, 0.2), rgba(234, 67, 53, 0.2), rgba(0, 167, 121, 0.2));
  animation: slowSpin 14s linear infinite;
}

.hero-orbit strong {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 1.65rem;
  letter-spacing: 0;
  animation: centerFloat 3.8s ease-in-out infinite;
}

.orbit-node {
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(26, 31, 65, 0.14);
  animation: pulseNode 2.8s ease-in-out infinite;
}

.node-a {
  top: 82px;
  left: 18%;
  background: var(--teal);
}

.node-b {
  top: 96px;
  right: 18%;
  background: var(--gold);
  animation-delay: -0.6s;
}

.node-c {
  bottom: 88px;
  right: 22%;
  background: var(--violet);
  animation-delay: -1.2s;
}

.node-d {
  bottom: 112px;
  left: 18%;
  background: var(--coral);
  animation-delay: -1.8s;
}

.landing-section,
.landing-note {
  margin-top: 12px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
}

.landing-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 18px;
}

.landing-heading h3,
.landing-note strong {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
}

.landing-heading p,
.landing-note p {
  margin: 0;
  color: #4f5d7d;
  line-height: 1.58;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  background: #e8f0fe;
  color: #174ea6;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 950;
}

.badge-green {
  background: var(--soft-green);
  color: var(--primary-dark);
}

.landing-grid {
  display: grid;
  gap: 12px;
}

.landing-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.landing-grid.features,
.landing-grid.audience {
  grid-template-columns: repeat(2, 1fr);
}

.landing-grid article {
  min-height: 112px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  padding: 16px;
  color: #26314f;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(60, 64, 67, 0.07);
}

.landing-grid article b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--soft-green);
  color: var(--primary-dark);
}

.landing-grid article h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
}

.landing-grid article p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.landing-note {
  display: grid;
  gap: 8px;
  background: linear-gradient(135deg, #ffffff, var(--soft-green));
}

.report-demo-section {
  background: linear-gradient(135deg, #ffffff 0%, #eefbf6 100%);
}

.report-demo-card {
  display: grid;
  gap: 16px;
  max-width: 520px;
  border: 1px solid rgba(47, 191, 143, 0.2);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(6, 95, 82, 0.12);
  padding: 20px;
}

.report-demo-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.report-demo-card span,
.report-demo-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.report-demo-card strong {
  color: var(--primary-dark);
  font-size: 2.25rem;
  line-height: 1;
}

.report-demo-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.report-demo-card dl div {
  border-radius: 18px;
  background: #f7f9fc;
  padding: 12px;
}

.report-demo-card dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 950;
}

.report-demo-card p {
  margin: 0;
  border-radius: 18px;
  background: #fff4da;
  color: #7b5818;
  padding: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.journey-view {
  display: none;
  animation: fadeSlide 360ms ease both;
}

.journey-started .welcome-view {
  display: none;
}

.journey-started .journey-view {
  display: block;
}

.analysis-focused .welcome-view,
.analysis-focused .journey-view {
  display: none;
}

.analysis-focused .deep-analysis {
  display: block;
  margin-top: 0;
}

.journey-tabs {
  display: grid;
  gap: 8px;
}

.journey-tabs button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  padding: 9px;
  text-align: left;
  animation: columnLift 440ms ease both;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.journey-tabs button:nth-child(2) {
  animation-delay: 60ms;
}

.journey-tabs button:nth-child(3) {
  animation-delay: 120ms;
}

.journey-tabs button:nth-child(4) {
  animation-delay: 180ms;
}

.journey-tabs button:hover {
  transform: translateY(-2px) translateX(2px);
  box-shadow: 0 14px 28px rgba(60, 64, 67, 0.09);
}

.journey-tabs button.is-active {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 13%, white);
  box-shadow: inset 4px 0 0 var(--accent), 0 14px 30px rgba(60, 64, 67, 0.08);
}

.journey-tabs button.is-complete .tab-icon::after {
  opacity: 1;
}

.tab-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  transition: transform 180ms ease, background 180ms ease;
}

.journey-tabs button:hover .tab-icon,
.journey-tabs button.is-active .tab-icon {
  transform: rotate(-4deg) scale(1.04);
  background: var(--accent);
  color: white;
}

.tab-icon::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0;
}

.journey-tabs strong,
.journey-tabs small {
  display: block;
}

.journey-tabs strong {
  font-size: 0.82rem;
}

.journey-tabs small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.section-insight {
  margin: 0 0 14px;
  border: 1px solid rgba(32, 185, 168, 0.18);
  border-radius: 16px;
  background: rgba(230, 251, 245, 0.66);
  color: #315068;
  padding: 13px 14px;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

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

.quadrant {
  display: none;
}

.quadrant.is-active {
  display: block;
  animation: cardIn 280ms ease both;
}

.quadrant.is-active .quad-icon {
  animation: iconFloat 2.7s ease-in-out infinite;
}

.quadrant.is-active .prompt {
  animation: fadeSlide 260ms ease both;
}

.quadrant.is-active .prompt:nth-child(2) {
  animation-delay: 60ms;
}

.quadrant.is-active .prompt:nth-child(3) {
  animation-delay: 120ms;
}

.step-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.step-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.journey-view .quadrants {
  grid-template-columns: 1fr;
}

.journey-view .quadrant.is-active {
  width: 100%;
}

.quick-tip {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(32, 185, 168, 0.18);
  border-radius: 14px;
  background: rgba(232, 240, 254, 0.78);
  padding: 10px 12px;
  color: #25415b;
  font-size: 0.84rem;
}

.quick-tip svg {
  color: var(--teal-dark);
}

.quick-tip button,
.score-card button,
.chat-row button,
#closeTips {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 850;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 14px;
}

.workspace-header h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.3rem);
  line-height: 1.05;
}

.workspace-header p {
  max-width: 650px;
  font-size: 0.9rem;
}

.autosave {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 9px 12px;
  color: #4f5a76;
  font-size: 0.76rem;
  font-weight: 800;
}

.autosave span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(32, 185, 168, 0.13);
}

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

.quadrant {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  padding: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.quadrant:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  box-shadow: 0 18px 46px rgba(60, 64, 67, 0.13);
}

.quadrant::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
}

.quadrant.fortalezas {
  --accent: var(--teal);
}

.quadrant.oportunidades {
  --accent: var(--gold);
}

.quadrant.debilidades {
  --accent: var(--violet);
}

.quadrant.amenazas {
  --accent: var(--coral);
}

.quadrant-header {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
}

.quad-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 18%, transparent);
}

.quad-icon svg,
.tab-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.95;
}

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

.quadrant p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.quad-count {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, white);
  color: var(--accent);
  font-weight: 900;
}

.prompt-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.journey-view .quadrant.is-active .prompt-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.prompt {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.prompt label {
  color: #1a2441;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
}

.prompt textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid rgba(28, 36, 69, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
  padding: 10px;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.prompt textarea:focus,
.rating-range:focus,
.chat-row input:focus {
  border-color: var(--accent, var(--teal));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--teal)) 16%, transparent);
}

.context-feedback {
  border: 1px solid rgba(32, 185, 168, 0.18);
  border-radius: 10px;
  background: rgba(230, 251, 245, 0.68);
  color: #255b55;
  padding: 7px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
}

.context-feedback.is-empty {
  border-color: rgba(28, 36, 69, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 700;
}

.context-feedback.as-fortalezas {
  border-color: rgba(32, 185, 168, 0.22);
  background: rgba(230, 251, 245, 0.8);
  color: #08776e;
}

.context-feedback.as-oportunidades {
  border-color: rgba(242, 184, 75, 0.28);
  background: rgba(255, 244, 218, 0.88);
  color: #8b6115;
}

.context-feedback.as-debilidades {
  border-color: rgba(122, 103, 232, 0.24);
  background: rgba(238, 234, 255, 0.86);
  color: #5142ad;
}

.context-feedback.as-amenazas {
  border-color: rgba(255, 109, 97, 0.26);
  background: rgba(255, 233, 232, 0.92);
  color: #a13e3a;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, white);
  color: color-mix(in srgb, var(--accent) 72%, #18213d);
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 850;
}

.control-deck {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.rating-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.rating-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.rating-panel p {
  margin: 3px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
}

.rating-control {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  padding: 10px;
}

.rating-control span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #26314f;
  font-size: 0.76rem;
  font-weight: 850;
}

.rating-control output {
  color: var(--teal-dark);
}

.rating-range {
  width: 100%;
  margin-top: 10px;
  accent-color: var(--teal);
}

.analyze-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  min-height: 60px;
  border: 0;
  border-radius: 16px;
  background: var(--blue);
  color: white;
  box-shadow: 0 18px 38px rgba(26, 115, 232, 0.22);
  font-size: 0.95rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.analyze-button:hover {
  transform: translateY(-2px);
  background: #1558b0;
  box-shadow: 0 22px 42px rgba(26, 115, 232, 0.28);
}

.deep-analysis {
  display: none;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
  scroll-margin-top: 14px;
  animation: surfaceRise 540ms ease both;
}

.deep-analysis:focus {
  outline: none;
}

.deep-analysis.is-highlighted {
  animation: analysisPing 1.25s ease both;
}

.deep-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.deep-header h2 {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
}

.deep-header p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #46546f;
  font-size: 0.95rem;
  line-height: 1.55;
}

.deep-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.deep-header button:hover {
  transform: translateY(-2px);
  background: var(--blue);
  box-shadow: 0 16px 32px rgba(26, 115, 232, 0.2);
}

.deep-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
}

.deep-score-card,
.deep-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  padding: 16px;
  animation: columnLift 460ms ease both;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.deep-score-card:hover,
.deep-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 115, 232, 0.18);
  box-shadow: 0 18px 44px rgba(60, 64, 67, 0.13);
}

.deep-ai-card,
.foda-map-card {
  grid-column: span 1;
}

.foda-map-card {
  grid-column: 1 / -1;
}

.deep-score-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 310px;
  text-align: center;
  background: var(--blue-soft);
}

.deep-score-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(240px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--teal) var(--score), #dfe7f1 0);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.52), 0 18px 40px rgba(26, 115, 232, 0.13);
}

.deep-score-orbit::before {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: inherit;
  background: white;
}

.deep-score-orbit > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
}

.deep-score-orbit strong {
  color: var(--ink);
  font-size: 3.2rem;
  line-height: 0.9;
}

.deep-score-orbit span:not(.orbit-dot) {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.orbit-dot {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 4px solid white;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(60, 64, 67, 0.16);
  animation: pulseNode 3.2s ease-in-out infinite;
}

.dot-fortaleza {
  top: 8%;
  left: 47%;
  background: var(--teal);
}

.dot-oportunidad {
  top: 47%;
  right: 8%;
  background: var(--gold);
  animation-delay: -0.8s;
}

.dot-debilidad {
  bottom: 8%;
  left: 47%;
  background: var(--violet);
  animation-delay: -1.6s;
}

.dot-amenaza {
  top: 47%;
  left: 8%;
  background: var(--coral);
  animation-delay: -2.4s;
}

.deep-score-card h3 {
  margin: 16px 0 0;
  color: var(--teal-dark);
  font-size: 1.6rem;
}

.deep-score-card p,
.deep-card p {
  color: #46546f;
  line-height: 1.5;
}

.deep-score-card p {
  max-width: 320px;
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.deep-ai-card {
  background: #202124;
  color: white;
}

.deep-ai-card h3 {
  color: white;
}

.deep-ai-card p,
.deep-ai-card .card-heading span {
  color: rgba(255, 255, 255, 0.78);
}

.deep-ai-card .card-heading span {
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.16);
  color: #b7f8cf;
  padding: 7px 10px;
}

.deep-advice-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.deep-advice-list span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.35;
}

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

.foda-map-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 8%, white);
  padding: 12px;
}

.map-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
}

.map-icon svg {
  width: 22px;
  height: 22px;
}

.foda-map-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.94rem;
}

.foda-map-item p {
  margin: 3px 0 0;
  font-size: 0.78rem;
}

.foda-map-item small {
  display: block;
  margin-top: 8px;
  color: #36415f;
  font-size: 0.76rem;
  font-weight: 780;
}

.foda-map-item b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: white;
  color: var(--accent);
  font-size: 1rem;
}

.mini-track {
  grid-column: 2 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(204, 213, 226, 0.72);
}

.mini-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.foda-map-item em {
  grid-column: 1 / -1;
  color: #34415c;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 780;
  line-height: 1.35;
}

.deep-compass {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.compass-row {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(60, 64, 67, 0.1);
  border-radius: 15px;
  background: rgba(248, 250, 253, 0.88);
  padding: 10px;
}

.compass-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.compass-row > div:first-child span {
  color: var(--accent);
}

.compass-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe7f1;
}

.compass-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.compass-row p {
  margin: 0;
  font-size: 0.75rem;
}

.topic-list,
.action-plan {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.topic-item,
.action-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(60, 64, 67, 0.1);
  border-radius: 16px;
  background: rgba(248, 250, 253, 0.9);
  padding: 11px;
}

.topic-item span,
.action-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-weight: 950;
}

.topic-item p,
.action-step p {
  margin: 0;
  font-size: 0.82rem;
}

.action-step strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.9rem;
}

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

.analysis-header h2 {
  font-size: 1.2rem;
}

.analysis-header span,
.card-heading span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.analysis-card {
  padding: 14px;
}

.score-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
}

.score-donut {
  width: 112px;
  height: 112px;
}

.score-donut::before {
  inset: 9px;
}

.score-donut strong {
  font-size: 2.2rem;
}

.score-donut span {
  position: absolute;
  bottom: 28px;
}

.score-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.score-card h3,
.analysis-card h3 {
  margin: 0;
}

.score-card h3 {
  margin-top: 5px;
  color: var(--teal-dark);
  font-size: 1.35rem;
  line-height: 1.05;
}

.score-card p {
  font-size: 0.8rem;
}

.score-card button {
  margin-top: 10px;
  background: var(--teal-dark);
}

.export-card {
  background: rgba(255, 255, 255, 0.84);
}

.export-card p {
  font-size: 0.78rem;
}

.export-name-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.export-name-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.export-name-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  outline: none;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 750;
}

.export-name-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.export-name-field small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.export-name-field.has-error small {
  color: var(--danger);
}

.export-name-field.has-error input {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.12);
}

.export-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.export-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: white;
  font-size: 0.82rem;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.export-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(60, 64, 67, 0.16);
}

.export-actions button:nth-child(1) {
  background: var(--primary-dark);
}

.export-actions button:nth-child(2) {
  background: var(--blue);
}

.export-actions button:nth-child(3) {
  background: var(--primary);
}

.export-actions button:nth-child(4) {
  background: #34405f;
}

.export-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
  font-weight: 800;
}

.card-heading h3 {
  font-size: 0.98rem;
}

.profile-chart {
  display: grid;
  gap: 11px;
  margin-top: 13px;
}

.profile-row {
  display: grid;
  grid-template-columns: 86px 1fr 42px;
  gap: 10px;
  align-items: center;
}

.profile-label {
  color: #1c2645;
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-track {
  position: relative;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(204, 213, 226, 0.68);
}

.profile-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(32, 185, 168, 0.24);
  transition: width 280ms ease;
}

.profile-value {
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 950;
  text-align: right;
}

.profile-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 5px;
}

.profile-chip {
  border: 1px solid rgba(32, 185, 168, 0.18);
  border-radius: 14px;
  background: rgba(230, 251, 245, 0.72);
  padding: 10px;
}

.profile-chip strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
}

.profile-chip span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.bar-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.bar-item {
  display: grid;
  gap: 6px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  color: #303b5c;
  font-size: 0.77rem;
  font-weight: 850;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(204, 213, 226, 0.65);
}

.bar-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 300ms ease;
}

.alerts-card ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.alerts-card li {
  border-left: 4px solid var(--coral);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 109, 97, 0.09);
  color: #4e2432;
  padding: 9px 10px;
  font-size: 0.77rem;
  line-height: 1.35;
}

.ai-card {
  background: #202124;
  color: white;
}

.ai-title {
  justify-content: flex-start;
}

.ai-title h3 {
  margin: 0;
  font-size: 1rem;
}

.ai-title small {
  color: rgba(255, 255, 255, 0.62);
}

.ai-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--teal);
  font-weight: 950;
}

.ai-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.chat-row {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  margin-top: 12px;
}

.chat-row input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  outline: none;
  padding: 0 13px;
  font-size: 0.78rem;
}

.chat-row input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.chat-row button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--teal);
}

.ai-answer {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  padding: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.improvements {
  grid-column: 2;
  padding: 16px;
}

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

.improvements h2 {
  font-size: 1.18rem;
}

.improvements p {
  max-width: 460px;
  font-size: 0.8rem;
}

.improvement-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.improvement-card {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  padding: 13px;
  animation: columnLift 520ms ease both;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.improvement-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--teal);
}

.improvement-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(60, 64, 67, 0.12);
}

.improvement-card:nth-child(2)::before {
  background: var(--gold);
}

.improvement-card:nth-child(3)::before {
  background: var(--blue);
}

.improvement-card:nth-child(4)::before {
  background: var(--violet);
}

.improvement-card:nth-child(5)::before {
  background: var(--coral);
}

.improvement-card span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: rgba(32, 185, 168, 0.12);
  color: var(--teal-dark);
  font-weight: 950;
}

.improvement-card h3 {
  margin: 12px 0 6px;
  font-size: 0.9rem;
}

.improvement-card p {
  margin: 0;
  font-size: 0.74rem;
}

.tip-drawer {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(17, 22, 47, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.tip-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.tip-drawer > div {
  width: min(520px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 18px;
}

.tip-drawer button {
  float: right;
}

.tip-drawer h2 {
  margin: 0 0 14px;
}

.tip-drawer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #33415f;
}

@keyframes floatWave {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(20px, 28px, 0) rotate(18deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(18px, -22px, 0);
  }
}

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

@keyframes markBreath {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.04) rotate(-2deg);
  }
}

@keyframes centerFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes surfaceRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes consentSlide {
  from {
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes consentLeave {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.98);
  }
}

@keyframes columnLift {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseNode {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateX(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes analysisPing {
  0% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(26, 115, 232, 0);
    border-color: var(--line);
  }
  28% {
    box-shadow: var(--shadow), 0 0 0 8px rgba(26, 115, 232, 0.16);
    border-color: rgba(26, 115, 232, 0.42);
  }
  100% {
    box-shadow: var(--shadow), 0 0 0 0 rgba(26, 115, 232, 0);
    border-color: var(--line);
  }
}

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

@media (max-width: 1260px) {
  .app {
    grid-template-columns: minmax(220px, 260px) minmax(560px, 1fr);
  }

  .rail-right {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workspace {
    grid-column: 2;
    grid-row: 1;
  }

  .analysis-header {
    grid-column: 1 / -1;
  }

  .ai-card {
    grid-column: span 2;
  }

  .improvements {
    grid-column: 2;
  }

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

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

  .rail-left,
  .workspace,
  .rail-right,
  .improvements {
    grid-column: 1;
    grid-row: auto;
  }

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

  .brand,
  .note-card {
    grid-column: 1 / -1;
  }

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

  .welcome-view {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landing-grid.three,
  .landing-grid.features,
  .landing-grid.audience {
    grid-template-columns: 1fr;
  }

  .deep-header,
  .deep-grid,
  .foda-map {
    grid-template-columns: 1fr;
  }

  .hero-orbit {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 18px 0 28px;
  }

  .auth-brand-panel {
    min-height: auto;
    padding: 26px;
    border-radius: 24px;
  }

  .auth-brand-panel h1 {
    font-size: 3rem;
  }

  .dashboard-header,
  .panel-heading {
    display: grid;
  }

  .dashboard-actions,
  .dashboard-metrics,
  .dashboard-grid,
  .history-ai-grid,
  .compare-controls {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    display: grid;
    width: 100%;
  }

  .detail-score-row {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    bottom: 10px;
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "icon copy"
      "actions actions";
    gap: 10px;
    padding: 11px;
  }

  .cookie-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .cookie-copy {
    max-height: min(46vh, 420px);
  }

  .cookie-copy p {
    font-size: 0.76rem;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cookie-actions button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .app {
    width: min(100% - 16px, 560px);
    margin: 8px auto;
  }

  .rail-left,
  .rail-right,
  .quadrants,
  .rating-grid,
  .control-deck {
    grid-template-columns: 1fr;
  }

  .quick-tip,
  .workspace-header,
  .improvements header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .autosave {
    width: fit-content;
  }

  .score-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .analyze-button {
    width: 100%;
    min-width: 0;
  }

  .journey-view .quadrant.is-active .prompt-list {
    grid-template-columns: 1fr;
  }

  .improvement-rail {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .step-controls {
    display: grid;
  }

  .deep-analysis {
    padding: 16px;
    border-radius: 18px;
  }

  .deep-header {
    gap: 14px;
  }

  .deep-header button {
    width: 100%;
  }

  .foda-map-item {
    grid-template-columns: 38px 1fr auto;
  }

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

  .journey-tabs button {
    grid-template-columns: 34px 1fr;
  }
}
