/* Klerry pilot page.
   Layout idea: left-set editorial type over a product that rises out of
   a violet haze; everything else stays quiet.
   Light = Ivory, dark = Midnight (the same two themes as the app). */

/* Fonts are served from this site, so visitors' browsers make no requests to
   other companies. Geist and Inter: SIL Open Font License (see fonts/). */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/Geist-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/Geist-Bold.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/GeistMono-Regular.woff2") format("woff2"); }
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; 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;
}

:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --section-band: #edecf6;
  --section-band-surface: #ffffff;
  --flow-band: #ffffff;
  --flow-line: #e0e0db;
  --module-surface: #f7f7f4;
  --ink: #15171b;
  --ink-2: #474c55;
  --muted: #696e77;
  --line: #e0e0db;
  --glow: #5866e0;
  --glow-core: #c9cfff;
  --accent-text: #3e47b0;
  --shot-shadow: 0 1px 2px rgba(21, 23, 27, 0.06), 0 40px 80px -40px rgba(21, 23, 27, 0.35);

  --font-display: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-app: "Inter", "Segoe UI", system-ui, sans-serif;

  /* The product shot follows the page theme (Ivory here). */
  --a-bg: #f7f7f6; --a-side: #f7f7f6; --a-top: #ffffff; --a-card: #ffffff;
  --a-border: #e6e6e3; --a-line: #eeeeec; --a-text: #111113; --a-text2: #3f3f46;
  --a-muted: #6b6b74; --a-chip: #f2f2f0; --a-seg-on: #ffffff; --a-seg-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  --a-active-bg: #111113; --a-active-ink: #ffffff;
  --a-agenda-bg: #22304a; --a-today-bg: #ebebfa; --a-today-ink: #3e47b0; --a-selected: #2c3a52;
  --a-teal: #0f6f66; --a-teal-band: #edf6f3; --a-green: #1d7a45; --a-green-band: #eef6f0;
  --a-rose: #b4233f; --a-rose-band: #fcf0f2; --a-amber: #b06a0a; --a-indigo: #3e47b0;
  --a-blue: #2b5aa8; --a-blue-band: #eff3fb; --a-violet: #5f45b0; --a-violet-band: #f3f0fb;
  --a-bad: #b42318; --a-warn: #9a5b0a; --a-dot: #e5484d;
  --a-shadow: 0 1px 2px rgba(20, 27, 38, 0.04), 0 10px 28px -16px rgba(20, 27, 38, 0.12);

  color-scheme: light;
}

/* Dark is the default; the header switch can choose light (kept as klerry-theme). */
:root:not([data-theme="light"]) {
  --bg: #0e1319;
  --surface: #151c25;
  --section-band: #121827;
  --section-band-surface: #1a2131;
  --flow-band: transparent;
  --flow-line: transparent;
  --module-surface: #151c25;
  --ink: #eef0f2;
  --ink-2: #b8bfc8;
  --muted: #8d96a2;
  --line: rgba(255, 255, 255, 0.09);
  --glow: #8c9cff;
  --glow-core: #e4e8ff;
  --accent-text: #aab3ff;
  --shot-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 50px 100px -40px rgba(0, 0, 0, 0.8);

  --a-bg: #12171e; --a-side: #12171e; --a-top: #12171e; --a-card: #1a212b;
  --a-border: rgba(255, 255, 255, 0.08); --a-line: rgba(255, 255, 255, 0.065);
  --a-text: #eceff3; --a-text2: #b9c1cc; --a-muted: #8f99a6; --a-chip: rgba(255, 255, 255, 0.055);
  --a-seg-on: #2c3644; --a-seg-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --a-active-bg: rgba(255, 255, 255, 0.08); --a-active-ink: #ffffff;
  --a-agenda-bg: #2a3550; --a-today-bg: #1f2846; --a-today-ink: #b3baff; --a-selected: rgba(255, 255, 255, 0.42);
  --a-teal: #7fdccd; --a-teal-band: rgba(94, 214, 196, 0.10); --a-green: #8fd8ae; --a-green-band: rgba(122, 214, 160, 0.10);
  --a-rose: #ff9db0; --a-rose-band: rgba(255, 128, 150, 0.10); --a-amber: #ffc98a; --a-indigo: #aab3ff;
  --a-blue: #9dbcff; --a-blue-band: rgba(130, 170, 255, 0.10); --a-violet: #c4b0ff; --a-violet-band: rgba(180, 150, 255, 0.10);
  --a-bad: #f09a8a; --a-warn: #e9b47a; --a-dot: #f2836f;
  --a-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* Fixed-theme product shots for the "two themes" section. */
.app.app--light {
  --a-bg: #f7f7f6; --a-side: #f7f7f6; --a-top: #ffffff; --a-card: #ffffff;
  --a-border: #e6e6e3; --a-line: #eeeeec; --a-text: #111113; --a-text2: #3f3f46;
  --a-muted: #6b6b74; --a-chip: #f2f2f0; --a-seg-on: #ffffff; --a-seg-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  --a-active-bg: #111113; --a-active-ink: #ffffff;
  --a-agenda-bg: #22304a; --a-today-bg: #ebebfa; --a-today-ink: #3e47b0; --a-selected: #2c3a52;
  --a-teal: #0f6f66; --a-teal-band: #edf6f3; --a-green: #1d7a45; --a-green-band: #eef6f0;
  --a-rose: #b4233f; --a-rose-band: #fcf0f2; --a-amber: #b06a0a; --a-indigo: #3e47b0;
  --a-blue: #2b5aa8; --a-blue-band: #eff3fb; --a-violet: #5f45b0; --a-violet-band: #f3f0fb;
  --a-bad: #b42318; --a-warn: #9a5b0a; --a-dot: #e5484d;
  --a-shadow: 0 1px 2px rgba(20, 27, 38, 0.04), 0 10px 28px -16px rgba(20, 27, 38, 0.12);
}
.app.app--dark {
  --a-bg: #12171e; --a-side: #12171e; --a-top: #12171e; --a-card: #1a212b;
  --a-border: rgba(255, 255, 255, 0.08); --a-line: rgba(255, 255, 255, 0.065);
  --a-text: #eceff3; --a-text2: #b9c1cc; --a-muted: #8f99a6; --a-chip: rgba(255, 255, 255, 0.055);
  --a-seg-on: #2c3644; --a-seg-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --a-active-bg: rgba(255, 255, 255, 0.08); --a-active-ink: #ffffff;
  --a-agenda-bg: #2a3550; --a-today-bg: #1f2846; --a-today-ink: #b3baff; --a-selected: rgba(255, 255, 255, 0.42);
  --a-teal: #7fdccd; --a-teal-band: rgba(94, 214, 196, 0.10); --a-green: #8fd8ae; --a-green-band: rgba(122, 214, 160, 0.10);
  --a-rose: #ff9db0; --a-rose-band: rgba(255, 128, 150, 0.10); --a-amber: #ffc98a; --a-indigo: #aab3ff;
  --a-blue: #9dbcff; --a-blue-band: rgba(130, 170, 255, 0.10); --a-violet: #c4b0ff; --a-violet-band: rgba(180, 150, 255, 0.10);
  --a-bad: #f09a8a; --a-warn: #e9b47a; --a-dot: #f2836f;
  --a-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.7);
}

/* ── Base ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 240ms ease, color 240ms ease;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Header ───────────────────────────────────────────────────────── */

.site-head {
  position: relative;
  z-index: 3;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}

/* Logo (2026-11-30): "klerry" with its small OS in a soft sunset blend,
   amber to coral, running on into the OS; deeper tones on the light theme.
   `color` is the plain fallback (focus ring, Windows high contrast). */
.wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  color: #fba66a;
  background-image: linear-gradient(100deg, #fcd58a 0%, #fba66a 50%, #f78a7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:root[data-theme="light"] .wordmark {
  color: #e57b4c;
  background-image: linear-gradient(100deg, #e3a043 0%, #e57b4c 50%, #dc6466 100%);
}
.wordmark b {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
}
.wordmark span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-2);
}
.link-quiet:hover { color: var(--ink); }

/* Language switch: a quiet pill next to the theme button, the current
   language lit. On phones only the other language shows. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  border-radius: 999px;
}
.lang-switch a,
.lang-switch span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch [aria-current] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 9%, transparent);
}
@media (max-width: 720px) {
  .lang-switch [aria-current] { display: none; }
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.btn:hover {
  border-color: color-mix(in srgb, var(--ink) 40%, transparent);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.btn svg { width: 12px; height: 12px; }
.btn--small { min-height: 34px; padding: 0 14px; font-size: 13px; }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  /* More air above since the pilot tag went (2026-11-29). */
  padding-top: clamp(56px, 10vw, 136px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
  /* Geist puts side space before each letter (E 0.086em, C 0.044em, M 0.092em).
     Pull every line back by its first letter's share, so E, C and M stand on
     one vertical, flush with the product shot. */
  text-indent: -0.086em;
  font-weight: 500;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
/* Size carries the meaning (2026-11-30): the details sit in a small lead
   line, the big picture in the two big lines below it. */
.hero h1 .lead {
  display: block;
  margin-bottom: 0.35em;
  text-indent: 0;
  font-size: max(0.38em, 16px);
  letter-spacing: -0.02em;
  color: var(--muted);
}
.hero h1 .line { display: block; }

.hero-lede {
  margin: clamp(30px, 3vw, 46px) 0 0;
  max-width: 36ch;
  font-size: clamp(16px, 1.3vw, 19px);
  /* Pull the M stem onto the same vertical as the E and C above. */
  text-indent: -0.092em;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 36px;
}

/* The horizon: a soft band of violet light rising from the product's top edge.
   No separate line, so nothing crosses the product's rounded corners. */
:root {
  --v1: #6b5cf0; --v2: #9a7cf6;
  --glow-k: 0.8;
}
:root:not([data-theme="light"]) {
  --v1: #7b6bff; --v2: #ab8eff;
  --glow-k: 1;
}

.horizon {
  position: relative;
  isolation: isolate;
  /* Room between the line above and the product (user's ask, 2026-11-30). */
  margin-top: clamp(56px, 6vw, 96px);
}
.horizon::before,
.horizon::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: -1;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: var(--glow-k);
  animation: appear 1800ms ease both;
}
/* The band just above the product, fading out towards both sides. */
.horizon::before {
  top: -160px;
  width: 150%;
  height: 160px;
  background: linear-gradient(to top, transparent 0, color-mix(in srgb, var(--v1) 20%, transparent) 14px, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}
/* A wide, faint haze behind it. */
.horizon::after {
  top: clamp(-260px, -18vw, -120px);
  width: 140%;
  height: clamp(300px, 36vw, 520px);
  background: radial-gradient(ellipse 50% 46% at 50% 56%, color-mix(in srgb, var(--v2) 12%, transparent), transparent 74%);
}

.horizon .shot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--glow) 30%, var(--glow-core) 50%, var(--glow) 70%, transparent);
}
@keyframes appear { from { opacity: 0; } }

/* The lower part of the product fades into the page — no blur (the user
   found it smudgy): Today, Needs attention and Financial Overview's figures
   read in full; from Recent Payments (67% of the shot) the image fades, the
   Team Workload title (73–78%) is faint and its rows dissolve into the
   page. */
.horizon .shot {
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.25) 79%, transparent 90%);
          mask-image: linear-gradient(to bottom, #000 65%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.25) 79%, transparent 90%);
  animation: rise 1400ms 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise { from { transform: translateY(28px); } to { transform: translateY(0); } }
/* The Team Workload rows sit in the faded part: dimmed too, so names
   never read. */
.horizon .app-card.c-violet .app-people { opacity: 0.32; }

/* ── Product shot (a synthetic-data render of today's app) ────────── */

.shot {
  position: relative;
  width: 100%;
  aspect-ratio: 1440 / 1000;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shot-shadow);
  background: var(--a-bg);
}
.shot .app {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 1000px;
  transform: scale(var(--s, 1));
  transform-origin: top left;
}

/* ── Sections ─────────────────────────────────────────────────────── */

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.section + .section { border-top: 1px solid var(--line); }
.section--band,
.section--band + .section { border-top: 0; }
/* Light theme: the first section after the hero sits on its own white band,
   so the faded product does not drift into empty space. Dark keeps its open look. */
.hero + .section {
  background: var(--flow-band);
  border-top: 1px solid var(--flow-line);
}

/* A tinted band with its own violet light, to break the page's rhythm */
.section--band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--section-band);
}
.section--band::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -12%;
  width: min(1000px, 90vw);
  height: 640px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--v1) 18%, transparent), transparent);
}
.section--band .eco-tile { background: var(--section-band-surface); }
.section--band .eco-tile.soon { background: transparent; }

/* The closing gets the hero's light again, rising from below */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.closing::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -300px;
  width: min(1300px, 130%);
  height: 560px;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--v1) 20%, transparent), transparent);
}

/* Scroll-in motion: only when scripts run, never with reduced motion */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms cubic-bezier(0.22, 1, 0.36, 1), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 {
  margin: 0;
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.section-head h2 .second { display: block; color: var(--muted); }
.section-head h2 .second.small { margin-top: 0.3em; font-size: 0.55em; letter-spacing: -0.03em; }

/* The module and ecosystem cards share one grid */
.modules,
.eco {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 14px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 900px) {
  .modules,
  .eco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .modules,
  .eco { grid-template-columns: minmax(0, 1fr); }
}
/* Ecosystem: one tile per connected product; the coming one is drawn dashed */
.eco-tile {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.eco-tile h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.eco-tile p {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.eco-tile.soon {
  border-style: dashed;
  background: transparent;
}
.eco-tile .module-icon { flex: none; }
.eco-tile.soon .module-icon {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--muted);
}
.badge {
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--v1) 40%, transparent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}
/* What Klerry does: six cards, in the order the work flows */
.module {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--module-surface);
  transition: border-color 200ms ease, transform 200ms ease;
}
.module:hover {
  border-color: color-mix(in srgb, var(--hue, var(--v1)) 45%, var(--line));
  transform: translateY(-2px);
}
.module-top {
  display: flex;
  margin-bottom: 14px;
}
.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--v1) 12%, transparent);
  color: var(--accent-text);
}
.module-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Each card carries the hue of its area in the app */
.module.hue-green  { --hue: var(--a-green); }
.module.hue-teal   { --hue: var(--a-teal); }
.module.hue-amber  { --hue: var(--a-amber); }
.module.hue-blue   { --hue: var(--a-blue); }
.module.hue-violet { --hue: var(--a-violet); }
.module.hue-rose   { --hue: var(--a-rose); }
.module .module-icon {
  background: color-mix(in srgb, var(--hue, var(--v1)) 14%, transparent);
  color: var(--hue, var(--accent-text));
}
.module h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.module-lede {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
/* Tablets and phones: the module cards take the ecosystem cards' shape, with
   the text beside the icon */
@media (max-width: 1200px) {
  .module {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    column-gap: 14px;
  }
  .module-top { display: contents; }
  .module .module-icon { grid-area: 1 / 1 / span 2; }
  .module h3 { grid-area: 1 / 2; font-size: 16px; line-height: inherit; letter-spacing: -0.01em; }
  .module-lede { grid-area: 2 / 2; margin-top: 7px; }
}
@media (max-width: 600px) {
  .module { column-gap: 12px; }
  .eco-tile { gap: 12px; }
  .module,
  .eco-tile { padding: 14px 16px; border-radius: 12px; }
  .module-icon { width: 32px; height: 32px; border-radius: 9px; }
}

/* Two themes */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.duo figure { margin: 0; }

/* Closing: the two shots, then the invitation as a quiet row under a
   hairline (no heading since 2026-11-30). */
.closing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.closing-cta p {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.closing-cta .hero-cta { margin-top: 0; }
.closing-cta .mail { font-size: 13px; }
.closing .duo { margin-bottom: clamp(40px, 5vw, 64px); }
.mail {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-2);
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: 84px;
  padding-top: 24px;
  padding-bottom: 24px;
  font-size: 14px;
  color: var(--muted);
}
.site-foot .wordmark b { font-size: 20px; }
.site-foot .push { margin-left: auto; }
.site-foot a { text-decoration: none; }
.site-foot a:hover,
.site-foot a[aria-current="page"] { color: var(--ink); }
@media (max-width: 600px) {
  .site-foot .push { margin-left: 0; }
}

/* ── Legal pages (privacy, legal) ─────────────────────────────────── */

.doc {
  padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 10vw, 120px);
}
.doc-part { max-width: 760px; }
.doc-part + .doc-part {
  margin-top: clamp(72px, 9vw, 112px);
  padding-top: clamp(56px, 7vw, 80px);
  border-top: 1px solid var(--line);
}
.doc-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.doc-meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.doc .doc-meta a { color: inherit; }
.doc-lede {
  margin: 32px 0 0;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}
.doc-part > h2:not(.doc-title),
.doc-sub {
  margin: 52px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.025em;
}
.doc p,
.doc ul {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--muted); }
.doc a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.doc code { font-family: var(--font-mono); font-size: 0.88em; color: var(--ink); }
.doc-note {
  padding-left: 14px;
  border-left: 2px solid var(--glow);
}
.doc .doc-note { margin-top: 20px; color: var(--ink); }

.doc-card {
  margin-top: 16px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.doc-card > h3,
.doc-card > h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.doc-facts {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 24px;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
}
.doc-card > .doc-facts:first-child { margin-top: 0; }
.doc-facts--wide { grid-template-columns: 220px minmax(0, 1fr); }
.doc-facts dt { color: var(--muted); }
.doc-facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) {
  .doc-card { padding: 18px 18px 20px; }
  .doc-facts,
  .doc-facts--wide { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc-facts dd + dt { margin-top: 12px; }
}
/* Draft placeholders, to be filled before the pages go live */
.fill {
  padding: 0.05em 0.35em;
  border-radius: 5px;
  background: color-mix(in srgb, #e8a317 26%, transparent);
  color: var(--ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── App replica: today's Overview on a fixed 1440×1000 canvas ────── */

.app {
  display: flex;
  flex-direction: column;
  background: var(--a-bg);
  color: var(--a-text);
  font-family: var(--font-app);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.app svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Top bar */
.app-top {
  height: 62px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--a-top);
  border-bottom: 1px solid var(--a-line);
}
.app-date { font-size: 13px; font-weight: 600; }
.app-date span { margin-left: 10px; font-weight: 400; color: var(--a-muted); }
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--a-chip);
  color: var(--a-text);
  font-size: 12.5px;
  font-weight: 500;
}
.app-chip svg { width: 12px; height: 12px; }
.app-chip .quiet { color: var(--a-muted); font-weight: 400; }
.app-chip .sep { width: 1px; height: 14px; background: var(--a-line); margin: 0 4px; }
.app-arrows { display: flex; gap: 14px; margin-left: 6px; color: var(--a-muted); }
.app-arrows svg { width: 14px; height: 14px; }
.app-grow { flex: 1; }
.app-icon { color: var(--a-muted); }
.app-icon svg { width: 18px; height: 18px; }
.app-lang { font-size: 12.5px; font-weight: 500; color: var(--a-muted); margin-right: 6px; }
.app-divider { width: 1px; height: 26px; background: var(--a-line); margin: 0 4px; }
.app-user { display: flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 600; }
.app-user small { font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--a-muted); }
.app-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--a-chip); font-size: 11px; font-weight: 700; }

.app-body { flex: 1; display: flex; min-height: 0; }

/* Sidebar */
.app-side {
  width: 205px;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 26px 0 14px;
  background: var(--a-side);
  border-right: 1px solid var(--a-line);
}
/* The product shot carries the site logo too (sunset klerry OS, 2026-11-30);
   sized to its text so the blend spans the word, not the whole sidebar. */
.app-word {
  display: flex; align-items: flex-start; gap: 3px; width: fit-content; margin: 0 14px 24px;
  color: #fba66a;
  background-image: linear-gradient(100deg, #fcd58a 0%, #fba66a 50%, #f78a7a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
:root[data-theme="light"] .app:not(.app--dark) .app-word, .app.app--light .app-word {
  color: #e57b4c;
  background-image: linear-gradient(100deg, #e3a043 0%, #e57b4c 50%, #dc6466 100%);
}
.app-word b { font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: -0.055em; }
.app-word span { font-size: 9px; letter-spacing: 0.16em; }
/* High contrast: plain text colour instead of the blend (after both logo rules). */
@media (forced-colors: active) {
  .wordmark, .app-word { -webkit-text-fill-color: currentColor; }
}
.app-item { display: flex; align-items: center; gap: 11px; height: 33px; margin: 0 2px 1px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--a-text); }
.app-item svg { color: var(--a-text2); }
.app-item.on { height: 34px; background: var(--a-active-bg); color: var(--a-active-ink); font-weight: 600; }
.app-item.on svg { color: var(--a-active-ink); }
.app-label { margin: 18px 14px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--a-muted); }
.app-side-foot { margin-top: auto; display: flex; justify-content: space-between; padding: 14px 16px 0; border-top: 1px solid var(--a-line); color: var(--a-text2); }
.app-side-foot svg { width: 15px; height: 15px; }

/* Main */
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 22px 22px 18px 30px; }
/* The cards run past the canvas, as on a real screen: nothing in the column shrinks */
.app-main > * { flex-shrink: 0; }
.app-hello { display: flex; align-items: center; justify-content: space-between; }
.app-hello h4 { margin: 0; font-size: 23px; font-weight: 500; letter-spacing: -0.025em; }
.app-up { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--a-border); background: var(--a-card); display: flex; align-items: center; justify-content: center; color: var(--a-text2); }
.app-up svg { width: 14px; height: 14px; }
.app-tools { display: flex; align-items: center; gap: 10px; }
.app-layouts { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--a-border); border-radius: 10px; background: var(--a-card); }
.app-layouts span { width: 30px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--a-muted); }
.app-layouts span.on { background: var(--a-agenda-bg); color: #ffffff; }
.app-layouts svg { width: 14px; height: 14px; }
.app-search { display: flex; align-items: center; gap: 10px; height: 36px; margin-top: 14px; padding: 0 12px; border: 1px solid var(--a-border); border-radius: 10px; background: var(--a-card); color: var(--a-muted); font-size: 13px; }
.app-search svg { width: 15px; height: 15px; }

/* The app's "Mixed" layout: Today (1/3) beside Needs attention (2/3),
   then Financial, Team and Inbox each on a full row. */
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-auto-rows: auto;
  gap: 14px;
  margin-top: 12px;
}
.app-card.wide { grid-column: 1 / -1; }

/* Cards */
.app-card {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--a-card);
  border: 1px solid var(--a-border);
  border-radius: 14px;
  box-shadow: var(--a-shadow);
  overflow: hidden;
}
.app-card.selected { border: 1.5px solid var(--a-selected); }
.app-head {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  flex: none;
  padding: 0 14px 0 16px;
  background: var(--band);
  border-bottom: 1px solid var(--a-line);
}
.app-head .ico { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--a-card); color: var(--a-text2); }
.app-head .ico svg { width: 14px; height: 14px; }
.app-head h5 { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; }
.app-head h5.big { font-size: 16px; }
.app-head h5 svg { width: 12px; height: 12px; color: var(--a-muted); }
.app-head .grow { flex: 1; }
.app-head .more { display: flex; align-items: center; color: var(--a-muted); }
.c-teal { --band: var(--a-teal-band); }
.c-green { --band: var(--a-green-band); }
.c-rose { --band: var(--a-rose-band); }
.c-blue { --band: var(--a-blue-band); }
.c-violet { --band: var(--a-violet-band); }

.app-seg { display: flex; padding: 2px; border-radius: 8px; background: var(--a-chip); font-size: 11px; }
.app-seg span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; color: var(--a-muted); font-weight: 600; white-space: nowrap; }
.app-seg span.on { background: var(--a-seg-on); box-shadow: var(--a-seg-shadow); color: var(--a-text); }
.app-seg i { width: 6px; height: 6px; border-radius: 50%; }
.app-seg em { font-style: normal; font-weight: 500; color: var(--a-muted); }
.app-select { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 10px; border: 1px solid var(--a-border); border-radius: 8px; background: var(--a-card); font-size: 11.5px; color: var(--a-text2); }
.app-select svg { width: 11px; height: 11px; }

/* Today: calendar and the signed-in person's own to-dos in one card */
.app-head .app-daynav { margin-right: 2px; }
.app-daynav { display: flex; align-items: center; gap: 6px; color: var(--a-muted); }
.app-daynav svg { width: 14px; height: 14px; }
.app-daynav i { width: 6px; height: 6px; border-radius: 50%; background: var(--a-muted); opacity: 0.4; }
/* Today's earlier items: a small note beside the Calendar label */
.app-past { display: inline-flex; align-items: center; gap: 3px; margin-left: 10px; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--a-text2); }
.app-past svg { width: 11px; height: 11px; }
.app-sec { margin: 0; padding: 12px 16px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--a-muted); }
.app-sec.line { margin-top: 6px; border-top: 1px solid var(--a-line); }
.app-head + .app-sec { padding-top: 18px; }
.app-agenda-list { padding: 6px 16px 8px; }
/* My To-Dos folded: the label with a down arrow on its right */
.app-sec.fold { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; }
.app-sec.fold svg { width: 13px; height: 13px; color: var(--a-text2); }
.app-event { display: grid; grid-template-columns: 36px 13px minmax(0, 1fr) auto; align-items: center; column-gap: 9px; min-height: 32px; font-size: 12px; }
.app-event .t { font-size: 11px; font-weight: 500; color: var(--a-text2); font-variant-numeric: tabular-nums; }
.app-event .dot { justify-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--a-muted); }
.app-event .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--a-text2); }
.app-event .n b { font-weight: 600; letter-spacing: -0.005em; color: var(--a-text); }
.app-event.soon { margin: 0 -16px; padding: 0 16px; background: color-mix(in srgb, #f59e0b 13%, transparent); }
.app-event.soon .t { color: var(--a-amber); font-weight: 600; }
.app-event.soon .dot { background: #f59e0b; }
.app-event .owner { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--a-indigo) 14%, transparent); color: var(--a-indigo); font-size: 9.5px; font-weight: 700; }

/* Financial */
.app-cur { display: flex; padding: 2px; border-radius: 7px; background: var(--a-chip); font-size: 10.5px; font-weight: 600; }
.app-cur span { padding: 2px 6px; border-radius: 5px; color: var(--a-muted); }
.app-cur span.on { background: var(--a-seg-on); color: var(--a-text); }
.app-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); flex: 1; }
.app-metrics div { padding: 16px 16px 14px; border-right: 1px solid var(--a-line); border-bottom: 1px solid var(--a-line); }
.app-metrics div:last-child { border-right: 0; }
.app-metrics small { display: block; min-height: 30px; font-size: 11.5px; color: var(--a-muted); }
.app-metrics b { display: block; margin-top: 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.app-metrics b.bad { color: var(--a-bad); }
.app-metrics b.warn { color: var(--a-warn); }
.app-metrics em { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; color: var(--a-muted); }
.app-pay { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--a-text2); }
.app-pay svg { width: 11px; height: 11px; }
/* Needs attention keeps one empty row's height at the end, so the card
   doesn't stop short beside What is Today?. */
.app-card.c-rose .app-alerts { padding-bottom: 45px; }

/* Needs attention */
.app-alerts { padding: 6px 16px 0; }
.app-alert { display: flex; align-items: center; gap: 14px; height: 45px; border-top: 1px solid var(--a-line); }
.app-alert:first-child { border-top: 0; }
.app-alert .tile { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--a-chip); color: var(--a-text2); }
.app-alert .tile svg { width: 14px; height: 14px; }
.app-alert .lbl { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.app-alert .lbl i { width: 5px; height: 5px; border-radius: 50%; background: var(--a-dot); }
.app-alert .n { font-size: 13px; font-weight: 600; color: var(--a-bad); font-variant-numeric: tabular-nums; }
.app-alert > svg { width: 12px; height: 12px; color: var(--a-muted); }

/* Team workload */
.app-people { padding: 2px 16px; }
.app-person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--a-line); }
.app-person:first-child { border-top: 0; }
.app-person .who { flex: 1; min-width: 0; }
.app-person b { display: block; font-size: 13px; font-weight: 600; }
.app-person small { display: block; margin-top: 2px; font-size: 11px; color: var(--a-muted); }
.app-person .un { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 11.5px; color: var(--a-muted); }
.app-person .un strong { color: var(--a-text); font-weight: 600; }
.app-open { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--a-indigo) 40%, transparent); border-radius: 999px; color: var(--a-indigo); font-size: 10.5px; }
.app-open svg { width: 10px; height: 10px; }
.app-person .h { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Inbox and Workspace */
.app-filters { display: flex; gap: 8px; padding: 12px 16px 6px; }
.app-filter { display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 10px; border: 1px solid var(--a-border); border-radius: 8px; font-size: 11px; color: var(--a-text2); }
.app-filter svg { width: 10px; height: 10px; }
.app-filter.cat { background: var(--a-blue-band); border-color: color-mix(in srgb, var(--a-blue) 35%, transparent); color: var(--a-blue); }
.app-filter.cat i { width: 7px; height: 7px; border-radius: 50%; background: #e2b93b; }
.app-mails { padding: 0 16px; }
.app-mail { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--a-line); }
.app-mail:first-child { border-top: 0; }
.app-mail .txt { flex: 1; min-width: 0; }
.app-mail b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-mail small { display: block; margin-top: 2px; font-size: 11px; color: var(--a-muted); }
.app-mail > svg { width: 14px; height: 14px; color: var(--a-muted); }

/* "This month's work" panel over a blurred Overview (Ivory and Midnight shots) */
.app--modal > .app-top,
.app--modal > .app-body { filter: blur(6px); }
.app-scrim { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.58); }
.app--light .app-scrim { background: rgba(17, 17, 19, 0.3); }
.app-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 660px;
  transform: translate(-50%, -50%) scale(1.1);
  overflow: hidden;
  border: 1px solid var(--a-border);
  border-radius: 18px;
  background: var(--a-card);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  color: var(--a-text);
}
.am-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.am-seg {
  display: flex;
  padding: 4px;
  border: 1px solid var(--a-border);
  border-radius: 12px;
  background: var(--a-chip);
  font-size: 13.5px;
}
.am-seg span { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9px; color: var(--a-muted); }
.am-seg span.on { background: var(--a-seg-on); box-shadow: var(--a-seg-shadow); color: var(--a-text); font-weight: 600; }
.am-seg em,
.am-tabs em {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--a-chip);
  color: var(--a-text2);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
}
.am-key { font-size: 12px; color: var(--a-muted); }
.am-x svg { width: 16px; height: 16px; color: var(--a-muted); }
.am-month { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 6px 0 16px; font-size: 15px; }
.am-month b { font-weight: 600; }
.am-month svg { width: 14px; height: 14px; color: var(--a-muted); }
.am-tabs {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  border-top: 1px solid var(--a-line);
  border-bottom: 1px solid var(--a-line);
  background: color-mix(in srgb, var(--a-chip) 70%, transparent);
}
.am-tabs span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: var(--a-muted);
}
.am-tabs span.on { border-color: var(--a-text); color: var(--a-text); font-weight: 600; }
.am-list { padding: 14px 20px 20px; }
.am-list p { margin: 0 4px 12px; font-size: 12px; font-weight: 600; color: var(--a-muted); }
.am-box { border: 1px solid var(--a-border); border-radius: 10px; }
.am-row { display: flex; align-items: flex-start; gap: 14px; padding: 11px 16px 12px; border-top: 1px solid var(--a-line); }
.am-row:first-child { border-top: 0; }
.am-who { flex: 1; min-width: 0; }
.am-who b { display: block; font-size: 14px; font-weight: 600; }
.am-who small { display: block; margin-top: 2px; font-size: 12px; color: var(--a-muted); }
.am-chip { padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--a-rose) 9%, transparent); font-size: 11.5px; font-weight: 600; color: var(--a-rose); font-variant-numeric: tabular-nums; }
.am-done { display: inline-flex; align-items: center; gap: 5px; margin: 14px 4px 0; font-size: 12.5px; font-weight: 600; color: var(--a-muted); }
.app .am-done svg { width: 13px; height: 13px; stroke-width: 2.4; }
.am-foot { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--a-line); font-size: 14px; color: var(--a-text2); }
.am-check { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: #6c63ff; color: #ffffff; }
.app .am-check svg { width: 13px; height: 13px; stroke-width: 2.6; }
/* Invoices page, shown blurred behind the panel */
.inv { display: flex; flex-direction: column; gap: 14px; min-height: 0; flex: 1; }
.inv-head { display: flex; align-items: flex-start; gap: 10px; }
.inv-head h4 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.inv-head p { margin: 6px 0 0; font-size: 12.5px; color: var(--a-muted); }
.inv-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--a-border);
  border-radius: 9px;
  background: var(--a-card);
  font-size: 12px;
  font-weight: 500;
  color: var(--a-text2);
  white-space: nowrap;
}
.inv-btn svg { width: 13px; height: 13px; }
.inv-btn em { padding: 0 6px; border-radius: 999px; background: var(--a-chip); font-size: 11px; font-style: normal; }
.inv-btn.quiet { border-color: transparent; background: transparent; }
.inv-btn.green { border-color: transparent; background: #1f7a4a; color: #ffffff; }
.inv-btn.blue { border-color: transparent; background: #2b4ad6; color: #ffffff; }
.inv-filters { display: flex; align-items: center; gap: 10px; }
.inv-count { padding: 1px 8px; border-radius: 999px; background: var(--a-chip); font-size: 11px; color: var(--a-muted); }
.inv-table { flex: 1; border-bottom: 0; border-radius: 14px 14px 0 0; }
.app--modal .app-main { padding-bottom: 0; }
.inv-row {
  display: grid;
  grid-template-columns: 110px 150px minmax(0, 1fr) 100px 96px 96px 76px;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--a-line);
  font-size: 12px;
  color: var(--a-text2);
  white-space: nowrap;
}
.inv-th { border-top: 0; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--a-muted); }
.inv-row b { font-weight: 600; color: var(--a-text); }
.inv-amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--a-text); }
.inv-th .inv-amt { font-weight: 400; color: var(--a-muted); }
.inv-status { justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--a-chip); font-size: 11px; }
.inv-status.paid { background: color-mix(in srgb, var(--a-green) 14%, transparent); color: var(--a-green); }
.inv-status.overdue { background: color-mix(in srgb, var(--a-bad) 12%, transparent); color: var(--a-bad); }
/* Theme shots open enlarged */
.duo .shot { cursor: zoom-in; transition: transform 200ms ease; }
.duo .shot:hover { transform: translateY(-2px); }
.duo .shot:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.zoom {
  width: min(1320px, 94vw, calc(86vh * 1.44));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.zoom[open] { animation: zoom-in 220ms ease both; }
.zoom::backdrop { background: rgba(6, 8, 12, 0.74); backdrop-filter: blur(4px); }
.zoom .shot { cursor: default; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7); }
.zoom-close {
  position: absolute;
  top: -46px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(20, 22, 28, 0.6);
  color: #ffffff;
  cursor: pointer;
}
.zoom-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.97); } }
/* ── Narrow screens ───────────────────────────────────────────────── */

@media (max-width: 720px) {
  .link-quiet.hide-sm { display: none; }
  .head-actions .btn { display: none; }
}

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