.walkthrough {
  --quiet: #c6bfb7;
}
.try-skip {
  position: fixed;
  z-index: 20;
  inset: 10px auto auto var(--gutter);
  padding: 12px 18px;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--bg);
}
.try-skip:focus { transform: none; color: var(--bg); }
.walkthrough :is(a,button,input,summary) { touch-action: manipulation; -webkit-tap-highlight-color: #ff902e38; }
.walkthrough ::selection { background: #f3c08e; color: #19130f; }
.walkthrough button { cursor: pointer; }
.walkthrough :is(h1,h2,h3,p,blockquote) { overflow-wrap: break-word; }
.walk-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--column-gap);
  padding-top: clamp(20px, 3.2vw, 50px);
  grid-template-areas: "stage intro" "stage screens" "stage panel";
  grid-template-rows: 1fr auto 1fr;
}
.demo-intro, .screen-picker, .walk-panel { min-width: 0; }
.demo-intro { grid-area: intro; align-self: end; padding-top: clamp(32px, 4vw, 68px); }
.demo-intro h1 { font-size: clamp(3.25rem, 5.8vw, 6rem); letter-spacing: -.04em; line-height: .99; }
.demo-intro p, .guide-heading p, .try-setup p, .field-note figcaption > p, .guide-entries p {
  color: var(--quiet);
  font-size: clamp(1rem, 1.12vw, 1.16rem);
  line-height: 1.55;
}
.demo-intro p { max-width: 40ch; margin-top: 15px; }
.walkthrough-stage {
  grid-area: stage;
  position: relative;
  overflow: hidden;
  container-type: size;
  min-height: clamp(440px, 39vw, 590px);
  background: #aaa39a;
}
.studio-art {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  width: max(100cqw, 100cqh);
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
}
.studio-photo { width: 100%; height: 100%; }
.studio-face {
  position: absolute;
  left: 49.6%;
  top: 50%;
  width: 44%;
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  display: flex;
  flex-direction: column;
  gap: clamp(3px,.8cqw,8px);
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}
.face-hit { position: absolute; inset: 0; width: 100%; border-radius: 50%; border: 0; background: transparent; }
.face-hit:focus-visible { outline-offset: -4px; }
#device-display { font-size: clamp(1.25rem, 5cqw, 3rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
#device-label { color: #c1b8ad; font-size: clamp(.77rem, 2cqw, 1.05rem); font-weight: 500; }
#device-logo { width: clamp(24px,7cqw,50px); height: auto; aspect-ratio: 1; object-fit: contain; }
#device-logo[src$="codex.svg"], .guide-entries img[src$="codex.svg"] { filter: invert(1); }
#device-logo[src$="notion.svg"], .guide-entries img[src$="notion.svg"] { background: #faf7f2; border-radius: 4px; padding: 2px; }
.walk-wave { display: flex; align-items: center; gap: clamp(2px,.55cqw,5px); height: clamp(20px,5.8cqw,44px); margin-bottom: 3px; }
.walk-wave i { width: clamp(2px,.55cqw,5px); height: 35%; border-radius: 8px; background: var(--amber); }
.walk-wave i:nth-child(2n) { height: 57%; }
.walk-wave i:nth-child(3n) { height: 78%; }
.walk-wave i:nth-child(5) { height: 100%; }
.walkthrough-stage:not([data-mode="voice"],[data-mode="openbrain"]):not([data-state="listening"]) .walk-wave,
.walkthrough-stage[data-state="listening"] #device-logo, .walkthrough-stage[data-state="sending"] #device-logo { display: none; }
.walkthrough-stage:is([data-mode="clock"],[data-mode="focus"]) #device-display { color: var(--amber); font-variant-numeric: tabular-nums; }
.walkthrough-stage[data-state="done"] #device-display { color: var(--amber); }
.dial-controls { pointer-events: none; position: absolute; inset: 50% 0 auto; display: flex; justify-content: space-between; align-items: center; padding-inline: clamp(10px,3vw,48px); transform: translateY(-50%); }
.dial-controls button {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #30281f75;
  border-radius: 50%;
  background: #e9e1d7b8;
  color: #201b16;
}
.dial-controls button::before {
  content: "";
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translateX(-2px) rotate(45deg);
}
#dial-prev::before { transform: translateX(2px) rotate(-135deg); }
.dial-controls button:focus-visible { outline-color: #201b16; }
.screen-picker { grid-area: screens; margin-block: clamp(20px,2.6vw,42px) 15px; }
.screen-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
.screen-tabs button {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--quiet);
  font-size: .92rem;
  font-weight: 500;
  scroll-margin-block-start: 115px;
}
.screen-tabs button[aria-selected="true"] { color: var(--ink); border-color: #635b53; background: #2a2724; }
.walk-panel { grid-area: panel; padding-bottom: clamp(29px,3.2vw,55px); align-self: start; }
.walk-panel:focus-visible { outline-offset: 5px; }
#mode-help { font-size: 1rem; color: var(--quiet); line-height: 1.5; max-width: 43ch; }
.action-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; margin-block: 16px 19px; }
#puck-press { padding-inline: 23px; border: 0; min-height: 46px; font-size: .95rem; }
#puck-press[aria-disabled="true"], .face-hit[aria-disabled="true"] { cursor: progress; }
#focus-setting { display: flex; align-items: center; gap: 8px; }
#focus-setting label { font-size: .88rem; }
#focus-minutes { width: 4.1rem; min-height: 44px; padding-inline: 9px; border: 1px solid #6a6259; border-radius: 5px; color: var(--ink); background: #211e1b; font: inherit; }
#focus-minutes:disabled { color: var(--muted); }
.text-action { min-height: 44px; border: 0; padding: 0; background: none; color: var(--quiet); font-size: .88rem; text-decoration: underline; text-underline-offset: .25em; }
.walkthrough-result { border-top: 1px solid #393530; padding-top: 14px; min-height: 83px; }
#result-label { color: var(--muted); font-size: .84rem; font-weight: 600; line-height: 1.5; }
#result-text { margin-top: 4px; color: var(--ink); font-size: clamp(1.06rem,1.4vw,1.35rem); line-height: 1.36; max-width: 40ch; }
.walkthrough-result[data-format="quote"] #result-text { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(1.45rem,1.95vw,2rem); line-height: 1.2; }
.script-note { padding: var(--gutter); }
.workflow-guide { padding-block: clamp(44px,6vw,100px); }
.guide-heading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--column-gap); align-items: end; margin-bottom: clamp(24px,3.2vw,50px); }
.walkthrough h2 { font-size: clamp(2.7rem,4.5vw,4.85rem); line-height: 1.03; letter-spacing: -.04em; }
.guide-heading > p { max-width: 40ch; }
.guide-spread { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--column-gap); align-items: start; }
.field-note { margin: 0; }
.field-note > img { width: 100%; aspect-ratio: 1.85; object-fit: cover; object-position: 50% 60%; }
.field-note figcaption { padding-top: 17px; color: var(--ink); }
.field-note h3, .guide-entries h3 { font-size: clamp(1.45rem,1.8vw,2rem); line-height: 1.15; font-weight: 500; letter-spacing: -.03em; }
.field-note blockquote { margin: 8px 0 10px; max-width: 30ch; font: 400 clamp(1.65rem,2.7vw,2.9rem)/1.11 'Instrument Serif',Georgia,serif; }
.field-note figcaption > p { max-width: 48ch; }
.example-link, .walkthrough-links a, .faq-list p a, .script-note a { text-decoration: underline; text-underline-offset: .24em; text-decoration-color: #8d8073; }
.example-link, .walkthrough-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 600; }
.guide-entries article { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 15px; padding-block: clamp(16px,1.9vw,30px); border-top: 1px solid var(--line); }
.guide-entries article:first-child { padding-top: 3px; border: 0; }
.guide-entries img { width: 27px; height: 27px; margin-top: 2px; object-fit: contain; }
.guide-entries p { margin-top: 8px; max-width: 45ch; }
.try-setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--column-gap); padding-block: clamp(34px,5vw,76px); border-top: 1px solid var(--line); }
.setup-intro > p { max-width: 41ch; margin-top: 16px; }
.walkthrough-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.try-setup .faq-list details:first-child { padding-top: 0; border-top: 0; }
.try-setup .faq-list summary { min-height: 44px; line-height: 1.38; }
.try-setup .faq-list p { max-width: 55ch; font-size: 1rem; }
@media (hover: hover) {
  .screen-tabs button:hover { background: #262320; color: var(--ink); }
  .dial-controls button:hover { background: #fff6ed; }
  .studio-face:hover #device-display, .text-action:hover { color: var(--amber); }
}
@media (prefers-reduced-motion: no-preference) {
  .walkthrough-stage[data-state="listening"] .walk-wave i { animation: walk-listen .75s ease-in-out alternate 5; }
  .walkthrough-stage[data-state="listening"] .walk-wave i:nth-child(even) { animation-delay: -.35s; }
  @keyframes walk-listen { from { transform: scaleY(.48); } to { transform: scaleY(1); } }
}
@media (max-width: 760px) {
  .walk-demo { padding-top: 0; grid-template-columns: minmax(0,1fr); grid-template-areas: "intro" "stage" "screens" "panel"; grid-template-rows: auto; }
  .demo-intro { padding-block: 24px 18px; }
  .demo-intro h1 { font-size: clamp(2.8rem,10vw,4rem); }
  .demo-intro p { margin-top: 8px; font-size: 1rem; line-height: 1.45; max-width: 50ch; }
  .walkthrough-stage { min-height: 0; height: auto; aspect-ratio: 1.55; }
  .screen-picker { margin-block: 10px; }
  .screen-tabs { gap: 1px 3px; }
  .screen-tabs button { padding-inline: 9px; }
  .action-line { margin-block: 12px 14px; }
  .walk-panel { padding-bottom: 20px; }
  .walkthrough-result { padding-top: 11px; min-height: 72px; }
  .guide-spread, .guide-heading, .try-setup { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .guide-heading { gap: 12px; }
  .guide-entries article { padding-block: 17px 10px; }
  .guide-entries article:first-child { border-top: 1px solid var(--line); padding-top: 17px; }
  .try-setup .faq-list details:first-child { border-top: 1px solid var(--line); padding-top: 12px; }
}

@media (max-width: 350px) {
  .demo-intro { padding-block: 18px 12px; }
  .demo-intro p { line-height: 1.4; }
  .screen-picker { margin-block: 6px; }
  .action-line { margin-block: 9px 10px; }
}
