/* Telekinetic site. Parts and values are the brand toolkit's (brand/toolkit.html, brand/pages/download).
   No color, size or curve of its own: every value points at tokens.css. */

/* Theme roles. Dark is the first theme; light follows the system. .dark and .light force a scope. */
:root, .dark {
  --brand-bg: var(--t-dark-background); --brand-fg: var(--t-dark-foreground); --brand-muted: var(--t-dark-muted-foreground);
  --brand-line: var(--t-dark-border); --brand-steel: var(--t-dark-input); --brand-focus: var(--t-dark-primary);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --brand-bg: var(--t-background); --brand-fg: var(--t-foreground); --brand-muted: var(--t-muted-foreground);
    --brand-line: var(--t-border); --brand-steel: var(--t-input); --brand-focus: var(--t-primary); color-scheme: light; }
}
.light { --brand-bg: var(--t-background); --brand-fg: var(--t-foreground); --brand-muted: var(--t-muted-foreground);
  --brand-line: var(--t-border); --brand-steel: var(--t-input); --brand-focus: var(--t-primary); color-scheme: light; }

* { box-sizing: border-box; margin: 0; }
body { background: var(--brand-bg); color: var(--brand-fg); font: var(--type-body-weight) var(--type-body-size)/var(--type-body-leading) var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* the field */
.field { position: relative; }
.field > svg.field-lines { position: absolute; inset: 0 auto auto 0; pointer-events: none; z-index: 0; }
.field-lines path { fill: none; stroke: var(--brand-steel); stroke-width: 1; opacity: .5; }
.field > :not(svg.field-lines) { position: relative; z-index: 1; }

section { padding: calc(var(--space-section) / 2) var(--space-gutter); }
.wrap { max-width: var(--space-max); margin-inline: auto; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
h1 { font-size: var(--type-display-size); line-height: var(--type-display-leading); letter-spacing: var(--type-display-tracking); font-weight: var(--type-display-weight); display: inline-block; }
h2 { font-size: var(--type-h1-size); line-height: var(--type-h1-leading); letter-spacing: var(--type-h1-tracking); font-weight: var(--type-h1-weight); display: inline-block; }
h3 { font-size: var(--type-h3-size); line-height: var(--type-h3-leading); letter-spacing: var(--type-h3-tracking); font-weight: var(--type-h3-weight); }

/* text sits on a block of ground color, so the field stops at its edge and never runs through words */
.say { width: fit-content; max-width: min(100%, 35rem); margin: 1.5rem 0 0 -1rem; padding: .5rem 1rem; background: var(--brand-bg); font-size: 1.125rem; line-height: 1.55; text-wrap: pretty; }
.center { text-align: center; } .center .say, .hero .say { margin-inline: auto; }
.caption { width: fit-content; max-width: 100%; margin: 1rem 0 0 -.6rem; padding: .3rem .6rem; background: var(--brand-bg); font-size: var(--type-small-size); line-height: var(--type-small-leading); color: var(--brand-muted); }
.say a, .card a { color: inherit; text-underline-offset: 4px; }

/* buttons: outlined pill on the ground. Ice edge for the primary action, steel otherwise. */
.btn { display: inline-flex; align-items: center; height: 4.25rem; padding: 0 3.75rem; border: 1.5px solid var(--brand-focus); border-radius: var(--radius-full); background: var(--brand-bg); color: var(--brand-fg); font: 500 1.5rem var(--font-text); text-decoration: none; white-space: nowrap; }
.btn.quiet { border-color: var(--brand-steel); height: 3.25rem; padding: 0 2.25rem; font-size: 1.125rem; }
a:focus-visible { outline: 1.5px solid var(--brand-focus); outline-offset: 4px; }

/* skip link: off screen until it has focus */
.field > a.skip { position: absolute; left: var(--space-gutter); top: -10rem; z-index: 5; padding: .5rem 1rem; border-radius: var(--radius-full); background: var(--brand-bg); color: var(--brand-fg); }
.field > a.skip:focus { top: 1rem; }

/* header */
header { padding: 2rem var(--space-gutter) 0; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.top img { height: 4.5rem; display: block; }
.top a:not(.home) { color: var(--brand-fg); text-decoration: none; background: var(--brand-bg); padding: .4rem .8rem; border-radius: var(--radius-full); }
.home { display: block; border-radius: var(--radius-md); }
.hero { padding-block: clamp(4.5rem, 9vw, 8rem) 0; text-align: center; }
.hero .btn { margin-top: 3.5rem; }
.hero .say { margin-top: 3.5rem; font-size: 1.375rem; line-height: 1.4; }
.shot { padding-top: 5rem; }

/* two-up: words beside a window, or two windows */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 3rem 4rem; align-items: center; }
.duo.pair { align-items: start; margin-top: 3.5rem; }

/* product windows, as specified in the toolkit */
.win { border: 1.5px solid var(--brand-steel); border-radius: var(--radius-lg); background: var(--brand-bg); color: var(--brand-fg); overflow: hidden; text-align: left; font: var(--type-label-weight) var(--type-label-size)/var(--type-label-leading) var(--font-text); }
.win .bar-t { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 2.5rem; padding: 0 .85rem; border-bottom: 1px solid var(--brand-line); background: var(--brand-bg); }
.lights { display: flex; gap: .5rem; } .lights i { width: .75rem; height: .75rem; border-radius: 50%; }
.lights i:nth-child(1) { background: #FF5F57; } .lights i:nth-child(2) { background: #FEBC2E; } .lights i:nth-child(3) { background: #28C840; } /* macOS system controls, not brand colors */
.panes { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 25rem; }
.list { border-right: 1px solid var(--brand-line); padding: 0 .75rem 1rem; }
.list.solo { border-right: 0; }
.tabs { display: flex; gap: 1.5rem; padding: .85rem .5rem 0; border-bottom: 1px solid var(--brand-line); margin-bottom: .6rem; }
.tabs span { padding-bottom: .6rem; color: var(--brand-muted); } .tabs .on { color: var(--brand-focus); box-shadow: 0 2px 0 var(--brand-focus); }
.row { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: .75rem; align-items: center; height: 1.875rem; padding: 0 .5rem; border-radius: var(--radius-md); white-space: nowrap; }
.row span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; } .row span:nth-child(2) em { font-style: normal; font-weight: 400; color: var(--brand-muted); }
.row span:last-child { color: var(--brand-muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.row.on, .res.on { outline: 1.5px solid var(--brand-focus); outline-offset: -1.5px; background: var(--brand-bg); }
.read { padding: 1.75rem 2rem; } .read h3 { font-size: 1.375rem; } .read .from { color: var(--brand-muted); margin: .35rem 0 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--brand-line); }
.read p { font: 400 .9375rem/1.6 var(--font-text); max-width: 56ch; } .read p + p { margin-top: .8rem; }
.pal { border: 1.5px solid var(--brand-steel); border-radius: var(--radius-lg); background: var(--brand-bg); padding: .5rem; }
.q { display: flex; align-items: center; gap: .65rem; height: 2.75rem; padding: 0 .65rem; border-bottom: 1px solid var(--brand-line); margin-bottom: .4rem; font-size: 1rem; }
.q u { text-decoration: none; border-right: 1.5px solid var(--brand-focus); padding-right: 1px; } .q kbd { margin-left: auto; }
.q span { color: var(--brand-muted); }
.res { display: flex; align-items: center; gap: .75rem; height: 2.125rem; padding: 0 .65rem; border-radius: var(--radius-md); } .res kbd { margin-left: auto; }
kbd { font: 500 var(--type-label-size) var(--font-text); color: var(--brand-muted); }
svg.ic { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cmd { margin-top: 3.5rem; } .cmd .list { border: 0; opacity: .32; padding: 0 1.25rem 3rem; }
.win.field.cmd > .pal { position: absolute; left: 50%; top: 7.5rem; transform: translateX(-50%); z-index: 3; width: min(86%, 33rem); }

/* motion (assets/motion.js). Everything sits behind html.motion, set in the head and removed for reduced motion. */
.field > canvas.field-live { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.motion .hero h1 {
  -webkit-mask: linear-gradient(90deg, #000 0 44%, transparent 56%) 0 0 / 230% 100% no-repeat; mask: linear-gradient(90deg, #000 0 44%, transparent 56%) 0 0 / 230% 100% no-repeat;
  animation: wipe 950ms cubic-bezier(.65, 0, .35, 1) 350ms both;
}
.motion .hero .btn, .motion .hero .say { animation: rise 600ms cubic-bezier(.22, 1, .36, 1) 1000ms both; }
.motion .hero .say { animation-delay: 1150ms; }
@keyframes wipe { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; transform: translateY(.16em); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.motion .rv { transition: opacity 600ms cubic-bezier(.22, 1, .36, 1) var(--d, 0ms), transform 600ms cubic-bezier(.22, 1, .36, 1) var(--d, 0ms); }
.motion .rv.pre { opacity: 0; transform: translateY(16px); transition: none; }
.motion .res, .motion .list.solo .row { transition: opacity 200ms; }

/* closing call and the download page */
.get { text-align: center; padding-bottom: var(--space-section); }
.get img { width: 8rem; height: 8rem; display: block; margin: 0 auto 2.5rem; }
.get .btn { margin-top: 3rem; }
.get .say, .hero .caption { margin-inline: auto; }

/* privacy statement: reading text in one outlined card on plain ground */
.card { max-width: 44rem; margin-top: 3.5rem; padding: 2rem; border: 1.5px solid var(--brand-steel); border-radius: var(--radius-lg); background: var(--brand-bg); }
.card h2 { display: block; font-size: var(--type-h3-size); line-height: var(--type-h3-leading); letter-spacing: var(--type-h3-tracking); font-weight: var(--type-h3-weight); }
.card h2:not(:first-child) { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--brand-line); }
.card p { margin-top: .75rem; max-width: 62ch; text-wrap: pretty; }

footer { padding: 2rem var(--space-gutter) 3rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
footer img { height: 3rem; display: block; } footer .caption { margin: 0; }
footer ul { display: flex; gap: .5rem; list-style: none; padding: 0; }
footer ul a { display: block; padding: .3rem .6rem; border-radius: var(--radius-full); background: var(--brand-bg); color: var(--brand-fg); text-decoration: none; }
footer .end { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 720px) {
  .panes { grid-template-columns: 1fr; min-height: 0; } .list { border-right: 0; } .row { grid-template-columns: 6.5rem 1fr auto; }
  .top img { height: 3.25rem; } .btn { height: 3.75rem; padding: 0 2.5rem; font-size: 1.25rem; } .hero .say { font-size: 1.125rem; }
  .read { border-top: 1px solid var(--brand-line); padding: 1.5rem 1.25rem; } .tabs { gap: 1.1rem; } .shot { padding-top: 3.5rem; }
  .card { padding: 1.5rem 1.25rem; }
}
