/* blank, website. Same system as the extension: black and white, Hanken Grotesk throughout,
   with the wordmark and headlines in the same face, heavy and tight. Grey only for
   hierarchy; the one place shade means something is the routing tier dot.
   Layout: one centred column (max 1180px), the hero docks the real side panel next to the
   page, and the fill-in line from the logo is the recurring motif. */

@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF; --paper-2: #F5F5F5; --paper-3: #EDEDED;
  --ink: #0A0A0A; --ink-soft: #555555; --ink-faint: #8E8E8E;
  --line: #EAEAEA; --line-strong: #CFCFCF;
  --tier-light: #C8C8C8; --tier-mid: #7A7A7A; --tier-deep: #0A0A0A;
  --on-ink: #FFFFFF;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.28), 0 8px 24px -12px rgba(0,0,0,.12);
  /* The browser frame shows its own theme, independent of the site's. */
  --fl-bg: #F1F1F1; --fl-tab: #FFFFFF; --fl-url: #FFFFFF; --fl-line: #E2E2E2; --fl-text: #3A3A3A; --fl-faint: #9A9A9A;
  --fd-bg: #1B1B1B; --fd-tab: #0A0A0A; --fd-url: #262626; --fd-line: #2C2C2C; --fd-text: #E6E6E6; --fd-faint: #777777;

  --font-display: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --max: 1180px;
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A0A0A; --paper-2: #141414; --paper-3: #1C1C1C;
    --ink: #F5F5F5; --ink-soft: #A3A3A3; --ink-faint: #6E6E6E;
    --line: #222222; --line-strong: #383838;
    --tier-light: #4A4A4A; --tier-mid: #8C8C8C; --tier-deep: #F5F5F5;
    --on-ink: #0A0A0A;
    --shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px #222222;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A0A0A; --paper-2: #141414; --paper-3: #1C1C1C;
  --ink: #F5F5F5; --ink-soft: #A3A3A3; --ink-faint: #6E6E6E;
  --line: #222222; --line-strong: #383838;
  --tier-light: #4A4A4A; --tier-mid: #8C8C8C; --tier-deep: #F5F5F5;
  --on-ink: #0A0A0A;
  --shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px #222222;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }

.wrap {
  width: 100%; max-width: calc(var(--max) + 64px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
/* Headlines and the wordmark are set in the sans, tight and heavy, like the product UI. */
.display { font-family: var(--font-sans); font-weight: 650; letter-spacing: -0.042em; line-height: 1.0; }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }

/* ---------- logo */
.mark { width: 26px; height: 26px; flex: none; }
.mark rect:first-child { fill: var(--ink); }
.mark rect:last-child { fill: var(--paper); }
.wordmark { font-family: var(--font-display); font-size: 25px; font-weight: 650; letter-spacing: -0.045em; line-height: 1; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 14px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--on-ink); font: 600 16px/1 var(--font-sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.btn svg { width: 18px; height: 18px; }
.btn.small { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
/* Not on the store yet: a dashed placeholder, the blank before it is filled in. */
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-soft); border: 1.5px dashed var(--line-strong); cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- keycaps */
.kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; padding: 0 8px;
  border-radius: 7px; border: 1px solid var(--line-strong); border-bottom-width: 2.5px;
  background: var(--paper); color: var(--ink); font: 600 12.5px/1 var(--font-sans); vertical-align: middle;
}

/* ---------- nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.nav .wrap { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.nav .links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav .links a { text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav .links a:hover { color: var(--ink); }
/* The fill-in line, as reading progress. */
.nav .progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.nav .progress i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (max-width: 760px) { .nav .links { display: none; } .nav .wrap { justify-content: space-between; } }

/* ---------- reveal on scroll (only once JS is running; content is visible without it) */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- browser frame */
.frame {
  --bg: var(--fl-bg); --tab: var(--fl-tab); --url: var(--fl-url); --fline: var(--fl-line); --ftext: var(--fl-text); --ffaint: var(--fl-faint);
  border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: background .7s var(--ease-soft);
  isolation: isolate;
}
.frame.f-dark { --bg: var(--fd-bg); --tab: var(--fd-tab); --url: var(--fd-url); --fline: var(--fd-line); --ftext: var(--fd-text); --ffaint: var(--fd-faint); }
.chrome { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--fline); transition: border-color .7s; }
.chrome .dots { display: flex; gap: 7px; }
.chrome .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--fline); transition: background .7s; }
.chrome .url {
  height: 28px; border-radius: 8px; background: var(--url); color: var(--ftext); font-size: 12.5px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px; min-width: 0; overflow: hidden; white-space: nowrap;
  transition: background .7s, color .7s;
}
.chrome .url svg { width: 12px; height: 12px; flex: none; color: var(--ffaint); }
.chrome .url span { overflow: hidden; text-overflow: ellipsis; }
.chrome .url .host { color: var(--ftext); }
.chrome .url .path { color: var(--ffaint); }
.chrome .ext { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; transition: background .3s; }
.chrome .ext svg { width: 16px; height: 16px; }
.chrome .ext.lit { background: var(--fline); }
/* Page and panel images are drawn at their natural aspect from the view's height, so the
   panel is always pixel-true (it is a real screenshot) and only the page gets cropped. */
.view { position: relative; aspect-ratio: var(--ratio, 1440 / 780); background: var(--tab); overflow: hidden; transition: background .7s; }
.scene { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w, 27.78%); }
.scene .page { position: relative; overflow: hidden; min-width: 0; }
.scene .page img { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none; }
.scene .panel { position: relative; overflow: hidden; border-left: 1px solid var(--fline); background: var(--tab); min-width: 0; }
.scene .panel img, .scene .panel video { position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: none; }

/* ---------- footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px 56px; font-size: 14.5px; color: var(--ink-soft); }
.foot .wrap { display: grid; gap: 28px; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot .row a { text-decoration: none; }
.foot .row a:hover { color: var(--ink); }
.foot .brand { margin-right: auto; color: var(--ink); }
.foot .fine { font-size: 13px; color: var(--ink-faint); max-width: 72ch; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .rv { opacity: 1; transform: none; }
}
