/* Koyote site. Tokens mirror Koyote/Design/Theme.swift (enum K). */

:root {
  --ground: #F1EEEA;
  --surface: #FFFFFF;
  --ink: #24201D;
  --ink2: #6F6862;
  --ink3: #A69E97;
  --rule: rgba(36, 32, 29, .08);
  --hover: rgba(36, 32, 29, .05);
  --pressed: rgba(36, 32, 29, .09);
  --fox: #EE6B22;
  --desk: #E6E1DB;
  --mbar: rgba(255, 255, 255, .62);
  --shadow-panel: 0 1px 0 rgba(36,32,29,.04), 0 18px 50px -12px rgba(36,32,29,.22), 0 0 0 .5px rgba(36,32,29,.08);
  --shadow-soft: 0 1px 2px rgba(36,32,29,.05), 0 0 0 .5px rgba(36,32,29,.06);
  --on-ink: #F7F4F0;
  /* Fox accent for the recommended plan. Deeper than --fox so a white label clears 4.5:1 (5.2:1). */
  --fox-btn: #BC4C19;
  --on-fox: #FFFFFF;
  --fox-ink: #A8410F;
  --fox-tint: color-mix(in srgb, #EE6B22 11%, var(--surface));
  --fox-ring: color-mix(in srgb, #EE6B22 34%, transparent);
  /* Hover fill tones, one per tier */
  --fx: color-mix(in srgb, var(--ink) 6%, transparent);
  --fx-press: color-mix(in srgb, var(--ink) 11%, transparent);
  /* Demo frames: a hairline plus a soft, real drop shadow */
  --shadow-frame: inset 0 0 0 .5px var(--rule), 0 1px 2px rgba(36,32,29,.04), 0 14px 30px -16px rgba(36,32,29,.16), 0 44px 90px -48px rgba(36,32,29,.24);

  --r-panel: 22px;
  --r-card: 14px;
  --r-row: 10px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.32, 1.22, .42, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1D1B1A;
    --surface: #2B2826;
    --ink: #F5F1EC;
    --ink2: #ADA59D;
    --ink3: #7A736C;
    --rule: rgba(245, 241, 236, .08);
    --hover: rgba(245, 241, 236, .05);
    --pressed: rgba(245, 241, 236, .09);
    --fox: #F7843C;
    --desk: #151413;
    --mbar: rgba(43, 40, 38, .72);
    --shadow-panel: 0 18px 50px -12px rgba(0,0,0,.6), 0 0 0 .5px rgba(245,241,236,.10);
    --shadow-soft: 0 0 0 .5px rgba(245,241,236,.07);
    --on-ink: #1D1B1A;
    --fox-btn: #F7843C;
    --on-fox: #1D1B1A;
    --fox-ink: #F7843C;
    --fox-tint: color-mix(in srgb, #F7843C 13%, var(--surface));
    --fox-ring: color-mix(in srgb, #F7843C 38%, transparent);
    --fx: color-mix(in srgb, var(--ink) 7%, transparent);
    --fx-press: color-mix(in srgb, var(--ink) 12%, transparent);
    --shadow-frame: inset 0 0 0 .5px rgba(245,241,236,.09), 0 1px 0 rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.55), 0 50px 100px -50px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #1D1B1A;
  --surface: #2B2826;
  --ink: #F5F1EC;
  --ink2: #ADA59D;
  --ink3: #7A736C;
  --rule: rgba(245, 241, 236, .08);
  --hover: rgba(245, 241, 236, .05);
  --pressed: rgba(245, 241, 236, .09);
  --fox: #F7843C;
  --desk: #151413;
  --mbar: rgba(43, 40, 38, .72);
  --shadow-panel: 0 18px 50px -12px rgba(0,0,0,.6), 0 0 0 .5px rgba(245,241,236,.10);
  --shadow-soft: 0 0 0 .5px rgba(245,241,236,.07);
  --on-ink: #1D1B1A;
  --fox-btn: #F7843C;
  --on-fox: #1D1B1A;
  --fox-ink: #F7843C;
  --fox-tint: color-mix(in srgb, #F7843C 13%, var(--surface));
  --fox-ring: color-mix(in srgb, #F7843C 38%, transparent);
  --fx: color-mix(in srgb, var(--ink) 7%, transparent);
  --fx-press: color-mix(in srgb, var(--ink) 12%, transparent);
  --shadow-frame: inset 0 0 0 .5px rgba(245,241,236,.09), 0 1px 0 rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.55), 0 50px 100px -50px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
kbd {
  font-family: var(--font);
  font-size: .86em;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .12em .48em;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
a:focus-visible:not([class]) { border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap.wide { max-width: 1184px; }
.wrap.narrow { max-width: 760px; }

/* Pills + wordmark (Wordmark in Components.swift: fox glyph tinted fox orange, wide KOYOTE) */
.pill {
  display: inline-flex; align-items: center;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.glyph {
  display: inline-block; flex: none;
  width: 17px; height: 11.5px;
  background: var(--fox);
  -webkit-mask: url(assets/fox-glyph.png) center / contain no-repeat;
          mask: url(assets/fox-glyph.png) center / contain no-repeat;
}
.wm-text {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .2em;
  font-stretch: expanded;
  margin-right: -.2em;
}
.wordmark { height: 44px; padding: 0 20px; gap: 8px; }
.wordmark.small { height: 36px; padding: 0 16px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; padding: 14px 0; pointer-events: none; }
.nav-inner > * { pointer-events: auto; }
.nav-inner { position: relative; display: flex; gap: 8px; align-items: center; max-width: 1184px; margin: 0 auto; padding: 0 32px; }
.nav-links { height: 44px; padding: 0 6px; gap: 2px; }
.nav-links a, .nav-cta {
  font-size: 15px; font-weight: 500; color: var(--ink);
  padding: 0 14px; height: 32px; display: inline-flex; align-items: center; border-radius: 999px;
}
.nav-cta { height: 44px; padding: 0 20px; }
.theme-btn {
  margin-left: auto; width: 44px; height: 44px; padding: 0; justify-content: center;
  border: 0; color: var(--ink); cursor: pointer; font: inherit;
}
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun, .theme-btn .i-moon, .theme-btn .i-auto { display: none; }
.theme-btn[data-mode="light"] .i-sun, .theme-btn[data-mode="dark"] .i-moon, .theme-btn[data-mode="system"] .i-auto { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -.005em;
  white-space: nowrap;
}
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-white { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.btn-quiet { background: transparent; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--rule); cursor: default; }
.btn.small { height: 40px; padding: 0 8px 0 18px; font-size: 14.5px; }
kbd.on-ink { background: color-mix(in srgb, var(--on-ink) 16%, transparent); color: var(--on-ink); box-shadow: none; padding: .2em .55em; }

/* Hero */
.hero { padding: 40px 0 0; text-align: center; }
.app-icon { width: 88px; height: 88px; margin: 24px auto 28px; border-radius: 23%; clip-path: inset(3% round 21%); box-shadow: 0 10px 24px -10px rgba(36,32,29,.3); }
h1 {
  font-size: clamp(40px, 6.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -.038em;
  font-weight: 600;
  margin: 0 auto;
  max-width: 13.5em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--ink2);
  max-width: 34em;
  margin: 22px auto 0;
  text-wrap: balance;
}
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.fine { font-size: 13.5px; color: var(--ink2); margin: 16px 0 0; text-wrap: balance; }

/* Desk: a calm desktop with a real-looking menu bar */
.desk {
  position: relative;
  margin: 64px auto 0;
  height: 600px;
  border-radius: 26px;
  background: var(--desk);
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  box-shadow: var(--shadow-frame);
}
.mb {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  height: 32px; padding: 0 12px 0 18px;
  background: var(--mbar);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
          backdrop-filter: blur(20px) saturate(1.5);
  font-size: 13.5px;
  box-shadow: 0 .5px 0 var(--rule);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.mb-right { gap: 6px; }
.mb-apple { font-size: 15px; line-height: 1; }
.mb-app { font-weight: 700; }
.mb-menu { font-weight: 400; }
.mb-ic { width: 17px; height: 17px; margin: 0 5px; }
.mb-batt { width: 24px; height: 24px; }
.mb-clock { margin-left: 8px; font-variant-numeric: tabular-nums; font-weight: 500; }
.awake-ic { display: none; }
.awake .awake-ic { display: block; }

.mb-koyote {
  display: flex; align-items: center; gap: 10px;
  height: 24px; padding: 0 8px; border-radius: 6px;
  transition: background .12s;
}
.mb-koyote[aria-expanded="true"] { background: var(--pressed); }
.mb-koyote .glyph { width: 21px; height: 14px; background: var(--ink); }
.ro { display: grid; line-height: 1; text-align: left; font-variant-numeric: tabular-nums; }
.ro b { font-size: 7.5px; letter-spacing: .06em; font-weight: 700; color: var(--ink); opacity: .85; }
.ro > span { font-size: 12.5px; font-weight: 700; margin-top: 1px; min-width: 3.1ch; }
.ro.net { font-size: 9.5px; font-weight: 700; gap: 1px; min-width: 5.4ch; }
.ro.net > span { font-size: 9.5px; margin: 0; }

/* Panel (PanelView.swift) */
.desk .panel, .desk .mb { zoom: 1.12; }
.panel {
  position: absolute; z-index: 4;
  top: 40px; right: 120px;
  width: 320px;
  padding: 8px;
  border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--ground) 94%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
          backdrop-filter: blur(30px) saturate(1.4);
  box-shadow: var(--shadow-panel);
  transform-origin: 70% 0;
  transition: opacity .2s var(--ease), transform .26s var(--ease), visibility 0s;
}
.panel.closed { opacity: 0; transform: scale(.96) translateY(-6px); visibility: hidden; transition: opacity .16s, transform .16s, visibility 0s .16s; }
.p-top { display: flex; gap: 6px; }
.p-wordmark { height: 36px; padding: 0 14px; gap: 6px; }
.p-wordmark .wm-text { font-size: 10.5px; letter-spacing: .19em; }
.p-actions { height: 36px; flex: 1; padding: 0 6px 0 14px; gap: 2px; }
.p-settings { font-size: 14.5px; font-weight: 500; margin-right: auto; }
.p-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; }
.p-icon .ic { width: 17px; height: 17px; }
.p-list { list-style: none; margin: 8px 0 0; padding: 0; }
.p-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  height: 46px; padding: 0 10px 0 8px; border-radius: 12px;
  text-align: left;
  transition: background .12s;
}
.tile {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: background .2s, color .2s;
}
.tile .ic { width: 17px; height: 17px; }
.tile.active { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.p-name { font-size: 17.5px; font-weight: 500; letter-spacing: -.012em; flex: 1; }
.chev { width: 14px; height: 14px; color: var(--ink3); stroke-width: 2; }
.p-meta, .p-hex { font-size: 13.5px; color: var(--ink2); }
.swatch { width: 13px; height: 13px; border-radius: 50%; background: var(--ink); margin-right: 1px; transition: background .25s; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 8px; padding: 13px 14px 14px;
  background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
}
.stat { display: grid; gap: 3px; min-width: 0; align-content: start; }
.s-label { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink2); }
.s-label .ic { width: 12px; height: 12px; stroke-width: 1.5; }
.s-val { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar { height: 3px; border-radius: 3px; background: var(--rule); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: color-mix(in srgb, var(--ink) 62%, transparent); border-radius: 3px; transition: width .8s var(--ease); width: 40%; }

.desk-hint {
  position: absolute; z-index: 2; right: 28px; bottom: 22px; margin: 0;
  font-size: 13.5px; color: var(--ink2);
  opacity: 0; transition: opacity .3s;
}
.desk.is-closed .desk-hint { opacity: 1; }
.peek {
  position: absolute; z-index: 1;
  left: 9%; bottom: 0; width: 250px; height: auto;
  /* Flat base sits on the frame's bottom edge: never moves. */
}

/* Sections */
.sec { padding: 136px 0 0; }
.sec:last-of-type { padding-bottom: 120px; }
h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.head p, .copy p {
  font-size: 18px; line-height: 1.5; color: var(--ink2);
  margin: 16px 0 0; text-wrap: pretty;
}
.head.center { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.head.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.head.split p { margin: 0; max-width: 30em; }
.copy p.sub { font-size: 15.5px; margin-top: 14px; }
.q { font-weight: 600; color: var(--ink); }

/* Feature rows: text 5 / demo 7, alternating sides */
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: center; }
.two.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.two.flip .copy { order: 2; }
.copy { max-width: 420px; }
.two.flip .copy { justify-self: end; }

/* Tools list (SheetView / SettingsControls) */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
.group { margin: 0 0 28px; }
.group h3 { font-size: 13.5px; font-weight: 600; color: var(--ink2); margin: 0 0 10px 4px; letter-spacing: 0; }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-soft); padding: 4px 0; }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px 11px 14px;
  position: relative;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--rule); }
.row .tile { background: var(--ground); box-shadow: none; }
.row-text { flex: 1; min-width: 0; display: grid; }
.row-name { font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
.row-sub { font-size: 13.5px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.off .tile { color: var(--ink3); }
.row.off .row-name { color: var(--ink2); }
.tools-foot { font-size: 14px; color: var(--ink2); margin: 4px 0 0 4px; }

/* Switch: system style, tinted ink */
.switch {
  position: relative; flex: none;
  width: 40px; height: 24px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  transition: background .2s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.06);
  transition: transform .26s var(--spring);
}
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .switch::after { background: #F5F1EC; }
  :root:not([data-theme="light"]) .switch[aria-checked="true"]::after { background: #1D1B1A; box-shadow: none; }
}
:root[data-theme="dark"] .switch::after { background: #F5F1EC; }
:root[data-theme="dark"] .switch[aria-checked="true"]::after { background: #1D1B1A; box-shadow: none; }

/* Command bar (CommandBarView.swift) */
.cmd { max-width: 640px; margin: 0 auto; }
.cmd-top { display: flex; gap: 6px; }
.cmd-mark { width: 52px; height: 52px; justify-content: center; flex: none; }
.cmd-mark .glyph { width: 20px; height: 13.5px; }
.cmd-field { flex: 1; height: 52px; padding: 0 20px; gap: 12px; color: var(--ink2); }
.cmd-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-size: 18px; color: var(--ink);
}
.cmd-field input::placeholder { color: var(--ink3); }
.cmd-field:focus-within { box-shadow: var(--shadow-soft), 0 0 0 2px color-mix(in srgb, var(--ink) 22%, transparent); }
.cmd-card {
  position: relative;
  margin-top: 6px; background: var(--surface); border-radius: var(--r-panel);
  box-shadow: var(--shadow-soft); padding: 10px 0 8px;
  overflow: hidden;
}
.modes { display: flex; gap: 2px; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: none; }
.modes::-webkit-scrollbar { display: none; }
.mode {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 28px; padding: 0 11px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink2);
  transition: background .15s, color .15s;
}
.mode .ic { width: 13px; height: 13px; stroke-width: 1.9; }
.mode[aria-selected="true"] { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); font-weight: 600; }
.cmd-list { list-style: none; margin: 0; padding: 0 8px; max-height: 352px; overflow-y: auto; scrollbar-width: none; }
.cmd-list::-webkit-scrollbar { display: none; }
.sec-label { font-size: 12px; color: var(--ink2); font-weight: 500; padding: 12px 12px 4px; }
.sec-label:first-child { padding-top: 6px; }
.item {
  display: flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 12px; border-radius: 12px;
  cursor: pointer;
}
.item[aria-selected="true"] { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.item .tile { width: 28px; height: 28px; border-radius: 8px; background: var(--ground); box-shadow: none; }
.item .tile .ic { width: 15px; height: 15px; }
.item .tile.swatch-tile { border-radius: 8px; }
.item-title { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.item-sub { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.item-key { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; flex: none; }
.item-result {
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  height: 22px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center;
  background: var(--ground);
}
.big-result { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.empty { padding: 40px 12px; text-align: center; color: var(--ink2); font-size: 14px; }
.cmd-toast, .clip-toast {
  position: absolute; left: 50%; bottom: 14px;
  transform: translate(-50%, 8px); opacity: 0;
  background: var(--ink); color: var(--on-ink);
  font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  transition: opacity .2s, transform .25s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.cmd-toast.show, .clip-toast.show { opacity: 1; transform: translate(-50%, 0); }
.try { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 16px; font-size: 13.5px; color: var(--ink2); }
.try span { margin-right: 4px; }
.try button {
  height: 30px; padding: 0 12px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink);
  font-size: 13.5px; transition: background .15s;
}

/* Clipboard card */
.clip {
  position: relative;
  width: 100%; max-width: 400px; justify-self: end;
  padding: 8px; border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--desk) 70%, var(--ground));
  box-shadow: var(--shadow-frame);
}
.clip-top { display: flex; gap: 6px; }
.clip-title { height: 38px; padding: 0 16px; font-size: 14.5px; font-weight: 600; }
.clip-search { flex: 1; height: 38px; padding: 0 14px; gap: 8px; color: var(--ink2); min-width: 0; }
.clip-search .ic { width: 15px; height: 15px; }
.clip-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14.5px; color: var(--ink); }
.clip-search input::placeholder { color: var(--ink3); }
.clip-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; min-height: 360px; align-content: start; }
.clip-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 12px; background: var(--surface);
  text-align: left; box-shadow: var(--shadow-soft);
}
.clip-prev {
  width: 38px; height: 38px; flex: none; border-radius: 9px;
  display: grid; place-items: center; background: var(--ground); color: var(--ink2); overflow: hidden;
}
.clip-prev .ic { width: 16px; height: 16px; }
.clip-prev.img { background: linear-gradient(var(--desk), var(--desk)); position: relative; }
.clip-prev.img::before { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 25%, transparent); }
.clip-prev.img::after { content: ""; position: absolute; left: 6px; right: 14px; top: 16px; bottom: 7px; border-radius: 3px; background: var(--surface); }
.clip-main { flex: 1; min-width: 0; display: grid; }
.clip-text { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-meta { font-size: 12.5px; color: var(--ink2); }
.clip-key { font-size: 12px; color: var(--ink2); font-variant-numeric: tabular-nums; }

/* Window snap demo */
.snap { width: 100%; }
.screen {
  position: relative; aspect-ratio: 16 / 10.4;
  border-radius: 18px; background: var(--desk); overflow: hidden;
  box-shadow: var(--shadow-frame);
}
.screen-bar { position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 20px; background: var(--mbar); display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; }
.screen-bar .glyph { width: 15px; height: 10px; background: var(--ink); }
.ghost {
  position: absolute; z-index: 1; border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent);
  opacity: 0; transition: all .22s var(--ease);
}
.ghost.on { opacity: 1; }
.win {
  position: absolute; z-index: 1;
  background: var(--surface); border-radius: 10px;
  box-shadow: 0 10px 30px -10px rgba(36,32,29,.28), 0 0 0 .5px var(--rule);
  overflow: hidden;
  transition: left .42s var(--spring), top .42s var(--spring), width .42s var(--spring), height .42s var(--spring);
}
.win-bar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-bottom: 1px solid var(--rule); }
.win-bar i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.win-bar span { font-size: 10.5px; font-weight: 600; color: var(--ink2); margin-left: 6px; }
.win-body { padding: 10px 12px; height: calc(100% - 22px); overflow: hidden; font-size: 11.5px; line-height: 1.45; }
.win-body b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.win-body p { margin: 0 0 3px; padding-left: 12px; position: relative; color: var(--ink); overflow-wrap: anywhere; }
.win-body p::before { content: ""; position: absolute; left: 1px; top: .52em; width: 5px; height: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px var(--fox); }
.layouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.lay {
  display: grid; justify-items: start; gap: 8px;
  padding: 10px 11px; border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow-soft);
  text-align: left; transition: background .15s;
}
.lay[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lay-ic { position: relative; width: 26px; height: 17px; border-radius: 4px; box-shadow: inset 0 0 0 1.4px color-mix(in srgb, var(--ink) 45%, transparent); }
.lay-ic i { position: absolute; top: 2.5px; bottom: 2.5px; border-radius: 2px; background: var(--ink); }
.lay-name { font-size: 13px; font-weight: 500; line-height: 1.2; }
.lay-key { font-size: 11.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }

/* Capture */
.cap-screen {
  position: relative; height: 480px; border-radius: 22px;
  background: var(--desk); overflow: hidden;
  box-shadow: var(--shadow-frame);
}
.cap-page {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: left; color: var(--ink);
}
/* The thing being captured: a copy of the Koyote panel, alone on the stage */
.cap-page .panel { position: static; width: 320px; max-width: none; margin: 0; transform: none; opacity: 1; visibility: visible; transition: none; zoom: 1; }
.shot { position: relative; overflow: hidden; }
.shot .cap-page { left: 0; top: 0; transform-origin: 0 0; }
.sel {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0; transform: translate(-50%, -50%);
  box-shadow: 0 0 0 9999px rgba(20, 18, 16, .28), inset 0 0 0 1px rgba(255,255,255,.9);
  opacity: 0; pointer-events: none;
}
.sel.go { opacity: 1; animation: sel 0.9s var(--ease) forwards; }
@keyframes sel { 0% { width: 0; height: 0; } 100% { width: var(--sw, 360px); height: var(--sh, 420px); } }
.sel-size {
  position: absolute; right: 0; bottom: -28px; font-size: 11.5px; font-weight: 600;
  background: rgba(20,18,16,.75); color: #fff; padding: 3px 8px; border-radius: 6px; font-variant-numeric: tabular-nums;
}
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: .7; } 100% { opacity: 0; } }

.thumb {
  position: absolute; z-index: 3; left: 20px; bottom: 20px;
  width: 236px; border-radius: 16px; padding: 6px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-panel);
  transition: transform .45s var(--spring), opacity .25s;
}
.thumb.hidden { transform: translateX(-280px); opacity: 0; }
.thumb-img { height: 128px; border-radius: 11px; background: var(--desk); overflow: hidden; }
.thumb-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin-top: 6px; }
.thumb-actions button {
  display: flex; align-items: center; justify-content: center; height: 30px; padding: 0; border-radius: 9px;
  font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: background .12s;
}
.thumb-actions .ic { width: 16px; height: 16px; }

.editor {
  position: absolute; inset: 0; z-index: 5;
  background: var(--ground);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 14px; gap: 12px;
  animation: edin .3s var(--ease);
}
.editor[hidden] { display: none; }
@keyframes edin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.ed-bar { display: flex; justify-content: space-between; gap: 8px; }
.ed-tools { height: 42px; padding: 0 5px; gap: 2px; }
.ed-tools button { height: 32px; min-width: 34px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); transition: background .12s, color .12s; }
.ed-tools button[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.ed-tools .ed-done { color: var(--ink); font-size: 14px; font-weight: 600; padding: 0 14px; }
.ed-canvas { position: relative; border-radius: 14px; background: var(--desk); padding: clamp(14px, 4vw, 40px); overflow: hidden; touch-action: none; cursor: crosshair; }
.ed-img { height: 100%; border-radius: 12px; }
.ed-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: #E5484D; overflow: visible; }
.ed-svg .a { stroke: currentColor; stroke-width: 4; fill: none; stroke-linecap: round; }
.ed-svg .r { stroke: currentColor; stroke-width: 3.5; fill: none; }
.ed-svg .h { fill: rgba(232, 154, 18, .35); }
.ed-svg .x { fill: color-mix(in srgb, var(--ink) 75%, transparent); }
.ed-svg text { fill: currentColor; font: 600 18px var(--font); }
.ed-hint { margin: 0; text-align: center; font-size: 12.5px; color: var(--ink2); }
.cap-foot { display: flex; align-items: center; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.cap-note { font-size: 14px; color: var(--ink2); }

/* Menu bar demo */
.mbdemo { max-width: 900px; margin: 0 auto; }
.mbdemo .mb.big { zoom: 1.22; }
.mb.big { border-radius: 14px; height: 40px; font-size: 14px; box-shadow: var(--shadow-soft); background: var(--surface); padding: 0 14px 0 18px; }
.others { display: flex; align-items: center; overflow: hidden; max-width: 160px; transition: max-width .35s var(--ease), opacity .25s; }
.others.folded { max-width: 0; opacity: 0; }
.divider-btn { width: 22px; height: 26px; border-radius: 6px; display: grid; place-items: center; color: var(--ink2); margin-right: 4px; }
.divider-btn .ic { width: 13px; height: 13px; stroke-width: 2.2; transition: transform .3s var(--ease); }
.divider-btn[aria-pressed="true"] .ic { transform: rotate(180deg); }
.readout { display: flex; align-items: center; gap: 12px; padding: 0 8px; height: 28px; border-radius: 6px; }
.readout .glyph { width: 22px; height: 15px; background: var(--ink); }
.readout .g { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.readout .g svg { width: 40px; height: 16px; overflow: visible; }
.readout .g path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.readout .g path.base { stroke: var(--rule); stroke-width: 1; }
.readout .bl { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.vbar { width: 5px; height: 17px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 16%, transparent); position: relative; overflow: hidden; }
.vbar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ink); border-radius: 2px; transition: height .7s var(--ease); }
.seg-row { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.seg button { height: 32px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink2); transition: background .15s, color .15s, box-shadow .15s; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-soft); }
.ghost-pill { height: 38px; padding: 0 16px; font-size: 14px; font-weight: 500; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan {
  display: flex; flex-direction: column;
  padding: 28px 26px 26px; border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--surface) 55%, var(--ground));
  box-shadow: inset 0 0 0 .5px var(--rule);
}
.plan.main { background: var(--surface); box-shadow: inset 0 0 0 1px var(--fox-ring), 0 20px 40px -24px rgba(36,32,29,.18); }
.plan.main .chip { background: var(--fox-tint); color: var(--fox-ink); }
.plan.main li::before { background: var(--fox-ink); }
.btn-fox { background: var(--fox-btn); color: var(--on-fox); font-weight: 600; }
.plan h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.chip { font-size: 11.5px; font-weight: 600; color: var(--ink2); padding: 3px 9px; border-radius: 999px; background: var(--ground); letter-spacing: 0; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 22px; }
.amt { font-size: 44px; font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.price s { font-size: 18px; color: var(--ink2); }
.per { font-size: 14.5px; color: var(--ink2); }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { font-size: 15px; padding-left: 26px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan.later li::before { background: var(--ink2); }
.plan .btn { width: 100%; }
.plans-foot { text-align: center; color: var(--ink2); font-size: 14.5px; margin: 26px 0 0; }

/* FAQ */
.faq h2 { margin-bottom: 28px; }
.qa { background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--shadow-soft); padding: 4px 0; }
details { position: relative; }
details + details::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--rule); }
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-size: 17px; font-weight: 500; letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background: var(--ink3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
summary:focus-visible { outline-offset: -4px; border-radius: 16px; }
details p { margin: -6px 24px 22px; color: var(--ink2); font-size: 15.5px; max-width: 36em; }

/* Footer */
.foot { padding: 72px 0 40px; }
.foot-inner { display: flex; align-items: center; gap: 24px; }
.foot-links { display: flex; gap: 20px; font-size: 14px; color: var(--ink2); }
.copy-small { margin-left: auto; font-size: 13.5px; color: var(--ink2); }

/* ---------------------------------------------------------------
   Interaction.
   Quiet tier (pills, rows, chips, demo controls, links): a soft tint
   in ~120ms and a small press. Nothing travels.
   Main buttons (hero, nav Download, pricing): the label steps aside a
   hair and a small arrow slides in after it. The orange Buy Standard
   adds the signature: a magnetic pull. The button drifts up to 3px
   toward the cursor and its label a little further, set from
   pointermove in app.js (--tx/--ty, --lx/--ly).
---------------------------------------------------------------- */
:is(.nav-links a, .theme-btn, .nav .wordmark, .mb-koyote, .p-icon, .p-row, .mode, .try button, .clip-item, .lay,
    .thumb-actions button, .ed-tools button, .divider-btn, .seg button, .ghost-pill, .btn) {
  -webkit-tap-highlight-color: transparent;
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease, transform .2s cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) {
  .nav-links a:hover, .p-icon:hover, .p-row:hover, .thumb-actions button:hover, .divider-btn:hover { background-color: var(--fx); }
  .ed-tools button:hover { background-color: var(--fx); color: var(--ink); }
  .mode:hover { color: var(--ink); }
  .mode[aria-selected="false"]:hover { background-color: color-mix(in srgb, var(--ink) 4%, transparent); }
  .seg button[aria-checked="false"]:hover { color: var(--ink); background-color: color-mix(in srgb, var(--ink) 4%, transparent); }
  .try button:hover { background-color: var(--surface); }
  .mb-koyote:hover { background-color: var(--pressed); }
  .theme-btn:hover, .ghost-pill:hover, .nav .wordmark:hover, .clip-item:hover, .lay:hover { background-color: color-mix(in srgb, var(--surface) 95%, var(--ink)); }
  .btn-ink:not(.btn-main):hover { background-color: color-mix(in srgb, var(--ink) 90%, var(--ground)); }
  .switch:hover { background-color: color-mix(in srgb, var(--ink) 24%, transparent); }
  .switch[aria-checked="true"]:hover { background-color: color-mix(in srgb, var(--ink) 86%, var(--ground)); }
  .row:hover::after, summary:hover::before { opacity: 1; }
  details:not([open]) summary:hover::after { transform: rotate(90deg); background: var(--ink2); }
}
:is(.nav-links a, .p-icon, .p-row, .thumb-actions button, .divider-btn, .ed-tools button):active { background-color: var(--fx-press); }
:is(.nav-links a, .theme-btn, .nav .wordmark, .mb-koyote, .p-icon, .mode, .try button, .thumb-actions button, .ed-tools button,
    .divider-btn, .seg button, .ghost-pill, .btn:not(.btn-quiet)):active { transform: scale(.985); transition-duration: .08s; }
:is(.lay, .clip-item, .p-row):active { transform: scale(.99); transition-duration: .08s; }

/* Tool rows and FAQ rows: an inset rounded tint, like a macOS sidebar row */
.row { cursor: pointer; isolation: isolate; }
.row::after, summary::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  background: var(--fx); opacity: 0; transition: opacity .12s ease;
}
.row::after { inset: 2px 6px; border-radius: 11px; }
summary { position: relative; isolation: isolate; }
summary::before { inset: 4px 8px; border-radius: 14px; }
.row:active::after, summary:active::before { opacity: 1; background: var(--fx-press); }
summary:focus-visible::before { opacity: 1; }
.switch:active::after { width: 24px; }
.switch[aria-checked="true"]:active::after { transform: translateX(12px); }
.switch::after { transition: transform .26s var(--spring), width .2s var(--ease); }

/* Theme toggle: the new icon turns in */
.theme-btn svg { animation: theme-in .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes theme-in { from { opacity: 0; transform: rotate(-40deg) scale(.8); } }

/* Text links: hairline underline draws from the left, retracts to the right */
.foot-links a, .p-settings {
  background: linear-gradient(currentColor, currentColor) right 100% / 0 1px no-repeat;
  transition: background-size .3s cubic-bezier(.65, 0, .25, 1), color .12s;
  padding-bottom: 1px;
}
@media (hover: hover) {
  .foot-links a:hover, .p-settings:hover { background-size: 100% 1px; background-position-x: left; color: var(--ink); }
}
.foot-links a:focus-visible, .p-settings:focus-visible { background-size: 100% 1px; background-position-x: left; color: var(--ink); }

/* Main buttons: label steps aside, arrow slides in after it */
.btn-main .lbl { position: relative; display: inline-block; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.btn-main .arr {
  position: absolute; left: calc(100% + 6px); top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0; transform: translateX(-5px);
  transition: opacity .2s ease, transform .38s cubic-bezier(.2, .8, .2, 1);
}
@media (hover: hover) {
  .btn-main:hover .lbl { transform: translateX(-8px); }
  .btn-main:hover .arr { opacity: 1; transform: none; }
  .btn-ink.btn-main:hover { background-color: color-mix(in srgb, var(--ink) 92%, var(--ground)); }
  .btn-white.btn-main:hover { background-color: color-mix(in srgb, var(--surface) 96%, var(--ink)); box-shadow: var(--shadow-soft), 0 6px 16px -10px rgba(36,32,29,.25); }
  .btn-fox:hover { background-color: color-mix(in srgb, var(--fox-btn) 92%, #3A1200); }
}
.btn-main:focus-visible .lbl { transform: translateX(-8px); }
.btn-main:focus-visible .arr { opacity: 1; transform: none; }

/* Orange signature: magnetic pull */
.btn-fox.btn-main {
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--ps, 1));
  transition: background-color .12s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.btn-fox.btn-main.pulling { transition: background-color .12s ease, transform .16s ease-out; }
.btn-fox.btn-main .lbl { transform: translate(var(--lx, 0px), var(--ly, 0px)); }
@media (hover: hover) { .btn-fox.btn-main:hover .lbl { transform: translate(calc(var(--lx, 0px) - 8px), var(--ly, 0px)); } }
.btn-fox.btn-main:active { --ps: .985; transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(.985); }

/* Focus rings that sit inside rows so they never clip against the card */
.p-row:focus-visible, .clip-item:focus-visible, .lay:focus-visible, .thumb-actions button:focus-visible { outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  .btn-main .lbl, .btn-fox.btn-main .lbl { transform: none !important; }
  .btn-main .arr { transform: none !important; }
  .btn-fox.btn-main { transform: none !important; }
  :is(.nav-links a, .theme-btn, .nav .wordmark, .mb-koyote, .p-icon, .p-row, .mode, .try button, .clip-item, .lay,
      .thumb-actions button, .ed-tools button, .divider-btn, .seg button, .ghost-pill, .btn):active { transform: none !important; }
  details:not([open]) summary:hover::after { transform: none; }
}

/* ---------- Edge wordmarks: an oversized KOYOTE sitting partly off screen ---------- */
.edge {
  position: absolute; pointer-events: none; user-select: none;
  overflow: clip; z-index: -1;
}
.edge-mark {
  display: block; aspect-ratio: 1458 / 986; height: auto;
  color: color-mix(in srgb, var(--ink) 4.5%, var(--ground));
}
/* Top left + bottom right: foxes peek out of the corners, base flush with the edge */
.edge-top { left: 0; top: 0; width: 100%; height: min(60vw, 640px); }
/* Top left: hangs upside down from the top edge, base flush with it, facing down */
.edge-top .edge-mark {
  --w: clamp(240px, 24vw, 380px);
  position: absolute; width: var(--w); top: 0; left: calc(var(--w) * -.18);
  transform: rotate(180deg);
}
.foot { position: relative; isolation: isolate; overflow: visible; padding-bottom: clamp(170px, 18vw, 260px); }
/* Bottom right: the fox peeks in from the corner, flat base on the bottom edge, about a fifth off the right edge */
.edge-foot { right: 0; bottom: 0; left: 0; height: 640px; }
.edge-foot .edge-mark {
  /* Bottom right: sits upright on the bottom edge, base flush with it, facing up */
  --w: clamp(280px, 34vw, 560px);
  position: absolute; width: var(--w); bottom: 0; right: calc(var(--w) * -.18);
}
.foot-inner { position: relative; }

/* ---------- ⌘K hint in the nav ---------- */
.k-hint { height: 44px; padding: 0 12px; gap: 3px; margin-left: auto; color: var(--ink2); }
.k-hint kbd { background: none; box-shadow: none; padding: 0; font-size: 13px; font-weight: 500; color: inherit; min-width: .9em; text-align: center; }
.k-hint + .theme-btn { margin-left: 0; }
@media (hover: hover) { .k-hint:hover { color: var(--ink); background-color: color-mix(in srgb, var(--surface) 95%, var(--ink)); } }
.k-hint:active { transform: scale(.985); }
.k-hint { transition: background-color .12s ease, color .12s ease, transform .2s cubic-bezier(.2, .8, .2, 1); }
@media (hover: none), (max-width: 760px) { .k-hint { display: none; } .k-hint + .theme-btn { margin-left: auto; } }

/* ---------- ⌘K palette: the command bar as site navigation ---------- */
.pal { position: fixed; inset: 0; z-index: 100; display: grid; justify-items: center; align-items: start; padding: 14vh 16px 16px; }
.pal[hidden] { display: none; }
.pal-scrim {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ground) 55%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  animation: pal-fade .18s ease;
}
.pal-box { position: relative; width: 100%; max-width: 620px; margin: 0; animation: pal-in .22s cubic-bezier(.2, .8, .2, 1); }
.pal-box .cmd-card, .pal-box .pill { box-shadow: var(--shadow-panel); }
.pal-box .cmd-list { max-height: min(52vh, 400px); }
.pal-foot { display: flex; gap: 16px; justify-content: flex-end; padding: 8px 16px 2px; border-top: 1px solid var(--rule); margin-top: 6px; font-size: 12px; color: var(--ink2); }
.pal-foot kbd { font-size: 11px; padding: .05em .4em; margin-right: 3px; }
@keyframes pal-fade { from { opacity: 0; } }
@keyframes pal-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.pal .item:active { background: color-mix(in srgb, var(--ink) 12%, transparent); }
@media (max-width: 640px) {
  .pal { padding-top: 10px; }
  .pal-foot { display: none; }
}

/* ---------- Savings tally ---------- */
.tally { margin-top: 64px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.tally-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.tally-head h3 { font-size: 22px; letter-spacing: -.02em; font-weight: 600; margin: 0; }
.tally-head p { margin: 0; font-size: 14.5px; color: var(--ink2); max-width: 30em; }
.tally-list { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px 0; }
.tally-list .row { padding: 11px 16px; }
.tally-list .row + .row::before { display: none; }
.tally-list .row-sub { font-variant-numeric: tabular-nums; }
.tally-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ts {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 16px 20px; border-radius: var(--r-card);
  box-shadow: inset 0 0 0 .5px var(--rule);
  background: color-mix(in srgb, var(--surface) 55%, var(--ground));
}
.ts-label { font-size: 14.5px; color: var(--ink2); }
.ts-val { font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
/* The Koyote box sits right above the $29 card and shares its fox outline */
.ts-k { background: var(--surface); box-shadow: inset 0 0 0 1px var(--fox-ring); }
.ts-out .ts-val { color: var(--fox-ink); }
.ts-out.behind .ts-val { color: var(--ink); }
@media (max-width: 980px) { .tally-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .tally { margin-top: 48px; }
  .tally-list { grid-template-columns: 1fr; }
  .tally-list .row + .row::before { display: block; }
  .tally-sum { grid-template-columns: 1fr; }
  .ts-val { font-size: 22px; }
}

.desk .mb { z-index: 3; }
.peek { z-index: 2; }

/* ---------- Pricing: tally leads into the plans ---------- */
#pricing .tally { margin: 0 0 14px; }
#pricing .tally-head { margin-bottom: 2px; }
.req {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 12px 0 0; font-size: 15px; font-weight: 500; color: var(--ink);
}
.req .ic { width: 20px; height: 20px; color: var(--ink2); stroke-width: 1.5; }
.req .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink3); }
.plans-foot { margin-top: 28px; }

/* ---------- FAQ matches the pricing width ---------- */
.faq .qa { max-width: none; }
.faq details p { max-width: 44em; }

/* Top-left fox: sized from the nav's left edge so both eyes sit just left of the pills */
.edge-top .edge-mark {
  --w: clamp(280px, 34vw, 560px);
  left: calc(var(--w) * -.2);
}

/* Responsive */
@media (max-width: 980px) {
  .two, .two.flip { grid-template-columns: 1fr; gap: 36px; }
  .two.flip .copy { justify-self: start; }
  .two.flip .copy { order: 0; }
  .copy { max-width: 560px; }
  .clip { justify-self: stretch; max-width: none; }
  .head.split { grid-template-columns: 1fr; gap: 14px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .mb-menu:nth-of-type(n+4) { display: none; }
}
@media (max-width: 760px) {
  .groups { grid-template-columns: 1fr; }
  .mb-menu { display: none; }
  .desk { height: 560px; }
  .panel { right: 12px !important; left: 12px !important; width: auto; max-width: 340px; margin-left: auto; }
  .layouts { grid-template-columns: repeat(2, 1fr); }
  .lay { grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
  .others { max-width: 90px; }
  .others svg:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
  .wrap, .nav-inner { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 16px; }
  .app-icon { width: 72px; height: 72px; margin: 20px auto 22px; }
  .lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .desk { margin-top: 44px; height: 640px; border-radius: 20px; }
  .mbdemo .mb.big { zoom: 1.08; }
  .mb { padding: 0 6px 0 12px; }
  .mb-left { gap: 12px; }
  .mb-app, .hide-sm, .mb-batt { display: none; }
  .mb-clock { margin-left: 2px; }
  .ro.net { display: none; }
  .peek { width: 170px; left: 50%; margin-left: -85px; }
  .desk-hint { right: 0; left: 0; text-align: center; bottom: auto; top: 50%; }
  .sec { padding-top: 96px; }
  .head p, .copy p { font-size: 16.5px; }
  .head.center { margin-bottom: 32px; }
  .cmd-mark { display: none; }
  .cmd-field input { font-size: 16px; }
  .cmd-list { max-height: 322px; }
  .item-sub { display: none; }
  .item-title { flex: 1; }
  .cap-screen { height: 460px; }
  .cap-page .panel { width: 300px; }
  .thumb { left: 12px; bottom: 12px; width: 214px; }
  .mb.big { padding: 0 8px 0 12px; }
  .mb.big .mb-left { display: none; }
  .mb.big { justify-content: flex-end; }
  .readout { gap: 8px; padding: 0 4px; }
  .readout .g svg { width: 26px; }
  .foot-inner { flex-wrap: wrap; gap: 16px; }
  .copy-small { margin-left: 0; width: 100%; }
  summary { font-size: 16px; padding: 18px 20px; }
  .req { flex-direction: column; gap: 4px; font-size: 14.5px; }
  .req .dot { display: none; }
  .req .ic { margin-bottom: 2px; }
  details p { margin: -6px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (hover: none) { .kb-only { display: none; } }
