/* Creago, the home page (index.html), version 5. Shared parts are in css/creago.css. */

.anchor { position: absolute; top: 0; }

/* =====================================================================
   1. The first screen
   ===================================================================== */
.hero { position: relative; padding: 100px 0 24px; text-align: center; isolation: isolate; overflow: hidden; }
.hero-copy { display: grid; justify-items: center; gap: 18px; }
.hero-pill { padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--t1); }
.hero .h1 { max-width: 13ch; font-size: clamp(42px, 5.5vw, 76px); }
.hero .lead { margin: 0 auto; max-width: 700px; }
.hero-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.hero-own { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--t2); }
.hero-own svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.5; }

/* the words rise in one by one on load */
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .22s; }
.hero-copy > :nth-child(5) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(10px); } }

/* the stage: the request, the line with the middle phone's style and views, then the fan of five phones.
   On phones the line goes under the fan (each phone shows its @handle on the picture) */
.stage { position: relative; display: flex; flex-direction: column; margin: 20px auto 0; width: 100%; max-width: 1180px; padding: 0 var(--gutter); animation: rise 1.2s var(--ease) .35s both; }
/* fix 3 (18 Nov 2026): the videos first, then the style line, then the request under them */
.stage .fan { order: 1; margin-top: 0; }
.stage .fan-cap { order: 2; }
.stage .ask { order: 3; margin-top: 16px; }
.fan { position: relative; height: 440px; margin-top: 14px; perspective: 1400px; }
.ph { --w: 222px; position: absolute; left: 50%; top: 0; width: var(--w); margin: 0 0 0 calc(var(--w) / -2); aspect-ratio: 9 / 16;
  transition: transform 1s var(--ease), opacity 1s var(--ease), filter 1s var(--ease); will-change: transform;
  --x: calc(var(--p) * 214px); --r: calc(var(--p) * 7deg); --s: calc(1 - min(1, max(var(--p), calc(var(--p) * -1))) * .16);
  transform: translateX(var(--x)) translateY(calc(max(var(--p), calc(var(--p) * -1)) * 34px)) rotate(var(--r)) scale(var(--s));
  z-index: calc(10 - max(var(--p), calc(var(--p) * -1)) * 3); }
.ph[data-p="2"], .ph[data-p="-2"] { opacity: .78; filter: saturate(.85) brightness(.72); }
.ph[data-p="1"], .ph[data-p="-1"] { opacity: .94; filter: brightness(.86); }
/* the label on each phone: the account's @handle, plain text (17 Nov 2026: no "Original by" line) */
.ph-tag { position: absolute; left: 12px; top: 12px; z-index: 3; display: grid; gap: 1px; max-width: calc(100% - 24px); padding: 6px 11px 7px; border-radius: 12px;
  font-size: 13px; line-height: 1.25; color: #fff; text-align: left;
  background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: opacity .5s; }
/* the account on one line (17 Nov 2026, fourth review: a break inside the name read as a different account). --n is
   the length of the name: the text gets smaller on a small phone so the whole name fits (--w is the phone's width) */
.ph-tag b { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 650;
  font-size: clamp(10px, calc((var(--w) - 48px) / (var(--n, 16) * .62)), 13px); }
.ph:not([data-p="0"]) .ph-tag { opacity: 0; }
.ph .bezel { display: block; height: 100%; border-radius: 34px; padding: 6px; }
.ph .scr { height: 100%; border-radius: 28px; }
.ph .scr video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.ph .scr video.on { opacity: 1; }
.ph[data-p="0"] .bezel { box-shadow: 0 50px 80px -30px #000, inset 0 1px 0 rgba(255, 255, 255, .18), 0 0 0 1px rgba(0, 0, 0, .6); }
.ph:not([data-p="0"]) .bezel { cursor: pointer; }

.ask { position: relative; z-index: 20; display: flex; align-items: center; gap: 12px; width: min(900px, 100%); min-height: 62px; margin: 0 auto; padding: 10px 10px 10px 12px; border-radius: 22px; text-align: left;
  background: rgba(16, 16, 20, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -20px #000; }
.ask-you { flex: none; font-size: 13.5px; font-weight: 600; color: var(--t1); padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); white-space: nowrap; }
.ask-text { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.45; color: #fff; text-wrap: balance; }
.ask-go { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, var(--btn-top), var(--btn-bottom)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .3s var(--spring); }
.ask-go:hover { transform: translateY(-2px); }
.ask-go svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: var(--accent); animation: blink 1s steps(1) infinite; border-radius: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.fan-cap { position: relative; z-index: 20; margin: 14px auto 0; max-width: 640px; font-size: 14px; line-height: 1.5; color: var(--t1); min-height: 1.5em; text-wrap-style: pretty; transition: opacity .4s; }
.fan-cap b { color: #fff; font-weight: 650; }
.fan-cap.fade { opacity: 0; }

@media (max-width: 860px) {
  .hero { padding-top: 108px; }
  .fan { height: 400px; }
  .ph { --w: 200px; --x: calc(var(--p) * 150px); }
  .ph .bezel { border-radius: 28px; padding: 5px; }
  .ph .scr { border-radius: 23px; }
}
@media (max-width: 720px) {
  .stage .fan-cap { margin-top: 12px; }
}
@media (max-width: 520px) {
  .hero { padding: 86px 0 16px; }
  .hero-copy { gap: 12px; }
  .hero-pill { padding: 6px 12px 6px 10px; font-size: 13px; }
  .hero .lead { font-size: 16px; line-height: 1.5; }
  .hero .h1 { font-size: clamp(40px, 11.5vw, 50px); }
  .hero-acts { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 2px; }
  .hero-acts .btn { width: 100%; height: 50px; }
  .hero-own { font-size: 14px; }
  .stage { margin-top: 18px; }
  .fan { height: 346px; margin-top: 14px; }
  .ph { --w: 176px; --x: calc(var(--p) * 118px); }
  .ph[data-p="2"], .ph[data-p="-2"] { opacity: 0; }
  .ph-tag { left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 5px 9px 6px; }
  .ask { min-height: 56px; padding: 6px 6px 6px 8px; gap: 8px; border-radius: 18px; }
  .ask-you { font-size: 13px; padding: 5px 8px; }
  .ask-text { font-size: 14px; }
  .ask-go { width: 44px; height: 44px; border-radius: 12px; }
  .fan-cap { font-size: 13.5px; }
}

/* =====================================================================
   2. The showcase: a tilted wall that slides by itself, two rows in opposite directions
   ===================================================================== */
.showcase .head { margin-bottom: 24px; }
.showcase .lead { max-width: 720px; }
.sc-switch { display: flex; justify-content: center; }
.wall { position: relative; height: clamp(500px, 50vw, 640px); margin-top: 10px; overflow: hidden; overflow: clip; perspective: 1200px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.wall-in { position: absolute; left: 50%; top: 50%; display: grid; gap: 22px; width: max-content; transform: translate(-50%, -50%) rotateX(20deg) rotateZ(-7deg); transform-style: preserve-3d; }
.wrow { display: flex; width: max-content; justify-self: center; align-items: end; }
.wrow-2 { align-items: start; }
.track { display: flex; gap: 18px; padding-right: 18px; animation: wallrun var(--dur, 60s) linear infinite; will-change: transform; }
.wrow-2 .track { animation-direction: reverse; }
/* a row can hold tall and wide tiles (YouTube): the first row lines them up along the bottom, the second along the
   top, so the two rows meet in a straight line */
.wrow-1 .track { align-items: flex-end; }
.wrow-2 .track { align-items: flex-start; }
@keyframes wallrun { to { transform: translateX(-33.3333%); } }   /* each row holds its tiles three times */
.wall.idle .track, .wall.hold .track, .wall:focus-within .track { animation-play-state: paused; }
/* a keyboard user tabbing through the wall: js/home.js stops the row and slides it so the tile is in view */
.track.kb { animation: none; transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .wall:hover .track { animation-play-state: paused; } }

.tile { position: relative; flex: none; display: block; container-type: inline-size; width: 196px; outline-offset: 4px; border-radius: 22px; transition: transform .5s var(--spring); }
.tile.tile-wide { width: 360px; }
.tile .bezel { border-radius: 22px; }
.tile .scr { aspect-ratio: 9 / 16; border-radius: 18px; }
.tile-wide .scr { aspect-ratio: 16 / 9; }
.tile .scr::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, .55) 68%, rgba(0, 0, 0, .9)); pointer-events: none; }
.tile video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.tile video.on { opacity: 1; }
/* the views and, under them, the account on one line; --n is the length of the name, the text gets smaller so the
   whole name fits the tile (17 Nov 2026, fourth review: a break inside the name read as a different account) */
.tile-meta { position: absolute; left: 14px; right: 12px; bottom: 12px; z-index: 2; display: grid; gap: 5px; }
.tile-v { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.tile-v small { margin-left: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .78); }
.tile-h { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: clamp(9.5px, calc((100cqi - 32px) / (var(--n, 16) * .62)), 13px); font-weight: 600; line-height: 1.25; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.tile-wide .tile-meta { left: 16px; bottom: 13px; }
.tile-wide .tile-v { font-size: 26px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { transform: translateY(-8px) scale(1.04); }
  .tile:hover .bezel { box-shadow: 0 40px 60px -24px #000, inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 1px rgba(255, 255, 255, .1); }
}
.sc-foot { display: grid; justify-items: center; gap: 14px; margin-top: 14px; text-align: center; }
.sc-note { max-width: 560px; font-size: 13px; color: var(--t3); }
@media (max-width: 720px) {
  .wall { height: 470px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent); }
  .wall-in { gap: 14px; transform: translate(-50%, -50%) rotateX(18deg) rotateZ(-7deg) scale(.92); }
  .track { gap: 12px; padding-right: 12px; }
  .tile { width: 128px; border-radius: 18px; }
  .tile .bezel { border-radius: 18px; padding: 3px; }
  .tile .scr { border-radius: 15px; }
  .tile.tile-wide { width: 236px; }
  .tile-meta { left: 9px; right: 7px; bottom: 9px; gap: 4px; }
  .tile-v { font-size: 19px; }
  .tile-v small { font-size: 12.5px; margin-left: 3px; }
  .tile-h { font-size: clamp(9.5px, calc((100cqi - 20px) / (var(--n, 16) * .62)), 12.5px); }
  .tile-wide .tile-meta { left: 12px; bottom: 10px; }
  .tile-wide .tile-v { font-size: 21px; }
  /* the YouTube wall on a phone: Shorts a little smaller and both kinds centred on their row, so the two rows are
     even and the wall is only as tall as they are (17 Nov, third review) */
  .wall-yt { height: 400px; }
  .wall-yt .tile:not(.tile-wide) { width: 104px; }
  .wall-yt .wrow .track { align-items: center; }
}

/* =====================================================================
   3. How it works
   ===================================================================== */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.way { position: relative; display: grid; grid-template-rows: auto 1fr; text-align: left; border-radius: 24px; padding: 8px; background: var(--card); color: var(--t1);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .05); transition: box-shadow .35s var(--ease), background-color .35s, transform .45s var(--spring); }
.way:hover { background: rgba(255, 255, 255, .045); transform: translateY(-3px); }
.way[aria-pressed="true"] { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(168, 152, 255, .42), inset 0 1px 0 rgba(255, 255, 255, .08); }
.way-pic { position: relative; display: block; height: 190px; border-radius: 18px; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #15151b, #09090c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.way-t { display: grid; gap: 6px; padding: 18px 14px 14px; }
.way-n { font-size: 13px; font-weight: 600; color: var(--t3); font-variant-numeric: tabular-nums; }
.way-t b { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.way-t > span:last-child { font-size: 15px; line-height: 1.5; color: var(--t2); }
.way[aria-pressed="true"] .way-n { color: var(--accent); }

/* way 1: three tall posters fanned, the middle one picked */
.wl { position: absolute; top: 26px; width: 84px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 3px #1c1c22, 0 20px 30px -12px #000; transition: transform .6s var(--ease); }
.wl img { width: 100%; height: 100%; object-fit: cover; }
.wl-a { left: calc(50% - 112px); transform: rotate(-10deg) translateY(14px); filter: brightness(.6); }
.wl-c { left: calc(50% + 28px); transform: rotate(10deg) translateY(14px); filter: brightness(.6); }
.wl-b { left: calc(50% - 46px); width: 92px; top: 18px; z-index: 2; box-shadow: 0 0 0 3px #22222a, 0 0 0 4.5px rgba(168, 152, 255, .7), 0 24px 40px -12px #000; }
.wl-b i { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .7); }
.way:hover .wl-a { transform: rotate(-14deg) translate(-6px, 10px); }
.way:hover .wl-c { transform: rotate(14deg) translate(6px, 10px); }

/* way 2: a frame being read, then its colours and "style saved" */
.wv-frame { position: absolute; left: 50%; top: 24px; width: 220px; aspect-ratio: 16 / 9; transform: translateX(-50%); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 3px #1c1c22, 0 20px 30px -12px #000; }
.wv-frame img { width: 100%; height: 100%; object-fit: cover; }
.wv-scan { position: absolute; top: 0; bottom: 0; width: 2px; left: 0; background: #fff; box-shadow: 0 0 14px 3px rgba(168, 152, 255, .8); animation: scan 3.2s var(--ease) infinite; }
@keyframes scan { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.wv-sw { position: absolute; left: 50%; bottom: 22px; display: flex; gap: 6px; transform: translateX(-74px); }
.wv-sw i { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.wv-ok { position: absolute; left: 50%; bottom: 20px; transform: translateX(44px); padding: 3px 8px; border-radius: 7px; font-size: 12px; font-weight: 600; line-height: 14px; color: var(--accent); background: var(--accent-dim); white-space: nowrap; }

/* way 3: three looks, B picked */
.wb { position: absolute; top: 34px; width: 92px; height: 116px; border-radius: 14px; display: grid; place-items: center; box-shadow: 0 0 0 3px #1c1c22, 0 20px 30px -12px #000; transition: transform .6s var(--ease); }
.wb b { font-size: 40px; line-height: 1; }
.wb i { position: absolute; left: 8px; top: 7px; font-style: normal; font-size: 12px; font-weight: 700; opacity: .75; }
.wb-a { left: calc(50% - 150px); transform: rotate(-6deg); background: linear-gradient(160deg, #efe6d6, #d9c9ad); color: #4a3424; }
.wb-a b { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-style: italic; }
.wb-b { left: calc(50% - 46px); top: 26px; z-index: 2; background: radial-gradient(120% 90% at 50% 110%, #ff8a3d, #4a1c0a 60%, #140806); color: #fff; box-shadow: 0 0 0 3px #22222a, 0 0 0 4.5px rgba(168, 152, 255, .7), 0 24px 40px -12px #000; }
.wb-b b { font-weight: 800; letter-spacing: -0.06em; }
.wb-c { left: calc(50% + 58px); transform: rotate(6deg); background: linear-gradient(160deg, #1d2b4f, #0d1428); color: #9fd0ff; }
.wb-c b { font-family: var(--mono); font-weight: 500; font-size: 32px; }
.way:hover .wb-a { transform: rotate(-10deg) translateX(-6px); }
.way:hover .wb-c { transform: rotate(10deg) translateX(6px); }

/* the Claude Code window */
.term { margin: 18px auto 0; max-width: 860px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #0e0e12, #09090b);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .07), 0 40px 80px -30px #000; }
.term-bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.term-name { font-size: 13px; font-weight: 600; color: var(--t2); }
.term-where { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--t2); }
.term-where i { width: 7px; height: 7px; border-radius: 50%; background: #5be08a; box-shadow: 0 0 8px rgba(91, 224, 138, .7); }
.term-body { padding: 22px 24px 18px; }
.t-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 16.5px; line-height: 1.5; color: #fff; min-height: 50px; }
.t-you { font-size: 13px; font-weight: 600; color: var(--t2); padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.t-file { display: none; font-size: 13px; font-weight: 600; color: var(--accent); padding: 3px 9px; border-radius: 999px; background: var(--accent-dim); }
.term[data-way="vid"] .t-file { display: inline-block; }
.t-ask-text { min-height: 1.5em; }
.t-ask .caret { display: none; }
.term.typing .t-ask .caret { display: inline-block; }
.t-steps { display: grid; gap: 2px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .08); }
.t-steps li { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; color: var(--t1); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.t-ic { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); }
.t-steps li.done .t-ic { background: #fff; box-shadow: none; }
.t-steps li.done .t-ic::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #09090b; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.t-steps li.on .t-ic { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .15); }
.t-steps li.on .t-ic::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.t-txt { flex: 1; min-width: 0; }
.t-txt > b:not(.t-title) { color: #fff; font-weight: 500; font-size: 14px; }
.t-yes { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-dim); box-shadow: inset 0 0 0 1px rgba(168, 152, 255, .2); transition: opacity .35s, transform .45s var(--spring); }
.t-end .t-txt { color: #fff; font-weight: 600; }
/* the three yeses on one row: each part ticks when you have said yes */
.t-gates { flex-wrap: wrap; row-gap: 6px; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chips i { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--t2);
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, background-color .3s, box-shadow .3s; }
.t-chips i::before { content: ""; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); transition: background-color .3s, box-shadow .3s; }
.t-chips i.ok { color: #fff; background: var(--accent-dim); box-shadow: inset 0 0 0 1px rgba(168, 152, 255, .3); }
.t-chips i.ok::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.2 6.2 5.2 8.1 8.9 4.2' fill='none' stroke='%2309090b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.term [data-for] { display: none; }
.term[data-way="lib"] [data-for="lib"], .term[data-way="vid"] [data-for="vid"], .term[data-way="blank"] [data-for="blank"] { display: inline; }
.term[data-way="vid"] .t-file[data-for="vid"] { display: inline-block; }
.t-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; min-height: 30px; }
.t-bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--f, 1)); background: linear-gradient(90deg, #5b3fe0, #b4a6ff); transition: transform .5s var(--ease); }
.t-replay { padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--t1); background: rgba(255, 255, 255, .06); min-height: 44px; }
.t-replay:hover { color: #fff; background: rgba(255, 255, 255, .1); }
/* while it plays: steps not reached yet are faint, a yes waits until its step is done */
.term.run .t-steps li:not(.done):not(.on) { opacity: .4; }
.term.run .t-steps li:not(.done) .t-yes { opacity: 0; transform: scale(.7); }

.how-note { margin-top: 22px; text-align: center; color: var(--t2); }
@media (max-width: 860px) {
  .ways { gap: 10px; }
  .way-pic { height: 118px; }
  .wl { top: 14px; width: 60px; } .wl-b { width: 64px; top: 10px; left: calc(50% - 32px); } .wl-a { left: calc(50% - 84px); } .wl-c { left: calc(50% + 24px); }
  .wv-frame { width: 160px; top: 14px; } .wv-sw, .wv-ok { bottom: 12px; }
  .wb { width: 58px; height: 76px; top: 24px; } .wb-a { left: calc(50% - 94px); } .wb-b { left: calc(50% - 29px); top: 18px; } .wb-c { left: calc(50% + 36px); }
  .wb b { font-size: 28px; }
  .wv-frame { width: 136px; top: 12px; }
  .wv-sw { bottom: 10px; transform: translateX(-50%); gap: 4px; }
  .wv-sw i { width: 14px; height: 14px; border-radius: 5px; }
  .wv-ok { display: none; }
  .way-t { padding: 12px 10px 8px; gap: 4px; }
  .way-t b { font-size: 17px; }
  .way-t > span:last-child { font-size: 14px; }
  .term { margin-top: 12px; border-radius: 18px; }
  .term-body { padding: 16px 16px 12px; }
  .term-where { display: none; }
  .t-ask { font-size: 15px; min-height: 68px; }
  .t-steps { margin-top: 12px; padding-top: 10px; }
  .t-steps li { font-size: 14px; gap: 10px; min-height: 40px; }
  .t-yes { font-size: 13px; padding: 2px 9px; }
  .t-chips { flex-basis: 100%; padding: 0 0 8px 30px; }
}
/* phones: the three ways as three short rows stacked, so all three are seen at once (17 Nov, third review: in a swipe
   row only the first title showed); a tap picks one and the window runs it */
@media (max-width: 719px) {
  .ways { grid-template-columns: none; gap: 8px; }
  .way { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: none; align-items: center; gap: 4px; padding: 6px; border-radius: 20px; }
  .way:hover { transform: none; }
  .way-pic { height: 96px; border-radius: 15px; }
  .way-t { padding: 4px 8px 4px 8px; gap: 3px; }
  .way-t b { font-size: 16px; line-height: 1.25; }
  .way-t > span:last-child { font-size: 13.5px; line-height: 1.4; }
  .way-n { display: none; }
  .wl { top: 18px; width: 44px; border-radius: 8px; } .wl-b { width: 48px; top: 14px; left: calc(50% - 24px); } .wl-a { left: calc(50% - 58px); } .wl-c { left: calc(50% + 14px); }
  .wl-b i { display: none; }
  .wv-frame { width: 96px; top: 18px; border-radius: 8px; } .wv-sw { bottom: 16px; transform: translateX(-36px); gap: 3px; } .wv-sw i { width: 12px; height: 12px; border-radius: 4px; }
  .wv-ok { display: none; }
  .wb { width: 40px; height: 52px; top: 30px; border-radius: 9px; } .wb-a { left: calc(50% - 50px); } .wb-b { left: calc(50% - 20px); top: 24px; } .wb-c { left: calc(50% + 12px); }
  .wb b { font-size: 18px; } .wb i { display: none; }
  .term { margin-top: 12px; }
}

/* =====================================================================
   4. The style library teaser: a framed mosaic of six styles
   ===================================================================== */
.mosaic { display: grid; grid-template-columns: 1fr 1.7fr 1.7fr 1fr; grid-template-rows: repeat(2, auto); gap: 14px; align-items: stretch; }
.mo { position: relative; display: block; container-type: inline-size; border-radius: 20px; transition: transform .5s var(--spring); }
.mo .bezel { height: 100%; }
.mo .scr { height: 100%; }
.mo-tall { grid-row: span 2; }
.mo-tall .scr { height: 100%; }
.mo-tall .scr img { position: absolute; inset: 0; }
.mo-wide .scr { aspect-ratio: 16 / 9; }
.mo .scr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .6) 68%, rgba(0, 0, 0, .92)); }
.mo-t { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: grid; gap: 1px; min-width: 0; text-align: left; }
.mo-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: #fff; line-height: 1.3; text-wrap-style: pretty; margin-bottom: 2px; }
.mo-t span { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-t .mo-v { color: #fff; font-weight: 600; }
/* the account, on the picture, on one line: --n is the length of the name, the text gets smaller so it fits */
.mo-t .mo-h { font-size: clamp(10px, calc((100cqi - 30px) / (var(--n, 16) * .62)), 13px); color: rgba(255, 255, 255, .86); }
@media (hover: hover) and (pointer: fine) { .mo:hover { transform: translateY(-5px); } }
.lib-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.lib-cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--t1); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, color .2s; }
.lib-cats a span { font-size: 13px; font-weight: 600; color: var(--t3); font-variant-numeric: tabular-nums; }
.lib-cats a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.lib-go { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 860px) {
  /* a swipe row of six same-size frames, the words under each frame */
  .mosaic { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .mosaic::-webkit-scrollbar { display: none; }
  .mo { flex: none; width: min(46%, 240px); scroll-snap-align: start; }
  .mo .bezel, .mo .scr { height: auto; }
  .mo .scr, .mo-tall .scr, .mo-wide .scr { aspect-ratio: 3 / 4; }
  .mo .scr img, .mo-tall .scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  /* the name, the account and the views stay on the picture (17 Nov 2026: the credit sits on the thumbnail) */
  .mo-t { left: 10px; right: 10px; bottom: 10px; }
  .mo-t b { font-size: 14px; }
  .mo-t span { font-size: 12.5px; }
  .mo-t .mo-h { font-size: clamp(10px, calc((100cqi - 22px) / (var(--n, 16) * .62)), 12.5px); }
  .lib-cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 6px; margin: 16px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); scrollbar-width: none; }
  .lib-cats::-webkit-scrollbar { display: none; }
  .lib-cats a { flex: none; padding: 0 14px; font-size: 14px; }
}

/* =====================================================================
   5. The plans
   ===================================================================== */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.plans.one { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 30px; }
.plan-main { background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(168, 152, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9); }
.plan-tag { font-size: 14px; font-weight: 600; color: var(--t2); }
.plan-main .plan-tag { color: var(--accent); }
.plan-price { display: flex; align-items: baseline; gap: 10px; }
.plan-price b { font-size: 60px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: #fff; }
.plan-price span { font-size: 17px; font-weight: 500; color: var(--t2); }
.plan-what { font-size: 16px; line-height: 1.55; color: var(--t1); }
.plan-list { display: grid; gap: 10px; margin: 2px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan-list li { position: relative; padding-left: 28px; font-size: 15px; color: var(--t1); }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.plan-list li::after { content: ""; position: absolute; left: 8px; top: 6px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.plan-main .plan-list li::before { background: rgba(116, 88, 246, .45); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-note { margin: 20px auto 0; text-align: center; max-width: 560px; }
.plan-note { max-width: 640px; text-wrap-style: pretty; }
@media (max-width: 860px) {
  .plan { padding: 24px 20px; }
  .plan-price b { font-size: 52px; }
}
@media (max-width: 699px) { .plans { grid-template-columns: none; } }

/* =====================================================================
   6. Questions
   ===================================================================== */
.h2-one { font-size: clamp(32px, 4.4vw, 52px); }
.qa { display: grid; gap: 10px; }
.qa details { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s; }
.qa details[open] { background: rgba(255, 255, 255, .045); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 14px 20px; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 600; color: #fff; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .06) no-repeat center / 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.5v9M1.5 6h9' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .35s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 20px 18px; font-size: 15.5px; line-height: 1.6; color: var(--t1); }

/* =====================================================================
   7. The end
   ===================================================================== */
.end { overflow: hidden; }
.end-glow { position: absolute; left: 50%; top: 50%; width: min(1000px, 140vw); height: 100%; max-height: 420px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(86, 60, 210, .11), rgba(86, 60, 210, .04) 55%, transparent); }
.end-in { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; }
.end .lead { margin: 0 auto; }
@media (max-width: 520px) { .end .hero-acts { width: 100%; } }

/* =====================================================================
   18 Nov 2026 fixes
   ===================================================================== */
/* "Works with": the five AI coding apps (Claude Code first, the one Creago is built for). Real brand marks from /grab */
.works { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 2px; }
.works-label { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--t3); }
.works-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.agent { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 9px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), background-color .3s, box-shadow .3s; }
.agent img { width: 20px; height: 20px; display: block; }
.agent img.sq { border-radius: 5px; }
.agent em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--t3); padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.agent.ready { background: rgba(217, 119, 87, .1); box-shadow: inset 0 0 0 1px rgba(217, 119, 87, .35); }
.agent:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .07); }
.agent.ready:hover { background: rgba(217, 119, 87, .16); }
@media (prefers-reduced-motion: no-preference) {
  .works .agent { animation: agentIn .7s var(--ease) both; }
  .works .agent:nth-child(1) { animation-delay: .45s; }
  .works .agent:nth-child(2) { animation-delay: .55s; }
  .works .agent:nth-child(3) { animation-delay: .65s; }
  .works .agent:nth-child(4) { animation-delay: .75s; }
  .works .agent:nth-child(5) { animation-delay: .85s; }
  .agent.ready img { animation: agentGlow 3.2s ease-in-out 1.4s infinite; }
}
@keyframes agentIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes agentGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(217, 119, 87, 0)); } 50% { filter: drop-shadow(0 0 6px rgba(217, 119, 87, .7)); } }
@media (max-width: 520px) {
  .works { gap: 8px; }
  .works-label { flex-basis: 100%; text-align: center; }
  .agent { height: 32px; font-size: 13px; padding: 0 10px 0 8px; gap: 6px; }
  .agent img { width: 18px; height: 18px; }
}

/* the run panel as a timeline (fix 5): a line joins the steps, each step has a title and one plain line,
   and the last step shows the finished file */
.term-body { padding: 24px 26px 18px; }
.t-ask { align-items: flex-start; flex-wrap: nowrap; gap: 12px; min-height: 0; }
.t-you { flex: none; margin-top: 4px; }
.t-bubble { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 4px 16px 16px 16px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--line); min-height: 50px; }
.t-steps { position: relative; gap: 0; margin-top: 22px; padding-top: 0; border-top: 0; }
.t-steps li { position: relative; align-items: flex-start; gap: 14px; min-height: 0; padding: 0 0 20px; }
.t-steps li:last-child { padding-bottom: 4px; }
.t-steps li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.t-steps li:last-child::before { display: none; }
.t-steps li.done::before { background: linear-gradient(180deg, rgba(180, 166, 255, .7), rgba(180, 166, 255, .25)); }
.t-ic { width: 28px; height: 28px; margin-top: 0; background: #0e0e12; }
.t-steps li.done .t-ic { background: #fff; }
.t-steps li.done .t-ic::after { left: 11px; top: 7px; width: 6px; height: 11px; }
.t-txt { display: grid; gap: 4px; padding-top: 3px; }
.t-title { font-size: 16px; font-weight: 650; color: #fff; letter-spacing: -0.01em; }
.t-desc { font-size: 14.5px; color: var(--t2); }
.t-gates { flex-wrap: nowrap; }
.t-steps .t-chips { margin-top: 6px; padding: 0; flex-basis: auto; }
.t-out { display: flex; align-items: center; gap: 14px; margin-top: 8px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); max-width: 420px; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.t-thumb { position: relative; flex: none; width: 56px; height: 72px; border-radius: 10px; overflow: hidden; background: #000; }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; }
.term .t-thumb img[data-for] { display: none; }
.term[data-way="lib"] .t-thumb img[data-for="lib"], .term[data-way="vid"] .t-thumb img[data-for="vid"], .term[data-way="blank"] .t-thumb img[data-for="blank"] { display: block; }
.t-thumb i { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.t-thumb i::after { content: ""; position: absolute; left: 9px; top: 7px; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.t-file-meta { display: grid; gap: 2px; min-width: 0; }
.t-file-meta b { font-size: 15px; font-weight: 650; color: #fff; overflow-wrap: anywhere; }
.t-file-meta small { font-size: 13px; color: var(--t2); }
.term.run .t-steps li:not(.done) .t-out { opacity: 0; transform: translateY(6px); }
.term.run .t-steps li:not(.done):not(.on) { opacity: .45; }
@media (max-width: 720px) {
  .term-body { padding: 18px 16px 12px; }
  .t-ask { gap: 8px; }
  .t-bubble { padding: 10px 12px; font-size: 15px; }
  .t-steps { margin-top: 16px; }
  .t-steps li { gap: 12px; padding-bottom: 16px; }
  .t-title { font-size: 15px; }
  .t-desc { font-size: 13.5px; }
  .t-steps .t-chips { padding: 0; }
}

/* ---------- the walkthrough film (19 Nov 2026) ---------- */
.watch .head { margin-bottom: 32px; }
.film { position: relative; max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgba(0, 0, 0, .6); }
.film video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.film.on .film-poster { opacity: 0; pointer-events: none; }
.film-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 38%); transition: opacity .35s var(--ease); }
.film-pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px;
  background: rgba(10, 10, 14, .72); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 30px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .35s var(--spring); }
.film-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(var(--btn-top), var(--btn-bottom)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.film-btn svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.film-len { font-size: 16px; font-weight: 650; color: #fff; letter-spacing: -0.01em; }
.film-play:hover .film-pill, .film-play:focus-visible .film-pill { transform: scale(1.04); }
.film.on .film-play { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  .film { border-radius: 16px; }
  .film-play { padding: 12px; }
  .film-btn { width: 40px; height: 40px; }
  .film-btn svg { width: 17px; height: 17px; }
  .film-len { font-size: 14px; }
}
