@import url('./tool-activity.css');
/* Hallmark · component: feature walkthrough · genre: atmospheric
 * theme: studied-DNA (source: landing-codex) · font/palette tokens preserved
 * audience: people choosing a work assistant · use: understand Ghost, request access
 * motion: scene crossfade + content entrance; one pass, explicit pause and replay
 * states: idle, playing, paused, complete, selected, hover, focus, pressed, disabled
 * Demo-only UI: no account actions, submissions, or invented live results.
 * Hallmark · pre-emit critique: P5 H4 E4 S5 R5 V4 */

.gd-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  color: var(--g-text);
  background: var(--g-bg-raised);
  font-family: var(--fp-font-body);
  scroll-margin-top: 6rem;
}
.gd-shell { width: min(72rem, calc(100% - 2 * var(--fp-gutter))); margin-inline: auto; }
.gd-heading { max-width: 46rem; margin-bottom: 2rem; }
.gd-heading h2 { margin: 0 0 1rem; max-width: 25ch; font-size: clamp(1.85rem, 3.4vw, 3rem); line-height: 1.13; letter-spacing: -0.035em; font-weight: 650; font-style: normal; overflow-wrap: anywhere; text-wrap: balance; }
.gd-heading p { margin: 0; max-width: 64ch; color: var(--g-text-2); font-size: 1rem; line-height: 1.7; }
.gd-demo { border: 1px solid var(--g-border); border-radius: var(--fp-radius-lg); background: var(--g-card); color: var(--g-text); min-width: 0; }
.gd-demo [hidden] { display: none !important; }
.gd-top { padding: 1rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; border-bottom: 1px solid var(--g-border); }
.gd-top strong { font-family: var(--fp-font-outlier); font-size: 0.8125rem; font-weight: 500; }
.gd-top span { font-size: 0.75rem; color: var(--g-text-2); }
.gd-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--g-border); }
.gd-step, .gd-control { appearance: none; cursor: pointer; min-height: 2.75rem; min-width: 2.75rem; border: 1px solid var(--g-border); border-radius: var(--fp-radius-sm); background: var(--g-card); color: var(--g-text-2); font: inherit; font-size: 0.8125rem; padding: 0.5rem 0.75rem; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; }
.gd-step b { font-family: var(--fp-font-outlier); font-weight: 400; font-size: 0.6875rem; }
.gd-step[aria-pressed="true"] { color: var(--fp-color-accent-strong); border-color: var(--fp-color-accent-strong); background: var(--g-blue-soft); }
.gd-step.is-complete b { color: var(--fp-color-success); }
.gd-control--play { min-width: 5rem; color: var(--g-text); }
.gd-control:disabled { opacity: 0.5; cursor: not-allowed; }
.gd-demo button:focus-visible, .gd-demo a:focus-visible { outline: 3px solid var(--fp-color-focus); outline-offset: 4px; }
.gd-demo button:not(:disabled):active { transform: translateY(1px); }
@media (hover: hover) { .gd-demo button:not(:disabled):hover { background: var(--g-card-2); color: var(--g-text); } }
.gd-stage { display: grid; min-width: 0; }
.gd-panel { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 2rem; padding: clamp(1.25rem, 3.5vw, 3rem); align-items: start; align-content: start; min-width: 0; border-bottom: 1px solid var(--g-border); }
.gd-demo.is-ready .gd-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; border-bottom: 0; transform: translateY(8px); transition: opacity var(--fp-dur-short) var(--fp-ease-out), transform var(--fp-dur-short) var(--fp-ease-out); }
.gd-demo.is-ready .gd-panel.is-current { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.gd-copy { padding-top: 0.5rem; min-width: 0; }
.gd-copy > span { display: block; margin-bottom: 1rem; font-family: var(--fp-font-outlier); font-size: 0.75rem; color: var(--fp-color-accent-strong); }
.gd-copy h3 { margin: 0 0 1rem; max-width: 24ch; font-size: clamp(1.4rem, 2.3vw, 1.9rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; font-style: normal; overflow-wrap: anywhere; text-wrap: balance; }
.gd-copy p { margin: 0; max-width: 47ch; color: var(--g-text-2); font-size: 0.9375rem; line-height: 1.7; }
.gd-visual { min-width: 0; background: var(--g-bg-raised); color: var(--g-text); border: 1px solid var(--g-border); border-radius: var(--fp-radius-md); padding: 1.25rem; }
.gd-visual > :first-child { margin-top: 0; }
.gd-visual > :last-child { margin-bottom: 0; }
.gd-visual h4 { font-size: 1.125rem; line-height: 1.4; margin: 0.75rem 0 1rem; font-weight: 550; overflow-wrap: anywhere; }
.gd-visual p { font-size: 0.875rem; line-height: 1.65; margin: 0.75rem 0; }
.gd-visual small { display: block; font-size: 0.75rem; line-height: 1.6; color: var(--g-text-2); }
.gd-visual .gd-label { font-family: var(--fp-font-outlier); font-size: 0.6875rem; color: var(--g-text-2); letter-spacing: 0.035em; text-transform: uppercase; margin-bottom: 0.75rem; display: block; }
.gd-visual ul { margin: 0.75rem 0; padding-left: 1.2rem; font-size: 0.875rem; line-height: 1.75; }
.gd-visual blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 2px solid var(--fp-color-accent-strong); font-size: 0.9375rem; line-height: 1.65; }
.gd-visual a { color: var(--fp-color-accent-strong); text-decoration: underline; text-underline-offset: 0.2em; }
.gd-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.gd-pill { display: inline-flex; padding: 0.2rem 0.55rem; border-radius: 0.35rem; background: var(--g-chip); color: var(--g-text-2); font-size: 0.6875rem; line-height: 1.6; }
.gd-pill--blue { background: var(--g-blue-soft); color: var(--fp-color-accent-strong); }
.gd-pill--green { background: var(--g-green-soft); color: var(--fp-color-success); }
.gd-row { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.65rem; padding: 1rem 0; border-bottom: 1px solid var(--g-border); }
.gd-row:last-child { border-bottom: 0; }
.gd-row b { font-weight: 500; font-size: 0.875rem; }
.gd-row p { margin: 0.25rem 0 0; }
.gd-mark { color: var(--g-text-2); font-size: 1rem; line-height: 1.4; }
.gd-row--current .gd-mark { color: var(--fp-color-accent-strong); }
.gd-row--done .gd-mark, .gd-success { color: var(--fp-color-success); }
.gd-row--done b { text-decoration: line-through; color: var(--g-text-2); }
.gd-callout { padding: 1rem; margin-top: 1rem; border-radius: var(--fp-radius-sm); background: var(--g-blue-soft); color: var(--g-text); }
.gd-callout strong { font-size: 0.875rem; font-weight: 550; }
.gd-callout p { margin-bottom: 0; }
.gd-receipt { border-top: 1px solid var(--g-border); padding-top: 1rem; margin-top: 1rem; }
.gd-transcript > div { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: 0.6rem; margin-bottom: 1rem; }
.gd-transcript time { font-family: var(--fp-font-outlier); font-size: 0.6875rem; color: var(--g-text-2); padding-top: 0.2rem; }
.gd-transcript b { font-size: 0.8125rem; font-weight: 500; }
.gd-transcript p { margin: 0.3rem 0 0; }
.gd-fields { display: grid; gap: 0.75rem; margin: 1rem 0; }
.gd-fields > div { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 0.75rem; font-size: 0.8125rem; }
.gd-fields dt { color: var(--g-text-2); }
.gd-fields dd { margin: 0; overflow-wrap: anywhere; }
.gd-code { display: block; padding: 1rem; margin: 1rem 0; background: var(--g-bg); color: var(--g-text); border: 1px solid var(--g-border-soft); border-radius: var(--fp-radius-sm); font-family: var(--fp-font-outlier); font-size: 0.75rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.gd-foot { border-top: 1px solid var(--g-border); padding: 0.75rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.gd-foot p { color: var(--g-text-2); font-size: 0.75rem; margin: 0; }
.gd-buttons { display: flex; gap: 0.5rem; }
.gd-meter { height: 2px; margin: 0 1.5rem; background: var(--g-border); overflow: clip; }
.gd-meter span { display: block; height: 100%; background: var(--fp-color-accent-strong); transform: scaleX(0.25); transform-origin: left; transition: transform var(--fp-dur-short) var(--fp-ease-out); }
.gd-note { font-size: 0.75rem; color: var(--g-text-2); line-height: 1.7; margin: 1rem 0 0; max-width: 90ch; }
.gd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: clip; clip-path: inset(50%); white-space: nowrap; }
.gd-demo.is-ready .is-current .gd-visual > * { animation: gd-arrive 360ms var(--fp-ease-out) both; }
.gd-demo.is-ready .is-current .gd-visual > :nth-child(2) { animation-delay: 60ms; }
.gd-demo.is-ready .is-current .gd-visual > :nth-child(3) { animation-delay: 120ms; }
.gd-demo.is-ready .is-current .gd-visual > :nth-child(n+4) { animation-delay: 180ms; }
@keyframes gd-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 47.99rem) {
  .gd-panel { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .gd-copy h3 { max-width: none; }
  .gd-copy > span { margin-bottom: 0.6rem; }
  .gd-copy p { max-width: none; }
  .gd-top, .gd-steps, .gd-foot { padding-inline: 1rem; }
  .gd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-step { justify-content: start; gap: 0.5rem; }
  .gd-visual { padding: 1rem; }
  .gd-meter { margin-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-demo *, .gd-demo *::before, .gd-demo *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .gd-demo.is-ready .gd-panel { transform: none; }
}
