/* Literata, the serif Hatli ships for reading mail, for every word to read; Inter, the app's own, for what you
   press; JetBrains Mono for commands. Served from the site itself (tools/make_fonts.py cuts Literata). */
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/literata-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/literata-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/literata-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/literata-400-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/literata-400-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/literata-400-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/literata-400-italic-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/literata-400-italic-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/literata-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/literata-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/literata-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/literata-600-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/literata-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/literata-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/literata-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/literata-700-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-500.woff2) format('woff2'); }

/* Hatli's website: airmail at night. A navy page, and the envelope's red and blue chevrons on paper, the one bold
   thing on it. Words to read in Literata, things to press in Inter. */

:root {
  /* Night: the page is dark, easy on the eyes in the evening; only the envelope and the stamps stay paper */
  --paper: #0D1730;       /* the night behind everything */
  --sheet: #15213F;       /* raised: the demo, the palette, cards */
  --sheet-2: #1C2A50;     /* higher still: hover, the chosen row */
  --deep: #081026;        /* the privacy section, code */
  --ink: #EDF1FA;         /* text */
  --ink-2: #B7C2DA;       /* quieter text, 9:1 on the page */
  --ink-3: #8D9AB8;       /* captions, 5.7:1 on the page */
  --line: #24335A;        /* hairlines */
  --line-strong: #3B4D7A;
  --red: #C9312D;         /* the leaf: what to press */
  --red-hover: #D83C37;
  --mark: #FF7B6F;        /* the postmark's ink, bright enough on the night */
  --blue: #93ACFF;        /* links, icons */
  --stripe-red: #E0453F;  /* the envelope's chevrons */
  --stripe-blue: #3159CC;
  --stripe-paper: #F2F5FB;
  --stamp: #F3F5FA;       /* the stamps' paper */
  --stamp-ink: #13213F;
  --focus: #93ACFF;

  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);

  /* The envelope's edge: red, paper, blue, paper, at an angle */
  --chevrons: repeating-linear-gradient(-45deg,
      var(--stripe-red) 0 14px, var(--stripe-paper) 14px 22px, var(--stripe-blue) 22px 36px, var(--stripe-paper) 36px 44px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 var(--serif);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .86em; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); margin: 0; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--sheet-2); color: var(--ink); padding: 10px 16px; border-radius: 8px; font: 600 15px var(--sans); }
.skip:focus { top: 16px; }

kbd {
  display: inline-block; min-width: 1.7em; padding: .08em .45em; border-radius: 6px;
  font: 600 .74em/1.5 var(--sans); text-align: center; color: var(--ink);
  background: var(--sheet-2); border: 1px solid var(--line-strong); box-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  vertical-align: .1em;
}

/* ─── The envelope's edge, at the top of the page and of the footer ─── */
.airmail-edge { height: 8px; background: var(--chevrons); }

/* ─── Buttons: Inter, as the app's ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 8px; }
.btn-large { min-height: 54px; padding: 14px 26px; font-size: 17px; border-radius: 12px; }
.btn.soon { flex-direction: column; gap: 3px; background: transparent; color: var(--ink-3); border: 1.5px dashed var(--line-strong); cursor: default; }
.btn.soon::after { content: attr(data-soon); font-weight: 500; font-size: 12px; color: var(--ink-3); }
.btn.soon:hover { background: transparent; border-color: var(--line-strong); }
.os-icon:empty { display: none; }
.os-icon svg { width: 20px; height: 20px; fill: currentColor; display: block; }

/* ─── Navigation ─── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink);
  font: 700 23px/1 var(--serif); letter-spacing: -.01em; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font: 500 15px var(--sans); }
.nav-links a:hover { color: var(--ink); }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font: 500 15px var(--sans); color: var(--ink-2); padding: 6px 8px; border-radius: 8px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; min-width: 170px;
  box-shadow: 0 18px 40px -18px rgba(1, 4, 14, .35); }
.lang-list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 15px var(--sans); }
.lang-list a:hover { background: var(--sheet-2); }
.lang-list a[aria-current="page"] { font-weight: 700; }
.nav .btn { margin-left: 4px; }

/* ─── Hero ─── */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 64px); }
.hero h1 {
  font-size: clamp(44px, 7.6vw, 108px); line-height: .98; letter-spacing: -.035em; font-weight: 700;
  text-wrap: balance;
}
.lede { margin-top: 28px; max-width: 34em; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-shot { position: relative; padding-top: 36px; }
.envelope {
  position: relative; padding: 12px; border-radius: 22px; background: var(--chevrons);
  box-shadow: 0 50px 90px -50px rgba(1, 4, 14, .55), 0 18px 36px -24px rgba(1, 4, 14, .4);
}
.envelope::before { content: ''; position: absolute; inset: 9px; border-radius: 14px; background: var(--stripe-paper); }
.envelope img { position: relative; border-radius: 12px; width: 100%; }

/* The postmark: the version, struck over the envelope's corner */
/* Where a stamp goes: the envelope's top right corner, its cancellation waves running left over the envelope */
.postmark { position: absolute; z-index: 2; right: 10px; top: -6px; display: flex; align-items: center;
  color: var(--mark); transform: rotate(-11deg); transform-origin: 70% 50%; pointer-events: none; }
.pm-ring {
  display: grid; place-content: center; justify-items: center; text-align: center;
  width: clamp(116px, 13vw, 150px); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid currentColor; outline: 1.5px solid currentColor; outline-offset: 4px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  font-family: var(--sans); line-height: 1.15; container-type: inline-size;
}
.pm-big { font: 800 min(34px, 16cqi)/1 var(--sans); letter-spacing: -.03em; }
.pm-big:lang(en) { font-size: min(34px, 22cqi); }
.pm-icons { display: flex; gap: 7px; }
.pm-icons svg { width: clamp(20px, 2vw, 26px); height: auto; fill: currentColor; }
.pm-icons .pm-linux { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pm-small { max-width: 84%; font-size: 12px; font-weight: 600; line-height: 1.12; margin-top: 4px; text-wrap: balance; }
.pm-small + .pm-small { margin-top: 1px; }
.pm-waves { width: clamp(120px, 16vw, 210px); height: auto; margin-right: -6px; fill: none; stroke: currentColor; stroke-width: 3; opacity: .9; }

.works-with { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-top: clamp(40px, 6vw, 64px);
  padding-top: 22px; border-top: 1px solid var(--line); }
.works-with p { font: 500 15px var(--sans); color: var(--ink-3); }
.works-with ul { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; padding: 0; list-style: none; }
.works-with li { font: 600 17px var(--sans); color: var(--ink-2); }

/* The window reaches out past the column only where the page has room for it and its postmark */
@media (min-width: 1360px) {
  .hero-shot { margin-right: -80px; }
  .postmark { right: -12px; }
}

/* The one moment on load: the envelope rises and the postmark comes down on it */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .js .envelope { animation: rise .9s .12s cubic-bezier(.2, .7, .2, 1) both; }
  .js .postmark { animation: stamp .45s .85s cubic-bezier(.3, 1.4, .5, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-4deg) scale(1.6); } to { opacity: 1; transform: rotate(-11deg) scale(1); } }

/* ─── Sections ─── */
.section { padding: var(--section) 0 0; }
.section-head { max-width: 760px; }
.section h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.section-lede { margin-top: 20px; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 36em; }
.section-lede kbd { font-size: .7em; }

.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .split-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .split-flip > :first-child { order: 2; }
}

/* A point: its icon, a short title and a line. Not cards: the screenshots are the pictures */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; }
.points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.pi { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: var(--sheet-2);
  fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sprite .f { fill: currentColor; stroke: none; }
.pi { color: var(--blue); }
.points h3 { font: 700 19px/1.3 var(--serif); }
.points p { margin-top: 2px; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.points p kbd { font-size: .72em; }
.points-row { margin-top: 48px; }
@media (min-width: 760px) {
  .points-row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}
@media (min-width: 1100px) {
  .points-row { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
  .points-row li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ─── The demo inbox ─── */
.tray-wrap { min-width: 0; }
.tray {
  position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 60px -40px rgba(1, 4, 14, .5); overflow: hidden; font-family: var(--sans);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.tray:focus-visible, .tray.active { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 30%, transparent), 0 30px 60px -40px rgba(1, 4, 14, .5); }
.tray-spaces { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); background: #111C38; overflow-x: auto; }
.tray-spaces button {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 36px; padding: 4px 12px 4px 6px;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink-2);
  font: 600 14px var(--sans); cursor: pointer;
}
.tray-spaces button kbd { font-size: 11px; min-width: 22px; box-shadow: none; color: var(--ink-3); }
.tray-spaces button:hover { background: var(--sheet-2); color: var(--ink); }
.tray-spaces button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tray-spaces button[aria-pressed="true"] kbd { background: transparent; color: #4A5A80; border-color: #9AA8C2; }
.tray-spaces .count { font-size: 12px; font-weight: 600; color: inherit; opacity: .7; }
.tray-list { list-style: none; margin: 0; padding: 0; height: 420px; overflow: hidden; }
.tray-list li {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 12px; row-gap: 1px;
  padding: 11px 18px 11px 24px; border-bottom: 1px solid var(--line); cursor: default;
  transition: opacity .2s, transform .25s, background-color .15s;
}
.tray-list li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.tray-list li.unread::after { content: ''; position: absolute; left: 11px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.tray-list .who { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-list .unread .who, .tray-list .unread .subj { font-weight: 700; }
.tray-list .acct { font-size: 12px; font-weight: 600; color: var(--c); align-self: center; }
.tray-list time { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; align-self: center; }
.tray-list .subj { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-list li.current { background: var(--sheet-2); }
.tray-list li.leaving { opacity: 0; transform: translateX(40px); }
.tray-list li.entering { animation: enter .3s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(-6px); } }
.tray-empty { position: absolute; left: 0; right: 0; top: 50%; padding: 0 32px; text-align: center; color: var(--ink-3); font: 500 15px var(--sans); }
.tray-toast {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font: 600 14px var(--sans);
  box-shadow: 0 14px 30px -12px rgba(1, 4, 14, .6); white-space: nowrap;
}
.tray-toast button { border: 0; border-radius: 7px; padding: 6px 12px; background: var(--red); color: #fff; font: 600 14px var(--sans); cursor: pointer; }
.tray-toast button:hover { background: var(--red-hover); }
.tray-hint { margin-top: 16px; font: 400 15px/1.7 var(--sans); color: var(--ink-3); }
.tray-hint kbd { font-size: 12px; }

/* ─── The command palette ─── */
.palette {
  background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; font-family: var(--sans);
  box-shadow: 0 40px 70px -40px rgba(1, 4, 14, .55); overflow: hidden;
}
.pal-input { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); font-size: 19px; color: var(--ink); }
.pal-input svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 1.8; flex: none; }
.caret { width: 2px; height: 22px; background: var(--blue); margin-left: -8px; }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.palette ul { list-style: none; margin: 0; padding: 8px; }
.palette li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 15px; color: var(--ink); }
.palette li b { font-weight: 500; }
.palette li.on { background: var(--sheet-2); }
.palette li.on b { font-weight: 700; }
.palette li small { color: var(--ink-3); font-size: 13px; }
.palette li kbd { margin-left: auto; font-size: 11px; box-shadow: none; color: var(--ink-3); }

.keys { margin: 32px 0 0; display: grid; }
.keys > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.keys dt { white-space: nowrap; }
.keys dt kbd { font-size: 13px; }
.keys dd { margin: 0; color: var(--ink-2); font-size: 17px; }

/* ─── Reading ─── */
.reading { position: relative; margin-top: 48px; padding-bottom: 72px; }
.reading-main { margin: 0; width: min(100%, 900px); }
.reading-main img, .privacy-shot img, .a11y-shot img, .theme-stage img {
  border-radius: 14px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .07);
}
.reading-compose { position: absolute; right: 0; bottom: 0; margin: 0; width: min(46%, 440px); }
.reading-compose img { border-radius: 12px; box-shadow: 0 34px 60px -24px rgba(1, 4, 14, .65), 0 0 0 1px rgba(1, 4, 14, .1); }
@media (max-width: 700px) {
  .reading { padding-bottom: 0; }
  .reading-compose { position: static; width: 82%; margin: -40px 0 0 auto; }
}

/* ─── Privacy: deeper night, under the envelope's edge ─── */
.deep { background: var(--deep); margin-top: var(--section); padding-bottom: var(--section); position: relative; }
.deep::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--chevrons); }
.deep .pi { background: #14204A; }
.privacy { display: grid; gap: clamp(32px, 5vw, 64px); margin-top: 48px; align-items: start; }
.privacy-shot { margin: 0; }
.privacy .points { margin-top: 0; }
.privacy .points li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .privacy { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* ─── Themes: a sheet of stamps ─── */
.stamps { display: flex; flex-wrap: wrap; gap: 18px 16px; margin-top: 40px; }
.stamp {
  --size: 12px;
  position: relative; width: 120px; height: 144px; padding: 0; border: 0; cursor: pointer; color: var(--t);
  /* The perforation: paper-colored bites on a 12 px grid along the edge; the middle is covered by the stamp's art */
  background:
    linear-gradient(var(--stamp), var(--stamp)) 4px 4px / calc(100% - 8px) calc(100% - 8px) no-repeat,
    radial-gradient(circle at 6px 6px, var(--paper) 3.4px, transparent 3.9px) -6px -6px / var(--size) var(--size),
    var(--stamp);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45));
  transition: transform .2s;
}
.stamp:hover { transform: translateY(-3px) rotate(-1.5deg); }
.stamp-art { position: absolute; inset: 8px 8px 34px; border-radius: 3px; background: var(--p); overflow: hidden; }
.stamp-art i { position: absolute; display: block; border-radius: 3px; }
.stamp-art i:nth-child(1) { left: 10px; top: 12px; width: 16px; height: 66px; background: color-mix(in srgb, var(--t) 18%, transparent); }
.stamp-art i:nth-child(2) { left: 32px; top: 12px; right: 10px; bottom: 12px; background: var(--s); box-shadow: 0 0 0 1px color-mix(in srgb, var(--t) 12%, transparent); }
.stamp-art i:nth-child(3) { left: 40px; top: 22px; width: 34px; height: 9px; border-radius: 5px; background: var(--a); }
.stamp-name { position: absolute; left: 8px; right: 8px; bottom: 8px; font: 600 13px/1.2 var(--sans); color: var(--stamp-ink); text-align: center; }
/* The chosen stamp is postmarked */
.stamp::after {
  content: ''; position: absolute; right: -16px; top: -14px; width: 66px; height: 66px; border-radius: 50%;
  border: 2.5px solid var(--mark); opacity: 0; transform: scale(1.5) rotate(-10deg);
  background: repeating-linear-gradient(170deg, transparent 0 9px, color-mix(in srgb, var(--mark) 85%, transparent) 9px 11px) center / 120% 60% no-repeat;
  transition: opacity .2s, transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
.stamp[aria-checked="true"]::after { opacity: .9; transform: scale(1) rotate(-10deg); }
.stamp[aria-checked="true"] .stamp-name { font-weight: 800; }
.stamp:focus-visible { outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .stamp, .stamp::after { transition: none; } .stamp:hover { transform: none; } }

.theme-stage { margin: 36px 0 0; }
.theme-img { width: 100%; transition: opacity .2s; }
.theme-img.fading { opacity: .4; }

.own { display: grid; gap: 32px; margin-top: 64px; align-items: start; }
.own h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.015em; line-height: 1.2; }
.own-copy p { margin-top: 12px; color: var(--ink-2); max-width: 32em; }
.accents { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 24px 0 0; padding: 0; list-style: none; }
.accents li { display: inline-flex; align-items: center; gap: 7px; font: 500 14px var(--sans); color: var(--ink-2); }
.accents li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.theme-text { margin: 0; padding: 22px 24px; border-radius: 14px; background: var(--deep); border: 1px solid var(--line); color: var(--ink-2); overflow-x: auto;
  font: 400 14px/1.75 var(--mono); }
.theme-text b { color: var(--blue); font-weight: 400; }
.theme-text s { color: #9BE3B4; text-decoration: none; }
.theme-text i { color: #FFC163; font-style: normal; }
@media (min-width: 900px) { .own { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* ─── Accessibility ─── */
.a11y { display: grid; gap: clamp(32px, 5vw, 56px); margin-top: 48px; align-items: start; }
.a11y-shot { margin: 0; }
.points-grid { margin-top: 0; }
@media (min-width: 700px) { .points-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; } }
@media (min-width: 1060px) { .a11y { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }

/* ─── AI agents ─── */
.agents-side { display: grid; gap: 20px; justify-items: end; }
.agents-side .terminal { width: 100%; }
.agents-side .term-body { padding-bottom: 76px; }
.agents-shot { border-radius: 12px; width: min(88%, 560px); margin-top: -48px; margin-right: -12px; box-shadow: 0 24px 50px -30px rgba(1, 4, 14, .6); }
.terminal { background: var(--deep); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(1, 4, 14, .7); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #0F1A36; font: 500 13px var(--sans); color: #8E9BBB; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3A4767; }
.term-bar span { margin-left: 10px; }
.term-body { padding: 22px 22px 26px; font: 400 14.5px/1.7 var(--mono); color: #C9D3EA; }
.term-body p + p { margin-top: 10px; }
.term-chat { color: #fff; }
.term-chat .you { color: #8EA8FF; font-weight: 500; margin-right: 6px; }
.term-tool span { color: #FF8A80; margin-right: 6px; }
.term-tool b { color: #fff; font-weight: 500; }
.term-result { color: #8E9BBB; padding-left: 22px; }
.term-out { color: #9BE3B4; }
.term-out u { text-decoration-color: currentColor; text-underline-offset: 3px; }

/* ─── Download: the envelope again ─── */
.download-sheet {
  position: relative; padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); border-radius: 24px; background: var(--sheet);
  border: 12px solid transparent; background-clip: padding-box;
  box-shadow: 0 40px 80px -60px rgba(1, 4, 14, .6);
}
.download-sheet::before { content: ''; position: absolute; inset: -12px; z-index: -1; border-radius: 24px; background: var(--chevrons); }
.platforms { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 980px) { .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.platform { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.platform.current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.p-head { display: flex; align-items: flex-start; gap: 14px; }
.p-head h3 { font: 700 22px/1.2 var(--serif); }
.p-head p { font: 400 14px/1.45 var(--sans); color: var(--ink-3); margin-top: 4px; }
.p-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sheet-2); }
.p-icon svg { width: 22px; height: 22px; fill: var(--ink); }
.platform[data-platform="linux"] .p-icon svg { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.p-badge { display: none; margin-left: auto; flex: none; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 12px/1.5 var(--sans); }
.platform.current .p-badge { display: inline-block; }
.p-actions { display: grid; gap: 10px; }
.p-actions .btn { width: 100%; min-width: 0; min-height: 46px; font-size: 15px; }
.p-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-pair:has(> .btn[hidden]) { grid-template-columns: 1fr; }
.p-arch { font-size: 12px; font-weight: 500; opacity: .75; margin-left: 2px; }
.p-help { font: 400 14.5px/1.6 var(--sans); color: var(--ink-2); }
.p-help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.p-help p { margin-top: 8px; }
.p-note { font: 400 13.5px/1.55 var(--sans); color: var(--ink-3); }
.p-version { margin-top: auto; font: 500 13px var(--sans); color: var(--ink-3); }
.cmd { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 10px; background: var(--deep); border: 1px solid var(--line); }
.cmd[hidden] { display: none; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: #DCE4F5; font-size: 13px; }
.copy { flex: none; border: 0; border-radius: 7px; padding: 6px 12px; background: #2E3F66; color: #fff; font: 600 13px var(--sans); cursor: pointer; }
.copy:hover { background: #3A4E7C; }
.copy.done { background: #1F7A4A; }

/* ─── FAQ ─── */
.faq { display: grid; gap: 32px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0;
  font: 600 clamp(19px, 1.7vw, 22px)/1.35 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; font: 400 26px/1 var(--sans); color: var(--mark); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 38em; }
@media (min-width: 900px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; } }

/* ─── The end ─── */
.final { padding-bottom: var(--section); }
.final-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 56px; border-top: 1px solid var(--line); }
.final h2 { max-width: 14ch; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.035em; }
.final-inner img { width: 72px; height: 72px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 32px; margin: 8px 0 0; padding: 0; list-style: none; font: 500 15px var(--sans); color: var(--ink-3); }

.footer { background: var(--sheet); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 28px 0 40px; font: 400 14px var(--sans); color: var(--ink-3); }
.footer .brand { font-size: 19px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.footer-inner > p { flex-basis: 100%; }

/* ─── Screenshots open full size ─── */
[data-zoom] { cursor: zoom-in; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(10, 17, 34, .9); }
.lightbox figure { display: grid; place-items: center; gap: 12px; height: 100%; margin: 0; padding: 56px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; border-radius: 12px; }
.lightbox figcaption { color: #DCE4F5; font: 400 15px var(--sans); text-align: center; max-width: 60em; }
.lightbox button { position: fixed; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* ─── Phones ─── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .lang-name { display: none; }
  .nav-inner { gap: 12px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .cta .btn { width: 100%; }
  .postmark { top: 4px; right: -6px; }
  .pm-waves { display: none; }
  .pm-ring { width: 88px; border-width: 2px; outline-offset: 3px; }
  .pm-small { font-size: 9.5px; margin-top: 2px; }
  .pm-small + .pm-small { display: none; }
  .envelope { padding: 8px; border-radius: 14px; }
  .envelope::before { inset: 6px; border-radius: 9px; }
  .envelope img { border-radius: 7px; }
  .tray-list { height: 380px; }
  .term-body { padding: 18px 16px 72px; font-size: 12.5px; }
  .tray-spaces { gap: 2px; padding: 10px 8px; }
  .tray-spaces button { padding: 4px 10px; gap: 6px; }
  .tray-spaces button kbd { display: none; }
  .tray-list .acct { display: none; }
  .keys > div { grid-template-columns: 7.5em minmax(0, 1fr); }
  .stamps { gap: 14px 12px; }
  .stamp { width: 96px; height: 120px; }
  .stamp-name { font-size: 11.5px; letter-spacing: -.01em; }
  .stamp-art i:nth-child(1) { height: 50px; }
  .stamp::after { width: 52px; height: 52px; right: -12px; }
  .download-sheet { border-width: 8px; border-radius: 18px; }
  .download-sheet::before { inset: -8px; border-radius: 18px; }
}

/* ─── Legal notice and the page not found ─── */
.legal, .notfound { padding: 48px 0 96px; max-width: 760px; }
.legal h1, .notfound h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.025em; margin-top: 48px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal address { margin-top: 10px; font-style: normal; color: var(--ink-2); }
.legal-translation { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-back { margin-top: 48px; }
.notfound .pm-ring { color: var(--mark); transform: rotate(-11deg); margin-top: 48px; }
.notfound .pm-ring { width: 120px; }
.notfound .pm-big { font-size: 30px; }
.notfound h1 { margin-top: 32px; }
.notfound p { margin: 14px 0 28px; color: var(--ink-2); }
