/* Harbor website. Dark first, light when the system asks for it. No external fonts or frameworks. */

:root {
  --bg: #0b0d16;
  --bg-2: #10131f;
  --surface: #151927;
  --surface-2: #1b2031;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #a7aec0;
  --faint: #7c849a;
  --accent: #ffa31a;          /* buttons: dark text on it */
  --accent-ink: #1a1104;
  --accent-text: #ffb84d;     /* links and highlights on the background */
  --coral: #ff6f61;
  --cyan: #3fd0e6;
  --violet: #b86bff;
  --good: #49d17d;
  --focus: #7cc4ff;
  --glow: rgba(255, 150, 60, 0.18);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.65), 0 2px 8px rgba(0, 0, 0, 0.3);
  --radius: 22px;
  --radius-s: 14px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* The "desktop" behind dock pictures: the same dusk colours the app's own renders use. */
  --desk: linear-gradient(90deg, #252b48 0%, #433a5e 25%, #624974 50%, #996772 75%, #d28266 100%);
  /* Wallpapers of the drawn displays (Multiple screens). */
  --wall-1: linear-gradient(135deg, #1e2440 0%, #59406e 55%, #d07a5c 100%);
  --wall-2: linear-gradient(160deg, #0f2a3d 0%, #1f5c73 55%, #6fb3a8 100%);
  --wall-3: linear-gradient(200deg, #1a1530 0%, #4b2a6b 50%, #c25d8b 100%);
  --stand: #2a2c33;
  --stand-2: #3a3d46;
  --wall-band: #0f1220;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ee;
    --bg-2: #efebe4;
    --surface: #ffffff;
    --surface-2: #f8f6f2;
    --line: rgba(20, 22, 35, 0.1);
    --line-strong: rgba(20, 22, 35, 0.18);
    --text: #14161f;
    --muted: #4c5366;
    --faint: #697085;
    --accent: #ffa31a;
    --accent-ink: #1a1104;
    --accent-text: #a64a00;
    --focus: #0a64d8;
    --glow: rgba(255, 150, 60, 0.22);
    --shadow: 0 24px 50px -24px rgba(40, 30, 20, 0.35), 0 2px 6px rgba(40, 30, 20, 0.08);
    --stand: #b4b8c1;
    --stand-2: #cfd2d9;
    --wall-band: #e9e6e0;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.022em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 0.35em; background: var(--surface); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: rgba(255, 163, 26, 0.35); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; }
.header-account { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.header-account:hover { color: var(--text); background: var(--surface-2); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .header-account { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin: 0 -4px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul { padding-bottom: 6px; }
  .site-nav a { padding: 6px 10px; font-size: 0.92rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -8px rgba(255, 140, 20, 0.6); }
.btn-primary:hover { background: #ffb238; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 0.92rem; }
.btn-big { min-height: 58px; padding: 0 30px; font-size: 1.1rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 40px; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -10% 0 auto; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(184, 107, 255, 0.18), transparent 70%),
    radial-gradient(700px 360px at 60% 40%, var(--glow), transparent 70%);
  pointer-events: none;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.eyebrow b { color: var(--text); }
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero h1 .warm { background: linear-gradient(90deg, #ffb238, #ff6f61 60%, #c86bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: light) { .hero h1 .warm { background: linear-gradient(90deg, #c45a00, #d8364a 60%, #8a2fd6); -webkit-background-clip: text; background-clip: text; } }
.lede { max-width: 640px; margin: 0 auto 28px; color: var(--muted); font-size: clamp(1.06rem, 1.7vw, 1.25rem); }
.hero .btn-row { justify-content: center; }
.fineprint { margin-top: 14px; color: var(--faint); font-size: 0.9rem; }

/* The desktop scene: a CSS wallpaper, an App Folder open above its tile, Edge Notes tabs and the real bar. */
.stage {
  --bar-w: 92%;
  position: relative; margin: clamp(40px, 6vw, 64px) auto 0; width: 100%; max-width: 1240px;
  aspect-ratio: 16 / 7.4; border-radius: clamp(14px, 2vw, 26px); overflow: hidden;
  background:
    radial-gradient(60% 55% at 72% 108%, rgba(255, 170, 90, 0.55), transparent 70%),
    radial-gradient(45% 40% at 20% 0%, rgba(110, 120, 255, 0.28), transparent 70%),
    linear-gradient(180deg, #151a33 0%, #2a2448 45%, #4b3359 70%, #8a5560 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.stage::before { /* a horizon and its reflection */
  content: ""; position: absolute; left: 0; right: 0; top: 64%; height: 36%;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px), linear-gradient(180deg, rgba(20, 16, 40, 0.0), rgba(20, 16, 40, 0.35));
}
.stage::after { /* a low sun */
  content: ""; position: absolute; width: 16%; aspect-ratio: 1; left: 64%; top: 52%; border-radius: 50%;
  background: radial-gradient(circle, #ffd59a 0 45%, rgba(255, 190, 120, 0.35) 46%, transparent 70%);
  filter: blur(1px); opacity: 0.85;
}
.stage-bar { position: absolute; z-index: 2; left: 50%; bottom: 3.2%; width: var(--bar-w); transform: translateX(-50%); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45)); }
.stage-bar img { width: 100%; }
.stage-folder {
  position: absolute; z-index: 3; width: 23%; height: auto; left: 47.7%; bottom: 14%; border-radius: 4% / 3.5%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
  transform-origin: 50% 100%;
  animation: pop 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.5s both;
}
.stage-notes { position: absolute; z-index: 2; right: 0; top: 14%; display: grid; gap: 8px; }
.stage-notes { right: 0.6%; gap: clamp(3px, 0.45vw, 6px); padding: 4px 3px; border-radius: 6px; background: rgba(20, 16, 36, 0.35); }
.stage-notes span { display: block; width: clamp(3px, 0.4vw, 5px); height: clamp(10px, 1.4vw, 18px); border-radius: 3px; }
.stage-notes span:nth-child(1) { background: #ffd84a; }
.stage-notes span:nth-child(2) { background: #ff8fb1; }
.stage-notes span:nth-child(3) { background: #7fe0b5; }
.stage-notes span:nth-child(4) { background: #9fd0ff; }
.stage-caption { margin: 14px auto 0; color: var(--faint); font-size: 0.86rem; text-align: center; max-width: 60ch; }
/* Motion only (no fading in), so the picture is complete even where animations don't run. */
@keyframes pop { from { transform: translateY(14px) scale(0.92); } to { transform: none; } }
@media (max-width: 699px) {
  .stage { --bar-w: 94%; aspect-ratio: 4 / 3.6; }
  .stage-folder { width: 37.6%; left: auto; right: 4%; bottom: 13.5%; }
  .stage-notes { top: 8%; gap: 6px; }
  .stage::after { left: 12%; top: 50%; width: 26%; }
}

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 48px auto 0; max-width: 900px; border-radius: var(--radius-s); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.facts div { background: var(--bg-2); padding: 16px 12px; text-align: center; }
.facts b { display: block; font-size: 1.25rem; letter-spacing: -0.01em; }
.facts span { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; margin-bottom: 12px; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature.flip > .feature-text { order: 2; }
.feature-text p { color: var(--muted); }
.feature-text ul { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 10px; }
.feature-text li { position: relative; padding-left: 28px; color: var(--muted); }
.feature-text li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--accent), var(--coral)); }
.feature-text li b { color: var(--text); font-weight: 700; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip > .feature-text { order: 0; }
}

/* Screenshot frames: dock pictures sit on the same dusk "desktop" the app renders them on. */
.shot { margin: 0; }
.shot figcaption { margin-top: 12px; color: var(--faint); font-size: 0.86rem; }
.desk { position: relative; border-radius: var(--radius); background: var(--desk); padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08); overflow: hidden; }
.desk img { margin-inline: auto; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35)); }
.desk.tall { display: grid; place-items: center; }
.window { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line-strong); background: #1c1c1e; }
.window picture { display: block; }
@media (prefers-color-scheme: light) { .window:has(picture) { background: #f5f5f7; } }
.window img { width: 100%; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.scroll-x img { max-width: none; }

/* Widget grid */
.widgets { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.widget-card { grid-column: span 6; margin: 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.widget-card .desk { border-radius: 0; box-shadow: none; flex: 1; display: grid; place-items: center; min-height: 170px; }
.widget-card figcaption { padding: 16px 20px 18px; color: var(--muted); font-size: 0.95rem; }
.widget-card figcaption b { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 2px; }
.widget-card.wide { grid-column: span 12; }
.widget-card.third { grid-column: span 4; }
.widget-card.two-thirds { grid-column: span 8; }
@media (max-width: 860px) {
  .widget-card, .widget-card.third, .widget-card.two-thirds { grid-column: span 12; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--muted); }

/* Themes */
.themes { display: grid; gap: 18px; }
.theme-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.theme-tabs button, .g-tabs button { font: 600 0.95rem/1 var(--font); color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.theme-tabs button[aria-selected="true"], .g-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.theme-panels { display: grid; gap: 16px; }
.theme-panel h3 { font-size: 0.95rem; color: var(--muted); margin: 0 0 8px; }
.js .theme-panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.js .theme-panel[hidden] { display: none; }
.no-js .theme-tabs { display: none; }

/* Edge Notes illustration */
.edge-demo { position: relative; aspect-ratio: 5 / 3.4; border-radius: var(--radius); overflow: hidden; background: var(--desk); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.edge-demo .tabs { position: absolute; right: 0; top: 12%; display: grid; gap: 10px; }
.edge-demo .tab { width: 18px; height: 70px; border-radius: 10px 0 0 10px; box-shadow: -4px 6px 14px rgba(0, 0, 0, 0.3); }
.edge-demo .tab:nth-child(1) { background: #ffd84a; }
.edge-demo .tab:nth-child(2) { background: #ff8fb1; }
.edge-demo .tab:nth-child(3) { background: #7fe0b5; }
.edge-demo .note {
  position: absolute; right: 18px; top: 12%; width: min(62%, 330px); padding: 22px 22px 26px; border-radius: 16px 0 0 16px;
  background: #ffe479; color: #3b3000; box-shadow: -10px 18px 40px rgba(0, 0, 0, 0.35);
  font-size: clamp(0.9rem, 1.6vw, 1.02rem); line-height: 1.5;
  animation: slidein 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
.edge-demo .note b { display: block; font-size: 1.12em; margin-bottom: 6px; }
.edge-demo .note ul { margin: 0; padding-left: 1.2em; }
.edge-demo .synced { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.8em; font-weight: 700; color: #6a5700; }
.edge-demo .synced::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fa85a; }
@keyframes slidein { from { transform: translateX(12%); } to { transform: none; } }
.edge-demo .dockline { position: absolute; left: 6%; right: 6%; bottom: 5%; height: 9%; border-radius: 14px; background: rgba(12, 12, 18, 0.88); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.price-card {
  position: relative; padding: clamp(26px, 4vw, 40px); border-radius: 28px; background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow); overflow: hidden;
}
.price-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--accent), var(--coral), var(--violet), var(--cyan)); }
.price-card .plan { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.price-card .plan img { border-radius: 14px; }
.price-card .plan h3 { margin: 0; font-size: 1.35rem; }
.price-card .plan p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.price b { font-size: clamp(3rem, 7vw, 4rem); letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; }
.price-card li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--good); }
.price-card .btn-row .btn { flex: 1 1 180px; }
.price-card .fineprint { margin-bottom: 0; }
.trial-note { padding: 22px 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.trial-note h3 { color: var(--text); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; border-radius: var(--radius-s); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { text-align: center; padding: clamp(56px, 8vw, 96px) 0; background: radial-gradient(60% 120% at 50% 100%, var(--glow), transparent 70%); border-top: 1px solid var(--line); }
.cta-band img { margin: 0 auto 20px; border-radius: 24%; box-shadow: var(--shadow); }
.cta-band .btn-row { justify-content: center; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(48px, 8vw, 88px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 640px; }
.prose { padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.prose strong, .prose b { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose .updated { color: var(--faint); font-size: 0.92rem; }
.card { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card + .card { margin-top: 16px; }
.grid-2 > .card + .card { margin-top: 0; }
.card > :first-child, .prose .card > h2:first-child { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.steps > li { counter-increment: step; position: relative; padding: 18px 20px 18px 66px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); margin: 0 !important; }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.steps b { color: var(--text); }

.download-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.download-hero img { border-radius: 22%; }
.download-hero h2 { margin: 0 0 6px; }
.download-hero p { color: var(--muted); margin-bottom: 16px; }
@media (max-width: 600px) { .download-hero { grid-template-columns: 1fr; text-align: center; } .download-hero img { margin: 0 auto; width: 96px; } .download-hero .btn-row { justify-content: center; } }

.specs { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--text); font-weight: 700; padding-right: 16px; }
.specs td { color: var(--muted); }

pre.terminal { margin: 12px 0 18px; padding: 16px 18px; border-radius: 12px; background: #0d0f15; color: #e7e9ef; border: 1px solid rgba(255, 255, 255, 0.1); overflow-x: auto; font: 0.9rem/1.6 var(--mono); }
pre.terminal code { background: none; border: 0; padding: 0; font-size: 1em; color: inherit; }
.copy-row { position: relative; }
.copy-btn { position: absolute; top: 8px; right: 8px; font: 600 0.8rem/1 var(--font); padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: #1d2130; color: #e7e9ef; cursor: pointer; }
.no-js .copy-btn { display: none; }

.callout { padding: 16px 20px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--muted); }
.callout strong { color: var(--text); }
.draft-note { margin: 0 0 28px; padding: 14px 18px; border-radius: 12px; border: 2px dashed #e0a100; background: rgba(255, 196, 0, 0.1); color: var(--text); font-size: 0.95rem; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { font-weight: 700; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input {
  flex: 1 1 240px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: 1.05rem var(--font);
}
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field .btn { flex: 0 0 auto; }
.hint { color: var(--faint); font-size: 0.9rem; margin: 0; }
.result { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg-2); }
.result[data-kind="ok"] { border-color: rgba(73, 209, 125, 0.5); }
.result[data-kind="warn"] { border-color: rgba(255, 163, 26, 0.6); }
.result:empty { display: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Changelog */
.release { position: relative; padding-left: 26px; border-left: 2px solid var(--line-strong); }
.release::before { content: ""; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.release .tag { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; font-weight: 700; vertical-align: middle; letter-spacing: 0; }

/* 404 */
.lost { text-align: center; padding: clamp(72px, 12vw, 140px) 0; }
.lost .big { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; background: linear-gradient(180deg, var(--text), transparent 120%); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0 0 8px; }
.lost .btn-row { justify-content: center; margin-top: 24px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 28px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.footer-brand p { color: var(--muted); margin-top: 10px; max-width: 30ch; }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin: 4px 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer nav a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.footer-fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.82rem; }
.footer-fine p { margin: 0 0 6px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Dock bars inside a desk fill its width (and scroll sideways on phones). */
.desk .bar-img, .g-frame .bar-img { width: 100%; min-width: 760px; max-width: none; }
.framed { border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.08); margin-inline: auto; }
.w-half { width: min(100%, 254px); }
.appearance-shot { width: min(100%, 760px); justify-self: center; margin-top: 12px; }

/* /features */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.jump a:hover { color: var(--text); border-color: var(--line-strong); }
.list-title { margin-top: 48px; font-size: 1.4rem; }
.widget-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; border-radius: var(--radius-s); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 900px) { .widget-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .widget-list { grid-template-columns: 1fr; } }
.widget-list div { padding: 14px 16px; box-shadow: 0 0 0 0.5px var(--line); }
.widget-list dt { font-weight: 700; }
.widget-list dd { margin: 2px 0 0; color: var(--muted); font-size: 0.93rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---------- widget wall (home): rows of real cards drifting sideways ---------- */
.wall-section { --wall-h: 72px; --wall-gap: 12px; background: var(--wall-band); overflow: hidden; }
.wall { position: relative; display: grid; gap: var(--wall-gap); max-width: 1680px; margin: 0 auto; }
/* Soft edges: the band's colour fading in over the ends of the rows (overlays, not a CSS mask, which WebKit can
   drop over moving layers). */
.wall::before, .wall::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: 7%; min-width: 28px; pointer-events: none; }
.wall::before { left: 0; background: linear-gradient(90deg, var(--wall-band), transparent); }
.wall::after { right: 0; background: linear-gradient(270deg, var(--wall-band), transparent); }
.wall-row { height: var(--wall-h); overflow: hidden; border-radius: 12px; }
.wall-row:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wall-track { display: flex; width: max-content; animation: wall-left var(--wall-dur, 80s) linear infinite; will-change: transform; }
.wall-right .wall-track { animation-name: wall-right; }
.wall-set { display: flex; gap: var(--wall-gap); padding-right: var(--wall-gap); }
.wall-set img { flex: none; width: auto; height: var(--wall-h); filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.18)); }
.wall-row:hover .wall-track, .wall-row:focus-within .wall-track,
.wall.is-paused .wall-track, .wall.is-offscreen .wall-track { animation-play-state: paused; }
.wall-r1 { --wall-dur: 70s; } .wall-r2 { --wall-dur: 84s; } .wall-r3 { --wall-dur: 78s; }
.wall-r4 { --wall-dur: 90s; } .wall-r5 { --wall-dur: 96s; } .wall-r6 { --wall-dur: 82s; } .wall-r7 { --wall-dur: 88s; }
@keyframes wall-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes wall-right { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.wall-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center; margin-top: 28px; }
.no-js .wall-toggle { display: none; }
@media (max-width: 700px) {
  .wall-section { --wall-h: 56px; --wall-gap: 10px; }
  .wall-r5, .wall-r6, .wall-r7 { display: none; }
}
@media (max-width: 400px) { .wall-section { --wall-h: 50px; --wall-gap: 8px; } }
/* No motion: the rows stand still and can be swiped or scrolled sideways instead. */
@media (prefers-reduced-motion: reduce) {
  .wall-track { animation: none; transform: none; }
  .wall-row { overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .wall-set img { scroll-snap-align: start; }
  .wall-set[aria-hidden="true"], .wall-toggle { display: none; }
  .wall::before, .wall::after { width: 16px; min-width: 0; }
}

/* ---------- gallery (home: compact; /features: everything) ---------- */
.g-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 28px; }
.g-tabs button[aria-selected="false"]:hover { color: var(--text); border-color: var(--text); }
.g-panel { scroll-margin-top: 90px; }
.g-panel:focus-visible { outline-offset: 8px; }
.g-title { font-size: 1.45rem; margin: 0 0 14px; }
.js .g-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js .g-panel[hidden] { display: none; }
.no-js .g-tabs { display: none; }
.no-js .g-panel + .g-panel { margin-top: 56px; }
.g-lede { color: var(--muted); max-width: 680px; margin: 0 auto 22px; text-align: center; }
.g-sub { font-size: 1.15rem; margin: 40px 0 14px; letter-spacing: -0.01em; }
.g-title + .g-sub { margin-top: 0; }
.g-item { margin: 0; min-width: 0; }
.g-item figcaption { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.g-item figcaption b { color: var(--text); }
.g-frame { border-radius: 16px; overflow: hidden; background: var(--desk); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.g-frame > .g-bar { width: 100%; height: auto; }
.g-pad { display: grid; place-items: center; min-height: 230px; padding: clamp(12px, 2vw, 22px); background: var(--surface-2); }
.g-pad img { width: auto; height: auto; max-width: 100%; max-height: 300px; border-radius: 12px; }
.g-grid { display: grid; gap: 18px; }
.g-grid-short { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.g-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-steps { display: grid; gap: 14px; margin: 0 0 22px; }
.g-steps .g-item { margin-inline: auto; }
.g-w42 { width: 42%; } .g-w52 { width: 52%; } .g-w60 { width: 60%; } .g-w63 { width: 63%; } .g-w81 { width: 81%; } .g-w100 { width: 100%; }
.g-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); align-items: center; margin-top: 30px; }
.g-text h4 { margin: 0 0 10px; font-size: 1.2rem; }
.g-text p { color: var(--muted); }
.g-settings { max-width: 760px; margin: 20px auto 0; }
.g-stack { display: grid; gap: 18px; margin: 30px 0 8px; }
.g-stack .g-frame { padding: clamp(10px, 1.6vw, 16px); }
.desk-1 { background: var(--wall-1); } .desk-2 { background: var(--wall-2); } .desk-3 { background: var(--wall-3); }
@media (max-width: 860px) { .g-split { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .g-grid-2 { grid-template-columns: 1fr; }
  .g-stack .g-w52 { width: 100%; }
}

/* Widgets and Sizes tabs (cards from the widget wall renders). */
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.g-card { display: flex; flex-direction: column; margin: 0; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.g-card-art { display: grid; place-items: center; min-height: 124px; padding: 22px 14px; background: var(--wall-band); }
.g-card-art img { width: auto; height: 64px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.18)); }
.g-card figcaption { padding: 12px 16px 16px; color: var(--muted); font-size: 0.92rem; }
.g-card figcaption b { display: block; color: var(--text); font-size: 1rem; margin-bottom: 2px; }
.g-sizes { display: grid; gap: 22px; }
.g-sizes-row h4 { margin: 0 0 10px; font-size: 1.02rem; }
.g-sizes-strip { display: flex; align-items: flex-end; gap: 16px; overflow-x: auto; padding: 16px; border-radius: 14px; background: var(--wall-band); scrollbar-width: thin; }
.g-sizes-strip figure { flex: none; margin: 0; text-align: center; }
.g-sizes-strip img { display: block; width: auto; height: 64px; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.18)); }
.g-sizes-strip figcaption { margin-top: 6px; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 700px) { .g-sizes-strip img { height: 50px; } }

/* Pictures still to come: dashed and striped so they are easy to spot. */
.g-placeholder {
  display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 190px; padding: 26px;
  border: 2px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--surface) 70%, transparent) 14px 28px);
}
.g-placeholder svg { flex: none; width: 34px; height: 34px; opacity: 0.7; }
.g-placeholder p { margin: 0; max-width: 46ch; }
.g-placeholder b { display: block; color: var(--text); font-size: 1.05rem; }

/* Multiple screens: displays drawn in CSS around real bars. */
.screens { margin: 0; }
.screens-desk { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: clamp(10px, 2vw, 26px); align-items: end; }
.display { min-width: 0; }
.display-screen {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: clamp(6px, 1vw, 12px);
  border: clamp(4px, 0.55vw, 8px) solid #0c0d11; box-shadow: var(--shadow);
}
.wall-1 { background: var(--wall-1); } .wall-2 { background: var(--wall-2); } .wall-3 { background: var(--wall-3); }
.display-menubar { position: absolute; inset: 0 0 auto; height: 3.4%; background: rgba(10, 10, 20, 0.32); }
.display-bar { position: absolute; left: 50%; bottom: 2.6%; transform: translateX(-50%); height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)); }
.display-main .display-bar { width: 84%; }
.display-side .display-bar { width: 66%; }
.display-neck { display: block; width: 11%; height: clamp(14px, 2.4vw, 32px); margin: 0 auto; background: linear-gradient(90deg, var(--stand), var(--stand-2), var(--stand)); }
.display-foot { display: block; width: 36%; height: clamp(4px, 0.6vw, 8px); margin: 0 auto; border-radius: 6px 6px 3px 3px; background: var(--stand); }
.display-label { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.display-label b { color: var(--text); }
.screens figcaption { margin: 22px auto 0; max-width: 70ch; text-align: center; color: var(--faint); font-size: 0.88rem; }
@media (max-width: 700px) {
  .screens-desk { grid-template-columns: 1fr 1fr; }
  .display-main { grid-column: 1 / -1; order: -1; }
}

/* Panels, Stocks, Clipboard */
.g-panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.g-panels-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .g-panels-3 { grid-template-columns: 1fr; } }
.g-panels figcaption { text-align: center; }
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }
.panel-item { margin: 0; }
.panel-item figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.panel-item figcaption b { color: var(--text); }
.panel-shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06); background: var(--desk); max-width: 420px; margin-inline: auto; }
.panel-shot img, .panel-shot picture { display: block; width: 100%; height: auto; }
.clock-wide { margin: 30px auto 0; text-align: center; }
.clock-wide-art { display: inline-flex; padding: 18px 24px; border-radius: var(--radius-s); background: var(--wall-band); }
.clock-wide-art img { height: 64px; width: auto; }
.clock-wide figcaption { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.card-strip { display: flex; margin-top: 22px; padding: 14px; border-radius: var(--radius-s); background: var(--wall-band); overflow-x: auto; }
.card-strip img { height: 64px; width: auto; max-width: none; }
.edge-shot { border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--shadow); background: var(--desk); }
.edge-shot img { display: block; width: 100%; height: auto; }
.feature .edge-shot { max-width: 420px; margin-inline: auto; }
.edge-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
@media (max-width: 860px) { .edge-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.edge-step { margin: 0; }
.edge-step figcaption { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.edge-step figcaption b { color: var(--text); }

/* Image widths (no inline styles: the pages run under a strict Content-Security-Policy). */
.w-256 { width: 256px; }
.w-300 { width: min(100%, 300px); }
.w-360 { width: min(100%, 360px); }
.w-560 { max-width: 560px; margin-inline: auto; }
.lede-left { margin-left: 0; text-align: left; }
.more-link { text-align: center; margin-top: 28px; color: var(--muted); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The recovery form's honeypot field: off screen for people, still there for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
