/* /get: the user's split layout (form left, mint illustration right). Tokens come from tokens.css + site.css. */

:root { --panel: #DDF5EE; --field: #FBFCFA; }
[hidden] { display: none !important; } /* site.css gives .btn, .steps etc. a display that would beat the attribute */
#announce { top: 0; left: 0; margin: 0; }
body { min-height: 100vh; }
a { color: var(--mint-ink); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
a.btn:hover { text-decoration: none; }

.page { display: grid; grid-template-columns: minmax(400px, 44%) 1fr; min-height: 100vh; min-height: 100svh; gap: 16px; padding: 16px; }

/* ---------- form column ---------- */
.form-col { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 92px clamp(24px, 6vw, 96px) 28px; }
.brand { position: absolute; top: 28px; left: clamp(24px, 6vw, 96px); display: flex; align-items: center; gap: 10px;
  font: 800 22px/1 var(--f-ui); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-face { width: 28px; height: 28px; }
.step { display: none; max-width: 460px; }
.step.on { display: block; }
.step:focus { outline: none; }
.get-h { font-size: clamp(40px, 4vw, 56px); line-height: 1.02; margin: 0 0 14px; }
.sub { color: var(--ink-2); margin: 0 0 26px; max-width: 32em; font-size: 17px; }

.platform { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 22px; border-radius: 999px; background: rgba(21, 23, 26, 0.05); }
.platform button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px;
  font: 600 14px/1 var(--f-ui); color: var(--ink-2); cursor: pointer; transition: background 150ms, color 150ms, box-shadow 150ms; }
.platform button svg { width: 15px; height: 15px; }
.platform button[aria-checked="true"] { background: var(--field); color: var(--ink); box-shadow: 0 1px 0 rgba(21, 23, 26, 0.08), 0 0 0 1.5px var(--ink); }
.platform button:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 2px; }
.platform .chip-soon { font-size: 11px; padding: 3px 7px; }

.btn-wide { width: 100%; justify-content: center; }
.btn-line { background: var(--field); }
.btn-line:hover { background: #fff; }
.oauth .btn + .btn { margin-top: 12px; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn[disabled] { cursor: progress; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.or { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 13.5px; margin: 22px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--whisker); flex: 1; }

label { display: block; font: 600 13.5px/1 var(--f-ui); margin: 0 0 8px; }
.field { display: block; width: 100%; height: 52px; border-radius: 14px; border: 1.5px solid var(--whisker); background: var(--field); padding: 0 16px;
  font: 450 16px var(--f-ui); color: var(--ink); outline: none; margin-bottom: 16px; transition: border-color 150ms, box-shadow 150ms; }
.field::placeholder { color: #9AA09B; }
.field:focus { border-color: var(--mint-ink); box-shadow: 0 0 0 3px rgba(8, 114, 95, 0.15); }
.field[aria-invalid="true"] { border-color: #B5332D; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tick { display: flex; align-items: center; gap: 10px; font: 500 14.5px/1.3 var(--f-ui); color: var(--ink-2); cursor: pointer; margin: 2px 0 0; }
.tick input { width: 18px; height: 18px; margin: 0; accent-color: var(--mint-ink); flex: none; }
.err { color: #B5332D; font-size: 14px; min-height: 22px; margin: 8px 0 6px; }
.fine { font: 450 13px/1.5 var(--f-ui); color: var(--ink-3); margin: 16px 0 0; }
.alt { margin-top: 24px; font-size: 14.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }

/* step 3 */
.check { width: 52px; height: 52px; border-radius: 50%; background: var(--mint-ink); color: #fff; display: grid; place-items: center; margin-bottom: 20px; }
.check svg { width: 26px; height: 26px; }
.step.on .check { animation: popin 0.45s var(--e-pop) both; }
@keyframes popin { from { transform: scale(0.4); opacity: 0; } }
ol.steps { margin: 4px 0 22px; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
ol.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center;
  font: 700 12px/1 var(--f-ui); color: var(--ink); margin-top: 1px; }
ol.steps b { color: var(--ink); }
.muted { color: var(--ink-3); }
.who { font-size: 14px; color: var(--ink-3); margin: 0 0 22px; }
.who:empty { display: none; }

/* ---------- illustration panel ---------- */
.panel { position: relative; border-radius: 28px; background: var(--panel); overflow: hidden; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; padding: 28px 28px 22px; min-height: 640px; }
.panel::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(8, 114, 95, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 114, 95, 0.06) 1px, transparent 1px);
  background-size: 32px 32px; }
.stage { --mew-gap: var(--panel); position: relative; width: min(660px, 100%); flex: 1; min-height: 440px; margin-bottom: 6px; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.links path { fill: none; stroke: var(--mint-ink); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: 0.45; transition: opacity 300ms, stroke 300ms; }
.links path.live { opacity: 1; stroke: #C98A1E; animation: flow 0.9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }

.chips { position: absolute; inset: 0; }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px 0 8px; border-radius: 999px; background: var(--field);
  border: 1.5px solid var(--ink); font: 650 14.5px/1 var(--f-ui); color: var(--ink); white-space: nowrap; box-shadow: 0 8px 18px -10px rgba(21, 23, 26, 0.35); }
.chip img { width: 24px; height: 24px; flex: none; }
.chip.app { border-color: rgba(21, 23, 26, 0.16); border-radius: 12px; font-weight: 600; color: var(--ink-2); height: 36px; padding-left: 8px; }
.chip.app img { width: 18px; height: 18px; }
.chip small { font: 600 10.5px/1 var(--f-ui); color: var(--mint-ink); background: rgba(8, 114, 95, 0.09); padding: 3px 6px; border-radius: 999px; margin-left: -1px; letter-spacing: 0.01em; }
.chip.cloud { border-style: dashed; }
.chip .dot { position: absolute; right: -4px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: #C98A1E; border: 2px solid var(--field);
  transform: scale(0); transition: transform 250ms var(--e-pop), background 300ms; }
.chip.asking .dot { transform: scale(1); }
.chip.ok .dot { transform: scale(1); background: var(--mint); }

/* positions (percent of the stage) */
.chip[data-k="claude"] { left: 36%; top: 1%; }
.chip[data-k="codex"] { left: 66%; top: 7%; }
.chip[data-k="cursor"] { left: 5%; top: 9%; }
.chip[data-k="grok"] { left: 67%; top: 23%; }
.chip[data-k="github"] { left: 38%; top: 15%; }
.chip[data-k="notion"] { left: 14%; top: 24%; }
.chip[data-k="gmail"] { left: 78%; top: 40%; }
.chip[data-k="drive"] { left: 50%; top: 33%; }

.cat { position: absolute; left: 0; bottom: 0; height: 64%; color: var(--ink); }
.cat svg { height: 100%; width: auto; display: block; overflow: visible; }
.cardlayer { position: absolute; inset: 0; pointer-events: none; }
.cardlayer .appui { pointer-events: none; transform-origin: 0 0; opacity: 0; }
.putback { position: absolute; left: 0; top: 0; opacity: 0; z-index: 61; pointer-events: none; background: var(--field); }

.caption-box { position: relative; text-align: center; max-width: 560px; }
.dots-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 7px; height: 7px; border-radius: 99px; background: rgba(21, 23, 26, 0.2); border: 0; padding: 0; cursor: pointer; transition: width 300ms, background 300ms; }
.dots button[aria-pressed="true"] { width: 22px; background: var(--ink); }
.dots button::after { content: ""; display: block; margin: -10px; height: 27px; } /* a 27 px hit area */
.pause { all: unset; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.pause:hover { background: rgba(21, 23, 26, 0.06); color: var(--ink); }
.pause:focus-visible { outline: 2px solid var(--mint-ink); }
.pause svg { width: 14px; height: 14px; }
.pause path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pause .i-play { display: none; fill: currentColor; stroke-width: 1.5; }
.pause[aria-pressed="true"] .i-play { display: block; } .pause[aria-pressed="true"] .i-pause { display: none; }
.cap-h { font: 380 32px/1.15 var(--f-display); font-variation-settings: var(--axes); letter-spacing: -0.015em; margin: 12px 0 0; min-height: 1.2em; }
.cap-h em { font-style: italic; font-variation-settings: var(--axes-italic); }
.cap-sub { font: 450 15px/1.45 var(--f-ui); color: var(--ink-2); margin: 6px auto 0; max-width: 46ch; min-height: 2.9em; }
.owners { position: relative; margin: 10px 0 0; font: 450 11.5px/1 var(--f-ui); color: rgba(21, 23, 26, 0.45); }

/* ---------- smaller screens ---------- */
@media (max-height: 840px) and (min-width: 901px) {
  .form-col { padding-top: 80px; padding-bottom: 16px; }
  .platform { margin-bottom: 16px; }
  .get-h { font-size: clamp(38px, 3.6vw, 50px); }
  .sub { margin-bottom: 20px; }
  .field { height: 48px; margin-bottom: 12px; }
  .alt { margin-top: 16px; }
}
@media (max-width: 1100px) {
  .chip { height: 34px; font-size: 13px; padding-right: 12px; } .chip img { width: 20px; height: 20px; }
  .chip.app { height: 32px; } .chip.app img { width: 16px; height: 16px; }
}
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; padding: 12px; gap: 12px; }
  .form-col { padding: 80px 4px 28px; }
  .brand { left: 4px; top: 20px; }
  .step { max-width: none; }
  .panel { padding: 18px 12px 18px; border-radius: 24px; min-height: 0; }
  .stage { min-height: 0; height: 480px; flex: none; }
  .cat { height: 37%; left: -2%; }
  .chip { height: 30px; font-size: 12px; padding: 0 10px 0 5px; gap: 6px; } .chip img { width: 18px; height: 18px; }
  .chip.app { height: 28px; } .chip.app img { width: 14px; height: 14px; }
  .chip small { font-size: 9.5px; padding: 2px 5px; }
  .chip[data-k="claude"] { left: 2%; top: 1%; } .chip[data-k="codex"] { left: 46%; top: 2%; }
  .chip[data-k="cursor"] { left: auto; right: 4%; top: 11%; } .chip[data-k="github"] { left: 28%; top: 11%; }
  .chip[data-k="grok"] { left: 52%; top: 20%; } .chip[data-k="notion"] { left: 4%; top: 22%; }
  .chip[data-k="gmail"] { left: auto; right: 2%; top: 31%; } .chip[data-k="drive"] { left: 36%; top: 31%; }
  .cap-h { font-size: 25px; }
  .cap-sub { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .links path.live, .spin { animation: none; }
  .step.on .check { animation: none; }
  .chip .dot, .dots button { transition: none; }
}
