/* Codeply home: ambient intelligence. The page is a desktop: a dotted canvas,
   live app windows, voice bubbles, and bots you can pick up and move. */

:root {
  --canvas: #f3f3f1;
  --dot: rgba(15, 15, 17, .11);
  --ink: #0f0f11;
  --ink-2: #4f5057;
  --ink-3: #6f7077;
  --line: rgba(15, 15, 17, .1);
  --line-2: rgba(15, 15, 17, .16);
  --chrome: #f7f7f6;
  --blue: #2f6bff;
  --blue-ink: #1d4fd8;
  --bubble: #dfe9ff;
  --bubble-line: #a8c0f7;
  --green: #1f9d5b;
  --red: #d93f3f;
  --note: #fff6c9;
  --mark: #fff2a6;
  --r: 14px;
  --shadow: 0 1px 2px rgba(15, 15, 17, .06), 0 12px 32px -12px rgba(15, 15, 17, .22);
  --shadow-lg: 0 2px 4px rgba(15, 15, 17, .05), 0 30px 70px -24px rgba(10, 29, 74, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: 'Geist', -apple-system, 'Segoe UI', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.dots { background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px); background-size: 28px 28px; background-position: 14px 14px; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.logo { width: 26px; height: 26px; flex: none; }

/* ---------- glossy buttons ---------- */
.gloss {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 24px 1px 20px; border-radius: 999px;
  font-size: 18px; font-weight: 500; letter-spacing: -.03em; color: #000; white-space: nowrap;
  text-shadow: 0 2px 2px rgba(255, 255, 255, .8);
  background: linear-gradient(#fbfbfb 0%, #ededed 42%, #e4e4e4 100%);
  border: 1px solid #626262;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12), inset 0 -8px 10px -6px rgba(0, 0, 0, .08);
  transition: transform .18s var(--spring), box-shadow .2s, filter .2s;
}
.gloss::before {
  content: ''; position: absolute; z-index: -1; left: 8px; right: 8px; top: 2px; height: 46%;
  border-radius: 999px 999px 40% 40% / 999px 999px 60% 60%;
  background: linear-gradient(rgba(255, 255, 255, .95), rgba(255, 255, 255, .15));
}
.gloss.blue { background: linear-gradient(#edf4ff 0%, #d6e7ff 18%, #a2c7ff 50%, #99cbf8 80%, #a2d2f7 100%); border-color: #221898; }
.gloss:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 14px 28px rgba(0, 0, 0, .16), inset 0 -8px 10px -6px rgba(0, 0, 0, .08); }
.gloss:active { transform: translateY(1px) scale(.98); box-shadow: 0 4px 10px rgba(0, 0, 0, .14), inset 0 2px 6px rgba(0, 0, 0, .12); }
.gloss svg { width: 19px; height: 19px; flex: none; }
.gloss.sm { height: 38px; padding: 0 17px 1px; font-size: 15.5px; }
.gloss.sm::before { left: 6px; right: 6px; }

/* ---------- nav: a floating capsule ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  width: min(1040px, 100% - 24px); margin: 12px auto 0;
  height: 60px; padding: 0 11px 0 18px;
  display: flex; align-items: center; gap: 8px;
  border-radius: 999px;
  background: linear-gradient(rgba(255, 255, 255, .95), rgba(250, 250, 249, .88));
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 0 0 1px var(--line), 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 30px -14px rgba(15, 15, 17, .25);
  transition: width .4s var(--ease), height .3s var(--ease);
}
.nav.scrolled { width: min(900px, 100% - 24px); height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; margin-right: 10px; }
.brand .logo { transition: transform .7s var(--spring); }
.brand:hover .logo { transform: rotate(120deg); }
.links { display: flex; align-items: center; gap: 2px; position: relative; }
.links > a, .links > button { height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.links > a:hover, .links > button:hover, .links > button[aria-expanded="true"] { color: var(--ink); background: rgba(15, 15, 17, .05); }
.links > button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--ease); }
.links > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status { display: flex; align-items: center; gap: 15px; padding: 0 8px; font-size: 14.5px; color: #8b8c90; }
.status svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.status svg.batt { width: 24px; }
.status time { margin-left: 3px; font-variant-numeric: tabular-nums; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(48, 164, 108, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(48, 164, 108, 0); } }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; }
.menu-btn i { display: block; width: 18px; height: 1.6px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* products launchpad */
.pad {
  position: absolute; top: calc(100% + 14px); left: 0;
  width: min(620px, calc(100vw - 24px));
  padding: 10px; border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(15, 15, 17, .35);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.pad.open { opacity: 1; visibility: visible; transform: none; }
.pad a { display: grid; grid-template-columns: 44px 1fr; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; transition: background-color .15s; }
.pad a:hover { background: #f4f4f2; }
.pad img { grid-row: span 2; width: 44px; height: 44px; border-radius: 11px; }
.pad b { font-size: 15px; font-weight: 500; }
.pad span { font-size: 13.5px; color: var(--ink-3); line-height: 1.3; }
.mnav { display: none; }

/* ---------- windows ---------- */
.win { background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 15, 17, .08); overflow: hidden; position: relative; }
.win-bar { height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 0 0 13px; background: var(--chrome); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); user-select: none; }
.win-bar img, .win-bar .logo { width: 16px; height: 16px; border-radius: 4px; }
.win-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-ctl { display: flex; height: 100%; }
.win-ctl i { width: 44px; height: 100%; display: grid; place-items: center; }
.win-ctl svg { width: 10px; height: 10px; fill: none; stroke: #5b5c62; stroke-width: 1.1; }
.win-body { position: relative; }
.screen {
  padding: 14px; border-radius: 22px;
  background:
    radial-gradient(1.2px 1.2px at 12% 22%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 33% 78%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 58% 14%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 81% 64%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 92% 30%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(120% 90% at 30% 0%, #1d3d7a 0%, #0a1d4a 55%, #030b26 100%);
  box-shadow: var(--shadow-lg);
}
.screen .win { box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); }

/* ---------- hero ---------- */
.desk { position: relative; overflow: hidden; margin-top: -72px; padding: 150px 0 40px; }
.desk-in { position: relative; z-index: 2; text-align: center; pointer-events: none; }
.desk-in a, .desk-in button, .desk-in .hello { pointer-events: auto; }
.wordmark { margin: 0; font-size: clamp(68px, 11vw, 136px); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.lede { margin: 18px auto 34px; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.35; letter-spacing: -.01em; }
.dl-pair { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.dl-pair > div { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.dl-pair small { font-size: 13px; color: var(--ink-3); }
.hello { width: min(860px, 100%); margin: 68px auto 0; }
.hello .win-body { aspect-ratio: 16 / 9; background: #0a1d4a; }
.hello video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; background: rgba(10, 29, 74, .14); cursor: pointer; transition: opacity .3s; }
.play .gloss { position: absolute; left: 0; top: 0; will-change: transform; }
.gloss.glass { color: #111; background: linear-gradient(rgba(255, 255, 255, .78), rgba(225, 232, 245, .55)); border-color: rgba(255, 255, 255, .7); backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6); box-shadow: 0 12px 30px rgba(0, 0, 0, .28), inset 0 -8px 12px -8px rgba(10, 29, 74, .18), inset 0 1px 0 rgba(255, 255, 255, .9); }
.play .gloss { height: 66px; padding: 0 28px 1px 12px; font-size: 21px; gap: 12px; }
.play .gloss::before { left: 12px; right: 12px; }
.play .face { width: 46px; height: 46px; transition: transform .45s var(--spring); }
.play:hover .face { transform: rotate(-14deg) scale(1.14); }
.hello.playing .play { opacity: 0; pointer-events: none; }
.caption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-3); }

/* desktop props */
.props { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.prop { position: absolute; pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.prop:active { cursor: grabbing; }
.prop.held, .prop.moved { animation: none; }
.prop.held { z-index: 10; }
.prop.held > * { transform: scale(1.06) rotate(0deg) !important; }
.prop > * { transition: transform .2s var(--ease), box-shadow .2s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.icon { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; }
.icon img { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 6px 16px -6px rgba(10, 29, 74, .4); pointer-events: none; }
.icon b { font-size: 12.5px; font-weight: 500; background: rgba(243, 243, 241, .9); padding: 1px 6px; border-radius: 5px; }
.folder { width: 64px; height: 50px; pointer-events: none; }
.toast { width: 270px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; text-align: left; transform: rotate(-2deg); }
.toast .ti { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #eef3ff; color: var(--blue); }
.toast b { display: block; font-size: 13.5px; font-weight: 600; }
.toast span { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.call { width: 236px; padding: 14px; border-radius: 22px; background: #17181c; color: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: center; text-align: left; transform: rotate(3deg); }
.call .av { grid-row: span 2; width: 44px; height: 44px; }
.call b { font-size: 14.5px; font-weight: 600; }
.call span { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.call .acts { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; }
.call .acts i { flex: 1; height: 34px; border-radius: 999px; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 500; }
.call .no { background: #e5484d; }
.call .yes { background: #30a46c; }
.sticky { width: 172px; padding: 14px 15px 18px; background: var(--note); border-radius: 4px 4px 14px 4px; font-size: 15px; line-height: 1.35; text-align: left; color: #3d3820; box-shadow: 0 10px 22px -12px rgba(80, 64, 0, .45); transform: rotate(-4deg); }
.sticky s { color: #8f8763; }
.bot { display: block; width: 86px; height: 86px; pointer-events: none; }
.bot svg, .av svg, .face svg, .sleeper svg, .ava svg { width: 100%; height: auto; }
.bot-tag { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bot-tag b { font-size: 12.5px; font-weight: 500; background: #fff; padding: 2px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.phone-only { display: none; }

/* ---------- sections ---------- */
.sec { padding: 130px 0; position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 90px; }
.h2 { margin: 0; font-size: clamp(38px, 5.4vw, 64px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.sub { margin: 18px auto 0; max-width: 560px; font-size: 19px; color: var(--ink-2); text-wrap: pretty; }
.h3 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.p { margin: 10px 0 0; color: var(--ink-2); font-size: 17px; text-wrap: pretty; }
.more { display: inline-block; margin-top: 16px; font-size: 15.5px; font-weight: 500; color: var(--blue); }
.more:hover { color: var(--blue-ink); }

.moment { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; margin-bottom: 150px; }
.moment:last-child { margin-bottom: 0; }
.moment.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.moment.flip .say { order: 2; align-items: flex-end; text-align: right; }
.say { display: flex; flex-direction: column; align-items: flex-start; }
.wave { display: flex; align-items: center; gap: 6px; height: 34px; margin-bottom: 40px; }
.wave i { display: block; width: 7px; height: 7px; border-radius: 999px; background: var(--ink); animation: talk 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -97ms); }
.wave i:first-child, .wave i:last-child { opacity: .25; }
.wave.hush i { animation-duration: 2.8s; }
@keyframes talk { 0%, 100% { height: 7px; } 30% { height: 28px; } 60% { height: 12px; } }
.bubble { position: relative; max-width: 340px; min-height: 66px; margin: 0; padding: 14px 20px 16px; border-radius: 22px; background: var(--bubble); box-shadow: inset 0 0 0 1px var(--bubble-line), inset 0 2px 0 rgba(255, 255, 255, .8), 0 8px 20px -12px rgba(29, 79, 216, .4); font-size: 23px; line-height: 1.25; letter-spacing: -.015em; text-align: left; }
.bubble::after { content: ''; position: absolute; right: 14px; bottom: -7px; width: 16px; height: 14px; background: var(--bubble); border-right: 1px solid var(--bubble-line); border-bottom: 1px solid var(--bubble-line); border-radius: 0 0 8px 0; transform: skewX(-30deg); }
.bubble.them { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 20px -12px rgba(15, 15, 17, .3); }
.bubble.them::after { left: 14px; right: auto; background: #fff; border: 0; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-radius: 0 0 0 8px; transform: skewX(30deg); }
.bubble .who { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); margin-bottom: 3px; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.say .copy { margin-top: 48px; max-width: 400px; }

/* ---------- live app windows ---------- */
.scene [data-at] { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.scene [data-at].on { opacity: 1; transform: none; }
.scene [data-at].pop { transform: scale(.8); }
.scene [data-at].pop.on { transform: none; transition-timing-function: var(--spring); transition-duration: .5s; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app { display: grid; grid-template-columns: 52px minmax(0, 1fr) 236px; height: 420px; font-size: 14px; background: #fff; }
.app.two { grid-template-columns: 52px minmax(0, 1fr); }
.rail { background: #f7f7f6; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; }
.rail i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-3); }
.rail i.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.chat { display: flex; flex-direction: column; min-width: 0; }
.chat-head { height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 14px; }
.chat-head .tag { margin-left: auto; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: #eef3ff; color: var(--blue-ink); }
.feed { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.u { align-self: flex-end; max-width: 85%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: #f0f0ee; font-size: 14px; line-height: 1.4; }
.step { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.step b { font-weight: 500; color: var(--ink); }
.add { color: var(--green); font-weight: 500; }
.del { color: var(--red); font-weight: 500; }
.ok { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: #e6f6ed; color: var(--green); font-size: 12px; font-weight: 500; }
.msg { font-size: 14.5px; line-height: 1.45; }
.comp { margin: 0 14px 14px; height: 46px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); display: flex; align-items: center; padding: 0 6px 0 14px; color: var(--ink-3); font-size: 13.5px; }
.comp .send { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.comp .send .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.prev { border-left: 1px solid var(--line); background: #fafaf9; display: flex; flex-direction: column; }
.prev-url { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.prev-url span { flex: 1; height: 26px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; padding: 0 9px; }
.site { position: relative; flex: 1; margin: 12px; border-radius: 12px; overflow: hidden; }
.site-l, .site-d { position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; }
.site-l { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.site-d { background: #15161a; color: #f2f2f3; }
.scene .site-d[data-at] { transform: none; transition-duration: .6s; }
.site h5 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 10px 0; border-bottom: 1px solid rgba(127, 127, 127, .18); }
.sw { width: 34px; height: 20px; border-radius: 999px; background: #d5d5d8; position: relative; flex: none; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.site-d .sw.t { background: var(--blue); }
.site-d .sw.t::after { left: 16px; }

.banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #eef3ff; font-size: 14px; }
.banner .ava { width: 32px; height: 32px; flex: none; }
.banner b { font-weight: 600; }
.pr { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); }
.pr > .ic { width: 20px; height: 20px; color: var(--green); }
.pr div { flex: 1; min-width: 0; }
.pr b { display: block; font-size: 14px; font-weight: 600; }
.pr small { display: block; font-size: 12.5px; color: var(--ink-3); }
.mbtn { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; display: grid; place-items: center; overflow: hidden; transition: background-color .3s; }
.mbtn > span { grid-area: 1 / 1; transition: opacity .3s, transform .3s var(--ease); }
.mbtn .done { opacity: 0; transform: translateY(8px); }
.mbtn.flag { background: var(--green); }
.mbtn.flag .go { opacity: 0; transform: translateY(-8px); }
.mbtn.flag .done { opacity: 1; transform: none; }

.newbot { padding: 18px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.field { padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15.5px; min-height: 74px; }
.field small { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.made { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: #f7f7f6; }
.made .ava { width: 58px; height: 58px; flex: none; }
.made b { display: block; font-size: 17px; font-weight: 600; }
.made span { font-size: 13.5px; color: var(--ink-3); }
.chips { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.chips i { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.gmsg { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.gmsg .ava { width: 28px; height: 28px; flex: none; }
.gmsg b { font-weight: 600; margin-right: 4px; }

/* phones */
/* an iPhone: thin titanium edge, slim black bezel, side buttons, the Dynamic Island */
.phone { position: relative; width: 286px; margin: 0 auto; padding: 7px; border-radius: 52px; border: 2.5px solid transparent;
  background: linear-gradient(#050505, #050505) padding-box, linear-gradient(140deg, #e6e7ea 0%, #8d9097 20%, #d3d4d8 46%, #70737a 74%, #d9dadd 100%) border-box;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.phone::before, .phone::after { content: ''; position: absolute; width: 3px; border-radius: 2px; }
.phone::before { left: -5.5px; top: 104px; height: 152px; border-radius: 2px 0 0 2px;
  background: linear-gradient(to bottom, #9a9da3 0 24px, transparent 24px 44px, #9a9da3 44px 94px, transparent 94px 104px, #9a9da3 104px 152px); }
.phone::after { right: -5.5px; top: 150px; height: 74px; border-radius: 0 2px 2px 0; background: #9a9da3; }
.phone-in { position: relative; aspect-ratio: 390 / 844; border-radius: 44px; overflow: hidden; background: #000; }
.island { position: absolute; z-index: 5; top: 1.35%; left: 50%; width: 31.5%; height: 4.3%; translate: -50% 0; border-radius: 999px; background: #000; }
.sbar { position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 5.57%; display: flex; align-items: center; justify-content: space-between; padding: 1.2% 8.5% 0 10.5%; color: #fff; }
.sbar b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.sbar i { display: flex; align-items: center; gap: 5px; }
.sbar svg { height: 10px; width: auto; fill: currentColor; }
.phone-in.papp { background: #0d0d0d; }
.phone-in.papp img.shot { top: 5.57%; height: 94.43%; }
.pstat { position: relative; z-index: 4; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px 0 32px; font-size: 14px; font-weight: 600; }
.pstat.lt { color: #fff; }
.ring { position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, #2a2b31, #0d0d10); color: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 104px; text-align: center; }
.ring .ava { position: relative; z-index: 1; width: 116px; height: 116px; margin-bottom: 18px; }
.ring b { font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.ring span { font-size: 15px; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.ring .acts { position: absolute; bottom: 54px; left: 0; right: 0; display: flex; justify-content: space-around; }
.ring .acts i { display: flex; flex-direction: column; align-items: center; gap: 8px; font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .8); }
.ring .acts u { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; }
.ring .acts .ic { width: 28px; height: 28px; stroke: #fff; stroke-width: 2; }
.ring .no u { background: #e5484d; }
.ring .no .ic { transform: rotate(135deg); }
.ring .yes u { background: #30a46c; animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-6deg); } }
.ring .halo { position: absolute; top: 92px; left: 50%; width: 140px; height: 140px; margin-left: -70px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); animation: halo 1.8s ease-out infinite; }
@keyframes halo { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.oncall { position: absolute; z-index: 3; inset: 0; background: #0d0d10; color: #fff; padding: 66px 22px 30px; display: flex; flex-direction: column; }
.oncall .who { display: flex; align-items: center; gap: 12px; }
.oncall .who .ava { width: 46px; height: 46px; }
.oncall .who b { display: block; font-size: 18px; font-weight: 500; }
.oncall .who span { font-size: 13px; color: rgba(255, 255, 255, .55); }
.lines { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.4; }
.lines p { margin: 0; }
.lines .me { color: rgba(255, 255, 255, .6); }
.vwave { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 5px; height: 48px; }
.vwave i { width: 6px; border-radius: 999px; background: #fff; animation: talk 1s ease-in-out infinite; animation-delay: calc(var(--i) * -83ms); }
.hang { align-self: center; margin-top: 18px; width: 58px; height: 58px; border-radius: 50%; background: #e5484d; display: grid; place-items: center; }
.hang .ic { width: 26px; height: 26px; stroke: #fff; transform: rotate(135deg); }
.mchat { padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 11px; height: calc(100% - 50px); }
.mchat .top { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 600; padding: 4px 0 6px; }
.pcon { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--green); }
.pcon::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mchat .comp { margin: auto 0 0; }
.mchat .pr { padding: 10px 12px; gap: 10px; }
.mchat .pr b { font-size: 13.5px; }

/* everywhere else: a desktop with a dock */
.pc { position: relative; height: 620px; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #e6ecfb 0%, #f3f1ec 60%, #f1ece6 100%); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.pc > .dots { position: absolute; inset: 0; }
.pc-copy { position: absolute; left: 28px; top: 26px; z-index: 3; max-width: 300px; }
.pc-copy .h3 { font-size: 22px; }
.pc-copy .p { font-size: 15.5px; margin-top: 4px; }
.pc-copy .more { margin-top: 6px; font-size: 15px; }
.pc-stage { position: absolute; inset: 0; }
.pc-win { position: absolute; right: 5%; top: 44%; width: min(620px, 100% - 32px); translate: 0 -50%; opacity: 0; visibility: hidden; transform: scale(.9) translateY(16px); transition: opacity .25s, transform .5s var(--spring), visibility .25s; }
.pc-win.open { opacity: 1; visibility: visible; transform: none; }
.pc-win .win-body { height: 320px; overflow: hidden; }
.term { background: #121316; color: #e9e9ec; padding: 18px 20px; font-size: 15px; line-height: 1.7; height: 100%; }
.term .pl { color: #8ab4ff; }
.term .dim { color: #8a8b92; }
.term .gr { color: #4cc38a; }
.inst { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: #fff; border-top: 1px solid var(--line); }
.inst .os { display: flex; gap: 2px; flex: none; }
.inst button { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.inst button[aria-pressed="true"] { background: #f1f1ef; color: var(--ink); }
.inst code { font: inherit; font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 6px; }
.inst .cp { color: var(--blue); flex: none; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 240px; height: 100%; background: #1b1c20; }
.code { padding: 20px; display: flex; flex-direction: column; gap: 11px; }
.code i { display: block; height: 9px; border-radius: 4px; background: #3a3c44; }
.code i.k { background: #6c8cff; } .code i.s { background: #52b788; } .code i.f { background: #e0a458; }
.code .hl { position: relative; }
.code .hl::before { content: ''; position: absolute; inset: -5px -8px; border-radius: 6px; background: rgba(47, 107, 255, .2); box-shadow: inset 2px 0 0 #2f6bff; }
.panel { background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dropzone { position: relative; height: 100%; background: linear-gradient(135deg, #dfe7f7, #eef0f4); }
.dropzone .doc { position: absolute; inset: 20px 130px 20px 20px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.dropzone .doc b { font-size: 15px; font-weight: 600; }
.dropzone .doc i { height: 9px; border-radius: 4px; background: #e6e6e9; display: block; }
.keys { position: absolute; left: 40px; bottom: 34px; display: flex; gap: 6px; }
.keys kbd { font: 600 16px var(--font); min-width: 48px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -3px 0 var(--line-2), 0 4px 10px -4px rgba(0, 0, 0, .2); transition: transform .12s; }
.keys.press kbd { transform: translateY(2px); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -1px 0 var(--line-2); }
.minidrop { position: absolute; right: 16px; bottom: 16px; width: 260px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -14px rgba(10, 29, 74, .4), 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.minidrop .comp { margin: 0; height: 42px; color: var(--ink); }
.inbox { height: 100%; background: #fff; }
.mail { display: grid; grid-template-columns: 34px 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mail .ava { grid-row: span 2; width: 34px; height: 34px; }
.mail b { font-weight: 600; }
.mail span { grid-column: 2; color: var(--ink-3); font-size: 13.5px; }
.mail em { grid-row: span 2; font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #e6f6ed; color: var(--green); font-weight: 500; }
.dock { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 4; display: flex; gap: 6px; padding: 8px; border-radius: 24px; background: rgba(255, 255, 255, .75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 0 0 1px var(--line), 0 16px 36px -14px rgba(15, 15, 17, .3); }
.dock button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 76px; padding: 6px 0 6px; border-radius: 16px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.dock button img { width: 48px; height: 48px; border-radius: 12px; transition: transform .35s var(--spring); }
.dock button:hover img { transform: translateY(-8px) scale(1.12); }
.dock button[aria-selected="true"] { color: var(--ink); }
.dock button[aria-selected="true"]::after { content: ''; position: absolute; bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* models: an orbit */
.orbit { container-type: inline-size; position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto; }
.orbit .core { position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 34px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); z-index: 2; }
.orbit .core .logo { width: 66px; height: 66px; animation: spin 24s linear infinite; }
.orbit .core b { position: absolute; bottom: -16px; font-size: 14px; font-weight: 500; white-space: nowrap; background: var(--ink); color: #fff; padding: 4px 12px; border-radius: 999px; }
.ringo { position: absolute; inset: var(--in); border-radius: 50%; border: 1.5px dashed rgba(15, 15, 17, .15); animation: spin var(--t) linear infinite; }
.ringo.rev { animation-direction: reverse; }
.ringo > span { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(var(--rad)) rotate(calc(var(--a) * -1)); }
.ringo > span > i { position: absolute; left: -29px; top: -29px; width: 58px; height: 58px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow), 0 0 0 1px var(--line); animation: spin var(--t) linear infinite reverse; }
.ringo.rev > span > i { animation-direction: normal; }
.ringo img { width: 30px; height: 30px; }
.ringo > span > i::after { content: attr(data-n); position: absolute; top: 100%; margin-top: 6px; font-size: 12px; font-style: normal; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
@keyframes spin { to { rotate: 360deg; } }

/* note */
.note-wrap { position: relative; max-width: 620px; margin: 0 auto; }
.note .win-bar { background: #f5edc4; border-bottom-color: rgba(80, 64, 0, .12); color: #5d5536; }
.note .win-body { padding: 30px 34px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.note p { margin: 0 0 16px; }
.note mark { background: var(--mark); color: var(--ink); padding: 1px 3px; border-radius: 3px; }
.note .sign { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.note .sign .logo { width: 30px; height: 30px; }
.nb1 { left: -150px; top: 30px; } .nb2 { right: -140px; top: 160px; } .nb3 { left: -110px; bottom: 10px; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.q { background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.q button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; text-align: left; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.q .pm { width: 18px; height: 18px; flex: none; position: relative; }
.q .pm::before, .q .pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .25s var(--ease); }
.q .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.q.open .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.q .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.q.open .a { grid-template-rows: 1fr; }
.q .a > div { overflow: hidden; }
.q .a p { margin: 0; padding: 0 22px 22px; max-width: 640px; color: var(--ink-2); font-size: 16.5px; }

/* end */
.end { text-align: center; padding: 120px 0 40px; }
.end .h2 { margin-bottom: 34px; }
.foot { padding: 64px 0 28px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-size: 15.5px; }
.foot-cols h4 { margin: 0 0 14px; font-size: 15.5px; font-weight: 500; }
.foot-cols a { display: block; color: var(--ink-2); padding: 4px 0; }
.foot-cols a:hover { color: var(--ink); }
.foot-cols p { margin: 0; color: var(--ink-2); max-width: 260px; }
.pixels { position: relative; margin: 72px auto 0; width: min(1080px, 100%); }
.pixels svg { width: 100%; height: auto; overflow: visible; }
.pixels rect { transition: transform .35s var(--ease); transform-box: fill-box; transform-origin: center; }
.pixels rect:hover { transform: translateY(-14%) scale(1.12); }
.pixels.drop rect { animation: fall .7s var(--ease) both; animation-delay: calc(var(--k) * 9ms); }
@keyframes fall { from { transform: translateY(-120%); opacity: 0; } }
.pixels .sleeper { position: absolute; width: 11%; right: -1%; top: -16%; }
.legal { margin-top: 36px; text-align: center; font-size: 13.5px; color: var(--ink-3); }

.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

/* ---------- smaller screens ---------- */
@media (max-width: 1280px) { .props .hide-md { display: none; } }
@media (max-width: 1180px) { .nb1, .nb2, .nb3, .status { display: none; } }
@media (max-width: 980px) {
  .links { display: none; }
  .menu-btn { display: grid; }
  .mnav { position: fixed; z-index: 49; top: 84px; left: 12px; right: 12px; }
  .mnav.open { display: block; }
  .mnav .pad { position: static; width: 100%; grid-template-columns: 1fr; opacity: 1; visibility: visible; transform: none; max-height: calc(100svh - 110px); overflow: auto; }
  .mnav .extra { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 4px 4px; border-top: 1px solid var(--line); margin-top: 6px; }
  .mnav .extra a { display: inline-flex; padding: 9px 14px; border-radius: 999px; background: #f4f4f2; font-size: 15px; }
  .moment, .moment.flip { grid-template-columns: 1fr; gap: 36px; margin-bottom: 110px; }
  .moment.flip .say { order: 0; align-items: flex-start; text-align: left; }
  .say .copy { margin-top: 28px; }
  .wave { margin-bottom: 24px; }
  .props .hide-sm { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .pc { height: auto; padding: 22px 16px 112px; }
  .pc-copy { position: relative; left: auto; top: auto; max-width: none; margin-bottom: 18px; }
  .pc-stage { position: relative; height: auto; }
  .pc-win, .pc-win.wide { position: relative; display: none; left: 0; right: auto; top: 0; width: 100%; margin: 0; translate: none; }
  .pc-win.open { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { padding: 0 6px 0 16px; height: 56px; }
  .nav.scrolled { height: 52px; }
  .nav .gloss.sm { height: 34px; padding: 0 13px 1px; font-size: 14.5px; }
  .desk { padding-top: 120px; }
  .lede { font-size: 17px; }
  .dl-pair { flex-direction: column; align-items: stretch; gap: 18px; }
  .dl-pair .gloss { width: 100%; }
  .hello { margin-top: 44px; }
  .play .gloss { height: 54px; font-size: 18px; }
  .play .face { width: 36px; height: 36px; }
  .screen { padding: 8px; border-radius: 16px; }
  .win-bar { height: 32px; font-size: 12px; }
  .win-ctl i { width: 32px; }
  .sec { padding: 90px 0; }
  .sec-head { margin-bottom: 56px; }
  .bubble { font-size: 20px; }
  .app, .app.two { grid-template-columns: minmax(0, 1fr); height: 400px; }
  .rail, .prev { display: none; }
  .phone { width: 266px; }
  .note .win-body { padding: 22px 20px; font-size: 17px; }
  .q button { font-size: 16.5px; padding: 18px; }
  .q .a p { padding: 0 18px 18px; }
  .props > :not(.phone-only) { display: none; }
  .phone-only { display: block; }
  .phone-only .bot { width: 54px; height: 54px; }
  .dock { gap: 0; padding: 5px; border-radius: 18px; bottom: 14px; }
  .dock button { width: 64px; font-size: 11.5px; }
  .dock button img { width: 38px; height: 38px; }
  .pc-win .win-body { height: 300px; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .editor .code { display: none; }
  .dropzone .doc { inset: 14px 14px 130px 14px; }
  .keys { left: 14px; bottom: 76px; }
  .minidrop { left: 14px; right: 14px; bottom: 14px; width: auto; }
  .inst .os { display: none; }
  .orbit .core { width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 26px; }
  .orbit .core .logo { width: 46px; height: 46px; }
  .ringo > span > i { width: 44px; height: 44px; left: -22px; top: -22px; border-radius: 13px; }
  .ringo > span > i::after { display: none; }
  .ringo img { width: 22px; height: 22px; }
  .ringo.rev { inset: 10% !important; --rad: -40cqw !important; }
  .ringo:not(.rev) { inset: 25% !important; --rad: -25cqw !important; }
}

/* ---------- the real apps ---------- */
.real { position: relative; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.real img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transition: opacity .7s var(--ease); }
.real img.on { opacity: 1; }
.phone-in { background: #000; }
.phone-in img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .7s var(--ease); }
.phone-in img.shot.on, .phone-in img.shot:only-child { opacity: 1; }
.pc-win .real { box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }

.clicker { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: 22px; height: 30px; fill: #fff; stroke: #111; stroke-width: 1.2; opacity: 0; transform: translate(70px, 60px); transition: opacity .3s, transform .85s var(--ease); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); pointer-events: none; }
.real.clicking .clicker { opacity: 1; transform: translate(-3px, -4px); }
.real.press .clicker { transform: translate(-3px, -4px) scale(.82); transition-duration: .12s; }
.pc-win.wide { width: min(700px, 100% - 32px); }

/* Windows 11 notification */
.wtoast { width: 300px; padding: 12px 14px 14px; border-radius: 10px; background: rgba(249, 249, 249, .96); text-align: left; transform: rotate(-2deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 16px 32px -12px rgba(0, 0, 0, .3); font-family: 'Segoe UI Variable Text', 'Segoe UI', var(--font); }
.wt-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #5c5c5c; margin-bottom: 9px; }
.wt-h img { width: 16px; height: 16px; border-radius: 4px; box-shadow: none; }
.wt-h em { margin-left: auto; font-style: normal; }
.wtoast > b { display: block; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.wt-b { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: #5c5c5c; }
.wt-a { display: flex; gap: 8px; margin-top: 12px; }
.wt-a i { flex: 1; height: 32px; display: grid; place-items: center; border-radius: 5px; font-style: normal; font-size: 13px; background: #fbfbfb; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 -1px 0 rgba(0, 0, 0, .12); color: #1a1a1a; }
.wt-a i.pri { background: #005fb8; color: #fff; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .25); }

/* Craft agents: the orb and its eyes, as in the app */
.agent { position: relative; display: block; width: 78px; height: 78px; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(10, 29, 74, .25)); }
.agent .ball { width: 100%; height: 100%; }
.agent .eyes { position: absolute; top: 50%; left: 50%; width: 58%; height: 58%; transform: translate(-50%, -50%); animation: look 6s ease-in-out infinite; }
@keyframes look { 0%, 40%, 100% { transform: translate(-50%, -50%); } 50%, 60% { transform: translate(-42%, -50%); } 70%, 80% { transform: translate(-58%, -50%); } 88% { transform: translate(-50%, -50%) scaleY(.1); } }
.phone-only .agent { width: 50px; height: 50px; }

/* Codeply CLI, as it looks in Windows Terminal */
.wt .win-bar { background: #202020; border-bottom-color: #2b2b2b; color: #e3e3e3; }
.wt .win-ctl svg { stroke: #d0d0d0; }
.tty { height: 372px; display: flex; flex-direction: column; overflow: hidden; padding: 16px 18px 12px; background: #0c0c0c; color: #e3e3e3; font: 13px/1.5 'Cascadia Mono', 'Cascadia Code', Consolas, 'Courier New', monospace; text-align: left; }
.t-text { color: #e3e3e3; font-weight: 700; } .t-sec { color: #a8adb3; } .t-dim { color: #80868b; } .t-acc { color: #5b9bff; } .t-ok { color: #5bb974; } .t-faint { color: #5f6368; } .t-b { color: #e3e3e3; font-weight: 700; }
.cb { flex: none; width: max-content; max-width: 100%; padding: 14px 22px; border: 1px solid #1f6bff; border-radius: 8px; }
.cb-top { display: flex; align-items: center; gap: 20px; }
.tball { display: grid; grid-template-columns: repeat(10, 5px); grid-auto-rows: 5px; flex: none; }
.tball i { display: block; }
.cb-info { margin-top: 12px; white-space: pre; }
.tl { flex: none; margin-top: 14px; white-space: pre-wrap; }
.tl:empty { margin-top: 10px; }
.tl > div { margin-bottom: 8px; }
.tl .br { display: block; color: #a8adb3; }
.cmp { flex: none; margin-top: 4px; padding: 5px 10px; border: 1px solid #4a4f55; border-radius: 6px; white-space: nowrap; overflow: hidden; }
.cmp .ph { color: #80868b; }
.tcur { display: inline-block; width: .6em; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: #e3e3e3; animation: blink 1s steps(1) infinite; }
.cmp.typing .ph { display: none; }
.cft { flex: none; display: flex; justify-content: space-between; padding: 6px 12px 0; }

/* Craft drop on a desktop */
.dropdesk { position: relative; height: 380px; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 20% 0%, #1d3d7a, #0a1d4a 60%, #030b26); box-shadow: var(--shadow-lg); }
.dropdesk .keys { left: 28px; bottom: auto; top: 28px; }
.dropw { position: absolute; right: 18px; bottom: 18px; width: 300px; height: 237px; }
.dropw img { position: absolute; right: 0; bottom: 0; width: 100%; height: auto; border-radius: 16px; opacity: 0; transition: opacity .6s var(--ease); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); }
.dropw img.on { opacity: 1; }

@media (max-width: 640px) {
  .tty { height: 330px; font-size: 10px; padding: 12px; }
  .tball { grid-template-columns: repeat(10, 4px); grid-auto-rows: 4px; }
  .cb { padding: 10px 14px; }
  .cft { padding: 6px 4px 0; }
  .dropw { width: 240px; height: 190px; right: 12px; bottom: 12px; }
  .dropdesk { height: 320px; }
  .wtoast { width: 260px; }
}

/* ---------- other pages ---------- */
.ptop { padding-bottom: 60px; }
.app-ico { display: block; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 20px; box-shadow: 0 14px 30px -12px rgba(10, 29, 74, .45); }
.wordmark.pw { font-size: clamp(60px, 9vw, 112px); }
.hello.pv { margin-top: 64px; }
.cli-hero { width: min(820px, 100%); margin: 0 auto; text-align: left; }
.cli-hero .win { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .2); }
.split-hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; text-align: left; }
.split-hero .app-ico { margin: 0 0 18px; }
.split-hero .lede { margin-left: 0; }
.split-hero .dl-pair { justify-content: flex-start; }
.split-hero .dl-pair > div { align-items: flex-start; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; max-width: 980px; margin: 0 auto; }
.specs > div { padding: 26px 0; border-top: 1px solid var(--line-2); }
.specs h4, .steps h4 { margin: 0 0 6px; font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.specs p, .steps p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.steps { list-style: none; counter-reset: s; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(s); display: block; font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; color: var(--blue); }
.apps { max-width: 980px; margin: 0 auto; }
.app-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line-2); }
.app-row:first-child { border-top: 0; }
.app-row > img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px -10px rgba(10, 29, 74, .45); }
.app-row h3 { margin: 0 0 4px; font-size: 20px; font-weight: 500; letter-spacing: -.015em; }
.app-row p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 520px; }
.ar-act { display: flex; gap: 10px; justify-content: flex-end; }
.ar-act .inst { border: 0; padding: 0; background: none; max-width: 420px; }
.label { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* text pages: changelog, docs, about, legal */
.page-hero { margin-top: -72px; padding: 168px 0 48px; text-align: center; background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px); background-size: 28px 28px; background-position: 14px 14px; }
.wrap-narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
.page-hero .eyebrow { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.page-hero h1 { margin: 20px 0 0; font-size: clamp(42px, 6.4vw, 78px); font-weight: 500; letter-spacing: -.05em; line-height: 1; text-wrap: balance; }
.page-hero p { margin: 18px auto 0; max-width: 580px; font-size: 20px; line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.prose { padding: 24px 0 110px; }
.prose .entry { padding: 36px 0; border-top: 1px solid var(--line-2); }
.prose .entry:first-child { border-top: 0; }
.prose h2 { margin: 12px 0 14px; font-size: 28px; font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.prose h3 { margin: 24px 0 10px; font-size: 20px; font-weight: 500; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a:not(.gloss) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: .92em; padding: 1px 6px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.prose .tag { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.prose .tag.new { background: #e8efff; color: var(--blue-ink); box-shadow: none; }
.founder-head { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.founder-head h2 { margin: 0; }
.founder-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 600; }
.founder-role { margin: 2px 0 0 !important; font-size: 15px !important; }
.founder-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.nf { margin-top: -72px; padding: 210px 0 140px; text-align: center; background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px); background-size: 28px 28px; }
.nf h1 { margin: 0; font-size: clamp(120px, 22vw, 240px); font-weight: 500; letter-spacing: -.07em; line-height: .9; }
.nf p { margin: 18px auto 30px; font-size: 20px; color: var(--ink-2); }
.text-page .foot { border-top: 1px solid var(--line); }

@media (max-width: 980px) {
  .split-hero { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .split-hero .app-ico { margin: 0 auto 18px; }
  .split-hero .lede { margin-left: auto; }
  .split-hero .dl-pair { justify-content: center; }
  .split-hero .dl-pair > div { align-items: center; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .app-row { grid-template-columns: 52px minmax(0, 1fr); }
  .app-row > img { width: 52px; height: 52px; }
  .ar-act { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .specs { grid-template-columns: 1fr; }
  .page-hero { padding-top: 130px; }
  .page-hero p { font-size: 18px; }
  .prose p, .prose li { font-size: 16.5px; }
  .ar-act .inst { max-width: 100%; }
}

/* the phone hero gets a little desk of its own */
.ph-desk { display: none; }
@media (max-width: 640px) {
  .ph-desk { display: block; position: relative; height: 226px; margin: 38px 0 0; }
  .ph-desk > * { position: absolute; }
  .ph-desk .call { left: 0; top: 18px; width: 212px; transform: rotate(-4deg); }
  .ph-desk .sticky { right: 0; top: 0; width: 138px; padding: 12px 13px 15px; font-size: 13.5px; transform: rotate(5deg); }
  .ph-desk .pd-craft { right: 2px; top: 112px; }
  .ph-desk .pd-crew { left: 56%; top: 150px; transform: rotate(-6deg); }
  .ph-desk .icon { width: 70px; }
  .ph-desk .icon img { width: 50px; height: 50px; border-radius: 12px; }
  .hello { margin-top: 18px; }
  /* Orbit: show the part of the screen where it acts */
  .pc-win[data-app="orbit"] .real { aspect-ratio: 1 / 1 !important; }
  .pc-win[data-app="orbit"] .real img { object-position: 74% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}
