/* Halo and Pagely: shared by the home page, /halo and /pagely. Each page defines the colour tokens on :root. */
.tick { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: #e3f4ec; color: var(--green); font-size: 11px; vertical-align: -3px; }
.wave { display: flex; align-items: center; gap: 3px; height: 16px; }
.wave i { width: 3px; height: 8px; border-radius: 2px; background: var(--blue); }

/* Halo and Pagely: a section each, the real app at work, then what else it does */
.app-sec { padding: clamp(64px, 9vw, 110px) 0; background: var(--day); }
.app-sec.white { background: #fff; }
.app-head { text-align: center; }
.app-head img { width: 76px; height: 76px; margin: 0 auto 16px; }
.app-head h2 em { margin-left: 0.15em; }
.app-head h2 { margin: 0 auto 10px; font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.04em; }
.app-head .why { margin: 6px auto 14px; max-width: 26em; font-family: var(--serif); font-style: normal; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.app-head .sub { margin: 0 auto; max-width: 32em; color: var(--day-ink-2); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 36px; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; list-style: none; }
.point { padding-top: 16px; border-top: 1.5px solid rgb(13 20 51 / 0.12); }
.point b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.point span { display: block; margin-top: 4px; color: var(--day-ink-2); font-size: 15.5px; line-height: 1.45; }

/* Halo on a Mac desktop, dark glass like the real thing, asked one thing after another */
.desk {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  margin-top: clamp(32px, 5vw, 52px);
  padding: 76px 20px 56px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(45% 60% at 14% 20%, #7f9cf5, transparent 70%),
    radial-gradient(40% 55% at 88% 86%, #f1a7c9, transparent 70%),
    radial-gradient(40% 50% at 76% 12%, #c3a6f2, transparent 70%),
    radial-gradient(50% 60% at 30% 95%, #a9d0f5, transparent 70%),
    linear-gradient(135deg, #8aa5f6, #b9a8ef 50%, #eab4d3);
}
.desk { text-align: left; }
.desk .menubar { position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 16px; height: 32px; padding: 0 20px; background: rgb(255 255 255 / 0.22); color: rgb(13 20 51 / 0.82); font-size: 13px; font-weight: 500; }
.desk .menubar img { width: 16px; height: 16px; }
.desk .menubar span:last-child { margin-left: auto; }
.halo {
  width: min(600px, 100%);
  border-radius: 26px;
  background: rgb(34 36 46 / 0.8);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 40px 90px rgb(20 24 70 / 0.38);
  color: #f3f4f8;
  font-size: 15px;
  overflow: hidden;
}
.halo .q { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 14px 20px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.halo .q img { width: 26px; height: 26px; flex: none; border-radius: 7px; }
.halo .q .typed { flex: 1; min-width: 0; font-size: 19px; }
.halo .q .typed:empty::before { content: "What would you like to do?"; color: rgb(255 255 255 / 0.42); }
.halo .q .wave { flex: none; display: none; }
.halo .q .wave i { background: #8fb0ff; }
.halo.listening .q .wave { display: flex; }
.halo .out { min-height: 250px; padding: 16px 20px 20px; }
.halo .who { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: rgb(255 255 255 / 0.6); font-size: 13px; font-weight: 600; }
.halo .who img { width: 16px; height: 16px; border-radius: 4px; }
.halo ul { margin: 0; padding: 0; list-style: none; }
.halo li { display: flex; align-items: center; gap: 10px; padding: 5px 0; transition: opacity 0.35s, transform 0.4s; }
.halo .tick { margin: 0; background: rgb(95 211 154 / 0.18); color: #6fe0a8; }
.halo .ans { margin-top: 12px; padding: 13px 15px; border-radius: 15px; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); transition: opacity 0.4s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.halo .ans b { font-weight: 600; }
.halo .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; }
.halo .row + .row { border-top: 1px solid rgb(255 255 255 / 0.1); }
.halo .row small { color: rgb(255 255 255 / 0.55); }
.halo .row code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: rgb(255 255 255 / 0.6); }
.halo .row code b { color: #6fe0a8; font-weight: 500; }
.halo .go { display: inline-block; margin-top: 10px; padding: 7px 14px; border-radius: 10px; background: #4c7dff; color: #fff; font-size: 14px; font-weight: 500; }
.halo .file { display: flex; align-items: center; gap: 12px; }
.halo .file img { width: 32px; height: 32px; border-radius: 8px; }
.halo .file small { display: block; color: rgb(255 255 255 / 0.55); font-size: 13px; }
.halo .caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -3px; background: #8fb0ff; }
.halo-js .halo li:not(.on), .halo-js .halo .ans:not(.on) { opacity: 0; transform: translateY(8px); }

/* Pagely's window: tools on the left, the lease being signed, the signers on the right */
.win { margin-top: clamp(32px, 5vw, 52px); border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--day-line), 0 40px 90px rgb(13 20 51 / 0.16); overflow: hidden; font-size: 14px; }
.win .tb { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--day-line); background: #f7f8fc; }
.win .tb i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.win .tb i:nth-child(2) { background: #febc2e; }
.win .tb i:nth-child(3) { background: #28c840; }
.win .tb span { position: absolute; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.win .tb span img { width: 18px; height: 18px; border-radius: 5px; }
.win .body { display: grid; grid-template-columns: 170px minmax(0, 1fr) 230px; min-height: 500px; }
.rail { margin: 0; padding: 16px 12px; list-style: none; border-right: 1px solid var(--day-line); color: var(--day-ink-2); }
.rail li { padding: 8px 12px; border-radius: 10px; }
.rail li.on { background: var(--day); color: var(--day-ink); font-weight: 600; }
.canvas { display: grid; place-items: center; padding: 36px 28px; background: #eef1f8; }
.side { padding: 20px 18px; border-left: 1px solid var(--day-line); }
.side h5 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--day-ink-2); }
.signer { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.signer .av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--day); font-size: 12px; font-weight: 600; }
.signer .nm { flex: 1; line-height: 1.25; }
.signer .st { position: relative; display: block; height: 18px; font-size: 12.5px; }
.signer .st b, .signer .st em { position: absolute; left: 0; top: 0; font: inherit; white-space: nowrap; }
.signer .st b { color: var(--day-ink-2); font-weight: 400; opacity: 0; }
.signer .st em { color: var(--green); font-weight: 500; }
.side .sealed { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 11px 12px; border-radius: 12px; background: #e3f4ec; color: var(--green); font-weight: 600; }
.side .sealed .tick { margin: 0; background: #fff; }
.side .mail { margin-top: 8px; padding: 0 2px; color: var(--day-ink-2); font-size: 13px; }
.sheet { position: relative; width: min(400px, 100%); padding: 32px 32px 28px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgb(13 20 51 / 0.08), 0 16px 40px rgb(13 20 51 / 0.1); font-size: 13px; }
.sheet h4 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.sheet .meta { margin: 2px 0 16px; color: var(--day-ink-2); }
.sheet .ln { height: 7px; margin: 9px 0; border-radius: 4px; background: #eceff6; }
.sheet .ln.s { width: 64%; }
.sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.sig svg { display: block; width: 100%; height: 44px; border-bottom: 1.5px solid #dfe3ee; }
.sig path { fill: none; stroke: var(--day-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sig small { display: block; margin-top: 5px; color: var(--day-ink-2); }

@media (max-width: 960px) {
  .win .body { grid-template-columns: minmax(0, 1fr) 210px; }
  .rail { display: none; }
}
@media (max-width: 860px) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .desk { min-height: 0; padding: 60px 12px 28px; border-radius: 24px; }
  .desk .menubar span:nth-child(n+3):not(:last-child) { display: none; }
  .halo .out { min-height: 250px; }
  .win .body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .side { border-left: 0; border-top: 1px solid var(--day-line); }
  .canvas { padding: 22px 14px; }
  .sheet { padding: 24px 20px 20px; }
  .points { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}


@keyframes wave { 50% { height: 16px; } 0%, 100% { height: 4px; } }
@keyframes sign { 0%, 8% { stroke-dashoffset: 1; } 32%, 100% { stroke-dashoffset: 0; } }
@keyframes sign-2 { 0%, 36% { stroke-dashoffset: 1; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes seal { 0%, 64% { opacity: 0; transform: scale(0.8); } 70%, 100% { opacity: 1; transform: scale(1); } }
@keyframes appear-late { 0%, 74% { opacity: 0; translate: 0 6px; } 80%, 100% { opacity: 1; translate: 0 0; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes st-out { 0%, 32% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes st-in { 0%, 32% { opacity: 0; } 34%, 100% { opacity: 1; } }
@keyframes st-out-2 { 0%, 60% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes st-in-2 { 0%, 60% { opacity: 0; } 62%, 100% { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .wave i { animation: wave 1s ease-in-out infinite; }
  .wave i:nth-child(2) { animation-delay: -0.2s; }
  .wave i:nth-child(3) { animation-delay: -0.4s; }
  .wave i:nth-child(4) { animation-delay: -0.6s; }
  .wave i:nth-child(5) { animation-delay: -0.8s; }
  .sig path { stroke-dasharray: 1; animation: sign 8s ease-in-out infinite; }
  .sig + .sig path { animation-name: sign-2; }
  .side .sealed { animation: seal 8s ease-out infinite; }
  .side .mail { animation: appear-late 8s ease-out infinite; }
  .signer .st b { animation: st-out 8s infinite; }
  .signer .st em { animation: st-in 8s infinite; }
  .signer + .signer .st b { animation-name: st-out-2; }
  .signer + .signer .st em { animation-name: st-in-2; }
  .halo .caret { animation: blink 1s steps(1) infinite; }
}

/* The link from each home-page section to its own page */
.more-row { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 44px); }
.more-link { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 14px; background: var(--day-ink); color: #fff; font-weight: 500; font-size: 16px; text-decoration: none; transition: translate 0.2s; }
.more-link:hover { translate: 0 -2px; }
.more-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* /halo and /pagely: a page of their own */
.page-bar { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); background: rgb(236 241 254 / 0.82); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--day-line); }
.page-bar .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.page-bar nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--day-ink-2); }
.page-bar nav a { text-decoration: none; }
.page-bar nav a:hover, .page-bar nav a[aria-current] { color: var(--day-ink); }
.page-hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.page-hero > .wrap > img { width: 104px; height: 104px; margin: 0 auto 18px; }
.page-hero h1 { margin: 0 auto 14px; font-size: clamp(44px, 7vw, 84px); font-weight: 700; line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.page-hero h1 em { margin-left: 0.12em; }
.why { margin: 0 auto 16px; max-width: 26em; font-family: var(--serif); font-size: clamp(21px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.page-hero .sub { margin: 0 auto; max-width: 34em; color: var(--day-ink-2); }

.band { padding: clamp(56px, 8vw, 100px) 0; }
.band.white { background: #fff; }
.feat { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.band.flip .feat-copy { order: 2; }
.feat-copy .label { display: inline-block; margin-bottom: 12px; padding: 5px 11px; border-radius: 99px; background: var(--day); color: var(--day-ink-2); font-size: 13px; font-weight: 600; }
.band:not(.white) .feat-copy .label { background: #fff; }
.feat-copy h2 { margin: 0 0 12px; font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.04em; }
.feat-copy p { margin: 0 0 14px; color: var(--day-ink-2); font-size: 17px; text-wrap: pretty; }
.facts { margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--day-line); font-size: 15.5px; line-height: 1.4; }
.facts li::before { content: "✓"; position: absolute; left: 0; top: 10px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e3f4ec; color: var(--green); font-size: 11px; }
.box { position: relative; display: grid; place-items: center; min-height: 420px; padding: clamp(20px, 3vw, 36px); border-radius: 30px; background: #fff; overflow: hidden; }
.band.white .box { background: var(--day); }
.box.desk { margin: 0; padding: 64px 18px 32px; }
.page-end { padding: clamp(72px, 10vw, 120px) 0; text-align: center; background: #fff; }
.page-end h2 { font-size: clamp(34px, 5vw, 56px); }
.page-end .why { margin-top: 14px; }
.page-end .more-row { margin-top: 26px; }
.credit { margin: 22px auto 0; max-width: 36em; color: var(--day-ink-2); font-size: 14px; }

/* A plain Mac window for the pages' examples */
.mwin { width: min(520px, 100%); border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--day-line), 0 30px 70px rgb(13 20 51 / 0.16); overflow: hidden; font-size: 14px; text-align: left; }
.mwin .tb { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--day-line); background: #f7f8fc; }
.mwin .tb i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mwin .tb i:nth-child(2) { background: #febc2e; }
.mwin .tb i:nth-child(3) { background: #28c840; }
.mwin .tb b { margin-left: 10px; font-size: 12.5px; font-weight: 600; color: var(--day-ink-2); }
.mwin .in { padding: 18px 20px 22px; }

/* Halo's glow: circle part of the screen and it lights up, turning slowly, then Halo answers */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.glow-scene { position: relative; width: min(560px, 100%); }
.glow-scene .err { display: flex; gap: 12px; align-items: flex-start; }
.glow-scene .err .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fdecec; color: #d64545; font-weight: 700; }
.glow-scene .err b { display: block; font-size: 15px; }
.glow-scene .err span { color: var(--day-ink-2); font-size: 13.5px; }
.glow-scene .err code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
.glow-scene .rows .ln { height: 8px; margin: 10px 0; border-radius: 4px; background: #eef1f8; }
.glow-scene .rows .ln.s { width: 58%; }
.hint { position: absolute; z-index: 4; top: -46px; left: 50%; translate: -50% 0; padding: 8px 14px; border-radius: 12px; background: rgb(34 36 46 / 0.82); color: #fff; font-size: 12.5px; white-space: nowrap; box-shadow: 0 10px 30px rgb(20 24 70 / 0.25); }
.glow { position: absolute; z-index: 2; left: 10px; right: 10px; top: 46px; height: 58px; pointer-events: none; }
/* The brush stroke: see-through ink, feathered, coloured by a slowly turning gradient */
.glow .ink { position: absolute; inset: -22px -18px; width: calc(100% + 36px); height: calc(100% + 44px); overflow: visible; opacity: 0.4; filter: blur(2.5px); }
.glow .ink path { fill: none; stroke: url(#halo-ink); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* What the stroke snaps to: a soft tint over the thing you circled */
.glow .fill { position: absolute; inset: 0; border-radius: 15px; background: linear-gradient(var(--spin), #ff2ea8, #8533ff 32%, #1ae3ff 65%, #ffa633); opacity: 0.23; filter: blur(5px); box-shadow: 0 0 20px rgb(133 51 255 / 0.13); }
/* As Halo takes the question, the tint breaks into specks that drift up */
.glow .specks { position: absolute; left: 0; top: 50%; width: 2px; height: 2px; border-radius: 50%; color: #8533ff; opacity: 0;
  box-shadow: 30px -8px #ff2ea8, 62px 12px #1ae3ff, 95px -18px #ffa633, 128px 6px #8533ff, 160px -12px #ff2ea8, 196px 14px #1ae3ff, 230px -4px #ffa633, 262px 10px #8533ff, 298px -16px #ff2ea8, 330px 4px #1ae3ff, 360px -10px #ffa633, 46px 20px #8533ff, 112px 22px #ff2ea8, 214px -22px #1ae3ff, 280px 20px #ffa633, 344px 18px #8533ff; }
.glow-answer { position: relative; z-index: 3; width: min(420px, 92%); margin: -14px auto 0; padding: 12px 16px; border-radius: 18px; background: rgb(34 36 46 / 0.88); color: #f3f4f8; font-size: 14px; box-shadow: 0 20px 50px rgb(20 24 70 / 0.3); }
.glow-answer small { display: block; margin-bottom: 3px; color: rgb(255 255 255 / 0.55); font-size: 12px; font-weight: 600; }
@keyframes spin { to { --spin: 360deg; } }
@keyframes ink { 0%, 4% { stroke-dashoffset: 1; opacity: 1; } 28% { stroke-dashoffset: 0; opacity: 1; } 34%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes tint { 0%, 28% { opacity: 0; transform: scale(1.18, 1.5); } 34%, 74% { opacity: 0.23; transform: none; } 86%, 100% { opacity: 0; transform: none; } }
@keyframes specks { 0%, 72% { opacity: 0; translate: 0 0; } 76% { opacity: 0.7; } 92%, 100% { opacity: 0; translate: 0 -40px; } }
@keyframes answer { 0%, 38% { opacity: 0; translate: 0 10px; } 46%, 84% { opacity: 1; translate: 0 0; } 92%, 100% { opacity: 0; } }

/* Dictation: words land where the cursor is while a pill listens */
.dict { position: relative; width: min(520px, 100%); }
.dict .txt { min-height: 96px; font-size: 16px; line-height: 1.5; }
.dict .txt .said { color: var(--day-ink); }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 18px auto 0; padding: 10px 16px; border-radius: 99px; background: rgb(34 36 46 / 0.88); color: #fff; font-size: 13.5px; box-shadow: 0 16px 40px rgb(20 24 70 / 0.25); }
.pill .wave i { background: #8fb0ff; }
.pill small { color: rgb(255 255 255 / 0.6); }
.center { text-align: center; }
@keyframes type-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Background work: you type in one window while Halo works in another */
.two { position: relative; width: min(560px, 100%); height: 380px; }
.two .mwin { position: absolute; width: 74%; }
.two .back { right: 0; top: 0; }
.two .front { left: 0; bottom: 0; z-index: 2; }
.two .item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--day-line); }
.two .item i { width: 16px; height: 16px; border: 1.5px solid #c5cbe0; border-radius: 50%; }
.two .item.new { color: var(--day-ink); }
.two .front .txt { min-height: 74px; color: var(--day-ink); }
.corner { position: absolute; z-index: 3; right: -6px; top: -22px; display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 99px; background: rgb(34 36 46 / 0.9); color: #fff; font-size: 12.5px; box-shadow: 0 14px 34px rgb(20 24 70 / 0.28); }
.corner img { width: 16px; height: 16px; border-radius: 4px; }
.spinner { width: 12px; height: 12px; border: 2px solid rgb(255 255 255 / 0.3); border-top-color: #fff; border-radius: 50%; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes item-in { 0%, 40% { opacity: 0; transform: translateY(-6px); } 50%, 100% { opacity: 1; transform: none; } }

/* Launcher results */
.results { width: min(560px, 100%); }
.results .halo .out { min-height: 0; padding: 8px; }
.res { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.res.on { background: rgb(255 255 255 / 0.09); }
.res .ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgb(255 255 255 / 0.1); font-size: 16px; }
.res .ic img { width: 34px; height: 34px; }
.res b { display: block; font-weight: 500; }
.res small { color: rgb(255 255 255 / 0.55); font-size: 12.5px; }
.res kbd { margin-left: auto; padding: 3px 8px; border-radius: 7px; background: rgb(255 255 255 / 0.1); color: rgb(255 255 255 / 0.7); font: 12px var(--sans); }

/* A step log, for clean-ups */
.log { width: min(520px, 100%); }
.log .halo .out { min-height: 0; }
.toggle { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 11px 14px; border-radius: 14px; background: rgb(255 255 255 / 0.06); font-size: 14px; }
.toggle i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #4c7dff; }
.toggle i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }

/* Pagely: the old way and the new */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.vs > div { padding: 24px 26px; border-radius: 26px; background: #fff; }
.vs .them { background: rgb(255 255 255 / 0.55); }
.vs b { display: block; font-size: 15px; color: var(--day-ink-2); font-weight: 600; }
.vs .price { display: block; margin: 4px 0 12px; font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -0.04em; color: var(--day-ink); }
.vs .price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--day-ink-2); }
.vs ul { margin: 0; padding: 0; list-style: none; color: var(--day-ink-2); font-size: 15px; }
.vs li { padding: 6px 0; border-top: 1px solid var(--day-line); }
.vs .them li::before { content: "✕"; margin-right: 8px; color: #d64545; }
.vs .us li::before { content: "✓"; margin-right: 8px; color: var(--green); }

/* Pagely's tools */
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; max-width: 560px; }
.tools li { padding: 8px 14px; border-radius: 12px; background: #fff; font-size: 14.5px; font-weight: 500; color: var(--day-ink); box-shadow: 0 0 0 1px var(--day-line); }
.band.white .tools li { background: var(--day); box-shadow: none; }

/* The signing walk-through */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: clamp(32px, 5vw, 48px) 0 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; padding: 20px 18px; border-radius: 22px; background: var(--day); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 10px; background: var(--day-ink); color: #fff; font-size: 14px; font-weight: 600; }
.steps b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.steps span { display: block; margin-top: 4px; color: var(--day-ink-2); font-size: 14.5px; line-height: 1.4; }

/* The signer's page: draw once, used in every box */
.signpad { width: min(400px, 100%); padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--day-line), 0 30px 70px rgb(13 20 51 / 0.16); text-align: left; }
.signpad h4 { margin: 0 0 12px; font-size: 17px; }
.signpad .tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.signpad .tabs span { padding: 6px 12px; border-radius: 10px; font-size: 13.5px; color: var(--day-ink-2); }
.signpad .tabs span.on { background: var(--day); color: var(--day-ink); font-weight: 600; }
.signpad .pad { position: relative; height: 130px; border-radius: 14px; background: #f7f8fc; box-shadow: inset 0 0 0 1.5px #e2e6f0; }
.signpad .pad svg { position: absolute; inset: 14px 18px; width: calc(100% - 36px); height: calc(100% - 28px); }
.signpad .pad path { fill: none; stroke: var(--day-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.signpad .agree { display: flex; align-items: center; gap: 8px; margin: 14px 0; font-size: 13.5px; color: var(--day-ink-2); }
.signpad .agree i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--blue); color: #fff; font-size: 11px; font-style: normal; }
.signpad .btns { display: flex; justify-content: flex-end; gap: 8px; }
.signpad .btns span { padding: 9px 14px; border-radius: 11px; background: var(--day); font-size: 14px; font-weight: 500; }
.signpad .btns span.go { background: var(--day-ink); color: #fff; }

/* The record page added to every signed PDF */
.record { width: min(420px, 100%); padding: 30px 30px 26px; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgb(13 20 51 / 0.08), 0 24px 60px rgb(13 20 51 / 0.14); font-size: 12.5px; text-align: left; }
.record h4 { margin: 0 0 14px; font-size: 20px; letter-spacing: -0.02em; }
.record dl { margin: 0; }
.record dt { margin-top: 9px; color: var(--day-ink-2); font-size: 11.5px; }
.record dd { margin: 1px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.record dd code { font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
.record .who { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--day-line); }
.record .who b { display: block; margin-bottom: 4px; font-size: 13px; }
.record .who span { display: block; color: var(--day-ink-2); line-height: 1.55; }
.lock { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 12px; border-radius: 12px; background: #e3f4ec; color: var(--green); font-weight: 600; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .glow .ink path { stroke-dasharray: 1; animation: ink 8s ease-in-out infinite; }
  .glow .fill { animation: spin 6s linear infinite, tint 8s ease-in-out infinite; }
  .glow .specks { animation: specks 8s ease-out infinite; }
  .glow-answer { animation: answer 8s ease-out infinite; }
  .dict .said { animation: type-in 5s steps(40) infinite alternate; }
  .spinner { animation: turn 0.9s linear infinite; }
  .two .item.new { animation: item-in 6s ease-out infinite; }
  .two .item.new + .item.new { animation-delay: 0.6s; }
  .signpad .pad path { stroke-dasharray: 1; animation: sign 6s ease-in-out infinite; }
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .feat { grid-template-columns: minmax(0, 1fr); }
  .band.flip .feat-copy { order: 0; }
  .box { min-height: 0; }
}
@media (max-width: 640px) {
  .page-bar nav { gap: 16px; }
  .page-bar nav a:not(.keep) { display: none; }
  .vs { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .two { height: 400px; }
  .two .mwin { width: 88%; }
  .hint { font-size: 11.5px; }
}
.kb { padding: 6px 11px; border-radius: 10px; background: var(--day); font-size: 13px; font-weight: 500; }
.mwin .res b { color: var(--day-ink); }
.band:not(.white) .steps li { background: #fff; }

/* Pagely's tools, one after another: merge, redact, compress, read a scan */
.tooldemo { width: min(560px, 100%); }
.td { display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 320px; }
.td-rail { margin: 0; padding: 12px 10px; list-style: none; border-right: 1px solid var(--day-line); color: var(--day-ink-2); font-size: 13.5px; }
.td-rail li { padding: 7px 10px; border-radius: 9px; transition: background 0.3s, color 0.3s; }
.td-rail li.on { background: var(--day); color: var(--day-ink); font-weight: 600; }
.td-stage { position: relative; background: #eef1f8; overflow: hidden; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; opacity: 0; transition: opacity 0.4s; }
.scene.on { opacity: 1; }
.scene .done { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 11px; background: #fff; color: var(--green); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px rgb(13 20 51 / 0.08); }
.scene .done .tick { margin: 0; }
/* Merge: two documents slide into one */
.merge .doc { position: absolute; top: 40px; width: 120px; padding: 70px 12px 12px; border-radius: 6px; background: #fff; box-shadow: 0 10px 28px rgb(13 20 51 / 0.12); font-size: 12px; }
.merge .doc b { display: block; font-size: 12.5px; }
.merge .doc small { color: var(--day-ink-2); }
.merge .doc .pg { position: absolute; left: 12px; right: 12px; height: 6px; border-radius: 3px; background: #eceff6; top: 18px; }
.merge .doc .pg + .pg { top: 32px; width: 60%; }
.merge .doc.a { left: calc(50% - 140px); }
.merge .doc.b { left: calc(50% + 20px); }
/* Redact: black bars sweep over the private bits */
.sheet.mini { width: min(320px, 100%); padding: 22px; font-size: 13px; line-height: 1.6; }
.sheet.mini p { margin: 0 0 6px; }
.red { position: relative; white-space: nowrap; }
.red::after { content: ""; position: absolute; left: -2px; top: 1px; bottom: 1px; width: calc(100% + 4px); border-radius: 2px; background: #0d1433; transform-origin: left; transform: scaleX(1); }
/* Compress: the size counts down */
.compress .file { display: flex; align-items: center; gap: 12px; width: min(300px, 100%); padding: 14px; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgb(13 20 51 / 0.1); }
.compress .file .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fdecec; color: #d64545; font-size: 12px; font-weight: 700; }
.compress .file b { display: block; font-size: 14px; }
.compress .file small { color: var(--day-ink-2); font-variant-numeric: tabular-nums; }
.compress .meter { position: absolute; top: calc(50% + 46px); left: 50%; translate: -50% 0; width: min(300px, 80%); height: 8px; border-radius: 9px; background: #dfe4f0; overflow: hidden; }
.compress .meter b { display: block; height: 100%; width: 13%; border-radius: 9px; background: var(--green); }
.compress { place-items: center; align-content: center; }
.compress .file { translate: 0 -14px; }
/* Read scan: a photo of a receipt becomes text you can select */
.ocr { grid-template-columns: 1fr 1fr; gap: 16px; }
.receipt { width: 110px; height: 150px; margin-left: auto; padding: 18px 14px; border-radius: 4px; background: #f7f3ea; box-shadow: 0 10px 24px rgb(13 20 51 / 0.12); rotate: -4deg; filter: blur(0.4px); }
.receipt span { display: block; height: 6px; margin: 10px 0; border-radius: 3px; background: #b9b2a3; }
.receipt span.s { width: 55%; margin-left: auto; background: #8f887a; }
.ocr .text { font-size: 13.5px; }
.ocr .text p { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 5px 8px; border-radius: 6px; }
.ocr .text em { font-family: inherit; font-style: normal; font-variant-numeric: tabular-nums; }
.ocr .text p:nth-child(2) { background: rgb(52 107 241 / 0.16); }

/* The big version: Pagely's own window, on the home page and at the top of /pagely. Click a tool to see it. */
.win.tooldemo { width: auto; }
.win .td { grid-template-columns: 180px minmax(0, 1fr); min-height: 470px; }
.win .td-rail { padding: 16px 12px; font-size: 14.5px; }
.win .td-rail li { padding: 9px 12px; cursor: pointer; }
.win .td-rail li:hover:not(.on) { color: var(--day-ink); }
.win .scene > :not(.done) { scale: 1.25; }
.win .merge .doc { top: calc(50% - 120px); width: 132px; }
.win .scene .done { bottom: 26px; font-size: 14px; padding: 9px 14px; }
/* Edit text: the date is rewritten in place */
.edit .sheet.mini h4, .sign .sheet.mini h4 { margin: 0 0 10px; font-size: 16px; }
.swap { position: relative; display: inline-block; }
.swap s, .swap ins { text-decoration: none; white-space: nowrap; }
.swap s { position: absolute; left: 0; top: 0; }
.swap ins { color: var(--blue); font-weight: 600; opacity: 0; }
.swap::after { content: ""; position: absolute; right: -3px; top: 2px; bottom: 2px; width: 1.5px; background: var(--blue); opacity: 0; }
@keyframes swap-out { 0%, 25% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes swap-in { 0%, 38% { opacity: 0; clip-path: inset(0 100% 0 0); } 58%, 100% { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes caret { 0%, 20% { opacity: 0; } 22%, 70% { opacity: 1; } 72%, 100% { opacity: 0; } }
/* Sign: both signatures draw in, then the seal */
.sign .sheet.mini .sigs { margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .edit.on .swap s { animation: swap-out 3.6s both; }
  .edit.on .swap ins { animation: swap-in 3.6s ease-out both; }
  .edit.on .swap::after { animation: caret 3.6s steps(1) both; }
  .tooldemo .sign .sig path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: none; }
  .tooldemo .sign.on .sig path { animation: sign 3.6s ease-in-out both; }
  .tooldemo .sign.on .sig + .sig path { animation-name: sign-2; }
}
@media (prefers-reduced-motion: reduce) {
  .swap s { opacity: 0; }
  .swap ins { opacity: 1; }
}
@media (max-width: 640px) {
  .win .td { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .win .td-rail { padding: 10px; font-size: 13.5px; }
  .win .td-rail li { padding: 7px 10px; }
  .win .td-stage { min-height: 340px; }
  .win .scene > :not(.done) { scale: 1; }
  .win .merge .doc { top: 40px; width: 104px; }
}

@keyframes merge-a { 0%, 20% { transform: none; } 55%, 100% { transform: translateX(80px) rotate(-3deg); } }
@keyframes merge-b { 0%, 20% { transform: none; } 55%, 100% { transform: translateX(-80px) translateY(8px) rotate(2deg); } }
@keyframes pop { 0%, 60% { opacity: 0; translate: -50% 6px; } 75%, 100% { opacity: 1; translate: -50% 0; } }
@keyframes bar { 0%, 15% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes shrink { 0%, 15% { width: 100%; background: #d64545; } 70%, 100% { width: 13%; background: var(--green); } }
@keyframes read { 0%, 25% { opacity: 0; translate: -8px 0; } 55%, 100% { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .merge.on .doc.a { animation: merge-a 3.6s ease-in-out both; }
  .merge.on .doc.b { animation: merge-b 3.6s ease-in-out both; }
  .scene.on .done { animation: pop 3.6s ease-out both; }
  .redact.on .red::after { animation: bar 3.6s ease-in-out both; }
  .redact.on .red + .red::after { animation-delay: 0.3s; }
  .redact.on p + p .red + .red::after { animation-delay: 0.55s; }
  .compress.on .meter b { animation: shrink 3.6s ease-in-out both; }
  .ocr.on .text p { animation: read 3.6s ease-out both; }
  .ocr.on .text p:nth-child(2) { animation-delay: 0.2s; }
  .ocr.on .text p:nth-child(3) { animation-delay: 0.4s; }
}
@media (max-width: 640px) {
  .td { grid-template-columns: minmax(0, 1fr); }
  .td-rail { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--day-line); }
  .td-rail li { white-space: nowrap; }
  .td-stage { min-height: 300px; }
  .merge .doc { width: 104px; }
  .merge .doc.a { left: calc(50% - 120px); }
  .merge .doc.b { left: calc(50% + 16px); }
  @keyframes merge-a { 0%, 20% { transform: none; } 55%, 100% { transform: translateX(66px) rotate(-3deg); } }
  @keyframes merge-b { 0%, 20% { transform: none; } 55%, 100% { transform: translateX(-66px) translateY(8px) rotate(2deg); } }
}
.two .item.row { justify-content: space-between; font-variant-numeric: tabular-nums; }
.halo .file img[src*="remy"] { border-radius: 50%; background: var(--day); }

/* /pagely: a day of PDFs, in the same timeline as the crew's Tuesday, then the verbs sliding by */
.pdfday .app-head { margin-bottom: 40px; }
.pdfday .tl { position: relative; max-width: 700px; margin: 0 auto; padding: 0; list-style: none; }
.pdfday .tl::before { content: ""; position: absolute; left: 87px; top: 10px; bottom: 10px; width: 2px; background: #eef1f8; }
.pdfday .ev { display: grid; grid-template-columns: 60px 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; }
.pdfday .ev time { text-align: right; font-size: 14px; color: var(--day-ink-2); font-variant-numeric: tabular-nums; }
.pdfday .ev .f { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--day); overflow: hidden; }
.pdfday .ev .f svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pdfday .ev .f img { width: 100%; height: 100%; }
.pdfday .ev .c { padding: 12px 16px; border-radius: 16px; background: #f5f7fc; font-size: 16px; line-height: 1.4; }
.pdfday .ev .c small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--day-ink-2); }
.pdfday .ev.bill .c { background: #e3f4ec; color: #0b6b4b; }
.pdfday .ev.bill .c b { font-weight: 600; }
.pdfday .ev.bill .c small { color: #3c7d63; }
.pdfday .verbs { margin-top: clamp(48px, 7vw, 72px); overflow: hidden; border-block: 1px solid var(--day-line); }
.pdfday .verbs div { display: flex; width: max-content; padding: 16px 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.pdfday .verbs span { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.pdfday .verbs span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.pdfday { padding-bottom: 0; }
@keyframes pdf-slide { to { transform: translateX(-50%); } }
@keyframes ev-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: no-preference) {
  .pdfday .verbs div { animation: pdf-slide 30s linear infinite; }
  .pdfday.wait .ev { opacity: 0; }
  .pdfday.play .ev { animation: ev-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--i) * 0.45s); }
}
@media (max-width: 560px) {
  .pdfday .tl::before { left: 71px; }
  .pdfday .ev { grid-template-columns: 44px 44px minmax(0, 1fr); }
  .pdfday .ev .f { width: 44px; height: 44px; border-radius: 13px; }
}
.band .app-head h2 { font-size: clamp(34px, 4.6vw, 56px); }
.page-hero .win { text-align: left; }
/* /editor and /creative: the app's own dark windows, and the examples beside them */
.dwin { margin-top: clamp(36px, 5vw, 56px); border-radius: 22px; background: #17181d; color: #eceef4; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 40px 90px rgb(13 20 51 / 0.28); overflow: hidden; font-size: 13px; line-height: 1.4; text-align: left; }
.dwin .tb { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px 0 18px; border-bottom: 1px solid rgb(255 255 255 / 0.07); background: #1d1e24; }
.dwin .tb i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dwin .tb i:nth-child(2) { background: #febc2e; }
.dwin .tb i:nth-child(3) { background: #28c840; }
.dwin .tb .title { margin: 0 auto 0 14px; font-weight: 600; color: rgb(255 255 255 / 0.75); }
.dwin .tb .act { padding: 6px 12px; border-radius: 9px; background: rgb(255 255 255 / 0.08); font-weight: 500; white-space: nowrap; }
.dwin .tb .act.blue { background: #4c7dff; color: #fff; }
.drail { margin: 0; padding: 12px 10px; list-style: none; border-right: 1px solid rgb(255 255 255 / 0.07); color: rgb(255 255 255 / 0.6); }
.drail ul { margin: 0; padding: 0; list-style: none; }
.drail li { padding: 6px 10px; border-radius: 9px; }
.drail li.on { background: rgb(255 255 255 / 0.09); color: #fff; font-weight: 600; }
.drail h6 { margin: 12px 10px 3px; font-size: 11px; font-weight: 600; color: rgb(255 255 255 / 0.38); }

/* The editor: rail, picture, settings, then the tools and timeline */
.ed { display: grid; grid-template-columns: 140px minmax(0, 1fr) 230px; }
.ed .view { display: grid; place-items: center; padding: 22px; background: #0f1014; }
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: linear-gradient(#4b4f9e, #c9739a 45%, #f3b27a 62%, #f6c48d); }
.frame .sun { position: absolute; left: 58%; top: 40%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: #ffe6b8; box-shadow: 0 0 40px 12px rgb(255 214 160 / 0.6); }
.frame .dune { position: absolute; left: -10%; right: -10%; bottom: 0; height: 42%; border-radius: 50% 50% 0 0 / 40% 60% 0 0; background: #c56a4a; }
.frame .dune.b { left: -40%; right: 30%; height: 30%; background: #a8533e; }
.frame .dune.c { left: 30%; right: -30%; height: 20%; background: #8a4334; }
.cap { position: absolute; left: 50%; bottom: 8%; translate: -50% 0; padding: 4px 12px; border-radius: 8px; background: rgb(0 0 0 / 0.45); color: #fff; font-size: clamp(12px, 1.7vw, 20px); font-weight: 800; white-space: nowrap; }
.cap b { font-weight: 800; }
.insp { padding: 16px; border-left: 1px solid rgb(255 255 255 / 0.07); }
.insp h5 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.looks span { display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: 5px 6px; border-radius: 8px; background: var(--g); font-size: 10.5px; font-weight: 600; text-shadow: 0 1px 2px rgb(0 0 0 / 0.4); }
.looks span.on { box-shadow: 0 0 0 2px #4c7dff; }
.sl { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 8px; padding: 5px 0; color: rgb(255 255 255 / 0.7); }
.sl i { position: relative; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #4c7dff var(--v), rgb(255 255 255 / 0.14) var(--v)); }
.sl i::after { content: ""; position: absolute; left: var(--v); top: 50%; width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; background: #fff; }
.tools-row { display: flex; gap: 20px; padding: 10px 18px; border-top: 1px solid rgb(255 255 255 / 0.07); color: rgb(255 255 255 / 0.62); white-space: nowrap; overflow: hidden; }
.tools-row .on { color: #fff; font-weight: 600; }
.tl-area { position: relative; padding: 8px 18px 16px; border-top: 1px solid rgb(255 255 255 / 0.07); }
.ruler { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 11px; color: rgb(255 255 255 / 0.4); font-variant-numeric: tabular-nums; }
.track { display: flex; gap: 3px; height: 46px; margin: 5px 0; }
.track .clip { flex: var(--w); border-radius: 6px; background: var(--g); }
.track .clip.sel { box-shadow: inset 0 0 0 2px #4c7dff; }
.track.text { height: 22px; }
.track.text .clip { padding: 3px 8px; background: #6f5cf2; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.track.audio { height: 28px; }
.track.audio .clip { background: repeating-linear-gradient(90deg, rgb(111 224 168 / 0.75) 0 2px, transparent 2px 5px) center / 100% 60% no-repeat, #1f4f40; }
.playhead { position: absolute; top: 28px; bottom: 12px; left: 30%; width: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.3); }
.playhead::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 3px; background: #fff; }

/* Edit by transcript, captions on a phone, the chat and the export sheet */
.script p { margin: 0; font-size: 17px; line-height: 1.6; }
.script s { padding: 0 3px; border-radius: 5px; background: rgb(214 69 69 / 0.14); color: #d64545; }
.script-go { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.script-go .go { padding: 8px 14px; border-radius: 10px; background: var(--day-ink); color: #fff; font-size: 14px; font-weight: 500; }
.phone-cap { width: min(250px, 70%); padding: 10px; border-radius: 38px; background: #0d0e12; box-shadow: 0 30px 70px rgb(13 20 51 / 0.25); }
.phone-cap .frame.tall { aspect-ratio: 9 / 17; border-radius: 30px; }
.phone-cap .frame .sun { left: 40%; top: 30%; width: 20%; }
.cap.big { bottom: 22%; padding: 0; background: none; font-size: 22px; text-align: center; white-space: normal; width: 86%; text-shadow: 0 2px 8px rgb(0 0 0 / 0.45); }
.chat .me { margin: 0 0 12px auto; width: fit-content; max-width: 80%; padding: 9px 13px; border-radius: 14px; background: var(--day-ink); color: #fff; }
.did { margin: 0; padding: 0; list-style: none; }
.did li { padding: 4px 0; }
.shorts { display: flex; gap: 10px; margin-top: 12px; }
.shorts span { display: flex; align-items: flex-start; justify-content: flex-start; width: 70px; aspect-ratio: 9 / 16; padding: 6px 8px; border-radius: 10px; background: var(--g); color: #fff; font-weight: 700; }
.exp > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--day-line); }
.exp > div.script-go { border: 0; }
.exp small { color: var(--day-ink-2); font-size: 13px; }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; padding: 2px; border-radius: 9px; background: #eef1f8; }
.seg i { padding: 4px 9px; border-radius: 7px; font-size: 12.5px; font-style: normal; color: var(--day-ink-2); }
.seg i.on { background: #fff; color: var(--day-ink); font-weight: 600; box-shadow: 0 1px 3px rgb(13 20 51 / 0.12); }
.refs { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.refs i { width: 26px; height: 26px; border-radius: 7px; background: var(--g); }
.refs i + i, .refs i:not(:first-child) { margin-left: 6px; }

/* Creative: the studio's tools, a feed of what it made, and the prompt */
.cr { display: grid; grid-template-columns: 140px minmax(0, 1fr); }
.studio { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 18px; background: #121317; }
.feed .ask { margin: 0 0 12px auto; width: fit-content; max-width: 70%; padding: 9px 13px; border-radius: 14px; background: rgb(255 255 255 / 0.08); }
.feed .at, .prompt .at { color: #8fb0ff; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shot { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--g); overflow: hidden; }
.shot .len, .shot .cost { position: absolute; bottom: 6px; padding: 2px 7px; border-radius: 7px; background: rgb(0 0 0 / 0.5); font-size: 11px; font-style: normal; }
.shot .len { left: 6px; }
.shot .cost { right: 6px; }
.shot .making { position: absolute; inset: 0; display: grid; place-items: center; background: #23252e; font-weight: 600; color: rgb(255 255 255 / 0.7); opacity: 0; }
.prompt { padding: 12px 14px; border-radius: 16px; background: #1d1e24; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.prompt p { margin: 0 0 10px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 5px 10px; border-radius: 8px; background: rgb(255 255 255 / 0.07); font-size: 12px; color: rgb(255 255 255 / 0.8); }
.chips .go { margin-left: auto; background: #4c7dff; color: #fff; font-weight: 600; }
.kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(460px, 100%); }
.cast .who { padding: 14px 10px; border-radius: 18px; background: #fff; text-align: center; }
.cast .av { display: block; width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; background: var(--g); }
.cast .who b { display: block; font-size: 14px; }
.cast .who small { color: var(--day-ink-2); font-size: 12px; }
.board { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.board span { aspect-ratio: 16 / 9; padding: 4px 7px; border-radius: 8px; background: var(--g); color: #fff; font-size: 12px; font-weight: 700; }
.ep { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--day-ink-2); font-size: 13px; }
.spend .totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.spend .totals div { padding: 10px 12px; border-radius: 12px; background: #f5f7fc; }
.spend .totals small { display: block; color: var(--day-ink-2); font-size: 12px; }
.spend .totals b { font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.spend .by { display: grid; grid-template-columns: 110px minmax(0, 1fr) 56px; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.spend .by i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--blue) var(--v), #eef1f8 var(--v)); }
.spend .by em { font-family: inherit; font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }

@keyframes lit { 0%, 2% { color: #ffd84a; } 15%, 100% { color: #fff; } }
@keyframes play { from { left: 18px; } to { left: calc(100% - 20px); } }
@keyframes making { 0%, 55% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes strike { 0%, 30% { text-decoration: none; } 40%, 100% { text-decoration: line-through; } }
@media (prefers-reduced-motion: no-preference) {
  .cap b { animation: lit 4s infinite; animation-delay: calc(var(--i) * 0.55s); }
  .playhead { animation: play 12s linear infinite; }
  .shot .making { animation: making 7s ease-out infinite; }
  .script s { animation: strike 4s steps(1) infinite alternate; }
}
@media (max-width: 960px) {
  .ed { grid-template-columns: minmax(0, 1fr) 210px; }
  .ed .drail { display: none; }
}
@media (max-width: 860px) {
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .dwin .tb .act:not(.blue) { display: none; }
  .ed { grid-template-columns: minmax(0, 1fr); }
  .ed .insp { display: none; }
  .ed .view { padding: 12px; }
  .cr { grid-template-columns: minmax(0, 1fr); }
  .cr .drail { display: flex; gap: 2px; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 0.07); }
  .cr .drail ul { display: flex; gap: 2px; }
  .cr .drail h6 { display: none; }
  .cr .drail li { white-space: nowrap; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots .shot:first-child { display: none; }
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .spend .by { grid-template-columns: 96px minmax(0, 1fr) 50px; }
  .page-bar nav { overflow-x: auto; scrollbar-width: none; min-width: 0; white-space: nowrap; }
}
