/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
:root {
  --ink: #17211b;
  --muted: #61706a;
  --paper: #f6f4ee;
  --panel: #fffdf8;
  --line: #ddd8cc;
  --accent: #1c5c46;
  --accent-soft: #e4efe8;
  --gold: #9a6b2f;
  --danger: #8b2f2f;
  --shadow: 0 18px 50px rgba(23, 33, 27, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 12% -10%, rgba(28, 92, 70, 0.09), transparent 38%),
    radial-gradient(circle at 90% 0%, rgba(154, 107, 47, 0.08), transparent 32%),
    var(--paper);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 34px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tagline {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f9b6b;
  box-shadow: 0 0 0 4px rgba(47, 155, 107, 0.12);
}

.dot.dot-live {
  animation: tour-pulse 2s ease-in-out infinite;
}

.hero {
  padding: 46px 0 34px;
  max-width: 820px;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 720px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

button.cta {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 11px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin: 14px 0 34px;
}

.flow-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.flow-step h3 {
  margin: 10px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.flow-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

/* Signed-out entrance choreography. Elements rise in sequence: topbar,
   hero, CTAs, then the workflow steps stagger left to right. */
.landing .topbar {
  animation: guide-enter 0.5s ease both;
}

/* Ambient glow drifting behind the hero. */
.landing .hero {
  position: relative;
  animation: guide-enter 0.7s 0.06s ease both;
}

.landing .hero::before {
  content: '';
  position: absolute;
  inset: -70px -40px auto;
  height: 320px;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(28, 92, 70, 0.14), transparent),
    radial-gradient(closest-side at 78% 30%, rgba(154, 107, 47, 0.12), transparent);
  filter: blur(6px);
  z-index: -1;
  animation: hero-drift 14s ease-in-out infinite alternate;
}

.landing .hero .cta-row {
  animation: landing-pop 0.55s 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.landing .hero .hint {
  animation: guide-enter 0.6s 0.44s ease both;
}

.landing .flow-title {
  animation: guide-enter 0.55s 0.24s ease both;
}

/* Pipeline track above the workflow cards: station dots light up in
   sequence while a pulse travels the line, left to right. */
.flow-pipeline {
  position: relative;
  height: 26px;
  margin: 10px 4px 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(28, 92, 70, 0.22),
    rgba(28, 92, 70, 0.1) 55%,
    rgba(154, 107, 47, 0.22)
  );
}

.flow-pipeline i {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 92, 70, 0.15);
  transform: translate(-50%, -50%);
  animation: station-light 4.8s ease-in-out infinite;
}

.flow-pipeline i:nth-child(1) { left: 2%; }
.flow-pipeline i:nth-child(2) { left: 34%; animation-delay: 0.5s; }
.flow-pipeline i:nth-child(3) { left: 66%; animation-delay: 1s; }
.flow-pipeline i:nth-child(4) { left: 98%; background: var(--gold); box-shadow: 0 0 0 3px rgba(154, 107, 47, 0.15); animation-delay: 1.5s; }

.flow-pipeline b {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  transform: translate(-50%, -50%);
  animation: pipeline-run 4.8s linear infinite;
}

@keyframes station-light {
  0%, 60%, 100% { box-shadow: 0 0 0 3px rgba(28, 92, 70, 0.15); }
  20% { box-shadow: 0 0 0 7px rgba(28, 92, 70, 0.05); transform: translate(-50%, -50%) scale(1.35); }
}

@keyframes pipeline-run {
  0% { left: 0%; opacity: 0; }
  6% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 98%; opacity: 0; }
}

@keyframes hero-drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(26px, -10px, 0) scale(1.06); opacity: 1; }
}

.landing .flow-step {
  animation: guide-enter 0.6s ease both;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.landing .flow-step:nth-child(1) { animation-delay: 0.36s; }
.landing .flow-step:nth-child(2) { animation-delay: 0.5s; }
.landing .flow-step:nth-child(3) { animation-delay: 0.64s; }
.landing .flow-step:nth-child(4) { animation-delay: 0.78s; }

.landing .flow-step:hover {
  transform: translateY(-4px);
  border-color: rgba(28, 92, 70, 0.45);
  box-shadow: 0 22px 54px rgba(23, 33, 27, 0.13);
}

.landing .flow-num {
  animation: badge-pop 0.5s ease both, badge-breathe 2.8s 1.6s ease-in-out infinite;
}

.landing .flow-step:nth-child(2) .flow-num { animation-delay: 0.5s, 1.6s; }
.landing .flow-step:nth-child(3) .flow-num { animation-delay: 0.64s, 1.6s; }
.landing .flow-step:nth-child(4) .flow-num { animation-delay: 0.78s, 1.6s; }

.landing button.cta:not(.secondary) {
  animation: cta-glow 2.6s 1.4s ease-in-out infinite;
}

.landing .signin {
  animation: guide-enter 0.5s 0.12s ease both;
}

@keyframes landing-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes badge-pop {
  from { opacity: 0; transform: scale(0.4); }
  70% { transform: scale(1.12); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes badge-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(28, 92, 70, 0.08); }
  50% { box-shadow: 0 0 0 9px rgba(28, 92, 70, 0.02); }
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 6px 18px rgba(28, 92, 70, 0.22); }
  50% { box-shadow: 0 8px 28px rgba(28, 92, 70, 0.42); }
}

.workspace {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-gap: 26px;
  gap: 26px;
  align-items: start;
}

.sidebar,
.main-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 22px;
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
}

.main-panel {
  padding: 28px;
  min-height: 620px;
}

.label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

select,
input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefb;
  padding: 11px 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:focus,
input[type="text"]:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 92, 70, 0.1);
}

textarea {
  resize: vertical;
  min-height: 104px;
  line-height: 1.55;
}

.matter-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.upload {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-gap: 9px;
  gap: 9px;
}

input[type="file"] {
  width: 100%;
  font-size: 12px;
  color: var(--muted);
}

input[type="file"]::-webkit-file-upload-button {
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 6px 9px;
  color: var(--ink);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  margin-right: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 6px 9px;
  color: var(--ink);
  cursor: pointer;
}

button {
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  padding: 11px 16px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: transform 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}

button:hover:not(:disabled) {
  background: #154b39;
  transform: translateY(-1px);
}

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

button.secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(28, 92, 70, 0.35);
}

button.secondary:hover:not(:disabled) {
  background: var(--accent-soft);
}

button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

button.ghost:hover:not(:disabled) {
  background: #f2efe7;
  color: var(--ink);
}

.section-title {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.doc-list {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.doc-row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.doc-row:last-child {
  border-bottom: 0;
}

.doc-title {
  font-size: 13px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.status {
  border-radius: 20px;
  padding: 1px 7px;
  background: #ece8de;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status.ready {
  background: var(--accent-soft);
  color: var(--accent);
}

.status.quarantined {
  background: #f5e3e3;
  color: var(--danger);
}

.ask {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.ask-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.alert {
  margin-top: 18px;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 13px;
}

.alert.error {
  background: #f8e7e7;
  border: 1px solid #e5c0c0;
  color: var(--danger);
}

.alert.ok {
  background: var(--accent-soft);
  border: 1px solid #c4dbce;
  color: var(--accent);
}

.answer {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: #fffefb;
}

.answer.abstained {
  border-color: #e2cfa8;
  background: #fffaf0;
}

.answer.loading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--muted);
}

.answer.loading strong {
  color: var(--ink);
}

.answer.loading p {
  margin: 2px 0 0;
  font-size: 13px;
}

.spinner {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.answer-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.eyebrow {
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.answer.abstained .eyebrow {
  color: var(--gold);
}

.run-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10.5px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.badge {
  flex: 0 0 auto;
  border-radius: 20px;
  padding: 4px 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge.good {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge.warn {
  background: #f6ead2;
  color: var(--gold);
}

.answer-text {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.claims {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.claim {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.claim:last-child {
  border-bottom: 0;
}

.claim p {
  margin: 0;
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.chip {
  background: #f2f5f1;
  color: var(--accent);
  border: 1px solid #cfdfd5;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  text-align: left;
}

.chip:hover:not(:disabled) {
  background: var(--accent-soft);
  transform: none;
}

.chip.static {
  background: #eef1ec;
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.signin {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto 40px;
  max-width: 420px;
  padding: 24px;
}

.signin input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  padding: 9px 10px;
}

.signin button {
  margin-top: 8px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.tab {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
}

.tab:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab.small {
  font-size: 11px;
  padding: 3px 9px;
}

.lang-tabs {
  display: flex;
  gap: 6px;
  margin: 10px 0 6px;
}

.lang-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 12px;
  padding: 6px 8px;
}

.provision-text {
  background: #f7f8f5;
  border-left: 3px solid var(--accent-soft);
  border-radius: 4px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
  padding: 12px 14px;
  white-space: pre-wrap;
}

.reason {
  margin: 16px 0 0;
  color: var(--gold);
  font-size: 12.5px;
}

.review {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.review button {
  padding: 6px 11px;
  font-size: 12px;
}

.review-state {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.review-state.approved {
  color: var(--accent);
}

.review-state.rejected {
  color: var(--danger);
}

.disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.empty {
  margin-top: 30px;
  padding: 34px 26px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffefb, #faf8f1);
}

.empty-mark {
  font-family: Georgia, serif;
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
}

.empty h2 {
  margin: 8px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.empty > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.empty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 24px;
}

.empty-grid div {
  border-top: 2px solid var(--accent);
  padding-top: 10px;
}

.empty-grid strong {
  display: block;
  font-size: 12px;
}

.empty-grid span {
  color: var(--muted);
  font-size: 11.5px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(18, 25, 21, 0.55);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
}

.modal {
  width: min(900px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--panel);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
}

.quote {
  margin: 18px 0;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.55;
}

.quote-label {
  display: block;
  margin-bottom: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-text {
  max-height: 42vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffefb;
  padding: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

mark {
  background: #ffe9a8;
  color: inherit;
  padding: 1px 2px;
  border-radius: 2px;
}

.viewer-miss {
  margin-top: 14px;
  border-top: 1px solid #e5c0c0;
  padding-top: 10px;
  color: var(--danger);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11.5px;
}

.modal-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}

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

  .sidebar {
    position: static;
  }

  .hero {
    padding-top: 34px;
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 20px 16px 36px;
  }

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

  .main-panel {
    padding: 20px;
  }

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

  .modal-backdrop {
    padding: 10px;
  }

  .modal {
    padding: 18px;
  }
}

a.ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  padding: 8px 12px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

a.ghost:hover {
  background: #f2efe7;
  border-color: #c8c2b5;
  color: var(--ink);
}

.workflow-link {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.guide-shell {
  max-width: 1400px;
}

.guide-back {
  white-space: nowrap;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  grid-gap: 56px;
  gap: 56px;
  align-items: end;
  padding: 58px 0 38px;
  animation: guide-enter 0.6s ease both;
}

.guide-hero h1 {
  margin: 12px 0 0;
  max-width: 800px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.2vw, 68px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.guide-hero > p {
  margin: 0 0 5px;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.workflow-tour {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: guide-enter 0.6s 0.1s ease both;
}

.tour-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.tour-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
}

.tour-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9b6b;
  box-shadow: 0 0 0 4px rgba(47, 155, 107, 0.12);
  animation: tour-pulse 2s ease-in-out infinite;
}

.flow-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(6, minmax(135px, 1fr));
  min-width: 880px;
  margin: 0;
  padding: 25px 24px 22px;
  list-style: none;
}

.flow-diagram li {
  min-width: 0;
}

.flow-node {
  position: relative;
  display: flex;
  width: 100%;
  height: 128px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  padding: 16px 9px 10px;
}

.flow-node:hover:not(:disabled) {
  transform: none;
  background: #f5f5ef;
  color: var(--accent);
}

.flow-node.active {
  border-color: #b9d0c2;
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 7px 20px rgba(28, 92, 70, 0.08);
}

.flow-node:focus-visible,
.tour-controls button:focus-visible,
.guide-cta a:focus-visible,
a.ghost:focus-visible {
  outline: 3px solid rgba(28, 92, 70, 0.25);
  outline-offset: 3px;
}

.flow-number {
  position: absolute;
  top: 7px;
  left: 10px;
  color: #8b958f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.flow-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffefb;
  color: var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flow-icon svg {
  width: 22px;
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-node.active .flow-icon {
  transform: translateY(-2px);
  border-color: #a8c6b5;
  box-shadow: 0 0 0 5px rgba(28, 92, 70, 0.08);
  animation: active-icon 2.4s ease-in-out infinite;
}

.flow-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.flow-connector {
  position: absolute;
  z-index: 2;
  top: 52px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 1px;
  overflow: visible;
  background: #d5d8cf;
  pointer-events: none;
}

.flow-connector::after {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #aeb8b0;
  border-right: 1px solid #aeb8b0;
  content: "";
  transform: rotate(45deg);
}

.flow-connector i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 92, 70, 0.1);
  animation: data-flow 2.8s linear infinite;
}

.flow-connector.complete {
  background: #86b49b;
}

.flow-diagram li.complete .flow-number {
  color: var(--accent);
}

.tour-progress {
  height: 2px;
  background: #edf0e9;
}

.tour-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  opacity: 0.65;
  transform: scaleX(0);
  transform-origin: left;
}

.tour-progress span.playing {
  animation: tour-progress 5s linear both;
}

.tour-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  grid-gap: 46px;
  gap: 46px;
  align-items: center;
  min-height: 365px;
  padding: 36px 48px 38px;
}

.tour-copy {
  animation: detail-enter 0.4s ease both;
}

.tour-copy h2 {
  margin: 10px 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.13;
}

.tour-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.tour-copy ul {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 12px;
}

.tour-copy li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tour-copy li span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.tour-preview {
  overflow: hidden;
  border: 1px solid #d7dbd2;
  border-radius: 12px;
  background: #f7f8f4;
  box-shadow: 0 16px 34px rgba(23, 33, 27, 0.09);
  animation: preview-enter 0.5s ease both;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  border-bottom: 1px solid #dde1d8;
  background: #fffefb;
  padding: 0 12px;
}

.preview-toolbar > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5cbc3;
}

.preview-toolbar > div {
  margin-left: auto;
  color: #849087;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.13em;
}

.preview-body {
  padding: 20px 24px 17px;
}

.preview-step-tag {
  margin-bottom: 17px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr);
  align-items: center;
  min-height: 140px;
}

.preview-source,
.preview-result {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d8ddd4;
  border-radius: 9px;
  background: #fffefb;
  padding: 13px;
  text-align: center;
}

.preview-source svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-source > span,
.preview-result > span {
  font-size: 9px;
  font-weight: 650;
  line-height: 1.4;
}

.preview-process {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.preview-process span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: process-dot 1.2s ease-in-out infinite;
}

.preview-process span:nth-child(2) {
  animation-delay: 0.18s;
}

.preview-process span:nth-child(3) {
  animation-delay: 0.36s;
}

.preview-result {
  border-color: #bfd4c7;
  background: #f1f7f2;
}

.preview-check {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}

.preview-result i {
  display: block;
  width: 80%;
  height: 3px;
  border-radius: 4px;
  background: #d4e3d9;
}

.preview-result i:last-child {
  width: 55%;
}

.preview-private {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #e0e4db;
  color: var(--muted);
  font-size: 8.5px;
}

.preview-private .dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.tour-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 17px 26px;
  border-top: 1px solid var(--line);
  background: #faf9f4;
}

.tour-controls button {
  padding: 8px 13px;
  font-size: 12px;
}

.tour-controls .ghost {
  margin-right: auto;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.tour-counter {
  margin-right: 10px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.tour-counter strong {
  color: var(--accent);
  font-size: 14px;
}

.guide-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 32px;
  gap: 32px;
  padding: 42px 8px 36px;
}

.guide-principles > div {
  border-top: 1px solid var(--line);
  padding-top: 17px;
}

.principle-mark {
  color: var(--gold);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.guide-principles h3 {
  margin: 7px 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}

.guide-principles p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 14px;
  background: var(--accent);
  padding: 28px 34px;
  color: #fff;
}

.guide-cta .eyebrow {
  color: #b9d8c7;
}

.guide-cta h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.guide-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guide-cta a {
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.guide-primary {
  background: #fff;
  color: var(--accent);
}

.guide-secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

@keyframes guide-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes detail-enter {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes preview-enter {
  from { opacity: 0; transform: translateY(7px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes data-flow {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

@keyframes active-icon {
  0%, 100% { box-shadow: 0 0 0 4px rgba(28, 92, 70, 0.07); }
  50% { box-shadow: 0 0 0 8px rgba(28, 92, 70, 0.02); }
}

@keyframes process-dot {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@keyframes tour-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes tour-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (max-width: 980px) {
  .guide-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 40px;
  }

  .guide-hero > p {
    max-width: 700px;
  }

  .tour-detail {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding: 30px;
  }

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

@media (max-width: 720px) {
  .guide-hero h1 br {
    display: none;
  }

  .tour-heading > span {
    display: none;
  }

  .flow-diagram {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 5px;
    padding: 16px;
  }

  .flow-node {
    display: grid;
    grid-template-columns: 42px 1fr;
    height: auto;
    min-height: 62px;
    grid-gap: 12px;
    gap: 12px;
    padding: 9px 14px 9px 42px;
    text-align: left;
  }

  .flow-number {
    top: 22px;
    left: 12px;
  }

  .flow-icon {
    width: 38px;
    height: 38px;
  }

  .flow-title {
    text-align: left;
  }

  .flow-connector {
    display: none;
  }

  .tour-detail {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px 22px;
  }

  .tour-preview {
    max-width: 500px;
  }

  .tour-controls {
    flex-wrap: wrap;
    padding: 15px;
  }

  .tour-counter {
    order: -1;
    width: 100%;
    margin: 0 0 3px;
    text-align: center;
  }

  .tour-controls .ghost {
    margin-right: auto;
  }

  .guide-principles {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .guide-hero {
    padding-top: 32px;
  }

  .guide-hero h1 {
    font-size: 38px;
  }

  .guide-hero > p {
    padding-left: 14px;
    font-size: 13px;
  }

  .tour-controls button {
    padding: 8px 10px;
    font-size: 11px;
  }

  .preview-body {
    padding: 17px 14px;
  }

  .preview-visual {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  }

  .preview-source,
  .preview-result {
    padding: 9px;
  }

  .guide-cta {
    padding: 24px 20px;
  }

  .guide-cta h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-hero,
  .workflow-tour,
  .tour-copy,
  .tour-preview,
  .tour-live-dot,
  .flow-node.active .flow-icon,
  .flow-connector i,
  .preview-process span,
  .tour-progress span,
  .landing .topbar,
  .landing .hero,
  .landing .hero::before,
  .landing .hero .cta-row,
  .landing .hero .hint,
  .landing .flow-title,
  .landing .flow-step,
  .landing .flow-num,
  .landing button.cta:not(.secondary),
  .landing .signin,
  .dot.dot-live,
  .flow-pipeline i {
    animation: none;
  }

  .flow-pipeline b {
    display: none;
  }

  .tour-progress span {
    transform: scaleX(1);
  }

  .flow-connector i {
    left: calc(50% - 2px);
  }
}

