:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #eef4f2;
  --ink: #151a20;
  --muted: #65716f;
  --line: #dbe4e2;
  --accent: #0f9f8d;
  --accent-dark: #0a665f;
  --coral: #e36b5d;
  --deep: #101614;
  --warn: #b84a3a;
  --gold: #d69a24;
  --green: #3b8f65;
  --blue: #456fb3;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(30, 43, 40, 0.11);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 139, 141, 0.08), transparent 280px),
    var(--bg);
  color: var(--ink);
}

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

button,
input {
  font: inherit;
}

button,
.primary-link {
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  min-height: 44px;
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.secondary-link,
.ghost-link {
  border-radius: var(--radius);
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.secondary-link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.ghost-link {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

button:hover,
.primary-link:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.ghost-button {
  background: #eef2ef;
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger-button {
  background: #fff1ee;
  color: #8d2f22;
  border: 1px solid #efc0b7;
}

/* Landing page */

.landing-page {
  background: #f5f7f8;
}

.landing-page main {
  width: 100%;
  margin: 0;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 249, 0.88);
  border-bottom: 1px solid rgba(219, 228, 226, 0.82);
  backdrop-filter: blur(18px);
}

.site-nav .brand {
  color: var(--ink);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  color: #52615f;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  min-width: 136px;
}

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

.lp-container {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 132px);
  padding: clamp(70px, 9vw, 122px) clamp(18px, 5vw, 74px) clamp(54px, 8vw, 92px);
  background: #101614;
  color: #f8fbfa;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.74;
  filter: saturate(1.08) contrast(1.05);
  pointer-events: none;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #101614 0%, rgba(16, 22, 20, 0.93) 30%, rgba(16, 22, 20, 0.62) 58%, rgba(16, 22, 20, 0.5) 100%),
    linear-gradient(rgba(119, 226, 212, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 226, 212, 0.09) 1px, transparent 1px);
  background-size:
    100% 100%,
    48px 48px,
    48px 48px;
  opacity: 1;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(690px, 100%);
}

.hero-section .eyebrow,
.final-cta .eyebrow {
  color: #77e2d4;
}

.hero-section h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  color: #fff;
}

.hero-lead {
  max-width: 680px;
  color: rgba(248, 251, 250, 0.78);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.85;
}

.hero-form {
  margin-top: 30px;
  max-width: 680px;
}

.hero-form label {
  display: block;
  margin-bottom: 10px;
  color: rgba(248, 251, 250, 0.8);
  font-weight: 800;
}

.hero-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.hero-form input {
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  min-width: 0;
}

.hero-form input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.hero-form input:focus {
  outline: 3px solid rgba(15, 159, 141, 0.32);
  border-color: rgba(119, 226, 212, 0.8);
}

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

.hero-section .primary-link,
.hero-section button,
.final-cta button {
  background: #f8fbfa;
  color: #101614;
}

.hero-section .secondary-link {
  color: #f8fbfa;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(680px, 100%);
  margin-top: 34px;
}

.hero-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-metrics strong {
  display: block;
  font-size: 24px;
  color: #fff;
}

.hero-metrics span {
  display: block;
  margin-top: 4px;
  color: rgba(248, 251, 250, 0.66);
  font-size: 13px;
  line-height: 1.5;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 5vw, 76px);
  top: clamp(138px, 17vw, 205px);
  width: min(500px, 37vw);
  transform: rotate(-1.5deg);
}

.mock-window {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(246, 250, 249, 0.94);
  color: var(--ink);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.mock-window::after {
  content: "";
  position: absolute;
  inset: -42% 0 auto;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(15, 159, 141, 0.18), transparent);
  pointer-events: none;
}

.mock-window-bar {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid #e6ecea;
  background: #fbfdfc;
}

.mock-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4dcd9;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  align-items: center;
}

.mock-header small,
.mock-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mock-header strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.mock-score {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #113c38;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 0 0 rgba(15, 159, 141, 0.28);
}

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

.mock-panel {
  min-height: 136px;
  border: 1px solid #dde7e4;
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.mock-panel-wide {
  grid-column: 1 / -1;
}

.mock-panel strong {
  display: block;
  margin-top: 9px;
  font-size: 18px;
  line-height: 1.35;
}

.mock-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.mini-bars {
  height: 82px;
  display: flex;
  align-items: end;
  gap: 9px;
  margin-top: 18px;
}

.mini-bars i {
  flex: 1;
  min-width: 18px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--accent), #7bcdbf);
  transform-origin: bottom;
}

.mock-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mock-tags b {
  border: 1px solid rgba(15, 159, 141, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 12px;
}

.mock-bars {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.mock-bars em {
  min-width: 120px;
  border-radius: 999px;
  padding: 8px 10px;
  background: #dff3ee;
  color: #0d635b;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  transform-origin: left;
}

.section-band {
  padding: clamp(72px, 10vw, 116px) 0;
}

.section-band:nth-of-type(even) {
  background: #fff;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-intro.center {
  margin-inline: auto;
  text-align: center;
}

.section-intro h2,
.benefit-layout h2,
.final-cta h2 {
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.08;
  margin-bottom: 14px;
}

.section-intro p,
.benefit-layout p,
.final-cta p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

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

.pain-grid article,
.feature-grid article,
.pricing-grid article,
.step-list article,
.insight-card,
.decision-list,
.benefit-list div,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 38px rgba(21, 26, 32, 0.06);
}

.pain-grid article,
.feature-grid article {
  padding: 20px;
  min-height: 190px;
}

.pain-grid span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-weight: 900;
}

.pain-grid h3,
.feature-grid h3,
.step-list h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.pain-grid p,
.feature-grid p,
.step-list p,
.pricing-grid p,
.pricing-grid li,
.faq-list p {
  color: var(--muted);
  line-height: 1.75;
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.solution-board {
  display: grid;
  gap: 14px;
}

.insight-card,
.decision-list {
  padding: 22px;
}

.insight-card span {
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 13px;
}

.insight-card strong {
  display: block;
  margin: 10px 0;
  font-size: 24px;
  line-height: 1.35;
}

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

.ratio-list div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.ratio-list span,
.ratio-list em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.ratio-list b {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #83d5c8);
  transform-origin: left;
}

.decision-list ul,
.pricing-grid ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

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

.workflow-section {
  background: #eef4f2;
}

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

.step-list article {
  padding: 20px;
  min-height: 210px;
}

.step-list span {
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.benefit-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

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

.benefit-list div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.benefit-list strong {
  color: var(--ink);
}

.benefit-list span {
  color: var(--muted);
  line-height: 1.7;
}

.pricing-grid {
  width: min(860px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-grid article {
  padding: 26px;
}

.pricing-grid .featured-plan {
  border-color: rgba(15, 159, 141, 0.45);
  box-shadow: 0 24px 60px rgba(15, 159, 141, 0.14);
}

.plan-label {
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 13px;
}

.pricing-grid h3 {
  margin: 10px 0 8px;
  font-size: 28px;
}

.pricing-grid article > strong {
  display: block;
  margin-bottom: 14px;
  font-size: 38px;
}

.pricing-grid .primary-link,
.pricing-grid .secondary-link {
  width: 100%;
  margin-top: 14px;
}

.faq-list {
  width: min(880px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

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

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

.faq-list p {
  margin: 12px 0 0;
}

.final-cta {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--deep);
  color: #fff;
  text-align: center;
}

.final-cta .lp-container {
  width: min(820px, calc(100% - 36px));
}

.final-cta p {
  margin-inline: auto;
  max-width: 680px;
  color: rgba(248, 251, 250, 0.76);
}

.final-form {
  margin-inline: auto;
  text-align: left;
}

.app-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 48px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  letter-spacing: 0;
}

.session-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 64px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: stretch;
  min-height: calc(100vh - 124px);
}

.input-panel,
.status-panel,
.login-panel,
.result-section,
.result-header {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(215, 223, 219, 0.9);
  box-shadow: var(--shadow);
}

.input-panel {
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 12px;
}

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

h1 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 900px;
  margin-bottom: 20px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 760px;
}

.url-form {
  margin-top: 22px;
}

.url-form label {
  display: block;
  font-weight: 800;
  margin-bottom: 10px;
}

.url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input[type="url"] {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}

input[type="url"]:focus {
  outline: 3px solid rgba(15, 139, 141, 0.16);
  border-color: var(--accent);
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.notice-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfcfb;
  min-height: 122px;
}

.notice-item strong {
  display: block;
  margin-bottom: 8px;
}

.notice-item span,
.data-details,
.status-panel p,
.login-panel p,
.warning-list,
.video-meta {
  color: var(--muted);
  line-height: 1.7;
}

.data-details {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.data-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent-dark);
}

.status-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 24px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.status-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(15, 159, 141, 0.12) 50%, transparent 58%),
    linear-gradient(rgba(15, 159, 141, 0.08) 1px, transparent 1px);
  background-size:
    160% 100%,
    100% 14px;
  opacity: 0;
  pointer-events: none;
}

.status-panel > * {
  position: relative;
  z-index: 1;
}

.status-block {
  position: sticky;
  top: 18px;
}

.status-label {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 14px;
}

.status-block strong {
  display: block;
  font-size: 24px;
  margin-bottom: 12px;
}

.analysis-progress {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 159, 141, 0.2);
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(255, 255, 255, 0.74);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.progress-meta span:first-child {
  color: var(--accent-dark);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(238, 244, 242, 0.96);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue), #83d5c8);
  transition: width 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.status-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.error-detail {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(207, 76, 76, 0.22);
  border-radius: var(--radius);
  padding: 15px;
  background: linear-gradient(180deg, rgba(255, 246, 245, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: 0 16px 34px rgba(61, 24, 24, 0.08);
}

.error-detail strong {
  color: #8a2f2f;
  font-size: 15px;
}

.error-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.error-detail dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.error-detail dl div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
}

.error-detail dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.error-detail dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

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

.error-detail-actions a,
.error-detail-actions button {
  border: 1px solid rgba(207, 76, 76, 0.2);
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff;
  color: #8a2f2f;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.login-panel,
.access-panel {
  margin-top: 24px;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.login-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.access-form {
  display: grid;
  gap: 8px;
  min-width: min(360px, 100%);
}

.access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input[type="password"],
select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}

.result-shell {
  margin-top: 26px;
}

.result-header {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.result-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(15, 159, 141, 0.08), transparent);
  transform: translateX(-120%);
  pointer-events: none;
}

.thumbnail {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1d2d2a, #0f8b8d);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-header h2 {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.15;
  margin-bottom: 10px;
}

.result-controls {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(215, 223, 219, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(21, 26, 32, 0.06);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.control-group {
  display: grid;
  gap: 8px;
}

.control-group > span,
.control-group label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.button-group,
.stage-switch,
.inline-controls,
.category-filter-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button-group button,
.stage-switch button,
.icon-button,
.category-filter-list button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button-group button.is-active,
.stage-switch button.is-active,
.category-filter-list button.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(21, 26, 32, 0.14);
}

.stage-switch button {
  gap: 6px;
}

.stage-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15, 159, 141, 0.12);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.stage-switch button.is-active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.category-control {
  grid-column: span 2;
}

.warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.warning-list span {
  background: #fff6df;
  color: #725016;
  border: 1px solid #ead49a;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
}

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

.result-section {
  border-radius: var(--radius);
  padding: 22px;
}

.summary-section,
.action-section,
.comments-section,
.feedback-section {
  grid-column: 1 / -1;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.section-heading span {
  color: var(--accent);
  font-weight: 900;
}

.section-heading h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.summary-text {
  font-size: 20px;
  line-height: 1.75;
}

.takeaway-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

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

.recommendation-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fbfcfb;
}

.recommendation-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--blue));
  opacity: 0.9;
}

.recommendation-card strong {
  display: block;
  margin-bottom: 8px;
}

.recommendation-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

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

.bar-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
}

.bar-track {
  height: 12px;
  background: #edf2ef;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: left;
}

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

.topic-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.topic-item span:last-child {
  color: var(--muted);
}

.timeline-section {
  align-self: start;
}

.peak-label {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 159, 141, 0.24);
  border-radius: var(--radius);
  background: rgba(15, 159, 141, 0.08);
  color: var(--accent-dark);
  font-weight: 900;
}

.daily-count-list {
  display: grid;
  gap: 10px;
}

.daily-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.daily-row b {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #83d5c8);
}

.daily-row em {
  font-style: normal;
  text-align: right;
}

.timestamp-chip-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timestamp-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timeline-toggle {
  margin-top: 12px;
}

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

.comment-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fbfcfb;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-author-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.comment-author-row strong {
  overflow-wrap: anywhere;
}

.fan-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef4f2;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.fan-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
}

.fan-crown span {
  background: var(--gold);
}

.fan-fire span {
  background: var(--coral);
}

.comment-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(15, 159, 141, 0);
  pointer-events: none;
}

.comment-card.risky {
  background: #fff8f7;
  border-color: #efc0b7;
}

.comment-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--surface-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.category-chip {
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 900;
}

.category-all {
  background: #eef2ef;
  color: #26302e;
}

.category-empathy {
  background: #e8f3ff;
  color: #285b91;
}

.category-support {
  background: #fff3d8;
  color: #81560d;
}

.category-suggestion,
.category-question {
  background: #e5f7f3;
  color: #0a665f;
}

.category-critical {
  background: #fff1ee;
  color: #963528;
}

.category-other {
  background: #eef2f6;
  color: #52615f;
}

.comment-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.comment-stats span {
  border-radius: 999px;
  background: rgba(238, 244, 242, 0.8);
  padding: 4px 8px;
}

.comment-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.raw-text {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  white-space: pre-wrap;
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-form label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feedback-form button {
  justify-self: start;
}

.result-footer-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}

.raw-dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.raw-dialog::backdrop {
  background: rgba(24, 35, 33, 0.38);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

body.theme-dark {
  color-scheme: dark;
  --bg: #111717;
  --surface: #18211f;
  --surface-soft: #202d2a;
  --ink: #eef7f4;
  --muted: #a8bbb5;
  --line: #31423e;
  --accent: #4dd0bf;
  --accent-dark: #8bf3e6;
  --deep: #070b0a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  background:
    linear-gradient(180deg, rgba(77, 208, 191, 0.1), transparent 320px),
    var(--bg);
}

body.theme-contrast {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f2f2f2;
  --ink: #000000;
  --muted: #1f2933;
  --line: #000000;
  --accent: #005fcc;
  --accent-dark: #003f8f;
  --warn: #a40000;
  --shadow: none;
  background: #fff;
}

body.theme-dark .input-panel,
body.theme-dark .status-panel,
body.theme-dark .login-panel,
body.theme-dark .access-panel,
body.theme-dark .result-section,
body.theme-dark .result-header,
body.theme-dark .result-controls,
body.theme-dark .recommendation-card,
body.theme-dark .comment-card,
body.theme-dark .notice-item,
body.theme-dark .raw-dialog {
  background: rgba(24, 33, 31, 0.94);
  border-color: var(--line);
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark .raw-text,
body.theme-dark .analysis-progress,
body.theme-dark .error-detail,
body.theme-dark .timestamp-chip,
body.theme-dark .button-group button,
body.theme-dark .stage-switch button,
body.theme-dark .icon-button,
body.theme-dark .category-filter-list button {
  background: #111917;
  color: var(--ink);
  border-color: var(--line);
}

body.theme-dark .bar-track,
body.theme-dark .progress-track,
body.theme-dark .comment-stats span {
  background: #24322f;
}

body.theme-contrast button,
body.theme-contrast .primary-link,
body.theme-contrast .secondary-link,
body.theme-contrast .ghost-link,
body.theme-contrast .input-panel,
body.theme-contrast .status-panel,
body.theme-contrast .login-panel,
body.theme-contrast .access-panel,
body.theme-contrast .result-section,
body.theme-contrast .result-header,
body.theme-contrast .result-controls,
body.theme-contrast .analysis-progress,
body.theme-contrast .error-detail,
body.theme-contrast input,
body.theme-contrast select,
body.theme-contrast .comment-card,
body.theme-contrast .recommendation-card,
body.theme-contrast .raw-text {
  border: 2px solid #000;
}

body.density-compact .result-section,
body.density-compact .result-header,
body.density-compact .result-controls,
body.density-compact .comment-card,
body.density-compact .recommendation-card {
  padding: 14px;
}

body.density-compact .comment-card {
  min-height: 140px;
  gap: 8px;
}

body.density-compact .summary-text,
body.density-compact .comment-card p,
body.density-compact .recommendation-card p {
  line-height: 1.45;
}

.stage-hidden {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  button,
  .primary-link,
  .secondary-link,
  .ghost-link,
  .notice-item,
  .feature-grid article,
  .pain-grid article,
  .step-list article,
  .pricing-grid article,
  .comment-card,
  .recommendation-card {
    transition:
      transform 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      background 180ms ease,
      opacity 180ms ease;
  }

  .primary-link:hover,
  .secondary-link:hover,
  .ghost-link:hover,
  .notice-item:hover,
  .feature-grid article:hover,
  .pain-grid article:hover,
  .step-list article:hover,
  .pricing-grid article:hover,
  .comment-card:hover,
  .recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 56px rgba(21, 26, 32, 0.12);
  }

  .hero-section::before {
    animation: gridDrift 18s linear infinite;
  }

  .hero-content > * {
    animation: riseIn 760ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .hero-content > *:nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-content > *:nth-child(3) {
    animation-delay: 150ms;
  }

  .hero-content > *:nth-child(4) {
    animation-delay: 220ms;
  }

  .hero-content > *:nth-child(5) {
    animation-delay: 290ms;
  }

  .hero-content > *:nth-child(6) {
    animation-delay: 360ms;
  }

  .hero-visual {
    animation: panelFloat 7s ease-in-out infinite;
  }

  .mock-window::after {
    animation: scanPanel 4.2s ease-in-out infinite;
  }

  .mock-score {
    animation: scorePulse 2.8s ease-in-out infinite;
  }

  .mini-bars i {
    animation: barBreathe 2.9s ease-in-out infinite;
  }

  .mini-bars i:nth-child(2) {
    animation-delay: 220ms;
  }

  .mini-bars i:nth-child(3) {
    animation-delay: 440ms;
  }

  .mini-bars i:nth-child(4) {
    animation-delay: 660ms;
  }

  .mock-bars em,
  .ratio-list b {
    animation: railGrow 920ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .mock-bars em:nth-child(2),
  .ratio-list div:nth-child(2) b {
    animation-delay: 140ms;
  }

  .mock-bars em:nth-child(3),
  .ratio-list div:nth-child(3) b {
    animation-delay: 280ms;
  }

  .ratio-list div:nth-child(4) b {
    animation-delay: 420ms;
  }

  .mock-tags b {
    animation: chipWake 3.2s ease-in-out infinite;
  }

  .mock-tags b:nth-child(2) {
    animation-delay: 280ms;
  }

  .mock-tags b:nth-child(3) {
    animation-delay: 560ms;
  }

  .mock-tags b:nth-child(4) {
    animation-delay: 840ms;
  }

  .motion-ready .reveal-target {
    opacity: 0;
    transform: translateY(26px);
    transition:
      opacity 680ms ease,
      transform 680ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  .motion-ready .reveal-target.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .pain-grid .reveal-target:nth-child(2),
  .feature-grid .reveal-target:nth-child(2),
  .step-list .reveal-target:nth-child(2),
  .benefit-list .reveal-target:nth-child(2),
  .faq-list .reveal-target:nth-child(2) {
    transition-delay: 80ms;
  }

  .pain-grid .reveal-target:nth-child(3),
  .feature-grid .reveal-target:nth-child(3),
  .step-list .reveal-target:nth-child(3),
  .benefit-list .reveal-target:nth-child(3),
  .faq-list .reveal-target:nth-child(3) {
    transition-delay: 160ms;
  }

  .pain-grid .reveal-target:nth-child(4),
  .feature-grid .reveal-target:nth-child(4),
  .step-list .reveal-target:nth-child(4),
  .benefit-list .reveal-target:nth-child(4),
  .faq-list .reveal-target:nth-child(4) {
    transition-delay: 240ms;
  }

  .analyze-page.is-analyzing .status-panel::before {
    opacity: 1;
    animation: statusScan 1.6s linear infinite;
  }

  .analyze-page.is-analyzing .status-block strong {
    animation: textSignal 1.1s ease-in-out infinite;
  }

  .result-shell .result-header,
  .result-shell .result-section,
  .result-shell .result-footer-actions {
    opacity: 0;
    transform: translateY(18px);
  }

  .result-shell.result-ready .result-header,
  .result-shell.result-ready .result-section,
  .result-shell.result-ready .result-footer-actions {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 620ms ease,
      transform 620ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  .result-shell.result-ready .result-header::after {
    animation: resultSweep 1.25s ease-out 160ms both;
  }

  .result-shell.result-ready .result-section:nth-child(1) {
    transition-delay: 90ms;
  }

  .result-shell.result-ready .result-section:nth-child(2) {
    transition-delay: 170ms;
  }

  .result-shell.result-ready .result-section:nth-child(3) {
    transition-delay: 250ms;
  }

  .result-shell.result-ready .result-section:nth-child(4) {
    transition-delay: 330ms;
  }

  .result-shell.result-ready .result-section:nth-child(5) {
    transition-delay: 410ms;
  }

  .result-shell.result-ready .result-section:nth-child(6) {
    transition-delay: 490ms;
  }

  .result-shell.result-ready .bar-fill {
    animation: resultBarGrow 920ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .result-shell.result-ready .recommendation-card,
  .result-shell.result-ready .topic-item,
  .result-shell.result-ready .comment-card {
    animation: itemRise 620ms cubic-bezier(0.19, 1, 0.22, 1) both;
  }

  .result-shell.result-ready .recommendation-card:nth-child(2),
  .result-shell.result-ready .topic-item:nth-child(2),
  .result-shell.result-ready .comment-card:nth-child(2) {
    animation-delay: 90ms;
  }

  .result-shell.result-ready .recommendation-card:nth-child(3),
  .result-shell.result-ready .topic-item:nth-child(3),
  .result-shell.result-ready .comment-card:nth-child(3) {
    animation-delay: 180ms;
  }

  .result-shell.result-ready .comment-card::after {
    animation: cardSignal 1.2s ease-out 260ms both;
  }
}

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

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: rotate(-1.5deg) translateY(0);
  }
  50% {
    transform: rotate(-0.6deg) translateY(-12px);
  }
}

@keyframes scanPanel {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  22%,
  62% {
    opacity: 1;
  }
  100% {
    transform: translateY(420%);
    opacity: 0;
  }
}

@keyframes scorePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(15, 159, 141, 0.28);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(15, 159, 141, 0);
  }
}

@keyframes barBreathe {
  0%,
  100% {
    transform: scaleY(0.82);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes railGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes chipWake {
  0%,
  100% {
    transform: translateY(0);
    border-color: rgba(15, 159, 141, 0);
  }
  50% {
    transform: translateY(-2px);
    border-color: rgba(15, 159, 141, 0.35);
  }
}

@keyframes statusScan {
  from {
    background-position:
      140% 0,
      0 0;
  }
  to {
    background-position:
      -60% 0,
      0 42px;
  }
}

@keyframes textSignal {
  0%,
  100% {
    color: var(--ink);
  }
  50% {
    color: var(--accent-dark);
  }
}

@keyframes resultSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes resultBarGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

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

@keyframes cardSignal {
  0% {
    border-color: rgba(15, 159, 141, 0);
  }
  32% {
    border-color: rgba(15, 159, 141, 0.42);
  }
  100% {
    border-color: rgba(15, 159, 141, 0);
  }
}

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

  .reveal-target,
  .result-shell .result-header,
  .result-shell .result-section,
  .result-shell .result-footer-actions {
    opacity: 1 !important;
    transform: none !important;
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 940px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding-top: 70px;
  }

  .hero-visual {
    right: -80px;
    top: 88px;
    width: min(520px, 78vw);
    opacity: 0.18;
  }

  .pain-grid,
  .feature-grid,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-layout,
  .benefit-layout {
    grid-template-columns: 1fr;
  }

  .workspace,
  .result-grid,
  .result-controls,
  .comment-list,
  .result-header {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: auto;
  }

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

  .category-control {
    grid-column: auto;
  }

  .status-block {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-nav {
    min-height: 64px;
    padding: 12px 14px;
  }

  .site-nav .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    min-width: 0;
    padding-inline: 12px;
  }

  .hero-section {
    padding: 48px 16px 56px;
  }

  .hero-visual {
    display: none;
  }

  .hero-section h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-form-row,
  .hero-metrics,
  .pain-grid,
  .feature-grid,
  .step-list,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-form-row button,
  .hero-actions .primary-link,
  .hero-actions .secondary-link,
  .final-form button {
    width: 100%;
  }

  .benefit-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-band,
  .final-cta {
    padding-block: 58px;
  }

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

  main {
    width: min(100% - 20px, 1180px);
  }

  .input-panel,
  .status-panel,
  .login-panel,
  .access-panel,
  .result-section,
  .result-header,
  .result-controls {
    padding: 18px;
  }

  .url-row,
  .access-row,
  .notice-grid {
    grid-template-columns: 1fr;
  }

  .url-row button,
  .access-row button {
    width: 100%;
  }

  .login-panel,
  .access-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .login-actions,
  .result-footer-actions,
  .dialog-actions {
    flex-direction: column;
  }

  .bar-row {
    grid-template-columns: 72px minmax(0, 1fr) 38px;
  }
}

/* Result dashboard v2 */

.analyze-page .result-shell {
  position: relative;
  margin-top: 30px;
  border-radius: 18px;
  padding: clamp(14px, 2vw, 22px);
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(12, 18, 18, 0.96), rgba(18, 29, 28, 0.92) 46%, rgba(245, 247, 248, 0.96) 46.2%),
    var(--surface);
  box-shadow: 0 28px 80px rgba(13, 23, 22, 0.18);
}

.analyze-page .result-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(77, 208, 191, 0.2), transparent 24%),
    radial-gradient(circle at 68% 8%, rgba(214, 154, 36, 0.16), transparent 18%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  pointer-events: none;
}

.analyze-page .result-shell > * {
  position: relative;
  z-index: 1;
}

.analyze-page .result-header {
  overflow: hidden;
  min-height: 430px;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  box-shadow: none;
}

.analyze-page .result-header::after {
  display: none;
}

.result-identity {
  align-self: stretch;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-content: start;
  padding: clamp(14px, 2vw, 22px);
  color: #eef7f4;
}

.result-identity .thumbnail {
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.28);
}

.result-identity .eyebrow {
  color: #79ddce;
}

.result-identity h2 {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
}

.result-identity p,
.result-identity .warning-list {
  color: rgba(238, 247, 244, 0.72);
}

.result-hero-art {
  position: relative;
  min-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #101614;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.result-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  opacity: 0.82;
  transform: scale(1.02);
}

.result-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 22, 20, 0.28), transparent 44%),
    linear-gradient(180deg, transparent 64%, rgba(16, 22, 20, 0.78));
}

.signal-dot {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #79ddce;
  box-shadow: 0 0 0 8px rgba(121, 221, 206, 0.12), 0 0 28px rgba(121, 221, 206, 0.75);
  animation: signalFloat 4.8s ease-in-out infinite;
}

.dot-a { left: 18%; top: 26%; }
.dot-b { right: 24%; top: 18%; animation-delay: 900ms; background: #d6b15a; }
.dot-c { right: 16%; bottom: 22%; animation-delay: 1600ms; background: #6fa0ff; }

.insight-kpi-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px);
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  color: #eef7f4;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--metric, #79ddce);
}

.metric-card span {
  display: block;
  color: rgba(238, 247, 244, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.metric-card small {
  margin-left: 3px;
  color: rgba(238, 247, 244, 0.64);
  font-size: 14px;
}

.metric-card p {
  margin: 12px 0 0;
  color: rgba(238, 247, 244, 0.72);
  line-height: 1.55;
  font-size: 13px;
}

.metric-score { --metric: #79ddce; }
.metric-warm { --metric: #d6b15a; }
.metric-need { --metric: #6fa0ff; }
.metric-topic { --metric: #ef8d7f; }

.analyze-page .result-controls {
  display: none;
}

.analyze-page .result-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.analyze-page .result-section {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 226, 0.84);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(21, 26, 32, 0.07);
}

.analyze-page .summary-section,
.analyze-page .action-section {
  grid-column: span 12;
}

.analyze-page .timeline-section {
  grid-column: span 5;
}

.analyze-page .comments-section {
  grid-column: span 7;
}

.analyze-page .feedback-section {
  grid-column: span 12;
}

.analyze-page .result-section:not(.feedback-section)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #6fa0ff, #d6b15a);
}

.analyze-page .section-heading {
  align-items: center;
}

.analyze-page .section-heading span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #101614;
  color: #79ddce;
  font-size: 12px;
  box-shadow: 0 10px 24px rgba(16, 22, 20, 0.16);
}

.analyze-page .section-heading h3 {
  font-size: clamp(20px, 2.4vw, 28px);
}

.summary-text {
  max-width: 920px;
  font-size: clamp(20px, 2.5vw, 30px);
  color: #17201e;
}

.takeaway-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.takeaway-list li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: #f8fbfa;
  color: var(--muted);
  line-height: 1.65;
}

.takeaway-list li span {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(15, 159, 141, 0.1);
}

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

.recommendation-card {
  min-height: 230px;
  padding: 18px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 249, 0.94));
}

.priority-top {
  display: grid;
  gap: 12px;
}

.priority-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  background: #101614;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.recommendation-card strong {
  font-size: 19px;
  line-height: 1.35;
}

.recommendation-insight {
  margin: 12px 0;
}

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

.evidence-grid p {
  display: grid;
  gap: 4px;
  margin: 0;
  border-radius: 10px;
  padding: 10px;
  background: #eef4f2;
}

.evidence-grid b {
  color: #101614;
  font-size: 12px;
}

.pulse-row {
  grid-template-columns: 118px minmax(0, 1fr) 48px;
  animation: rowReveal 700ms ease both;
  animation-delay: var(--row-delay, 0ms);
}

.pulse-row strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pulse-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse-row i.category-empathy { background: #6fa0ff; }
.pulse-row i.category-support { background: #d6b15a; }
.pulse-row i.category-suggestion,
.pulse-row i.category-question { background: #0f9f8d; }
.pulse-row i.category-critical { background: #e36b5d; }
.pulse-row i.category-other { background: #9aa7a4; }

.bar-fill.category-empathy { background: linear-gradient(90deg, #6fa0ff, #aac4ff); }
.bar-fill.category-support { background: linear-gradient(90deg, #d69a24, #f0cd79); }
.bar-fill.category-suggestion,
.bar-fill.category-question { background: linear-gradient(90deg, #0f9f8d, #7bcdbf); }
.bar-fill.category-critical { background: linear-gradient(90deg, #e36b5d, #f2aaa0); }
.bar-fill.category-other { background: linear-gradient(90deg, #7d8b88, #b8c4c0); }

.topic-list {
  gap: 8px;
}

.topic-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcfb;
}

.topic-item div {
  display: grid;
  gap: 4px;
}

.topic-item span {
  font-weight: 900;
}

.topic-item small {
  color: var(--muted);
  font-weight: 700;
}

.topic-item strong {
  border-radius: 999px;
  padding: 7px 10px;
  background: #101614;
  color: #fff;
}

.peak-label {
  background: linear-gradient(135deg, rgba(15, 159, 141, 0.12), rgba(111, 160, 255, 0.12));
}

.timestamp-chip {
  background: #f8fbfa;
}

.comment-list {
  grid-template-columns: 1fr;
}

.comment-card {
  min-height: 0;
  border-radius: 14px;
  background: #fbfcfb;
}

.comment-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), #6fa0ff);
}

.signal-summary {
  color: #26302e;
  font-size: 16px;
}

.actionable-point {
  display: grid;
  gap: 7px;
  border-radius: 12px;
  padding: 12px;
  background: #eef4f2;
}

.actionable-point b {
  color: #101614;
  font-size: 12px;
}

.actionable-point span {
  color: var(--muted);
  line-height: 1.65;
}

.raw-text {
  max-height: 220px;
  overflow: auto;
}

@keyframes signalFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(10px, -12px, 0) scale(1.2);
    opacity: 1;
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  .analyze-page .result-shell.result-ready .metric-card,
  .analyze-page .result-shell.result-ready .recommendation-card,
  .analyze-page .result-shell.result-ready .comment-card {
    animation: rowReveal 680ms ease both;
  }

  .analyze-page .result-shell.result-ready .metric-card:nth-child(2),
  .analyze-page .result-shell.result-ready .recommendation-card:nth-child(2),
  .analyze-page .result-shell.result-ready .comment-card:nth-child(2) {
    animation-delay: 80ms;
  }

  .analyze-page .result-shell.result-ready .metric-card:nth-child(3),
  .analyze-page .result-shell.result-ready .recommendation-card:nth-child(3),
  .analyze-page .result-shell.result-ready .comment-card:nth-child(3) {
    animation-delay: 160ms;
  }
}

@media (max-width: 940px) {
  .analyze-page .result-shell {
    background: #f5f7f8;
  }

  .analyze-page .result-header,
  .result-identity,
  .insight-kpi-grid,
  .takeaway-list,
  .recommendation-list {
    grid-template-columns: 1fr;
  }

  .result-identity {
    color: var(--ink);
  }

  .result-identity h2 {
    color: var(--ink);
  }

  .result-identity p,
  .result-identity .warning-list {
    color: var(--muted);
  }

  .analyze-page .timeline-section,
  .analyze-page .comments-section {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .analyze-page .result-shell {
    padding: 10px;
    border-radius: 12px;
  }

  .result-identity .thumbnail {
    max-width: 100%;
  }

  .result-hero-art {
    min-height: 220px;
  }

  .result-hero-art img {
    min-height: 220px;
  }

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