/* The Nothy composer keeps its native proportions inside the illustrated display. */
.experience {
  position: absolute;
  z-index: 3;
  top: 650px;
  width: 760px;
  left: calc(50% - 380px);
  container-type: inline-size;
  scroll-margin-top: 170px;
}
.app-stage { height: 220px; display: flex; justify-content: center; align-items: flex-start; }
.demo-surface {
  position: relative;
  width: 100%;
  background: #0e0f10;
  color: #bdbfc0;
  border: 1px solid #262728;
  border-top: 0;
  border-radius: 0 0 30px 30px;
  transition: width .28s cubic-bezier(.32,.72,.24,1);
  animation: enter 1.2s .25s var(--ease) both;
}
/* Concave shoulders continue the app's attached brow. */
.demo-surface:before, .demo-surface:after {
  content: '';
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.demo-surface:before { right: 100%; background: radial-gradient(circle at 0 100%,transparent 16px,#0e0f10 16px); }
.demo-surface:after { left: 100%; background: radial-gradient(circle at 100% 100%,transparent 16px,#0e0f10 16px); }
.notch {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% 0;
  width: 28.55%;
  height: 38px;
  border-radius: 0 0 13px 13px;
  background: #000;
  z-index: 2;
}
.composer { padding: 0 12px 12px; }
.composer-heading { display: grid; grid-template-columns: 1fr 28.55% 1fr; height: 32px; align-items: center; }
.composer-mode { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #a78bfa; white-space: nowrap; }
.composer-mode svg { width: 18px; height: 18px; }
.app-top-tools, .app-tool-group { display: flex; align-items: center; gap: 5px; }
.app-top-tools { justify-content: flex-end; }
.app-icon { width: 26px; height: 26px; border-radius: 8px; background: #1a1b1c; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #bdbfc0; }
.app-icon svg { width: 20px; height: 20px; }
.app-top-tools .app-icon svg { width: 14px; height: 14px; }
.app-enhance { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 8px 0 4px; background: #a78bfa24; color: #c4b5fd; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.app-auto { background: #1a1b1c; border-radius: 8px; padding: 7px 10px; color: #7c7e81; font-size: 12px; }
.demo-surface kbd { padding: 3px 5px; font: inherit; border-radius: 5px; color: #a8aaad; background: #26282b; white-space: nowrap; }
.app-enhance kbd { background: #a78bfa2e; color: #c4b5fd; font-size: 11px; }
.dictated-text { min-height: 43px; margin: 14px 4px 16px; color: #b8babd; font-size: 14px; line-height: 1.55; letter-spacing: 0; }
.text-cursor { display: inline-block; width: 1px; height: 1em; background: #3fbf8f; vertical-align: -.1em; margin-left: 2px; animation: blink 1.3s step-end infinite; }
.composer-bottom { display: flex; justify-content: space-between; gap: 9px; border-top: 1px solid #121314; padding-top: 10px; }
.app-separator { width: 1px; height: 20px; margin: 0 3px; background: #1f2122; }
.app-nav { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 5px 0 9px; border-radius: 8px; background: #1a1b1c; font-size: 12px; white-space: nowrap; }
.app-nav kbd { font-size: 11px; }
.app-send { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 4px 0 9px; background: #3fbf8f; color: #fff; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.app-send kbd { background: #ffffff38; color: #fff; }
.demo-caption { display: flex; align-items: center; justify-content: center; gap: 12px; color: #9ba9a4; font-size: 10px; position: relative; }
.demo-label { border: 1px solid #ffffff15; color: #72847d; padding: 3px 6px; border-radius: 4px; font-size: 8px; }
.replay { border: 1px solid #ffffff15; background: #0e0f10; color: #8ea69c; display: grid; place-items: center; height: 28px; padding: 0 11px; border-radius: 999px; flex: none; font-size: 10px; white-space: nowrap; }
.replay:hover { color: #b9e8db; border-color: #3fbf8f; }
.recording-strip { display: none; align-items: center; gap: 12px; padding: 43px 17px 14px; color: #8b8d90; font-size: 12px; }
.recording-dot { width: 7px; height: 7px; border-radius: 50%; background: #e0574a; flex: none; }
.recording-strip time { font-variant-numeric: tabular-nums; font-size: 11px; }
.waveform { flex: 1; display: flex; align-items: center; justify-content: center; gap: 3px; height: 24px; }
.waveform i { width: 3px; height: var(--bar-height); border-radius: 2px; background: #e0e1e2; animation: recording-wave var(--duration) ease-in-out infinite alternate; animation-delay: var(--delay); transform-origin: center; }
.is-recording { width: 380px; border-radius: 0 0 23px 23px; }
.is-recording .notch { width: 185px; }
.is-recording .composer { display: none; }
.is-recording .recording-strip { display: flex; }
.is-transcribing .waveform i { animation-play-state: paused; opacity: .4; }
.transcribing-strip { display:none; justify-content:center; align-items:center; gap:10px; padding:50px 20px 20px; color:#8b8d90; font-size:12px; }
.is-transcribing .recording-strip { display:none; }
.is-transcribing .transcribing-strip { display:flex; }
.app-spinner { width:12px; height:12px; border:1.5px solid #323436; border-top-color:#a78bfa; border-radius:50%; animation:app-spin .7s linear infinite; }
@keyframes app-spin { to { transform:rotate(360deg); } }
.screen-frame[data-timeline-paused='true'] * { animation-play-state:paused!important; }
@media (min-width: 1800px) { .experience { top: 710px; } }
@media (min-width: 701px) and (max-width: 1050px) { .experience { width: 680px; left: calc(50% - 340px); top: 625px; } .app-nav kbd { display: none; } }
@media (max-width: 700px) {
  .experience { top: 645px; width: calc(100% - 40px); left: 20px; scroll-margin-top: 140px; }
  .app-stage { height: 160px; }
  .demo-surface { border-radius: 0 0 16px 16px; }
  .demo-surface:before, .demo-surface:after { width: 9px; height: 9px; }
  .demo-surface:before { background: radial-gradient(circle at 0 100%,transparent 9px,#0e0f10 9px); }
  .demo-surface:after { background: radial-gradient(circle at 100% 100%,transparent 9px,#0e0f10 9px); }
  .notch { height: 24px; border-radius: 0 0 7px 7px; }
  .composer { padding: 0 8px 9px; }
  .composer-heading { height: 24px; }
  .composer-mode { font-size: 2.2cqw; gap: 3px; }
  .composer-mode svg { width: 11px; height: 11px; }
  .app-top-tools, .app-tool-group { gap: 3px; }
  .app-icon { width: 5cqw; height: 5cqw; border-radius: 4px; }
  .app-icon svg { width: 3.8cqw; height: 3.8cqw; }
  .app-top-tools .app-icon svg { width: 3cqw; height: 3cqw; }
  .app-top-tools>.app-icon:first-child { display: none; }
  .app-enhance { font-size: 2.1cqw; height: 5cqw; padding: 0 4px; gap: 2px; border-radius: 4px; }
  .app-enhance kbd { display: none; }
  .app-auto { font-size: 2.1cqw; padding: 4px; border-radius: 4px; }
  .dictated-text { font-size: 3.25cqw; min-height: 45px; margin: 17px 2px 18px; }
  .composer-bottom { gap: 3px; padding-top: 8px; }
  .app-nav { font-size: 2.05cqw; height: 5cqw; padding: 0 4px; border-radius: 4px; }
  .app-nav kbd { display: none; }
  .app-separator { height: 12px; margin: 0 1px; }
  .app-send { font-size: 2.05cqw; height: 5cqw; padding: 0 3px 0 4px; gap: 3px; border-radius: 4px; }
  .app-send kbd { padding: 1px 2px; border-radius: 3px; }
  .app-tool-group:last-child>.app-icon:nth-child(3) { display: none; }
  .demo-caption { font-size: 8px; gap: 7px; }
  .demo-label { font-size: 7px; }
  .replay { height: 26px; font-size: 9px; padding: 0 10px; }
  .is-recording { width: 280px; }
  .is-recording .notch { width: 110px; }
  .recording-strip { padding: 36px 14px 13px; font-size: 10px; gap: 8px; }
  .waveform { gap: 2px; }
  .waveform i { width: 2px; }
}
@media (prefers-reduced-motion: reduce) { .demo-surface { transition: none; } }

/* The illustrated display is a middle plane; lettering stays in front of its rim. */
.hero { height: 1260px; min-height: 1260px; }
.soundscape { mask-image:linear-gradient(#000 0%,#000 65%,transparent 100%); }
.experience { width: 1040px; left: calc(50% - 520px); top: 600px; }
.screen-frame { padding: 8px; border: 1px solid #35423e; border-radius: 24px; background: #161a1a; box-shadow: 0 28px 80px #0006; }
.screen-desktop { position: relative; height: 475px; border-radius: 16px; overflow: hidden; background: linear-gradient(155deg,#5d8f7d 0%,#37564f 38%,#1b2a2b 74%,#101617 100%); }
.screen-desktop:after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 80%,#3fbf8f12,transparent 65%); pointer-events: none; }
.desktop-menu { position: absolute; top: 0; left: 0; right: 0; height: 30px; background: #0c10108c; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; color: #bdbfc0; font-size: 10px; }
.desktop-menu>div { display: flex; gap: 15px; align-items: center; }
.menu-clock { margin-left: 15px; }
.screen-desktop .app-stage { position: absolute; top: 0; left: 17%; width: 66%; height: auto; z-index: 4; }
.screen-desktop .demo-surface { box-shadow: none; }
.screen-desktop .composer-mode { font-size: 12px; }
.screen-desktop .app-nav { font-size: 11px; }
.screen-desktop .notch { width: 185px; height: 32px; }
.desktop-note { position: absolute; left: 22.5%; top: 170px; width: 55%; height: 158px; border: 1px solid #ffffff12; border-radius: 12px; background: #111716e6; box-shadow: 0 12px 40px #0002; }
.note-toolbar { height: 30px; border-bottom: 1px solid #ffffff0b; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #7f8a85; font-size: 10px; }
.note-toolbar>svg { width: 15px; height: 15px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #5c6963; }
.window-dots i:first-child { background: #a06560; }.window-dots i:nth-child(2) { background: #a28c5b; }.window-dots i:last-child { background: #628b70; }
.note-body { padding: 16px 24px; }
.note-eyebrow { font-size: 7px; letter-spacing: .16em; color: #63796c; }
.note-body h2 { margin: 7px 0 9px; font-size: 18px; letter-spacing: -.025em; font-weight: 450; color: #c7d2cc; }
.note-body p { font-size: 12px; line-height: 1.6; color: #a3b6aa; margin: 0; }
.note-placeholder { font-size: 12px; color: #4e6257; }
.keystroke { position: absolute; left: 0; right: 0; top: 344px; width: auto; display: flex; flex-direction: column; align-items: center; gap: 7px; z-index: 3; }
.keystroke>kbd { width: 52px; height: 44px; border: 1px solid #ffffff24; border-bottom: 4px solid #0e1713; border-radius: 12px; background: linear-gradient(#263d34,#192c25); display: grid; place-items: center; font: 23px/1 'Helvetica Neue',sans-serif; color: #a0bdad; box-shadow: 0 5px 15px #0003; transition: transform .2s,background .2s; }
.keystroke>span { color: #88a496; font-size: 10px; max-width: 400px; line-height: 1.5; text-align: center; }
.story-steps { position: absolute; left: 14%; right: 14%; bottom: 20px; z-index: 6; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.story-steps button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 3px 7px; background: transparent; border-top: 1px solid #a8d0b82e; color: #7e9c8b; font-size: 10px; transition: color .25s,border-color .25s; }
.story-steps button>span:first-child { font: 8px ui-monospace,monospace; opacity: .65; }
.story-steps button[aria-pressed='true'] { color: #b5eed2; border-color: #3fbf8f; }
.story-steps button:hover { color: white; }
.demo-caption { margin-top: 22px; }
.screen-frame[data-story='press'] .keystroke>kbd, .screen-frame[data-story='recording'] .keystroke>kbd, .screen-frame[data-story='send'] .keystroke>kbd { transform: translateY(3px); background: #3fbf8f; color: #09271c; border-color: #6be3b4; box-shadow: 0 0 25px #3fbf8f35; }
.screen-frame[data-story='improving'] .keystroke>kbd { color: #d8c9ff; background: #4b3d67; border-color: #a78bfa; animation: key-double 1.8s ease infinite; }
.screen-frame[data-story='improving'] .app-enhance { background: #a78bfa45; box-shadow: 0 0 0 1px #a78bfa44; }
.screen-frame[data-story='improving'] .dictated-text { background: linear-gradient(100deg,#6a5a99 26%,#e4dcff 50%,#6a5a99 74%); background-size: 180% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: app-shimmer 2.5s linear infinite; }
.screen-frame[data-story='done'] .note-placeholder { display: none; }
.screen-frame[data-story='done'] .note-body p { animation: enter .6s var(--ease) both; }
.screen-frame[data-story='done'] .demo-surface, .screen-frame[data-story='press'] .demo-surface { width: 185px; height: 32px; border-radius: 0 0 13px 13px; background: #000; border: 0; }
.screen-frame[data-story='done'] .composer, .screen-frame[data-story='press'] .composer { display: none; }
.screen-frame[data-story='done'] .notch, .screen-frame[data-story='press'] .notch { width: 100%; }
.screen-frame[data-story='done'] .demo-surface:before,.screen-frame[data-story='done'] .demo-surface:after,.screen-frame[data-story='press'] .demo-surface:before,.screen-frame[data-story='press'] .demo-surface:after { display: none; }
.screen-frame[data-story='done'] .keystroke>kbd { color: #3fbf8f; }
@keyframes app-shimmer { from { background-position:180% 0; } to { background-position:-180% 0; } }
@keyframes key-double { 0%,20%,45%,100% { transform:translateY(0); } 10%,35% { transform:translateY(3px); } }
@media(min-width:1800px) { .hero { height:1370px; }.experience { top:670px; } }
@media(min-width:701px) and (max-width:1050px) {
  .experience { width: calc(100% - 90px); left:45px; top:575px; }
  .screen-desktop .app-stage { width:86%; left:7%; }
  .screen-desktop .composer-mode { font-size:10px; }
  .desktop-note { left:18%;width:64%; }
}
@media(max-width:700px) {
  .hero { height:1170px; min-height:1170px; }
  .experience { width:calc(100% - 28px);left:14px;top:610px; }
  .screen-frame { padding:5px;border-radius:17px; }
  .screen-desktop { height:420px;border-radius:11px; }
  .desktop-menu { height:22px;font-size:6px;padding:0 8px; }
  .desktop-menu>div { gap:7px; }.desktop-menu>div>span { display:none; }
  .menu-clock { margin-left:7px; }
  .screen-desktop .app-stage { width:96%;left:2%; }
  .screen-desktop .composer-mode { font-size:2.05cqw; }
  .screen-desktop .app-nav { font-size:1.9cqw; }
  .screen-desktop .notch { width:110px; height:24px; }
  .screen-desktop .app-send { font-size:1.9cqw; }
  .screen-desktop .app-tool-group:last-child>.app-icon:nth-child(2) { display:none; }
  .desktop-note { left:8%;top:148px;width:84%;height:154px; }
  .note-toolbar { height:26px;font-size:8px;padding:0 10px; }
  .window-dots i { width:5px;height:5px; }
  .note-body { padding:16px 17px; }
  .note-body h2 { font-size:15px;margin:7px 0 10px; }
  .note-eyebrow { font-size:6px; }.note-placeholder { font-size:9px; }.note-body p { font-size:10px;line-height:1.6; }
  .keystroke { top:314px; bottom:auto; flex-direction:column; gap:6px; }
  .keystroke>kbd { width:32px;height:30px;border-radius:6px;font-size:16px;border-bottom-width:2px; }
  .keystroke>span { font-size:8px;max-width:280px; }
  .story-steps { bottom:10px;left:5%;right:5%;gap:9px; }
  .story-steps button { font-size:8px;gap:4px;padding-top:9px; }.story-steps button>span:first-child { font-size:6px; }
  .demo-caption { margin-top:14px;gap:8px 12px;flex-wrap:wrap; }.demo-caption>#demo-state { flex-basis:calc(100% - 70px);max-width:280px; }
  .screen-frame[data-story='done'] .demo-surface,.screen-frame[data-story='press'] .demo-surface { width:110px;height:24px;border-radius:0 0 7px 7px; }
  .foreground { width:1100px;margin-left:-550px;bottom:50px; }
  .soundscape-far { bottom:70px; }.soundscape-near { bottom:110px; }
}

@keyframes recording-wave { from { transform:scaleY(.2); } to { transform:scaleY(1); } }
.foreground { aspect-ratio:1920 / 520; }
.letter-flow { position:absolute; inset:0; overflow:hidden; mask:url('assets/letter-mask.svg') 0 0 / 100% 100% no-repeat; }
.letter-ribbon { position:absolute; inset:0 auto 0 0; width:127.5%; background:url('assets/letters-0.svg') repeat-x; background-size:21.56862745% 100%; animation:letter-current 28s linear infinite; }
.letter-ribbon:nth-child(2) { background-image:url('assets/letters-1.svg'); animation-duration:34s; animation-delay:-9s; }
.letter-ribbon:nth-child(3) { background-image:url('assets/letters-2.svg'); animation-duration:40s; animation-delay:-17s; }
@keyframes letter-current { from { transform:translateX(-21.56862745%); } to { transform:translateX(0); } }
html[data-scene-paused='true'] .hero *,html[data-scene-paused='true'] .hero *:before { animation-play-state:paused!important; }
html[data-letters-paused='true'] .letter-ribbon { animation-play-state:paused!important; }
@media(prefers-reduced-motion:reduce) { .letter-ribbon { animation:none; } }
