/* Runwise interaction layer: existing type, palette and white editorial canvas. */
.home-page .hero { padding-bottom: var(--space-9); }
.home-page .hero-inner { gap: var(--space-6); }
.home-page .idea-card { background: var(--surface-subtle); border-color: var(--line); box-shadow: 0 8px 30px #17191c06; }
.home-page .idea-card::before { height: 2px; background: var(--brand-primary); }
.home-page .idea-card:focus-within { border-color: #9bb0f5; box-shadow: var(--shadow-ring); }
.home-page .idea-card label { font-size: var(--text-20); font-weight: 600; margin-bottom: var(--space-2); }
.idea-input-guide { margin: 0 0 var(--space-4); font-size: var(--text-ui); line-height: 1.6; color: var(--muted); }
.home-page .idea-actions > .button { border-radius: var(--radius-pill); }
.home-page .idea-examples button { font-weight: 500; }

/* An interactive product story replaces the unrelated promotional artwork. */
.product-preview-section { padding: var(--space-12) 0 var(--space-16); }
.product-preview-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(32px,6vw,84px); align-items: center; }
.product-preview-intro { min-width: 0; }
.product-preview-intro .kicker { color: var(--brand-ink); font-size: var(--text-caption); letter-spacing: .07em; margin-bottom: var(--space-5); }
.product-preview-intro h2 { font: 400 clamp(38px,4.2vw,54px)/1.12 var(--font-display); letter-spacing: -.03em; }
.product-preview-intro h2 em { font-weight: 400; }
.product-preview-intro > p:not(.kicker) { max-width: 35ch; margin: var(--space-6) 0 var(--space-5); font-size: var(--text-16); line-height: 1.7; color: var(--muted); }
.preview-disclosure { color: var(--color-fog); font-size: var(--text-caption); }
.product-preview { position: relative; isolation: isolate; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-panel); background: white; box-shadow: 0 14px 36px #17191c08; }
.product-preview-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: var(--space-2); border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.product-preview-tabs button { display: flex; justify-content: center; align-items: center; gap: var(--space-2); min-width: 0; min-height: 48px; padding: 10px var(--space-2); border: 1px solid transparent; border-radius: var(--radius-12); background: transparent; color: var(--muted); font-size: var(--text-ui); font-weight: 500; }
.product-preview-tabs button span { font-size: var(--text-caption); color: var(--color-fog); }
.product-preview-tabs button[aria-selected=true] { border-color: var(--brand-line); background: var(--brand-tint); color: var(--brand-ink); }
.product-preview-tabs button[aria-selected=true] span { color: var(--brand-ink); }
.product-preview-tabs button:hover { color: var(--brand-ink); }
.product-preview :is(button,a,[tabindex]):focus-visible { outline: 2px solid var(--brand-primary); outline-offset: -3px; }
.product-preview-panel { display: flex; flex-direction: column; min-height: 420px; padding: var(--space-7); }
.output-panel-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }
.output-panel-heading p { margin: 0 0 7px; color: var(--color-fog); font-size: var(--text-caption); letter-spacing: .04em; }
.output-panel-heading h3 { font-size: var(--text-22); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.output-status { padding: 5px var(--space-2); border-radius: var(--radius-8); background: var(--surface-mist); color: var(--muted); font-size: var(--text-caption); white-space: nowrap; }
.preview-release-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--space-3); margin-bottom: 22px; }
.preview-release-columns > div { min-width: 0; padding: 17px; border: 1px solid var(--brand-line); border-radius: var(--radius-14); background: var(--brand-tint); }
.preview-release-columns > div:last-child { background: var(--surface-subtle); border-color: var(--line); }
.preview-release-columns h4 { margin: 0 0 var(--space-3); color: var(--brand-ink); font-size: var(--text-small); font-weight: 600; }
.preview-release-columns > div:last-child h4 { color: var(--muted); }
.preview-release-columns ul { display: grid; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.preview-release-columns li { padding: 9px 10px; border: 1px solid #e5e9f0; border-radius: var(--radius-8); background: white; font-size: var(--text-small); line-height: 1.4; color: var(--ink); }
.preview-panel-action { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; min-height: 48px; margin: auto 0 0; padding: 13px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--brand-ink); text-align: left; text-decoration: none; font: 500 14px/1.5 var(--font-ui); }
.preview-panel-action:hover { text-decoration: underline; text-underline-offset: 4px; }
.preview-panel-action > span { flex: none; font-size: var(--text-20); }
.preview-estimate-metrics { display: grid; grid-template-columns: 1.1fr .9fr; margin: 0 0 22px; border: 1px solid var(--brand-line); border-radius: var(--radius-14); background: var(--brand-tint); }
.preview-estimate-metrics > div { min-width: 0; padding: var(--space-5); }
.preview-estimate-metrics > div + div { border-left: 1px solid var(--brand-line); }
.preview-estimate-metrics dt { color: var(--brand-ink); font-size: var(--text-caption); }
.preview-estimate-metrics dd { margin: 10px 0 0; color: var(--ink); font-size: clamp(24px,3vw,34px); font-weight: 500; letter-spacing: -.04em; }
.preview-assumptions { margin: 0 0 22px; color: var(--muted); font-size: var(--text-small); line-height: 1.65; }
.preview-app-window { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-12); margin-bottom: var(--space-4); }
.preview-app-window > div { display: flex; gap: var(--space-1); align-items: center; height: 26px; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.preview-app-window i { width: 5px; height: 5px; border-radius: var(--radius-round); background: #b8bdc5; }
.preview-app-window > div span { margin: auto; padding-right: var(--space-5); color: var(--color-fog); font-size: var(--text-caption); }
.preview-app-window img { display: block; width: 100%; height: 175px; object-fit: cover; object-position: top; }

/* Neutral content surfaces keep the brand blue meaningful across every block. */
.home-page .editorial-principle-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-24); background: var(--surface-subtle); }
.home-page .editorial-feature-brand { background: var(--brand-tint); border-color: var(--brand-line); }
.home-page #outcomes .outcomes-bento .feature-card { background: white; border: 1px solid var(--line); box-shadow: none; }
.home-page #outcomes .outcomes-bento .feature-card:nth-child(2) { background: var(--brand-tint); border-color: var(--brand-line); }
.home-page #outcomes .outcomes-bento .feature-card:nth-child(4) { background: var(--surface-subtle); }
.home-page #outcomes .outcomes-bento .feature-card:nth-child(n) h3 { color: var(--ink); }
.home-page #outcomes .outcomes-bento .feature-card:nth-child(n) .card-intro { color: var(--muted); }
.home-page #outcomes .outcomes-bento .outcome-step { color: var(--brand-ink); font-size: var(--text-caption); letter-spacing: .05em; }
.home-page #outcomes .outcomes-bento .icon-badge { background: white; color: var(--brand-primary); border-color: var(--brand-line); }
.home-page #outcomes .outcomes-bento .outcome-action { border-color: var(--line); background: white; color: var(--brand-ink); font-weight: 500; border-radius: var(--radius-12); }
.home-page #outcomes .outcomes-bento .outcome-action:hover { background: var(--brand-tint); transform: none; }
.home-page #outcomes .outcomes-bento .artifact-preview { box-shadow: none; }
.home-page #outcomes .outcomes-bento .release-lane { background: var(--brand-tint); }
.home-page #outcomes .outcomes-bento .release-lane strong { color: var(--brand-ink); }
.home-page #outcomes .outcomes-bento .release-lane-later { background: var(--surface-mist); }
.home-page #outcomes .outcomes-bento .brief-preview dd:last-child { color: var(--brand-ink); }
.home-page #services .service-grid article { box-shadow: none; border-color: var(--line); }
.home-page #services .service-grid article::before { height: 2px; background: var(--line); }
.home-page #services .service-grid article:nth-child(2)::before { background: var(--brand-primary); }
.home-page #services .service-grid article .icon-badge { background: var(--brand-tint); color: var(--brand-primary); }
.home-page #services .service-output { border: 1px solid var(--line); background: var(--surface-subtle); }
.home-page #services .service-output :is(span,strong) { color: var(--ink); }
.home-page #free-tools .home-toolkit .resource-card { border-color: var(--line); box-shadow: none; }
.home-page #free-tools .home-toolkit .resource-card:nth-child(3) { background: var(--surface-mist); }
.home-page #free-tools .home-toolkit .resource-card .icon-badge { background: var(--brand-tint); color: var(--brand-primary); }
.home-page .steps > li > span { background: var(--brand-tint); color: var(--brand-ink); }
.home-page .privacy-card { border-radius: var(--radius-24); background: var(--surface-subtle); }
.home-page .faq-list > details[open] { border-color: var(--brand-primary); }
.home-page .faq-list > details[open] > summary { color: var(--brand-ink); }
.home-page .final-cta { background: var(--surface-subtle); }

/* Magic Card inspired border response, without moving non-clickable content. */
.rw-border-spot { position: relative; isolation: isolate; }
.rw-border-spot::after { content: ''; position: absolute; inset: 0; z-index: 2; padding: 1px; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(240px circle at var(--spot-x,50%) var(--spot-y,50%),var(--brand-primary),transparent 75%); -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite: exclude; transition: opacity var(--duration-180); }
.rw-border-spot:focus-within::after { opacity: 1; }
@media (hover:hover) and (pointer:fine) { .rw-border-spot:hover::after { opacity: 1; } }
@media (max-width:900px) {
  .product-preview-layout { grid-template-columns: minmax(0,1fr); gap: var(--space-7); }
  .product-preview-intro { max-width: 650px; text-align: center; margin-inline: auto; }
  .product-preview-intro > p:not(.kicker) { max-width: 55ch; margin-inline: auto; }
}
@media (max-width:640px) {
  .home-page .hero { padding-top: var(--space-7); }
  .home-page .hero-inner { gap: 18px; }
  .home-page .hero .eyebrow { margin-bottom: 18px; }
  .home-page .hero-copy { margin-top: 18px; }
  .home-page .idea-card { padding: var(--space-5); }
  .home-page .idea-card label { font-size: var(--text-18); }
  .idea-input-guide { font-size: var(--text-small); margin-bottom: var(--space-3); }
  .product-preview-section { padding: var(--space-8) 0 var(--space-12); }
  .product-preview-panel { min-height: 0; padding: var(--space-5); }
  .product-preview-tabs { gap: 2px; padding: 6px; }
  .product-preview-tabs button { gap: 5px; font-size: var(--text-small); padding-inline: var(--space-1); }
  .product-preview-tabs button span { font-size: var(--text-caption); }
  .preview-release-columns { gap: var(--space-2); }
  .preview-release-columns > div { padding: var(--space-3); }
  .preview-release-columns li { padding: var(--space-2); font-size: var(--text-caption); }
  .preview-estimate-metrics > div { padding: 15px; }
  .output-panel-heading { margin-bottom: var(--space-5); }
  .output-panel-heading h3 { font-size: var(--text-21); }
}
@media (max-width:360px) {
  .preview-release-columns { grid-template-columns: minmax(0,1fr); }
  .preview-release-columns ul { gap: 5px; }
  .preview-release-columns > div { padding: var(--space-3); }
  .preview-release-columns h4 { margin-bottom: var(--space-2); }
  .preview-estimate-metrics { grid-template-columns: minmax(0,1fr); }
  .preview-estimate-metrics > div + div { border-left: 0; border-top: 1px solid var(--brand-line); }
}
@media (prefers-reduced-motion:reduce) { .rw-border-spot::after { display: none; } }

/* Hero support: one clear hierarchy under the planner. What you get, how to learn more, and the other way in. */
.hero-support { display: grid; gap: 14px; margin-top: 18px; text-align: left; }
.hero-outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.hero-outcomes > li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "icon title" "icon note"; column-gap: var(--space-3); align-items: center; min-width: 0; padding: 14px var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--color-snow); transition: transform var(--duration-300) var(--ease-out), border-color var(--duration-250), box-shadow var(--duration-300); }
.hero-outcomes > li:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -9px; z-index: 1; width: 7px; height: 7px; border-top: 2px solid var(--brand-line); border-right: 2px solid var(--brand-line); background: var(--color-snow); transform: translateY(-50%) rotate(45deg); }
.hero-outcomes .rw-icon { grid-area: icon; box-sizing: border-box; width: 40px; height: 40px; padding: 9px; border-radius: var(--radius-12); background: var(--brand-tint); color: var(--brand-primary); transition: background-color var(--duration-250), color var(--duration-250), transform var(--duration-300) var(--ease-out); }
.hero-outcomes strong { grid-area: title; align-self: end; color: var(--ink); font-size: var(--text-small); font-weight: 600; line-height: 1.3; }
.hero-outcomes small { grid-area: note; align-self: start; color: var(--muted); font-size: var(--text-caption); line-height: 1.4; }
.hero-outcome-step { position: absolute; top: 10px; right: 12px; color: var(--color-fog); font-size: var(--text-11); font-weight: 600; letter-spacing: .06em; }

.hero-help details { padding: 0; border: 0; }
.hero-help { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pill, .hero-help summary { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--color-snow); color: var(--ink); font: 500 var(--text-small)/1 var(--font-ui); list-style: none; cursor: pointer; transition: border-color var(--duration-200), background-color var(--duration-200), box-shadow var(--duration-250), transform var(--duration-250); }
.hero-help summary::-webkit-details-marker { display: none; }
.hero-help summary::after { content: '+'; color: var(--brand-primary); font-size: var(--text-18); font-weight: 500; line-height: 1; transition: transform var(--duration-300) var(--ease-out); }
.hero-help details[open] > summary::after { transform: rotate(45deg); }
.hero-help details[open] > summary { border-color: var(--brand-line); background: var(--brand-tint); color: var(--brand-ink); }
.hero-pill .rw-icon { width: 16px; height: 16px; color: var(--brand-primary); }
/* The explanation opens as a popover under the row, so nothing below it shifts. */
.hero-help .small-note { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 6; margin: 0; padding: var(--space-4) 18px; border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--color-snow); box-shadow: 0 18px 40px rgb(23 25 28 / .1); color: var(--muted); font-size: var(--text-small); line-height: 1.65; text-wrap: pretty; }

.hero-alt { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: var(--space-4) 18px; border: 1px dashed var(--border-control); border-radius: 18px; background: var(--surface-subtle); }
.hero-alt-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-12); background: var(--color-snow); color: var(--brand-primary); }
.hero-alt p { margin: 0; color: var(--muted); font-size: var(--text-small); line-height: 1.5; }
.hero-alt p strong { color: var(--ink); font-weight: 600; }
.hero-alt-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-alt-links a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--brand-line); border-radius: var(--radius-pill); background: var(--color-snow); color: var(--brand-ink); font-size: var(--text-small); font-weight: 500; text-decoration: none; transition: background-color var(--duration-200), border-color var(--duration-200), transform var(--duration-250); }
.hero-alt-links a::after { content: '\2192'; transition: transform var(--duration-250) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hero-outcomes > li:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: 0 14px 30px rgb(36 73 233 / .09); }
  .hero-outcomes > li:hover .rw-icon { background: var(--brand-primary); color: var(--color-snow); transform: rotate(-6deg) scale(1.06); }
  .hero-pill:hover, .hero-help summary:hover { border-color: var(--brand-line); box-shadow: 0 8px 20px rgb(36 73 233 / .08); transform: translateY(-1px); }
  .hero-alt-links a:hover { background: var(--brand-tint); border-color: var(--brand-primary); }
  .hero-alt-links a:hover::after { transform: translateX(4px); }
}
.hero-pill:focus-visible, .hero-help summary:focus-visible, .hero-alt-links a:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
@media (max-width: 640px) {
  .hero-outcomes { grid-template-columns: 1fr; gap: 10px; }
  .hero-outcomes > li:not(:last-child)::after { display: none; }
  .hero-help > * { flex: 1 1 100%; }
  .hero-help .hero-pill, .hero-help summary { width: 100%; }
  .hero-alt { grid-template-columns: 1fr; padding: var(--space-4); }
  .hero-alt-icon { display: none; }
  .hero-alt-links { grid-column: 1; flex-direction: column; }
  .hero-alt-links a { justify-content: space-between; }
}
