/* =========================================================
   ClipSpaceAI — site styles
   Palette is derived from the app icon: amber → pink → violet → sky.
   Structure: light "paper" surfaces, full-bleed near-black bands,
   one gradient accent used sparingly.
   ========================================================= */

:root {
  /* surfaces */
  --paper: #fbfbfd;
  --paper-alt: #f2f2f5;
  --ink: #08080b;

  /* text */
  --text: #16161a;
  --muted: #6b6b73;
  --line: rgba(0, 0, 0, .10);
  --surface: rgba(255, 255, 255, .72);

  /* brand, taken from the icon gradient */
  --amber: #ff9f45;
  --pink: #ff4d8d;
  --violet: #6d4aff;
  --sky: #22b8ff;
  --brand: linear-gradient(96deg, var(--amber), var(--pink) 36%, var(--violet) 68%, var(--sky));
  --link: #5b3fe0;

  /* type */
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", monospace;

  /* rhythm */
  --band-y: clamp(72px, 9vw, 132px);
  --radius: 20px;
  --shadow: 0 24px 60px rgba(20, 12, 45, .10);
}

/* Dark bands invert the same token names, so components need no variants. */
.dark {
  --text: #f5f5f7;
  --muted: #9d9da6;
  --line: rgba(255, 255, 255, .14);
  --surface: rgba(255, 255, 255, .06);
  --link: #b9a5ff;
  background: var(--ink);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.55 var(--body);
  letter-spacing: -.012em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

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

.wrap {
  width: min(980px, 100% - 44px);
  margin-inline: auto;
}

.wrap-wide {
  width: min(1180px, 100% - 44px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 0;
}

.skip:focus {
  left: 0;
}

/* ---------- Type ---------- */

.display,
h1.display {
  font-family: var(--display);
  font-size: clamp(2.85rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.038em;
  text-wrap: balance;
}

.headline {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -.032em;
  text-wrap: balance;
}

.subhead {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.022em;
}

.eyebrow {
  font-size: .8rem;
  font-weight: 620;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.42;
  color: var(--muted);
  letter-spacing: -.016em;
  text-wrap: pretty;
}

.grad {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono {
  font-family: var(--mono);
  font-size: .82em;
  letter-spacing: 0;
}

/* ---------- Navigation ---------- */

.globalnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 8, 11, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #f5f5f7;
}

.globalnav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 48px;
}

.globalnav .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 620;
  font-size: .95rem;
  letter-spacing: -.02em;
}

.globalnav .brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.globalnav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .8rem;
}

.globalnav ul a {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(245, 245, 247, .78);
  transition: color .2s ease, background-color .2s ease;
}

.globalnav ul a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.globalnav ul a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.localnav {
  position: sticky;
  top: 48px;
  z-index: 39;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 253, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.localnav .row {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 52px;
}

.localnav .product {
  font-family: var(--display);
  font-weight: 680;
  font-size: 1.16rem;
  letter-spacing: -.028em;
  white-space: nowrap;
}

.localnav nav {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.localnav nav::-webkit-scrollbar {
  display: none;
}

.localnav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
}

.localnav ul a {
  transition: color .2s ease;
}

.localnav ul a:hover {
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: filter .2s ease, transform .2s ease;
}

.pill:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

/* ---------- Buttons and links ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease, background-color .2s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--link);
  font-size: 1.02rem;
  font-weight: 500;
}

.arrow::after {
  content: "›";
  font-size: 1.2em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .2s ease;
}

.arrow:hover::after {
  transform: translate(3px, -1px);
}

/* ---------- Bands ---------- */

.band {
  padding: var(--band-y) 0;
}

.band-tint {
  background: var(--paper-alt);
}

.band-tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.band-head {
  max-width: 720px;
}

.band-head .eyebrow {
  margin-bottom: 14px;
}

.band-head .lede {
  margin-top: 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto;
  height: 620px;
  background:
    radial-gradient(46% 52% at 22% 40%, color-mix(in srgb, var(--amber) 26%, transparent), transparent 70%),
    radial-gradient(44% 50% at 52% 30%, color-mix(in srgb, var(--pink) 24%, transparent), transparent 70%),
    radial-gradient(50% 54% at 82% 46%, color-mix(in srgb, var(--sky) 26%, transparent), transparent 70%);
  filter: blur(28px);
  opacity: .55;
  pointer-events: none;
}

.hero>* {
  position: relative;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px rgba(30, 20, 60, .06);
  font-size: .82rem;
  font-weight: 560;
  color: var(--muted);
}

.hero .badge img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.hero .lede {
  max-width: 640px;
  margin: 22px auto 0;
}

.hero .cta-row {
  justify-content: center;
  margin-top: 30px;
}

.hero .footnote {
  margin-top: 16px;
  font-size: .8rem;
  color: var(--muted);
}

/* ---------- The app window (hero signature) ---------- */

.stage {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.window {
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow:
    0 0 0 1px rgba(20, 12, 45, .09),
    0 2px 6px rgba(20, 12, 45, .06),
    0 40px 80px -20px rgba(20, 12, 45, .28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}

.dark .window {
  background: rgba(24, 24, 32, .78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 90px -24px rgba(0, 0, 0, .7);
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ddd;
}

.traffic i:nth-child(1) {
  background: #ff5f57;
}

.traffic i:nth-child(2) {
  background: #febc2e;
}

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

.titlebar .title {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -.01em;
}

.titlebar .hint {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
}

.panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}

.panel .list-col {
  border-right: 1px solid var(--line);
  padding: 16px;
}

.panel .detail-col {
  padding: 20px;
  background: color-mix(in srgb, var(--text) 3%, transparent);
}

.preview-card {
  padding: 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: opacity .22s ease, transform .35s cubic-bezier(.2, .75, .25, 1);
}

.detail-col.is-changing .preview-card {
  opacity: 0;
  transform: translateY(8px);
}

.preview-topline,
.preview-source,
.ai-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-type,
.preview-time,
.preview-source {
  font-size: .7rem;
  color: var(--muted);
}

.preview-type {
  color: var(--violet);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.preview-card .subhead {
  margin-top: 12px;
}

.preview-copy {
  margin-top: 8px;
  color: var(--muted);
}

.preview-source {
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.preview-source b {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 4px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--violet) 13%, transparent);
  color: var(--violet);
}

.smart-actions {
  margin-top: 18px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-action {
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text);
  font: inherit;
  font-size: .76rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.mini-action:hover {
  transform: translateY(-1px);
}

.mini-action.is-primary {
  background: color-mix(in srgb, var(--violet) 15%, transparent);
  color: var(--violet);
}

.mini-action.is-copied {
  background: color-mix(in srgb, #21a366 16%, transparent);
  color: #16804f;
}

.ai-demo-result {
  margin-top: 12px;
  padding: 14px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--violet) 7%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 25%, transparent);
  opacity: 0;
  transform: translateY(10px) scale(.985);
  max-height: 0;
  overflow: hidden;
  transition: opacity .3s ease, transform .4s cubic-bezier(.2, .75, .25, 1), max-height .45s ease,
    padding .3s ease, margin .3s ease;
}

.ai-demo-result.is-thinking,
.ai-demo-result.is-ready {
  opacity: 1;
  transform: none;
  max-height: 220px;
}

.ai-result-head {
  color: var(--violet);
  font-size: .74rem;
  font-weight: 700;
}

.ai-local {
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  font-size: .64rem;
}

.ai-thinking {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  color: var(--muted);
  font-size: .75rem;
}

.ai-thinking i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  animation: aiDot .85s ease-in-out infinite alternate;
}

.ai-thinking i:nth-child(2) {
  animation-delay: .16s;
}

.ai-thinking i:nth-child(3) {
  animation-delay: .32s;
}

@keyframes aiDot {
  to {
    opacity: .25;
    transform: translateY(-3px);
  }
}

.ai-answer {
  display: none;
  margin-top: 12px;
  font-size: .76rem;
  line-height: 1.48;
}

.ai-answer p {
  margin-top: 5px;
  color: var(--muted);
}

.ai-demo-result.is-ready .ai-thinking {
  display: none;
}

.ai-demo-result.is-ready .ai-answer {
  display: block;
  animation: aiAnswerIn .35s ease both;
}

@keyframes aiAnswerIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.searchfield {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: .92rem;
}

.searchfield svg {
  flex: none;
  opacity: .55;
}

.searchfield .caret {
  width: 1.5px;
  height: 15px;
  background: var(--violet);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.searchfield .typed {
  color: var(--text);
}

.cliplist {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.clip {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--text) 3.5%, transparent);
  box-shadow: inset 0 0 0 1px transparent;
  cursor: pointer;
  transition: background-color .35s ease, box-shadow .35s ease, opacity .35s ease, transform .45s cubic-bezier(.2, .7, .3, 1);
}

.clip.is-match {
  background: color-mix(in srgb, var(--violet) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 34%, transparent);
}

.clip.is-dim {
  opacity: .38;
}

.clip .kind {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  color: var(--violet);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
}

.clip .text {
  font-size: .88rem;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clip .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-size: .7rem;
  color: var(--muted);
}

.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  font-size: .68rem;
  letter-spacing: .01em;
}

.clip .why {
  margin-top: 7px;
  font-size: .72rem;
  color: var(--violet);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .3s ease, max-height .3s ease;
}

.clip.is-match .why {
  opacity: 1;
  max-height: 40px;
}

.detail-col h4 {
  font-size: .72rem;
  font-weight: 620;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.detail-col .body {
  font-size: .88rem;
  line-height: 1.55;
}

.detail-col .rule {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}

.detail-col .summary-line {
  display: flex;
  gap: 9px;
  font-size: .85rem;
  line-height: 1.45;
  margin-bottom: 9px;
}

.detail-col .summary-line span:first-child {
  color: var(--violet);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  justify-content: center;
}

.chip {
  padding: 9px 15px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 40%, transparent);
  color: var(--link);
}

.chip-label {
  width: 100%;
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 2px;
}

/* ---------- Feature layouts ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.split.reverse .visual {
  order: -1;
}

.split .copy .headline+.lede {
  margin-top: 18px;
}

.split .copy .arrow {
  margin-top: 20px;
}

.card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  padding: clamp(22px, 3vw, 30px);
  backdrop-filter: blur(16px);
}

.dark .card {
  box-shadow: inset 0 0 0 1px var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.cards .card h3 {
  font-size: 1.06rem;
  font-weight: 620;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.cards .card p {
  font-size: .94rem;
  color: var(--muted);
}

.cards .card .kindmark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  margin-bottom: 16px;
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  color: var(--violet);
}

/* transform demo */
.demo-out {
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 1.6;
  padding: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 116px;
  white-space: pre-wrap;
  word-break: break-word;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.demo-controls .chip {
  font-size: .8rem;
  padding: 7px 13px;
}

/* summarise demo */
.longclip {
  font-size: .86rem;
  line-height: 1.6;
  color: var(--muted);
  max-height: 128px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(#000 60%, transparent);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
}

.summary-out {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.summary-out li {
  display: flex;
  gap: 10px;
  font-size: .92rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
}

.summary-out.is-on li {
  opacity: 1;
  transform: none;
}

.summary-out.is-on li:nth-child(2) {
  transition-delay: .12s;
}

.summary-out.is-on li:nth-child(3) {
  transition-delay: .24s;
}

.summary-out li b {
  color: var(--violet);
  font-weight: 600;
}

/* privacy diagram */
.privacy-figure {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 48px;
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
}

.flow .node {
  flex: 1 1 180px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.flow .node .n {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.flow .node strong {
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -.02em;
}

.flow .node p {
  margin-top: 6px;
  font-size: .86rem;
  color: var(--muted);
}

.flow .node.off {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: .5;
  position: relative;
}

.flow .node.off::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

/* keycaps */
.keys {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.kbd {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 3px 0 color-mix(in srgb, var(--text) 10%, transparent);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}

.keys .plus {
  color: var(--muted);
  font-size: .9rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  border-radius: 28px;
  padding: clamp(36px, 6vw, 68px);
  text-align: center;
  background: var(--brand);
  color: #fff;
}

.cta-band .headline {
  color: #fff;
}

.cta-band p {
  margin-top: 14px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.06rem;
}

.cta-band .btn {
  margin-top: 26px;
  background: #fff;
  color: #17121f;
}

.cta-band .btn:hover {
  filter: none;
  background: rgba(255, 255, 255, .9);
}

/* ---------- Footer ---------- */

.footer {
  padding: 56px 0 44px;
  border-top: 1px solid var(--line);
  background: var(--paper-alt);
  font-size: .78rem;
  text-align: center;
  color: var(--muted);
}

.footer .cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer h5 {
  margin: 0 0 12px;
  font-size: .78rem;
  font-weight: 620;
  color: var(--text);
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer .fine {
  margin: 22px auto 0;
  line-height: 1.6;
  max-width: 720px;
}

.footer .base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* ---------- Legal + support pages ---------- */

.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 44px);
}

.page-hero .lede {
  max-width: 640px;
  margin-top: 20px;
}

.page-hero .updated {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--muted);
}

.doc {
  width: min(760px, 100% - 44px);
  margin: 0 auto;
  padding-bottom: clamp(60px, 8vw, 104px);
}

.doc section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.doc section:first-of-type {
  border-top: 0;
}

.doc h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 660;
  letter-spacing: -.026em;
  margin-bottom: 12px;
}

.doc p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.doc p+p {
  margin-top: 12px;
}

.doc a:not(.arrow) {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}

.contact-card .label {
  font-size: .8rem;
  color: var(--muted);
}

.contact-card .mail {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -.026em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.faq {
  margin-top: 40px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 560;
  letter-spacing: -.02em;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform .25s ease;
}

.faq details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq details p {
  padding-bottom: 22px;
  color: var(--muted);
  max-width: 640px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  font-size: .96rem;
  color: var(--muted);
}

.checklist li b {
  color: var(--text);
  font-weight: 560;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: .08s;
}

.reveal[data-delay="2"] {
  transition-delay: .16s;
}

.reveal[data-delay="3"] {
  transition-delay: .24s;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split.reverse .visual {
    order: 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .panel {
    grid-template-columns: 1fr;
  }

  .panel .list-col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer .cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 96px;
  }

  body {
    font-size: 16px;
  }

  .wrap,
  .wrap-wide {
    width: calc(100% - 32px);
  }

  .doc {
    width: calc(100% - 32px);
  }

  .globalnav ul {
    font-size: .74rem;
  }

  .globalnav ul a {
    padding: 6px 7px;
  }

  .localnav .row {
    gap: 14px;
  }

  .localnav .product {
    font-size: 1.02rem;
  }

  .hero .cta-row .btn {
    width: 100%;
  }

  .footer .cols {
    grid-template-columns: 1fr;
  }

  .keys .kbd {
    min-width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}