/* Home page pieces: the switch, the agents grid extras, the dream picker on paper. */

/* the switch */
.sw-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.sw-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 999px; background: var(--paper-2); isolation: isolate; }
.sw-toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 14px 22px; border-radius: 999px; font: 800 16px/1 var(--body); color: var(--muted); transition: color .3s; white-space: nowrap; }
.sw-toggle button[aria-pressed="true"] { color: #fff; }
.sw-thumb { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--ink); box-shadow: 0 10px 24px -10px rgba(30, 22, 10, .6); transition: transform .5s var(--pop), background .4s; }
.agents-on .sw-thumb { transform: translateX(100%); background: var(--accent-fill); }
.agents-on .sw-toggle button[aria-pressed="true"] { color: var(--ink); }
.sw-meter { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.sw-meter-k { color: var(--muted); font-size: 15px; }
.sw-bar { width: 180px; height: 12px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.sw-bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, #ff9a7a, #e2553f); transition: width 1.1s var(--ease), background .6s; }
.agents-on .sw-bar i { width: 34%; background: linear-gradient(90deg, #f6c766, #e09a22); }
.sw-meter-v { min-width: 120px; font: 800 18px/1 var(--display); color: #c2412d; transition: color .4s; }
.agents-on .sw-meter-v { color: var(--ink); }
.sw-board { display: grid; grid-template-columns: .9fr 1.4fr; gap: 18px; }
.sw-you, .sw-lane { background: var(--paper); border-radius: 22px; padding: 18px; display: grid; gap: 14px; align-content: start; }
.sw-you { background: #fff6f3; box-shadow: inset 0 0 0 1.5px #ffd8cd; transition: background .5s, box-shadow .5s; }
.agents-on .sw-you { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px var(--accent-soft); }
.sw-lanes { display: grid; gap: 14px; }
.sw-lane { min-height: 116px; opacity: .55; transition: opacity .5s; }
.agents-on .sw-lane { opacity: 1; }
.sw-lane.pea { background: #eef4e6; }
.sw-lane.tc { background: #fff1ec; }
.sw-lane.bg { background: #fbf2e6; }
.sw-head { display: flex; align-items: center; gap: 12px; }
.sw-head img { width: 48px; height: 48px; object-fit: contain; transition: transform .5s var(--pop); }
.agents-on .sw-head img { animation: hello .7s var(--pop); }
@keyframes hello { 0% { transform: scale(.6) translateY(10px); } 100% { transform: none; } }
.sw-head b { display: block; font: 800 18px/1.1 var(--display); letter-spacing: -.02em; }
.sw-head small { color: var(--muted); font-size: 14px; }
.sw-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 800 14px/1 var(--display); flex: none; }
.sw-slot { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; align-content: flex-start; }
.sw-you .sw-slot { min-height: 220px; }
.agents-on .sw-you .sw-slot { min-height: 90px; }
.task { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #fff; box-shadow: 0 6px 16px -10px rgba(30, 22, 10, .4), 0 0 0 1px var(--line); font: 700 14.5px/1.2 var(--body); white-space: nowrap; will-change: transform; }
.task i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.task em { display: none; font-style: normal; font: 800 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; background: #e3f4e6; color: #22713a; }
.agents-on .task em { display: inline-block; }
.sw-lane.tc .task em { background: #fff1d6; color: var(--ink); }
.sw-lane.bg .task em { background: #fbe8d2; color: #8a4a12; }
.sw-you .task em { background: var(--accent-soft); color: var(--accent-2); }
.sw-you:not(.x) .task { transform: rotate(var(--tilt, 0deg)); }
.agents-on .sw-you .task { transform: none; }
.sw-foot { margin-top: 20px; text-align: center; color: var(--muted); font-size: 15px; }
.sw-foot b { color: var(--ink); }
@media (max-width: 860px) {
  .sw-board { grid-template-columns: 1fr; }
  .sw-you .sw-slot { min-height: 150px; }
  .sw-top { justify-content: center; }
  .sw-toggle button { padding: 12px 14px; font-size: 14.5px; }
  .sw-bar { width: 120px; }
}

/* the agents grid extras */
.ag .pea-word { height: 46px; width: auto; }
.ag.big h3 { font-size: clamp(32px, 3.4vw, 46px); }
.ag.big .row .tag { font-size: 12px; }
.ag.wide { grid-column: span 12; flex-direction: row; align-items: center; }
.ag.wide .stage { flex: 0 0 300px; height: 230px; }
.ag.wide .body { padding: 26px 34px; }
@media (max-width: 640px) { .ag.wide { flex-direction: column; } .ag.wide .stage { flex: none; width: 100%; } }

/* the dream picker, on paper */
.dream .opt { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); }
.dream .opt:hover { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow-sm); }
.dream .opt[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: 0 16px 40px -14px rgba(217, 146, 26, .7); }
.dcard { background: #fff; box-shadow: var(--shadow); }
.dcard .who::after { background: radial-gradient(closest-side, rgba(40, 30, 15, .2), transparent); }
.dcard .k { color: var(--ink); }
.dcard h3 { color: var(--ink); }
.dcard p { color: var(--muted); }
.dcard.pea { background: var(--pea-paper); }
.dcard.pea .k { color: var(--pea); }
.dcard.hint-card { grid-template-columns: 1fr; background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent-soft); }
.hint-hat { width: 150px; height: auto; animation: idle 4s ease-in-out infinite; }
.dream .hint { color: var(--muted); font-size: 19px; font-weight: 600; }

/* the dreams come back in your box once the agents take the load */
.sw-dream { display: none; position: relative; margin-top: 6px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--accent-soft); text-align: center; }
.agents-on .sw-dream { display: block; animation: arrive .7s var(--pop) .5s both; }
.sw-dream b { display: block; font: 800 20px/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 10px; }
.sw-dream .objs { display: flex; justify-content: center; align-items: flex-end; gap: 6%; height: 92px; }
.sw-dream .objs img { height: 100%; width: auto; animation: bob 3.2s ease-in-out infinite; }
.sw-dream .objs img:nth-child(2) { height: 80%; animation-delay: -1s; }
.sw-dream .objs img:nth-child(3) { animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6%) rotate(2deg); } }

@media (max-width: 640px) {
  .task { white-space: normal; font-size: 13.5px; }
  .task em { white-space: nowrap; }
}

/* v10 round 2: Town Crier leads the grid, Pea gets its own band, the statement band, the lab of four */
.sw-you { align-self: start; }
.ag.big.tcbig { background: #fff; }
.ag.big.tcbig .stage { background: radial-gradient(80% 80% at 50% 100%, #ffd6c9, #fff3ee); }
.ag.big.tcbig h3 { color: var(--ink); font-size: clamp(36px, 3.8vw, 54px); }
.ag.big.tcbig .go .link { color: var(--ink); }
.ag.half { grid-column: span 6; flex-direction: row; align-items: center; }
.ag.half .stage { flex: 0 0 44%; height: 230px; }
.ag.half .body { padding: 26px 30px; }
@media (max-width: 1000px) { .ag.half { grid-column: span 6; flex-direction: column; } .ag.half .stage { flex: none; width: 100%; } }
@media (max-width: 640px) { .ag.half { grid-column: span 12; } }
#agents a.peaband { margin-bottom: 22px; }
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 1100px; margin: 0 auto; }
.st-tile { display: grid; grid-template-columns: 200px 1fr; gap: 26px; align-items: center; background: #fff; border-radius: var(--r-xl); padding: 26px 34px 26px 26px; box-shadow: var(--shadow-sm); }
.st-tile h3 { font-size: clamp(34px, 3.6vw, 52px); letter-spacing: -.045em; line-height: .95; }
.st-tile p { color: var(--muted); font-size: 18px; margin-top: 10px; }
.st-art { height: 170px; border-radius: 24px; background: radial-gradient(70% 70% at 50% 80%, #f3dcae, #fbf6ec); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.st-art img { height: 70%; width: auto; animation: keyfloat 4.5s ease-in-out infinite; filter: drop-shadow(0 14px 12px rgba(70, 45, 10, .18)); }
@keyframes keyfloat { 0%, 100% { transform: translateY(2%) rotate(-7deg); } 50% { transform: translateY(-7%) rotate(3deg); } }
@keyframes windup { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-42deg); } 48% { transform: rotate(-34deg); } 62% { transform: rotate(-44deg); } 80% { transform: rotate(-4deg); } }
.okart .okbtn { padding: 14px 26px; border-radius: 99px; background: var(--accent-fill); color: var(--ink); font: 800 20px/1 var(--display); box-shadow: 0 14px 30px -12px rgba(217, 146, 26, .9); animation: okpress 3.2s ease-in-out infinite; }
.okart .okcur { position: absolute; width: 30px; height: 30px; left: 62%; top: 58%; animation: okcur 3.2s ease-in-out infinite; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3)); }
@keyframes okpress { 0%, 52%, 70%, 100% { transform: scale(1); } 60% { transform: scale(.92); background: var(--accent-fill-2); } }
@keyframes okcur { 0% { transform: translate(60px, 50px); opacity: 0; } 20% { opacity: 1; } 50%, 70% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(60px, 50px); opacity: 0; } }
.st-note { margin-top: 24px; font-size: 16px; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .st-tile { grid-template-columns: 1fr; padding: 22px; } .st-art { height: 150px; } }
.lab.four { grid-template-columns: repeat(4, 1fr); }
.lab.four .art { height: 150px; }
.lab.four h3 { font-size: 30px; }
.lab a.factory { box-shadow: inset 0 0 0 1.5px rgba(242, 181, 68, .5); }
.lab a .tag.soon { justify-self: start; margin-bottom: -4px; }
@media (max-width: 1100px) { .lab.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .lab.four { grid-template-columns: 1fr; } }
.dream { max-width: 1180px; }
.dream .opt { padding: 14px 18px; font-size: 17px; }

/* Round 5 (JJ, 12 Oct: "it's the actual icons I don't like"): no objects. Words, small working UI and the brand star. */
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill); box-shadow: 0 0 10px rgba(242, 181, 68, .8); flex: none; }
/* the freed-up time is left empty on purpose: what it's for is the owner's business, not ours (JJ, 12 Oct) */
.sw-dream .slot { display: grid; place-items: center; align-content: center; gap: 10px; height: 118px; border: 2px dashed #e6cd98; border-radius: 14px; background: radial-gradient(closest-side, rgba(242, 181, 68, .16), rgba(242, 181, 68, 0)); font: 700 15px/1 var(--body); color: var(--muted); }
.sw-dream .slot-star { display: block; width: 26px; height: 26px; color: var(--accent-fill-2); animation: glint 3.2s ease-in-out infinite; }
.sw-dream .slot-star svg { width: 100%; height: 100%; }
.ag.lite { flex-direction: column; align-items: stretch; background: linear-gradient(160deg, #fff 55%, var(--accent-tint)); box-shadow: inset 0 0 0 1.5px var(--accent-soft), var(--shadow-sm); }
.ag.lite .body { padding: 30px 32px; }
.st-art.subart { flex-direction: column; gap: 14px; }
.subui { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 12px 26px -14px rgba(70, 45, 10, .45); }
.subui .sl { font: 700 14px/1 var(--body); color: var(--ink); white-space: nowrap; }
.subui .tg { position: relative; flex: none; width: 44px; height: 26px; border-radius: 99px; background: var(--accent-fill); animation: tgtrack 5s ease-in-out infinite; }
.subui .tg i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); animation: tgknob 5s ease-in-out infinite; }
@keyframes tgknob { 0%, 5% { transform: translateX(18px); } 14%, 92% { transform: translateX(0); } 100% { transform: translateX(18px); } }
@keyframes tgtrack { 0%, 5% { background: var(--accent-fill); } 14%, 92% { background: #d9d3c7; } 100% { background: var(--accent-fill); } }
.subart .sv { font: 800 15px/1 var(--display); color: var(--ink); letter-spacing: -.01em; animation: svin 5s ease-in-out infinite; }
@keyframes svin { 0%, 12% { opacity: 0; transform: translateY(5px); } 22%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.lab .lab-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 64px; }
.lab .num { font: 800 14px/1 var(--display); letter-spacing: .16em; color: var(--gold); }
.lab a .lab-top .tag { margin: 0; }
.lab.four h3 { font-size: 34px; }
.lab a::before { content: ""; position: absolute; left: 30px; right: 30px; top: 0; height: 2px; background: linear-gradient(90deg, rgba(242, 181, 68, 0), rgba(242, 181, 68, .75), rgba(242, 181, 68, 0)); }
.dcard .who.mark { align-items: center; }
.dcard .who.mark::after { display: none; }
.bigstar { display: grid; place-items: center; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 181, 68, .32), rgba(242, 181, 68, 0)); }
.bigstar svg { width: 124px; height: 124px; color: var(--accent-fill); filter: drop-shadow(0 10px 24px rgba(217, 146, 26, .55)); }
.dcard.on .bigstar svg { animation: arrive .7s var(--pop) both, twinkle 3.2s ease-in-out .7s infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.08) rotate(8deg); } }
