@charset "UTF-8";

/* The entry starts with the task, while deeper controls stay in the workspace. */
.entry-view {
  max-width: 1120px;
  padding-top: 68px;
  padding-bottom: 82px;
}

.entry-intro { max-width: 700px; margin-bottom: 35px; }
.entry-intro .eyebrow { font-size: 12px; letter-spacing: .035em; }
.entry-intro h1 { margin: 14px 0 18px; font-size: clamp(34px, 4.1vw, 49px); font-weight: 500; line-height: 1.4; letter-spacing: -.04em; }
.entry-intro p { color: var(--muted); font-size: 16px; }
.intent-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 24px; }
.intent-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 270px; padding: 29px 33px 28px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .18s ease, background .18s ease; }
.intent-primary { background: #fff; border-color: #d5d7cc; }
.intent-secondary { background: #f0f0e9; border-color: transparent; }
.intent-icon { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin-bottom: 20px; color: #757d6b; font-size: 21px; font-weight: 400; line-height: 1; letter-spacing: 3px; }
.intent-primary .intent-icon { color: var(--accent-dark); }
.intent-secondary .intent-icon { width: 33px; height: 33px; border: 1px solid #c6ccbc; border-radius: 50%; font-family: Georgia, serif; font-size: 20px; letter-spacing: 0; }
.intent-card h2 { margin-bottom: 10px; font-size: 25px; font-weight: 500; line-height: 1.5; letter-spacing: -.035em; }
.intent-card > p { max-width: 385px; margin-bottom: 26px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.intent-cta { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 44px; margin-top: auto; font-size: 13px; font-weight: 500; }
.intent-cta > span { font-size: 20px; font-weight: 400; }
.intent-primary .intent-cta { padding: 8px 16px; border-radius: 7px; background: var(--ink); color: #fff; }
.intent-secondary .intent-cta { color: #565f4c; }
.entry-bottom { display: flex; align-items: center; gap: 22px; margin-top: 24px; }
.demo-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px 0; background: transparent; color: var(--accent-dark); font-size: 13px; }
.demo-link > span { font-size: 17px; }
.entry-bottom > span { color: #878c80; font-size: 12px; }

.workspace-view { max-width: 1120px; }
.workspace-view > .page-heading { margin-bottom: 24px; }
.flow-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; margin: 0 0 25px; padding: 0; list-style: none; }
.flow-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; min-width: 0; min-height: 52px; padding: 7px 0 14px; border-bottom: 1px solid #dedfd6; color: #878c80; font-size: 13px; line-height: 1.5; transition: border-color .18s ease, color .18s ease; }
.flow-steps li > span { display: grid; place-items: center; flex-shrink: 0; width: 23px; height: 23px; border: 1px solid #d7dacf; border-radius: 50%; color: #8b9181; font-size: 10px; }
.flow-steps li small { color: #999d91; font-size: 10px; }
.flow-steps li.is-active, .flow-steps li[aria-current="step"] { border-color: #b86a45; color: var(--ink); }
.flow-steps li.is-active > span, .flow-steps li[aria-current="step"] > span { background: var(--accent-soft); border-color: #d3a28a; color: var(--accent-dark); }
.flow-steps li.is-complete { border-color: #bdc4b2; color: #686f60; }
.flow-steps li.is-complete > span { background: #e9ede2; border-color: #c7cfbb; color: #627153; }
.optional-label { margin-left: 2px; padding: 2px 4px; border-radius: 3px; background: #f2f3ed; color: #8c9381; font-size: 9px; font-weight: 400; line-height: 1.4; }
.compare-toolbar > p { flex: 1; min-width: 0; }
.compare-toolbar > .analysis-trigger { flex-shrink: 0; gap: 9px; margin-left: auto; font-size: 12px; white-space: nowrap; }
.analysis-trigger > span { color: #7b836f; font-size: 16px; transition: transform .18s ease; }
.analysis-trigger[aria-expanded="true"] { border-color: #c99579; background: var(--accent-soft); color: var(--accent-dark); }
.analysis-trigger[aria-expanded="true"] > span { color: var(--accent-dark); transform: rotate(180deg); }
.compare-toolbar > .icon-button { margin-left: 0; }

.plan-details { overflow: hidden; margin-top: 26px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.plan-details > summary { display: flex; align-items: center; gap: 14px; min-height: 65px; padding: 15px 22px; list-style: none; cursor: pointer; color: #444a3e; font-size: 15px; font-weight: 500; }
.plan-details > summary::-webkit-details-marker { display: none; }
.plan-details > summary::marker { content: ""; }
.plan-details > summary small { color: #93988b; font-size: 11px; font-weight: 400; }
.plan-details > summary i { margin-left: auto; color: #8b9380; font-size: 19px; font-weight: 300; font-style: normal; transition: transform .18s ease; }
.plan-details[open] > summary { border-bottom: 1px solid #e9ebe2; }
.plan-details[open] > summary i { transform: rotate(45deg); }
.plan-details > .plan-panel { padding: 24px 26px 26px; border: 0; border-radius: 0; box-shadow: none; }
.plan-details .plan-heading h2 { font-size: 21px; }
.plan-details .plan-heading p { font-size: 13px; }

.analysis-panel { min-width: 0; margin: 24px 0 26px; padding: 25px 26px 23px; border: 1px solid #dce0d4; border-radius: 12px; background: #fff; }
.analysis-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.analysis-header .eyebrow { color: #858d79; font-size: 10px; }
.analysis-header h2 { margin-top: 4px; font-size: 24px; font-weight: 500; line-height: 1.5; }
.analysis-standard { padding-bottom: 3px; color: #8a9380; font-size: 11px; line-height: 1.7; }
.analysis-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin-bottom: 19px; border-bottom: 1px solid #e0e4d8; }
.analysis-tabs [role="tab"] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 78px; padding: 13px 12px 15px; border-bottom: 2px solid transparent; border-radius: 7px 7px 0 0; background: transparent; color: #787f6e; font-size: 15px; font-weight: 500; line-height: 1.5; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.analysis-tabs [role="tab"] small { color: #929a85; font-size: 11px; font-weight: 400; }
.analysis-tabs [role="tab"][aria-selected="true"] { background: #f5f4ed; border-bottom-color: var(--accent); color: var(--ink); }
.analysis-tabs [role="tab"][aria-selected="true"] small { color: #757e69; }
.analysis-tabs [role="tab"]:focus-visible { position: relative; z-index: 1; outline-offset: -4px; }
.analysis-description { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin-bottom: 11px; }
.analysis-description > p { min-width: 0; max-width: 780px; color: #69725e; font-size: 13px; line-height: 1.9; }
.rgb-toggle { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; margin-top: -7px; color: #69715e; cursor: pointer; font-size: 11px; white-space: nowrap; }
.rgb-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.scopes-status { min-height: 20px; margin-bottom: 10px; color: #8d967f; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.scopes-status:empty { display: none; }
.scopes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.scope-card { min-width: 0; overflow: hidden; border: 1px solid #dce1d1; border-radius: 8px; background: #fafbf7; }
.scope-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 45px; padding: 11px 14px; background: #f6f7f1; font-size: 11px; }
.scope-card-heading > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.scope-source { color: #89947c; font-size: 9px; }
.scope-canvas { display: block; width: 100%; max-width: 100%; height: 260px; background: #171d1c; }
.scope-empty { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; height: 260px; padding: 22px; background: #171d1c; color: #a1ada3; font-size: 12px; line-height: 1.9; text-align: center; }
.scope-summary { min-height: 53px; padding: 12px 14px; color: #78856b; font-size: 11px; line-height: 1.85; overflow-wrap: anywhere; }
.analysis-footnote { margin-top: 17px; padding-top: 14px; border-top: 1px solid #e6eade; color: #8b9580; font-size: 11px; line-height: 1.9; }

@media (hover: hover) {
  .intent-primary:hover { border-color: #afb89f; background: #fdfefb; }
  .intent-secondary:hover { border-color: #d5dacb; background: #ecede5; }
  .demo-link:hover { color: #7f3a22; }
  .plan-details > summary:hover { background: #f9faf5; }
  .analysis-tabs [role="tab"]:hover { color: var(--ink); background: #f7f8f2; }
  .analysis-trigger[aria-expanded="true"]:hover { background: #f1dfd2; }
}

@media (max-width: 950px) {
  .entry-view { padding-top: 49px; padding-bottom: 61px; }
  .intent-grid { gap: 18px; }
  .intent-card { min-height: 267px; padding: 26px; }
  .intent-card h2 { font-size: 23px; }
  .intent-card > p { font-size: 14px; }
  .flow-steps { gap: 17px; }
  .compare-toolbar { flex-wrap: wrap; gap: 13px; }
  .compare-toolbar > p { order: 4; flex-basis: 100%; }
  .analysis-panel { padding: 23px; }
  .analysis-description { gap: 18px; }
  .analysis-description > p { font-size: 12px; }
}

@media (max-width: 680px) {
  .entry-view { padding-top: 34px; padding-bottom: 48px; }
  .entry-intro { margin-bottom: 26px; }
  .entry-intro .eyebrow { font-size: 11px; }
  .entry-intro h1 { margin: 13px 0 15px; font-size: clamp(30px, 8.3vw, 37px); line-height: 1.47; }
  .entry-intro p { font-size: 15px; }
  .intent-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .intent-card { min-height: 234px; padding: 23px; border-radius: 10px; }
  .intent-icon { margin-bottom: 17px; min-height: 29px; font-size: 20px; }
  .intent-secondary .intent-icon { width: 28px; height: 28px; font-size: 18px; }
  .intent-card h2 { margin-bottom: 8px; font-size: 23px; }
  .intent-card > p { margin-bottom: 18px; font-size: 14px; }
  .intent-cta { min-height: 44px; gap: 20px; font-size: 12px; }
  .intent-secondary { min-height: 215px; }
  .entry-bottom { flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 18px; }
  .entry-bottom > span { font-size: 11px; }
  .demo-link { min-height: 44px; font-size: 12px; }
  .workspace-view > .page-heading { margin-bottom: 18px; }
  .workspace-view .page-heading h1 { font-size: 28px; }
  .flow-steps { gap: 9px; margin-bottom: 18px; }
  .flow-steps li { position: relative; flex-direction: column; align-items: flex-start; gap: 7px; min-height: 79px; padding: 5px 0 11px; font-size: 12px; }
  .flow-steps li > span { width: 22px; height: 22px; font-size: 9px; }
  .flow-steps li small { position: absolute; top: 7px; left: 29px; font-size: 9px; }
  .compare-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; column-gap: 8px; row-gap: 12px; padding: 14px 0; }
  .compare-toolbar .segmented { display: flex; width: 100%; min-width: 0; }
  .compare-toolbar .segmented button { flex: 1; min-width: 0; min-height: 44px; padding: 7px 8px; font-size: 11px; }
  .compare-toolbar .half-circle { flex-shrink: 0; width: 10px; height: 10px; }
  .compare-toolbar > .analysis-trigger { grid-column: 2; grid-row: 1; gap: 5px; min-height: 52px; margin-left: 0; padding: 9px 11px; font-size: 11px; }
  .analysis-trigger > span { font-size: 14px; }
  .compare-toolbar > .icon-button { grid-column: 3; grid-row: 1; width: 44px; min-height: 52px; margin-left: 0; }
  .compare-toolbar > p { grid-column: 1 / -1; grid-row: 2; width: 100%; font-size: 11px; }
  .optional-label { margin-left: 0; font-size: 8px; }
  .plan-details { margin-top: 23px; border-radius: 9px; }
  .plan-details > summary { flex-wrap: wrap; gap: 4px 12px; min-height: 70px; padding: 15px 17px; font-size: 14px; }
  .plan-details > summary small { flex-basis: calc(100% - 31px); order: 3; font-size: 10px; }
  .plan-details > summary i { line-height: 1; font-size: 18px; }
  .plan-details > .plan-panel { padding: 22px 17px; }
  .plan-details .plan-heading h2 { font-size: 20px; }
  .plan-details .plan-heading p { font-size: 12px; }
  .analysis-panel { margin-top: 22px; margin-bottom: 24px; padding: 20px 16px 17px; border-radius: 10px; }
  .analysis-header { flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-bottom: 17px; }
  .analysis-header h2 { margin-top: 3px; font-size: 22px; }
  .analysis-standard { align-self: flex-end; max-width: 130px; padding-bottom: 3px; font-size: 9px; text-align: right; }
  .analysis-tabs { gap: 2px; margin-bottom: 16px; }
  .analysis-tabs [role="tab"] { min-height: 77px; padding: 13px 5px; font-size: 13px; }
  .analysis-tabs [role="tab"] small { font-size: 10px; line-height: 1.6; }
  .analysis-description { flex-direction: column; align-items: stretch; gap: 4px; margin-bottom: 10px; }
  .analysis-description > p { font-size: 12px; }
  .rgb-toggle { align-self: flex-start; min-height: 44px; margin-top: 0; font-size: 11px; }
  .rgb-toggle input { width: 17px; height: 17px; }
  .scopes-status { font-size: 10px; }
  .scopes-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .scope-card-heading { min-height: 43px; padding: 10px 12px; font-size: 11px; }
  .scope-source { font-size: 9px; }
  .scope-canvas, .scope-empty { height: 260px; }
  .scope-empty { padding: 19px; font-size: 11px; }
  .scope-summary { min-height: 52px; padding: 11px 12px; font-size: 10px; }
  .analysis-footnote { margin-top: 15px; padding-top: 13px; font-size: 10px; }
}

@media (max-width: 375px) {
  .entry-intro h1 { font-size: 30px; }
  .intent-card { padding-right: 21px; padding-left: 21px; }
  .flow-steps { gap: 7px; }
  .flow-steps li { font-size: 11px; }
  .compare-toolbar > .analysis-trigger { padding-right: 9px; padding-left: 9px; }
  .analysis-panel { padding-right: 14px; padding-left: 14px; }
  .analysis-tabs [role="tab"] { font-size: 12px; }
  .analysis-tabs [role="tab"] small { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .intent-card, .flow-steps li, .analysis-trigger > span,
  .plan-details > summary i, .analysis-tabs [role="tab"] { transition: none; }
}
.skip-link { opacity: 0; pointer-events: none; }
.workspace-view, .guide-view { scroll-margin-top: 24px; }
html { scroll-behavior: auto; scroll-padding-top: 24px; }
.skip-link:focus { opacity: 1; pointer-events: auto; }
.analysis-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.analysis-meta .text-button { min-height: 36px; font-size: 13px; }
.scopes-grid.is-swapped [data-scope-object="mine"] { order: 2; }
.scopes-grid.is-swapped [data-scope-object="reference"] { order: 1; }
