/* DeskFetch site. The app's "Obsidian" language: black or white, no accent
   colour, hairlines, pill buttons. The only colour is the abstract display
   that stands for each kind of computer, as in the app. */

@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --bg: #000;
  --fg: #fff;
  --muted: #a8a8ad;
  --dim: #77777c;
  --line: #2a2a2d;
  --line-strong: #3a3a3d;
  --raised: #0d0d0e;
  --gutter: clamp(20px, 4.4vw, 56px);
  --measure: 34rem;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --fg: #000;
    --muted: #55555a;
    --dim: #7c7c82;
    --line: #dededf;
    --line-strong: #c4c4c7;
    --raised: #f6f6f6;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, .mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--bg); padding: 10px 16px; z-index: 10; }
.skip:focus { left: var(--gutter); top: 10px; }

.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.02em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.top nav ul { display: flex; gap: clamp(18px, 3vw, 30px); font-size: 0.94rem; }
.top nav a { color: var(--muted); text-decoration: none; padding-block: 6px; display: inline-block; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--fg); }

/* Type */
h1 { font-weight: 500; font-size: clamp(3.5rem, 9.4vw, 7.6rem); line-height: 0.94; letter-spacing: -0.045em; text-wrap: balance; }
h2 { font-weight: 500; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
h3 { font-weight: 500; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.03em; }
.lede { color: var(--muted); font-size: clamp(1.15rem, 1.7vw, 1.32rem); line-height: 1.42; max-width: var(--measure); text-wrap: pretty; }
.note { color: var(--dim); font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0; }
.muted { color: var(--muted); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; border: 1px solid var(--line-strong); }
.pill.fill { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill:hover { border-color: var(--fg); }
.pill.fill:hover { opacity: 0.86; }

/* Sections */
.band { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 128px); }
.band > .wrap > h2 + .lede { margin-top: 22px; }
.split { display: grid; gap: clamp(32px, 6vw, 96px); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }

/* The three abstract displays, as drawn in the app */
.win { background: repeating-linear-gradient(115deg, #0b1647 0 34px, #1d3a9a 58px, #3f7fb5 70px, #16308a 84px, #0b1647 120px); }
.mac { background: radial-gradient(60% 70% at 30% 100%, #f39bf0 0, #b05cc8 28%, transparent 70%), radial-gradient(70% 80% at 85% 90%, #6f6fd8 0, transparent 70%), #241a3a; }
.lin { background: radial-gradient(#d9b45a 1.4px, transparent 1.8px) 0 0 / 15px 15px, radial-gradient(60% 60% at 55% 45%, #5a5226, #12251f 75%); }

/* Hero: the mark at page scale. A desk behind, a phone in front. */
.hero { overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; padding-top: clamp(28px, 6vw, 84px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero .lede { margin-top: 28px; }
.hero .actions { margin-top: 36px; }
.hero .note { margin-top: 26px; }
.stage { position: relative; aspect-ratio: 10 / 9; margin-right: calc(var(--gutter) * -1); }
.desk { position: absolute; inset: 0 -12% 22% 0; border: clamp(9px, 1.1vw, 14px) solid var(--fg); border-right: 0; border-radius: clamp(26px, 3vw, 40px) 0 0 clamp(26px, 3vw, 40px); overflow: hidden; }
.desk i { position: absolute; inset: -20% -40%; animation: drift 60s linear infinite; }
.phone { position: relative; border: 1px solid var(--line-strong); border-radius: 13% / 6.2%; background: #000; overflow: hidden; box-shadow: 0 0 0 7px var(--bg), 0 0 0 8px var(--line-strong); }
.phone img { width: 100%; height: auto; }
.stage .phone { position: absolute; right: calc(var(--gutter) + 4%); bottom: -34%; width: 38%; animation: rise 900ms cubic-bezier(0.2, 0.7, 0.1, 1) 120ms both; }
/* Movement only: if the animation never runs, the phone is still there. */
@keyframes rise { from { transform: translateY(9%); } to { transform: none; } }
@keyframes drift { to { transform: translateX(240px); } }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); align-items: center; gap: 24px; }
  .stage { aspect-ratio: 10 / 8.6; }
}
@media (prefers-reduced-motion: reduce) {
  .desk i, .stage .phone { animation: none; }
  html { scroll-behavior: auto; }
}

/* Computers: the app's own list, at page width */
.rows { border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 64px); }
.row { display: grid; gap: 18px 32px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.row .tile { width: 172px; aspect-ratio: 172 / 118; border-radius: 16px; border: 1px solid var(--line); }
.row h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.row .uses { color: var(--muted); margin-top: 6px; }
.row .uses code { color: var(--dim); margin-left: 6px; }
.row ul { color: var(--muted); display: grid; gap: 6px; font-size: 1.0625rem; }
.row li { padding-left: 1.1em; position: relative; }
.row li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5em; height: 1px; background: var(--dim); }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 11px; vertical-align: middle; margin-left: 10px; letter-spacing: 0; position: relative; top: -0.3em; }
@media (min-width: 900px) { .row { grid-template-columns: 172px minmax(0, 4fr) minmax(0, 5fr); align-items: start; } }

/* Steps: a real sequence, so they are numbered */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 8px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step); font-family: var(--mono); font-size: 0.875rem; color: var(--dim); padding-top: 0.45em; }
.steps h3 { grid-column: 2; }
.steps p { grid-column: 2; color: var(--muted); margin-top: 8px; max-width: var(--measure); }
.more { display: inline-block; margin-top: 28px; }

/* Feature pairs: words beside a real render of the app */
.feature { display: grid; gap: 36px; align-items: center; padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.feature:first-of-type { border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 64px); }
.feature p { color: var(--muted); margin-top: 16px; max-width: var(--measure); }
.feature .phone { width: min(300px, 78%); margin-inline: auto; }
.feature .crop { max-height: 520px; }
.feature .crop img { object-fit: cover; object-position: top; }
.keys { border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden; background: #000; max-width: 520px; margin-inline: auto; }
.keys img { width: 100%; height: auto; aspect-ratio: 780 / 470; object-fit: cover; object-position: bottom; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; }
  .feature.pair { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Plain facts in a grid of hairlines */
.facts { display: grid; border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 64px); }
.facts > div { padding: 28px 0; border-bottom: 1px solid var(--line); }
.facts p { color: var(--muted); margin-top: 8px; font-size: 1.0625rem; max-width: 30rem; }
@media (min-width: 760px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 32px 40px 32px 0; }
  .facts > div:nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line); }
}

/* Pricing */
.plans { display: grid; gap: 0; border: 1px solid var(--line-strong); border-radius: 28px; margin-top: clamp(36px, 5vw, 64px); overflow: hidden; }
.plan { padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.plan + .plan { border-top: 1px solid var(--line-strong); }
.plan.pro { background: var(--fg); color: var(--bg); }
.plan .price { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.plan .price small { font-size: 1.0625rem; letter-spacing: -0.01em; font-weight: 400; opacity: 0.66; margin-left: 6px; }
.plan ul { display: grid; gap: 8px; font-size: 1.0625rem; opacity: 0.82; }
.plan .name { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; }
@media (min-width: 760px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan + .plan { border-top: 0; border-left: 1px solid var(--line-strong); }
}
.small { font-size: 0.94rem; color: var(--dim); margin-top: 20px; max-width: 44rem; }

/* Not in the app yet */
.soon { columns: 1; margin-top: 30px; border-top: 1px solid var(--line); }
.soon li { padding: 16px 0; border-bottom: 1px solid var(--line); break-inside: avoid; color: var(--muted); }
.soon b { color: var(--fg); font-weight: 500; }
@media (min-width: 760px) { .soon { columns: 2; column-gap: 64px; } }

/* Questions */
.qa { border-top: 1px solid var(--line); margin-top: clamp(28px, 4vw, 48px); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 22px 40px 22px 0; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.025em; list-style: none; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 160ms; }
.qa details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa details p { color: var(--muted); padding: 0 0 24px; max-width: 42rem; }
.qa details p + p { margin-top: -8px; }

/* Long-form pages: setup, security, support, legal */
.page-head { padding-top: clamp(36px, 7vw, 96px); padding-bottom: clamp(36px, 6vw, 72px); }
.page-head h1 { font-size: clamp(3rem, 7.6vw, 6rem); }
.page-head .lede { margin-top: 24px; }
.doc { display: grid; gap: 0; border-top: 1px solid var(--line); }
.doc section { padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); display: grid; gap: 22px; }
.doc h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.doc h3 { margin-top: 14px; font-size: 1.25rem; }
.doc .body { display: grid; gap: 16px; max-width: 44rem; color: var(--muted); }
.doc .body strong, .doc .body b { color: var(--fg); font-weight: 500; }
.doc .body ul { display: grid; gap: 8px; }
.doc .body ul li { padding-left: 1.1em; position: relative; }
.doc .body ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5em; height: 1px; background: var(--dim); }
.doc ol.steps { margin-top: 4px; }
.doc ol.steps > li { padding-block: 18px; }
.doc ol.steps p { margin-top: 0; }
.path { color: var(--fg); }
@media (min-width: 900px) { .doc section { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; } }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jump a { min-height: 44px; padding: 0 20px; font-size: 1rem; }

/* How it connects */
.route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; margin-top: clamp(36px, 5vw, 64px); }
.route .end { border: 1px solid var(--line-strong); border-radius: 22px; padding: 22px; text-align: center; }
.route .end b { display: block; font-weight: 500; font-size: 1.25rem; letter-spacing: -0.03em; }
.route .end span { color: var(--muted); font-size: 0.94rem; }
.route .wire { width: clamp(40px, 16vw, 260px); border-top: 1px solid var(--fg); position: relative; }
.route .wire span { position: absolute; left: 50%; top: -1.9em; transform: translateX(-50%); white-space: nowrap; font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }
@media (max-width: 620px) { .route .wire span { display: none; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 48px 56px; color: var(--muted); font-size: 0.94rem; }
.foot .wrap { display: grid; gap: 28px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot .legal { color: var(--dim); max-width: 60rem; font-size: 0.8125rem; line-height: 1.55; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: auto 1fr; align-items: center; } .foot ul { justify-content: flex-end; } .foot .legal { grid-column: 1 / -1; } }
