/* ==========================================================================
   Keep it Split — story landing
   ========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "New York", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(20px, 4vw, 64px);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-raised: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #66666b;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #0071e3;
  --accent-hover: #0066cc;
  --seg-bg: rgba(0, 0, 0, 0.06);
  --seg-on: #ffffff;
  --seg-ink: #55555a;
  --seg-on-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  --stage-glow: radial-gradient(50% 42% at 50% 78%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 70%);
  --outside-op: 0.32;
  --frame-line: rgba(0, 0, 0, 0.42);
  --frame-fill: rgba(0, 0, 0, 0.025);
  --toggle-bg: rgba(255, 255, 255, 0.7);
  --panel-bg: rgba(250, 250, 252, 0.82);

  --win-bg: #ffffff;
  --win-bar: #f6f6f7;
  --win-side: #f2f2f4;
  --win-ink: #1d1d1f;
  --win-ink-2: #6e6e73;
  --win-ink-3: #aeaeb2;
  --win-line: rgba(0, 0, 0, 0.08);
  --win-fill: #ececee;
  --canvas: #e8e8ea;
  --canvas-dot: rgba(0, 0, 0, 0.09);
  --cell-head: #f6f6f7;
  --bubble-in: #e9e9eb;
  --cover-bg: rgba(246, 246, 248, 0.6);
  --peek-bg: rgba(16, 16, 18, 0.34);
  --peek-hover: rgba(16, 16, 18, 0.18);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-raised: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #86868b;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #0a84ff;
  --accent-hover: #2997ff;
  --seg-bg: rgba(255, 255, 255, 0.1);
  --seg-on: #3a3a3c;
  --seg-ink: #a1a1a6;
  --seg-on-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  --stage-glow:
    radial-gradient(46% 36% at 50% 96%, rgba(98, 54, 255, 0.55), rgba(98, 54, 255, 0) 72%),
    radial-gradient(70% 40% at 50% 100%, rgba(40, 80, 255, 0.25), rgba(40, 80, 255, 0) 70%);
  --outside-op: 0.28;
  --frame-line: rgba(255, 255, 255, 0.5);
  --frame-fill: rgba(255, 255, 255, 0.03);
  --toggle-bg: rgba(40, 40, 42, 0.7);
  --panel-bg: rgba(30, 30, 32, 0.8);

  --win-bg: #1e1e20;
  --win-bar: #2a2a2c;
  --win-side: #242426;
  --win-ink: #f5f5f7;
  --win-ink-2: #98989d;
  --win-ink-3: #5c5c60;
  --win-line: rgba(255, 255, 255, 0.09);
  --win-fill: #333336;
  --canvas: #161618;
  --canvas-dot: rgba(255, 255, 255, 0.08);
  --cell-head: #262628;
  --bubble-in: #303033;
  --cover-bg: rgba(38, 38, 42, 0.6);
  --peek-bg: rgba(0, 0, 0, 0.48);
  --peek-hover: rgba(0, 0, 0, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  transition: background-color 400ms ease, color 400ms ease;
}

::selection {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: none;
}

/* the only chrome: appearance toggle */
.top-actions {
  position: fixed;
  z-index: 100;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: flex;
  gap: 8px;
}

.round-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--toggle-bg);
  box-shadow: 0 0 0 0.5px var(--line), 0 4px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  transition: transform 200ms var(--ease), background-color 200ms;
}

.round-btn:hover {
  transform: scale(1.06);
}

.round-btn:active {
  transform: scale(0.95);
}

.round-btn[aria-expanded="true"] {
  background: var(--ink);
  color: var(--bg);
}

.round-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

/* ---------------------------------------------------------------- settings panel */

.tweaks {
  position: fixed;
  z-index: 99;
  top: calc(max(16px, env(safe-area-inset-top)) + 54px);
  right: max(16px, env(safe-area-inset-right));
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100svh - 96px);
  overflow: auto;
  padding: 6px 16px 14px;
  border-radius: 22px;
  background: var(--panel-bg);
  box-shadow: 0 0 0 0.5px var(--line), 0 24px 60px rgba(0, 0, 0, 0.22);
  color: var(--ink);
  font-size: 13px;
  overscroll-behavior: contain;
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  transform-origin: top right;
  animation: panelIn 260ms var(--ease);
}

.tweaks[hidden] {
  display: none;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

.tw-group {
  margin: 14px 0 6px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.tw-row {
  display: grid;
  gap: 6px;
  padding: 9px 0;
  box-shadow: inset 0 -0.5px 0 var(--line);
}

.tw-row:last-of-type {
  box-shadow: none;
}

.tw-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tw-head output {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.tw-row input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--accent);
}

.tw-row.is-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tw-seg {
  display: flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--seg-bg);
}

.tw-seg button {
  flex: 1;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--seg-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.tw-seg button[aria-pressed="true"] {
  background: var(--seg-on);
  box-shadow: var(--seg-on-shadow);
  color: var(--ink);
}

.tw-switch {
  position: relative;
  width: 38px;
  height: 23px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--seg-bg);
  cursor: pointer;
  transition: background-color 200ms;
}

.tw-switch::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  content: "";
  transition: transform 220ms var(--ease);
}

.tw-switch[aria-checked="true"] {
  background: #34c759;
}

.tw-switch[aria-checked="true"]::after {
  transform: translateX(15px);
}

.tw-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 12px;
}

.tw-foot-btns {
  display: flex;
  gap: 6px;
}

.tw-dump {
  width: 100%;
  height: 180px;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--seg-bg);
  color: var(--ink);
  font: 11px/1.4 ui-monospace, Menlo, monospace;
}

.tw-reset {
  white-space: nowrap;
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--seg-bg);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.only-dark,
:root[data-theme="dark"] .only-light,
.icon-sun,
:root[data-theme="dark"] .icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: block;
}

:root[data-theme="dark"] .only-dark {
  display: inline-block;
}

/* ================================================================ STORY */

.story {
  position: relative;
  height: 1250svh;
}

.pin {
  position: sticky;
  top: 0;
  display: flex;
  height: 100svh;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 4.5svh, 48px) var(--gutter) 0;
  overflow: hidden;
}

.pin::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--stage-glow);
  content: "";
  pointer-events: none;
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.14));
}

.headlines {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(96px, 15svh, 150px);
  flex: none;
  margin-top: clamp(14px, 2.6svh, 28px);
}

.headline {
  grid-area: 1 / 1;
  align-self: end;
  max-width: 30ch;
  margin: 0 auto;
  font-size: clamp(30px, 4.1vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  will-change: opacity, transform, filter;
}

.headline span {
  color: var(--ink-2);
}

.headline-solo {
  font-size: clamp(36px, 5vw, 72px);
}

.stage {
  display: grid;
  width: 100%;
  min-height: 0;
  flex: 1;
  place-items: start center;
  padding-top: clamp(6px, 1.6svh, 18px);
  container-type: size;
}

/* ================================================================ LAPTOP (3D) */

.laptop {
  /* default: the screen fills the stage and the keyboard runs off the bottom */
  --lw: calc(min(90cqw, 132cqh) * var(--mac-size, 1));
  position: relative;
  width: var(--lw);
  height: calc(var(--lw) * 1.02);
  perspective: calc(var(--lw) * var(--mac-persp, 2.8));
  perspective-origin: 50% 26%;
  transform: translateY(var(--mac-y, 0%));
}

.laptop.no-deck .deck {
  display: none;
}

/* silver finish */
.laptop[data-finish="silver"] .lid-back {
  background: linear-gradient(180deg, #e3e4e6, #c9cacd);
}

.laptop[data-finish="silver"] .lid-front {
  box-shadow: inset 0 0 0 0.16em #c9cacd, inset 0 0 0 0.22em rgba(255, 255, 255, 0.5);
}

.laptop[data-finish="silver"] .deck {
  background: linear-gradient(180deg, #dcdde0, #d0d1d4 60%, #c8c9cc);
  box-shadow: inset 0 0 0 0.14em rgba(255, 255, 255, 0.5);
}

.laptop[data-finish="silver"] .hinge {
  background: linear-gradient(180deg, #8d8e92, #c3c4c7);
}

.laptop[data-finish="silver"] .trackpad {
  background: linear-gradient(180deg, #d6d7da, #cfd0d3);
  box-shadow: inset 0 0 0 0.1em rgba(0, 0, 0, 0.08), inset 0 0.2em 0.6em rgba(0, 0, 0, 0.06);
}

.laptop[data-finish="silver"] .grill {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.45) 0 0.18em, transparent 0.24em) 0 0 / 0.75em 0.75em;
}


.scene {
  position: absolute;
  inset: 0;
  transform-origin: 50% 70%;
  transform-style: preserve-3d;
  will-change: transform;
}

/* geometry, in % of the screen width (1em). Tuned from the settings panel. */
.laptop {
  --bz: 0.95;  /* bezel, equal on all sides */
  --r: 2.15;   /* outer corner radius of lid and base */
  --lt: 1.5;   /* lid thickness */
  --bt: 2.4;   /* base thickness */
  --hd: 1.4;   /* how far the lid sits down into the hinge */
}

.lid,
.deck {
  font-size: calc(var(--lw) / (100 + 2 * var(--bz)));
}

.lid {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--lw);
  height: calc((64.94 + 2 * var(--bz)) * 1em);
  transform-origin: 50% calc(100% - var(--hd) * 1em);
  transform-style: preserve-3d;
}

.lid-back,
.lid-front {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--r) * 1em);
  backface-visibility: hidden;
}

.lid-back {
  background: linear-gradient(180deg, #393a3f, #2b2c30);
  box-shadow: inset 0 0 0 0.06em rgba(255, 255, 255, 0.1);
  transform: translateZ(calc(var(--lt) * -1em)) rotateY(180deg);
}

.lid-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12em;
  height: 8em;
  fill: rgba(255, 255, 255, 0.9);
  stroke: #fff;
  stroke-width: 1;
  filter: drop-shadow(0 0 0.5em rgba(255, 255, 255, 0.9)) drop-shadow(0 0 2.6em rgba(160, 195, 255, 0.75));
  transform: translate(-50%, -50%);
}

.lid-front {
  background: #050506;
  box-shadow:
    inset 0 0 0 0.16em #2b2c30,
    inset 0 0 0 0.22em rgba(255, 255, 255, 0.07);
}

.outside,
.screen {
  position: absolute;
  top: calc(var(--bz) * 1em);
  left: calc(var(--bz) * 1em);
  width: 100em;
  height: 64.94em;
}

.outside {
  opacity: var(--outside-op);
  pointer-events: none;
  transform: translateZ(-1.5px);
  transition: opacity 400ms ease;
}

.screen {
  overflow: hidden;
  border-radius: calc(max(var(--r) - var(--bz), 0.3) * 1em);
  background: #c9c3b8 url("./assets/wallpaper-light.webp") center / cover no-repeat;
  backface-visibility: hidden;
  transform: translateZ(0.5px);
}

:root[data-theme="dark"] .screen {
  background: #1a1a2a url("./assets/wallpaper-dark.webp") center / cover no-repeat;
}

/* the demo frame stays a plain outline */
.frame .screen,
:root[data-theme="dark"] .frame .screen {
  background: var(--frame-fill);
}

.glare {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--r) * 1em);
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
  transform: translateZ(1px);
  backface-visibility: hidden;
}

/* rim: the side walls of lid and base, built from strips around the rounded outline */
.rim {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.rim i {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  background: color-mix(in srgb, var(--rim-hi) calc(var(--k) * 100%), var(--rim-lo));
  transform-origin: 0 0;
}

.laptop {
  --rim-hi: #6a6b71;
  --rim-lo: #17181a;
}

.laptop[data-finish="silver"] {
  --rim-hi: #f4f4f6;
  --rim-lo: #8e8f93;
}

.rim .notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  height: 55%;
  border-radius: 0 0 0.8em 0.8em;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-50%);
}

.screen-dim {
  position: absolute;
  z-index: 40;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.island {
  position: absolute;
  z-index: 35;
  top: 0.42em;
  left: 50%;
  width: 4.6em;
  height: 1.7em;
  border-radius: 1em;
  background: #000;
  box-shadow: inset 0.9em 0 0 -0.55em rgba(40, 60, 120, 0.25);
  transform: translateX(-50%);
}

.menubar {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 2.55em;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.8em;
  background: rgba(10, 20, 50, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1em;
  font-weight: 500;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(1.4em);
  backdrop-filter: blur(1.4em);
}

:root[data-theme="light"] .menubar {
  background: rgba(255, 255, 255, 0.28);
  color: rgba(20, 20, 24, 0.88);
}

.menubar > div {
  display: flex;
  align-items: center;
  gap: 1.4em;
  font-size: 1.05em;
}

.menubar b {
  font-weight: 700;
}

.menubar svg {
  width: 1.6em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
}

/* base (top case) */
.deck {
  position: absolute;
  top: calc((64.94 + 2 * var(--bz) - var(--hd)) * 1em);
  left: 0;
  width: 100%;
  height: calc((64.94 + 2 * var(--bz) - var(--hd)) * 1em);
  border-radius: calc(var(--r) * 1em);
  background: linear-gradient(180deg, #2a2b2f, #222326 60%, #1f2023);
  box-shadow: inset 0 0 0 0.1em rgba(255, 255, 255, 0.06);
  transform: rotateX(90deg);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}

.hinge {
  position: absolute;
  top: 0;
  left: 9%;
  right: 9%;
  height: 2.2em;
  border-radius: 0 0 1em 1em;
  background: linear-gradient(180deg, #0c0c0e, #1d1e21);
}

.keys {
  position: absolute;
  top: 6.5%;
  left: 12.5%;
  display: flex;
  width: 75%;
  height: 41%;
  flex-direction: column;
  gap: 0.45em;
  padding: 0.6em;
  border-radius: 0.9em;
  background: #0b0b0d;
}

.keys > div {
  display: flex;
  flex: 1;
  gap: 0.45em;
}

.keys > div:first-child {
  flex: 0.55;
}

.keys i {
  flex: 1;
  border-radius: 0.45em;
  background: linear-gradient(180deg, #1b1b1e, #141416);
  box-shadow: inset 0 0.08em 0 rgba(255, 255, 255, 0.07);
}

.keys i.w15 { flex: 1.5; }
.keys i.w18 { flex: 1.8; }
.keys i.w23 { flex: 2.3; }
.keys i.w6 { flex: 6.2; }

.grill {
  position: absolute;
  top: 6.5%;
  width: 8.4%;
  height: 41%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.75) 0 0.18em, transparent 0.24em) 0 0 / 0.75em 0.75em;
}

.grill-l { left: 2.4%; }
.grill-r { right: 2.4%; }

.trackpad {
  position: absolute;
  top: 54%;
  left: 29%;
  width: 42%;
  height: 40%;
  border-radius: 1.6em;
  background: linear-gradient(180deg, #2b2c30, #26272a);
  box-shadow: inset 0 0 0 0.1em rgba(255, 255, 255, 0.06), inset 0 0.2em 0.6em rgba(0, 0, 0, 0.25);
}

.floor {
  position: absolute;
  inset: -2% -3% -4%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 70%);
  filter: blur(1.4em);
  transform: translateZ(calc(var(--bt) * -1em - 2px));
}

/* ================================================================ WINDOWS (shared) */

.ws {
  position: absolute;
  top: 2.55em;
  right: 0;
  bottom: 0;
  left: 0;
}

.frame .ws {
  top: 0;
}

.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.25em;
  background: var(--win-bg);
  box-shadow: 0 0 0 0.06em rgba(0, 0, 0, 0.22), 0 0.8em 2.4em rgba(0, 0, 0, 0.22), 0 0.2em 0.6em rgba(0, 0, 0, 0.1);
  color: var(--win-ink);
  font-size: 1em;
  line-height: 1.35;
}

:root[data-theme="dark"] .win {
  box-shadow: 0 0 0 0.06em rgba(255, 255, 255, 0.13), 0 0 0 0.12em rgba(0, 0, 0, 0.6), 0 0.9em 2.6em rgba(0, 0, 0, 0.55);
}

.win.is-front {
  box-shadow: 0 0 0 0.06em rgba(0, 0, 0, 0.25), 0 1.4em 4em rgba(0, 0, 0, 0.32), 0 0.3em 0.9em rgba(0, 0, 0, 0.14);
}

.anim .win,
.anim .divider,
.anim .peek {
  transition:
    left 420ms var(--ease),
    top 420ms var(--ease),
    width 420ms var(--ease),
    height 420ms var(--ease),
    opacity 300ms ease;
}

.bar {
  position: relative;
  display: flex;
  height: 3.5em;
  min-height: 3.5em;
  align-items: center;
  gap: 1.2em;
  padding: 0 1.3em;
  border-bottom: 0.08em solid var(--win-line);
  background: var(--win-bar);
  white-space: nowrap;
}

.lights {
  display: flex;
  flex: none;
  gap: 0.6em;
}

.lights i {
  display: block;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #ff5f57;
}

.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.bar-title {
  position: absolute;
  left: 50%;
  overflow: hidden;
  max-width: 44%;
  color: var(--win-ink);
  font-size: 1.2em;
  font-weight: 600;
  text-overflow: ellipsis;
  transform: translateX(-50%);
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-left: auto;
}

.pill-btn {
  padding: 0.35em 1em;
  border-radius: 0.6em;
  background: #0a84ff;
  color: #fff;
  font-size: 1.05em;
  font-weight: 600;
}

.tool {
  width: 1.7em;
  height: 1.7em;
  border-radius: 0.45em;
  background: var(--win-fill);
}

.tool.on {
  background: #0a84ff;
}

.body {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

/* --- A · design tool --- */
.design {
  display: flex;
  height: 100%;
}

.layers,
.inspect {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.25em;
  padding: 1.4em 1em;
  background: var(--win-side);
  white-space: nowrap;
}

.layers {
  width: 16em;
  border-right: 0.08em solid var(--win-line);
}

.inspect {
  width: 19em;
  gap: 0.9em;
  padding: 1.4em 1.4em;
  border-left: 0.08em solid var(--win-line);
}

.panel-title {
  margin: 0 0.5em 0.6em;
  color: var(--win-ink-2);
  font-size: 1em;
  font-weight: 600;
}

.inspect .panel-title {
  margin: 0;
}

.layer {
  display: flex;
  align-items: center;
  gap: 0.7em;
  overflow: hidden;
  padding: 0.5em 0.6em;
  border-radius: 0.5em;
  font-size: 1.12em;
  text-overflow: ellipsis;
}

.layer::before {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  border: 0.12em solid currentColor;
  border-radius: 0.2em;
  content: "";
  opacity: 0.55;
}

.layer.in {
  padding-left: 2em;
}

.layer.on {
  background: rgba(10, 132, 255, 0.16);
  color: #0a7aff;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}

.field {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 0.7em;
  border-radius: 0.5em;
  background: var(--win-fill);
  font-size: 1.05em;
}

.field i {
  color: var(--win-ink-3);
  font-style: normal;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1.05em;
}

.swatch::before {
  width: 1.6em;
  height: 1.6em;
  border-radius: 0.4em;
  background: linear-gradient(135deg, #ff9f0a, #ff375f);
  content: "";
}

.canvas {
  position: relative;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  background: radial-gradient(circle, var(--canvas-dot) 0 0.1em, transparent 0.14em) 0 0 / 1.6em 1.6em, var(--canvas);
}

.artboard {
  position: absolute;
  top: 52%;
  left: 50%;
  display: flex;
  width: 24em;
  height: 46em;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2.6em;
  background: #fff;
  box-shadow: 0 0.4em 1.6em rgba(0, 0, 0, 0.18);
  color: #1d1d1f;
  transform: translate(-50%, -50%);
}

.artboard-label {
  position: absolute;
  top: -1.9em;
  left: 0;
  color: var(--win-ink-2);
  font-size: 1em;
  white-space: nowrap;
}

.art-hero {
  height: 46%;
  flex: none;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(255, 220, 160, 0.9), rgba(255, 220, 160, 0) 70%),
    linear-gradient(160deg, #ff9f0a, #ff375f 60%, #bf3a8f);
}

.art-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.9em;
  padding: 2.2em 2.2em 2.4em;
}

.art-copy b {
  font-size: 2.6em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.art-copy span {
  color: #6e6e73;
  font-size: 1.3em;
  line-height: 1.4;
}

.art-btn {
  display: grid;
  height: 4em;
  margin-top: auto;
  place-items: center;
  border-radius: 1.2em;
  background: #1d1d1f;
  color: #fff;
  font-size: 1.25em;
  font-weight: 600;
}

/* scrollbar that shows when content does not fit */
.hbar {
  position: absolute;
  right: 0.8em;
  bottom: 0.6em;
  left: 0.8em;
  height: 0.55em;
  border-radius: 1em;
  opacity: 0;
  transition: opacity 200ms;
}

.hbar::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--fit, 1) * 100%);
  border-radius: 1em;
  background: rgba(127, 127, 127, 0.5);
  content: "";
}

.win.is-tight .hbar {
  opacity: 1;
}

/* --- B · spreadsheet --- */
.sheet-tabs {
  display: flex;
  gap: 0.4em;
  padding: 0.8em 1.2em 0;
  white-space: nowrap;
}

.sheet-tabs span {
  padding: 0.45em 1em;
  border-radius: 0.5em 0.5em 0 0;
  color: var(--win-ink-2);
  font-size: 1.05em;
}

.sheet-tabs span.on {
  background: var(--win-fill);
  color: var(--win-ink);
  font-weight: 600;
}

.sheet {
  display: grid;
  grid-template-columns: 12em repeat(8, 8.4em) 9.6em;
  border-top: 0.08em solid var(--win-line);
  font-size: 1em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sheet span {
  overflow: hidden;
  padding: 0.62em 0.9em;
  border-right: 0.08em solid var(--win-line);
  border-bottom: 0.08em solid var(--win-line);
  font-size: 1.12em;
  text-align: right;
  text-overflow: ellipsis;
}

.sheet .h {
  background: var(--cell-head);
  color: var(--win-ink-2);
  font-weight: 600;
}

.sheet .n {
  text-align: left;
}

.sheet .t {
  font-weight: 700;
}

.sheet .sel {
  box-shadow: inset 0 0 0 0.16em #0a84ff;
}

.sheet .neg {
  color: #ff453a;
}

/* --- C · messages --- */
.msgs {
  display: flex;
  height: 100%;
}

.msg-list {
  display: flex;
  width: 22em;
  flex: none;
  flex-direction: column;
  gap: 0.2em;
  padding: 1em 0.7em;
  background: var(--win-side);
  border-right: 0.08em solid var(--win-line);
}

.msg-item {
  display: grid;
  grid-template-columns: 3.4em 1fr;
  align-items: center;
  gap: 0.2em 0.9em;
  overflow: hidden;
  padding: 0.6em 0.7em;
  border-radius: 0.8em;
  white-space: nowrap;
}

.msg-item.on {
  background: #0a84ff;
  color: #fff;
}

.msg-item.on span {
  color: rgba(255, 255, 255, 0.82);
}

.avatar {
  display: grid;
  width: 3.4em;
  height: 3.4em;
  grid-row: span 2;
  place-items: center;
  border-radius: 50%;
  background: var(--c, #8e8e93);
  color: #fff;
  font-size: 1em;
  font-weight: 700;
}

.msg-item b {
  overflow: hidden;
  font-size: 1.12em;
  text-overflow: ellipsis;
}

.msg-item span {
  overflow: hidden;
  color: var(--win-ink-2);
  font-size: 1em;
  text-overflow: ellipsis;
}

.chat {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7em;
  padding: 1.6em 2.4em 1.4em;
}

.bubble {
  max-width: 34em;
  padding: 0.7em 1.1em;
  border-radius: 1.3em;
  background: var(--bubble-in);
  font-size: 1.2em;
  line-height: 1.35;
}

.bubble.me {
  align-self: flex-end;
  background: #0a84ff;
  color: #fff;
}

.composer {
  display: flex;
  height: 3.2em;
  align-items: center;
  margin-top: 0.6em;
  padding: 0 1.2em;
  border-radius: 1.6em;
  box-shadow: inset 0 0 0 0.1em var(--win-line);
  color: var(--win-ink-3);
  font-size: 1.1em;
}

/* --- D · browser article --- */
.url {
  display: flex;
  min-width: 0;
  height: 2.2em;
  flex: 0 1 26em;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0 1em;
  border-radius: 0.7em;
  background: var(--win-fill);
  color: var(--win-ink-2);
  font-size: 1.05em;
}

.article {
  max-width: 60em;
  margin: 0 auto;
  padding: 2.4em 3.6em;
}

.mast {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.2em;
  padding-bottom: 1.2em;
  border-bottom: 0.08em solid var(--win-line);
  white-space: nowrap;
}

.mast b {
  font-family: var(--serif);
  font-size: 1.9em;
  font-weight: 600;
}

.article h3 {
  margin: 0 0 0.6em;
  font-family: var(--serif);
  font-size: 3.4em;
  font-weight: 600;
  line-height: 1.04;
}

.article p {
  margin: 0 0 1.4em;
  color: var(--win-ink-2);
  font-size: 1.3em;
  line-height: 1.5;
}

.photo {
  height: 16em;
  border-radius: 0.9em;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(255, 240, 214, 0.9), rgba(255, 240, 214, 0) 70%),
    linear-gradient(165deg, #c9d6d3 0%, #8fa7a0 45%, #556b63 100%);
}

/* --- E · mail --- */
.mail div {
  display: grid;
  gap: 0.25em;
  padding: 1em 1.6em;
  border-bottom: 0.08em solid var(--win-line);
  white-space: nowrap;
}

.mail b {
  font-size: 1.15em;
}

.mail span {
  overflow: hidden;
  color: var(--win-ink-2);
  font-size: 1.05em;
  text-overflow: ellipsis;
}

/* --- F · music --- */
.music {
  display: flex;
  gap: 1.6em;
  padding: 1.8em;
}

.album {
  width: 13em;
  height: 13em;
  flex: none;
  border-radius: 0.8em;
  background:
    radial-gradient(60% 60% at 30% 30%, #ffd36e, rgba(255, 211, 110, 0) 70%),
    linear-gradient(135deg, #ff6b3d, #c2185b 55%, #1a237e);
  box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.25);
}

.tracks {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 0.2em;
  white-space: nowrap;
}

.tracks b {
  margin-bottom: 0.2em;
  font-size: 1.7em;
}

.tracks small {
  margin-bottom: 1em;
  color: #ff375f;
  font-size: 1.15em;
}

.tracks span {
  overflow: hidden;
  padding: 0.5em 0;
  border-bottom: 0.08em solid var(--win-line);
  font-size: 1.1em;
  text-overflow: ellipsis;
}

/* --- G · calendar --- */
.cal {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 1.4em 1.8em 1.8em;
}

.cal-head {
  margin-bottom: 0.8em;
  font-size: 1.9em;
  font-weight: 700;
}

.cal-head span {
  color: #ff3b30;
}

.cal-grid {
  position: relative;
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
  border-top: 0.08em solid var(--win-line);
  border-left: 0.08em solid var(--win-line);
}

.cal-grid i {
  padding: 0.3em 0.5em;
  border-right: 0.08em solid var(--win-line);
  border-bottom: 0.08em solid var(--win-line);
  color: var(--win-ink-3);
  font-size: 0.95em;
  font-style: normal;
}

.cal-grid b {
  position: absolute;
  height: 10%;
  overflow: hidden;
  padding: 0 0.5em;
  border-radius: 0.4em;
  font-size: 0.95em;
  line-height: 1.9;
  white-space: nowrap;
}

.cal-grid b:nth-of-type(1) { top: 12%; left: 15%; width: 26%; background: rgba(0, 122, 255, 0.2); color: #0a64d6; }
.cal-grid b:nth-of-type(2) { top: 45%; left: 44%; width: 26%; background: rgba(52, 199, 89, 0.22); color: #1e8e3e; }
.cal-grid b:nth-of-type(3) { top: 78%; left: 1.5%; width: 24%; background: rgba(255, 149, 0, 0.24); color: #c26a00; }

/* drag cover: blurred pane + app icon (the app's own) */
.cover {
  position: absolute;
  z-index: 6;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.4em;
  background: var(--cover-bg);
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(1.6em) saturate(1.4);
  backdrop-filter: blur(1.6em) saturate(1.4);
}

.app-icon {
  display: grid;
  width: 7.4em;
  height: 7.4em;
  place-items: center;
  border-radius: 1.7em;
  box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.22), inset 0 0 0 0.08em rgba(255, 255, 255, 0.22);
}

.app-icon {
  position: relative;
}

.app-icon svg {
  width: 62%;
  height: 62%;
}

.app-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* a supplied PNG brings its own shape */
.app-icon:has(img) {
  background: none;
  box-shadow: none;
  filter: drop-shadow(0 0.4em 0.8em rgba(0, 0, 0, 0.22));
}

.app-icon:has(img) svg {
  display: none;
}

.icon-files { background: linear-gradient(90deg, #8fd3ff 0 50%, #e9f6ff 50% 100%); }
.icon-browser { background: linear-gradient(180deg, #5ac8fa, #0a84ff); }
.icon-canvas { background: linear-gradient(160deg, #2c2c2e, #0c0c0d); }
.icon-sheets { background: linear-gradient(180deg, #4cd964, #1f9d3a); }
.icon-chat { background: linear-gradient(180deg, #6ee36b, #2fb12b); }
.icon-mail { background: linear-gradient(180deg, #48a9ff, #0a64d6); }
.icon-trash { background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(220, 225, 232, 0.35)); }

/* Dock */
.lid .ws {
  bottom: 6.4em;
}

.dock {
  position: absolute;
  z-index: 28;
  bottom: 0.55em;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.75em;
  border-radius: 1.9em;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 0.07em rgba(255, 255, 255, 0.45), 0 0.6em 2em rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(1.6em) saturate(1.8);
  backdrop-filter: blur(1.6em) saturate(1.8);
}

:root[data-theme="dark"] .dock {
  background: rgba(40, 40, 46, 0.4);
  box-shadow: inset 0 0 0 0.07em rgba(255, 255, 255, 0.18), 0 0.6em 2em rgba(0, 0, 0, 0.35);
}

.dock-item {
  position: relative;
  display: block;
}

.dock .app-icon {
  width: 4.3em;
  height: 4.3em;
  border-radius: 1em;
  box-shadow: 0 0.2em 0.6em rgba(0, 0, 0, 0.2), inset 0 0 0 0.06em rgba(255, 255, 255, 0.25);
}

.dock-item.on::after {
  position: absolute;
  bottom: -0.42em;
  left: 50%;
  width: 0.32em;
  height: 0.32em;
  border-radius: 50%;
  background: rgba(20, 20, 30, 0.7);
  content: "";
  transform: translateX(-50%);
}

:root[data-theme="dark"] .dock-item.on::after {
  background: rgba(255, 255, 255, 0.8);
}

.dock-sep {
  width: 0.08em;
  height: 3.6em;
  margin: 0 0.15em;
  background: rgba(255, 255, 255, 0.5);
}

.icon-design { background: linear-gradient(160deg, #2c2c2e, #0c0c0d); }
.icon-sheet { background: linear-gradient(180deg, #4cd964, #1f9d3a); }
.icon-msgs { background: linear-gradient(180deg, #6ee36b, #2fb12b); }

.release {
  display: none;
  padding: 0.7em 1.4em;
  border-radius: 99em;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 1.3em;
  font-weight: 600;
  white-space: nowrap;
}

.win.show-hint .release {
  display: block;
}

/* ================================================================ SPLIT UI */

.divider {
  position: absolute;
  z-index: 20;
  display: grid;
  padding: 0;
  border: 0;
  margin: 0;
  background: none;
  place-items: center;
  touch-action: none;
}

.divider-h {
  top: 0;
  width: max(24px, 4em);
  height: 100%;
  cursor: col-resize;
  transform: translateX(-50%);
}

.divider-v {
  left: 0;
  width: 100%;
  height: max(24px, 4em);
  cursor: row-resize;
  transform: translateY(-50%);
}

.grip {
  display: block;
  width: max(4px, 0.62em);
  height: min(8.6em, 34%);
  border-radius: 99em;
  background: #ffffff;
  box-shadow: 0 0 0 0.08em rgba(0, 0, 0, 0.35), 0 0.3em 1em rgba(0, 0, 0, 0.3);
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}

.divider-v .grip {
  width: min(8.6em, 22%);
  height: max(4px, 0.62em);
}

.divider:hover .grip,
.divider.is-dragging .grip {
  transform: scale(1.2);
}

.divider.is-snap .grip {
  box-shadow: 0 0 0 0.08em rgba(0, 0, 0, 0.35), 0 0 0 0.5em rgba(255, 255, 255, 0.35), 0 0 2.4em rgba(140, 190, 255, 0.95);
  transform: scale(1.35);
}

.divider:focus-visible {
  outline: none;
}

.divider:focus-visible .grip {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.peeks {
  position: absolute;
  z-index: 12;
  inset: 0;
  pointer-events: none;
}

.peek {
  position: absolute;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 1.25em;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  /* windows that are not in focus are simply out of focus */
  -webkit-backdrop-filter: blur(0.9em);
  backdrop-filter: blur(0.9em);
  transition: background-color 220ms ease;
}

.peek:hover {
  background: rgba(255, 255, 255, 0.08);
}

.laptop .peek {
  pointer-events: none;
}

.laptop.peek-live .peek {
  pointer-events: auto;
}

/* glass highlight when a window reaches the screen edge */
.snap {
  position: absolute;
  z-index: 3;
  border-radius: 1.3em;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 0.12em rgba(255, 255, 255, 0.6), 0 1em 3em rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(1.4em) saturate(1.6);
  backdrop-filter: blur(1.4em) saturate(1.6);
}

/* activation zone: the edge lights up like a magnet */
.zone {
  position: absolute;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
}

.zone-r { top: 0; right: 0; bottom: 0; width: 22%; background: linear-gradient(270deg, rgba(150, 200, 255, 0.55), rgba(150, 200, 255, 0)); }
.zone-l { top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, rgba(150, 200, 255, 0.55), rgba(150, 200, 255, 0)); }
.zone-t { top: 0; right: 0; left: 0; height: 24%; background: linear-gradient(180deg, rgba(150, 200, 255, 0.55), rgba(150, 200, 255, 0)); }

.ripple {
  position: absolute;
  z-index: 22;
  width: 7em;
  height: 7em;
  border: 0.35em solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.3);
}

/* pointer: a soft disc, not an arrow */
.cursor {
  position: absolute;
  z-index: 26;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.42);
  box-shadow: 0 0 0 0.09em rgba(255, 255, 255, 0.65), 0 0.3em 1.1em rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 160ms var(--ease), background-color 160ms;
  -webkit-backdrop-filter: blur(0.5em) saturate(1.6);
  backdrop-filter: blur(0.5em) saturate(1.6);
}

.cursor.is-press {
  background: rgba(90, 90, 98, 0.55);
  transform: translate(-50%, -50%) scale(0.8);
}

/* load moment */
.laptop.is-intro .screen .win {
  animation: drop 1000ms var(--ease) both;
}

.laptop.is-intro .screen .win:nth-child(2) { animation-delay: 80ms; }
.laptop.is-intro .screen .win:nth-child(3) { animation-delay: 160ms; }
.laptop.is-intro .screen .win:nth-child(4) { animation-delay: 240ms; }
.laptop.is-intro .screen .win:nth-child(5) { animation-delay: 320ms; }
.laptop.is-intro .screen .win:nth-child(6) { animation-delay: 400ms; }
.laptop.is-intro .screen .win:nth-child(7) { animation-delay: 480ms; }

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(3em) scale(0.96);
  }
}

.headline.is-intro,
.brand.is-intro {
  animation: lift 1100ms 120ms var(--ease) both;
}

@keyframes lift {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(24px);
  }
}

/* ================================================================ TRY */

.try {
  display: flex;
  overflow-x: clip;
  flex-direction: column;
  align-items: center;
  padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(80px, 10vw, 140px);
}

.section-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-align: center;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: clamp(26px, 3.6vw, 40px) 0 clamp(36px, 5vw, 64px);
}

.segmented {
  display: flex;
  padding: 3px;
  border-radius: 99px;
  background: var(--seg-bg);
}

.segmented button {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.segmented button[aria-pressed="false"] {
  color: var(--seg-ink);
}

.segmented button[aria-pressed="false"]:hover {
  color: var(--ink);
}

.segmented button[aria-pressed="true"] {
  background: var(--seg-on);
  box-shadow: var(--seg-on-shadow);
  color: var(--ink);
}

.demo-stage {
  width: 100%;
  max-width: 1280px;
  height: clamp(300px, min(40vw, 56svh), 580px);
  container-type: size;
}

.frame {
  --sw: min(58cqw, calc(88cqh * 1.54));
  position: relative;
  width: 100%;
  height: 100%;
}

.frame .outside,
.frame .screen,
.frame-edge {
  top: calc(50% - var(--sw) / 3.08);
  left: calc(50% - var(--sw) / 2);
  width: var(--sw);
  height: calc(var(--sw) / 1.54);
  font-size: calc(var(--sw) / 100);
  transform: none;
}

.frame .screen {
  border-radius: 1.4em;
  background: var(--frame-fill);
}

.frame-edge {
  position: absolute;
  z-index: 4;
  border: 2px solid var(--frame-line);
  border-radius: 1.4em;
  margin: -2px;
  box-sizing: content-box;
  pointer-events: none;
}

.frame-label {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

/* ================================================================ GET */

.get {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 80px var(--gutter);
  overflow: hidden;
  text-align: center;
}

.get::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(40% 36% at 50% 40%, rgba(10, 132, 255, 0.12), rgba(10, 132, 255, 0) 70%);
  content: "";
}

:root[data-theme="dark"] .get::before {
  background:
    radial-gradient(38% 34% at 50% 42%, rgba(98, 54, 255, 0.32), rgba(98, 54, 255, 0) 72%),
    radial-gradient(60% 40% at 50% 100%, rgba(40, 80, 255, 0.22), rgba(40, 80, 255, 0) 70%);
}

.get-inner {
  display: flex;
  max-width: 820px;
  flex-direction: column;
  align-items: center;
}

.get-icon {
  width: clamp(88px, 9vw, 120px);
  height: auto;
  margin-bottom: clamp(28px, 4vw, 44px);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.22));
}

.get-title {
  margin: 0;
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

.get-note {
  margin: clamp(16px, 2vw, 24px) 0 0;
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 21px);
}

.get-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(32px, 4.5vw, 52px);
}

.btn {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 200ms var(--ease), background-color 200ms ease, box-shadow 200ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 14px 36px -8px color-mix(in srgb, var(--accent) 80%, transparent);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.btn-secondary {
  background: var(--seg-bg);
  color: var(--ink);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--seg-bg) 100%, var(--ink) 6%);
  transform: translateY(-1px);
}

.get-toast {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.site-footer {
  padding: 28px var(--gutter) 40px;
  color: var(--ink-2);
  font-size: 12px;
  text-align: center;
}

/* ================================================================ DEVELOPER MODAL */

.dev {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 28px;
  border: 0;
  border-radius: 28px;
  background: var(--bg-raised);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 0 0.5px var(--line);
  color: var(--ink);
}

.dev[open] {
  animation: pop 360ms var(--ease);
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}

.dev::backdrop {
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dev-close-form {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}

.dev-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--seg-bg);
  cursor: pointer;
}

.dev-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.dev-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 32px;
}

.dev-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #5e5ce6, #0a84ff);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.dev h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dev-head p,
.dev-sub {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.dev-sub {
  margin: 18px 0 18px;
}

.dev-links {
  display: grid;
  gap: 8px;
}

.dev-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--seg-bg);
  text-decoration: none;
  transition: transform 200ms var(--ease), background-color 200ms;
}

a.dev-link:hover {
  background: color-mix(in srgb, var(--seg-bg) 100%, var(--ink) 6%);
  transform: translateY(-1px);
}

.dev-link.is-soon {
  opacity: 0.55;
}

.dev-ico {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 11px;
  color: #fff;
}

.dev-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.dev-ico-tg { background: linear-gradient(180deg, #37bbfe, #1d93d2); }
.dev-ico-mail { background: linear-gradient(180deg, #1e90ff, #0a64d6); }
.dev-ico-heart { background: linear-gradient(180deg, #ff6482, #ff2d55); }

.dev-text {
  display: grid;
  gap: 2px;
}

.dev-text b {
  font-size: 16px;
  font-weight: 600;
}

.dev-text span {
  color: var(--ink-2);
  font-size: 14px;
}

.dev-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  box-shadow: inset 0 1px 0 var(--line);
}

.dev-apps span {
  margin-right: 4px;
  color: var(--ink-2);
  font-size: 14px;
}

.dev-apps b {
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--seg-bg);
  font-size: 14px;
  font-weight: 600;
}

/* ================================================================ RESPONSIVE */

@media (max-width: 760px) {
  .story {
    height: 1150svh;
  }

  .pin {
    padding-top: 22px;
  }

  .brand {
    font-size: 15px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .headlines {
    height: clamp(110px, 21svh, 160px);
  }

  .headline {
    font-size: clamp(28px, 8vw, 38px);
  }

  .headline-solo {
    font-size: clamp(34px, 10vw, 46px);
  }

  .stage {
    padding-top: 4svh;
  }

  .laptop {
    --lw: calc(min(96cqw, 132cqh) * var(--mac-size, 1));
  }

  .floor {
    display: none;
  }

  .demo-stage {
    height: min(78vw, 56svh);
  }

  .frame {
    --sw: min(78cqw, calc(80cqh * 1.54));
  }

  .segmented button {
    padding: 0 13px;
    font-size: 13px;
  }

  .btn {
    width: 100%;
  }

  .get-actions {
    width: 100%;
    max-width: 340px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
