/* mailnote website
 *
 * Palette: CloudCircus-neutral greys with a blue accent.
 *   white on --brand-600    6.2:1   (buttons)
 *   --brand-700 on white    8.1:1   (links)
 *   --grey-600 on white     5.8:1   (muted text)
 * Light theme only for the website; the Outlook pane follows the system theme.
 */

:root {
  color-scheme: light;

  --brand: #3b82f6;        /* accents, focus rings, icons */
  --brand-600: #1d5fd1;    /* button background */
  --brand-700: #174ea6;    /* links, button hover */
  --brand-200: #bfd6fb;
  --brand-100: #dde9fd;
  --brand-50: #f0f6ff;

  --grey: #a9abae;         /* logo grey: borders, decoration */
  --grey-600: #636569;     /* muted text */
  --grey-200: #dfe0e1;
  --grey-100: #eff0f0;
  --grey-50: #f7f7f8;

  --ink: #1f2933;          /* body text */
  --ink-900: #111827;      /* headings */
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 29, 29, .06), 0 8px 24px rgba(31, 29, 29, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}

main { flex: 1; }

h1, h2, h3 { color: var(--ink-900); line-height: 1.15; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

a { color: var(--brand-700); text-underline-offset: 2px; }
a:hover { color: var(--ink-900); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

.muted { color: var(--grey-600); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { display: block; width: 150px; height: auto; }
@media (min-width: 720px) { .brand img { width: 180px; } }

.nav { display: flex; align-items: center; gap: 8px; }
.nav form { margin: 0; }
.nav-user {
  color: var(--grey-600);
  font-size: .9rem;
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) { .nav-user { display: none; } }
@media (max-width: 400px) {
  .brand img { width: 124px; }
  .nav { gap: 4px; }
  .nav .btn { padding: 0 12px; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand-600); color: var(--white); }
.btn-primary:hover { background: var(--brand-700); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--grey-50); color: var(--ink-900); }
.btn-block { width: 100%; }

.btn-social {
  width: 100%;
  background: var(--white);
  color: var(--ink-900);
  border-color: var(--grey-200);
  font-weight: 500;
}
.btn-social:hover { background: var(--grey-50); border-color: var(--grey); color: var(--ink-900); }
.btn-social .icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(1000px 420px at 85% -10%, var(--brand-100), transparent 70%),
    linear-gradient(180deg, var(--brand-50), var(--white));
  padding: 40px 0 56px;
}
@media (min-width: 900px) { .hero { padding: 72px 0 88px; } }

.hero-inner {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.02em; margin-bottom: 20px; }
.hero .accent { color: var(--brand-600); }
.lead { font-size: 1.15rem; color: var(--ink); max-width: 36em; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ── Cards & forms ──────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
@media (min-width: 480px) { .card { padding: 32px; } }
.card h1, .card h2 { font-size: 1.5rem; }
.card-sub { margin-bottom: 20px; }
.card-foot { margin: 20px 0 0; text-align: center; color: var(--grey-600); font-size: .95rem; }
.hero-card { border-top: 4px solid var(--brand); }

.social { display: grid; gap: 10px; }
.social form { margin: 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--grey-600);
  font-size: .85rem;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--grey-200); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .auth-card label { font-weight: 600; font-size: .9rem; color: var(--ink-900); }

input[type="email"], input[type="password"], input[type="text"], input[type="url"], input[type="date"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--grey);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-900);
  font: inherit;
}
input::placeholder { color: var(--grey-600); opacity: 1; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
}
.has-error input { border-color: #b3261e; }

.error { color: #b3261e; font-size: .9rem; margin: 0; }
.form-error { padding: 10px 12px; background: #fdecea; border-radius: var(--radius-sm); }
.help { color: var(--grey-600); font-size: .85rem; margin: 0; }
.help ul { margin: 4px 0 0; padding-left: 18px; }

.check { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-600); }

/* ── Auth pages (also styles allauth's generic element templates) ── */
.page-auth main { background: linear-gradient(180deg, var(--brand-50), var(--white) 60%); }
.auth-page { display: flex; justify-content: center; padding: 40px 16px 64px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card form:not(.social form) { display: grid; gap: 14px; }
.auth-card form p { margin: 0; display: grid; gap: 6px; }
.auth-card button[type="submit"]:not(.btn) {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-600);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.auth-card button[type="submit"]:not(.btn):hover { background: var(--brand-700); }
.auth-card ul.errorlist { list-style: none; padding: 0; margin: 0; color: #b3261e; font-size: .9rem; }
.auth-card hr { border: 0; border-top: 1px solid var(--grey-200); margin: 20px 0; }

/* ── Messages ───────────────────────────────────────────── */
.messages { padding-top: 16px; }
.message {
  margin: 0 0 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  border-left: 4px solid var(--brand);
  color: var(--ink-900);
}
.message-error { background: #fdecea; border-left-color: #b3261e; }

/* ── Features ───────────────────────────────────────────── */
.features { padding: 56px 0 72px; }
.feature-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
}
.feature h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.feature p { margin: 0; color: var(--grey-600); }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--brand-100);
  color: var(--brand-700);
}
.feature-icon svg { width: 24px; height: 24px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--grey-100); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--white); }
.footer-inner a:hover { color: var(--brand-200); }
.footer-small { margin-left: auto !important; color: var(--grey); font-size: .9rem; }

.footer-links { display: flex; gap: 16px; }
.fine-print { margin: 0; color: var(--grey-600); font-size: .82rem; text-align: center; }

/* ── Legal pages ────────────────────────────────────────── */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -.01em; }
.legal .updated { color: var(--grey-600); margin-bottom: 32px; }
.legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-100);
  scroll-margin-top: 88px;
}
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1rem; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--brand); }
.legal .summary {
  background: var(--brand-50);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 8px;
}
.legal .summary p:last-child { margin-bottom: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grey-200); vertical-align: top; }
.legal th { color: var(--ink-900); background: var(--grey-50); }
.table-scroll { overflow-x: auto; }
.field-link { margin: -8px 0 0; text-align: right; font-size: .9rem; }

/* Signup honeypot: off-screen, humans never see or fill it. */
.hp-field { position: absolute; left: -99999px; width: 1px; height: 1px; overflow: hidden; }

/* IFTTT consent page */
.consent-list { margin: 0 0 16px; padding-left: 20px; line-height: 1.5; }
.consent-list li + li { margin-top: 6px; }

/* ── AI assistants (home) ───────────────────────────────── */
.ai { padding: 56px 0; background: var(--grey-50); border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); }
@media (min-width: 900px) { .ai { padding: 80px 0; } }
.ai-inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .ai-inner { grid-template-columns: 1fr 1fr; gap: 56px; } }
.ai h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.01em; margin-bottom: 16px; }
.ai code { font-size: .9em; background: var(--white); border: 1px solid var(--grey-200); border-radius: 6px;
  padding: 1px 6px; overflow-wrap: anywhere; }
.ai-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.ai-steps li { position: relative; padding-left: 40px; counter-increment: step; }
.ai-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.05em;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-600); color: var(--white); font-weight: 700; font-size: .9rem;
}
.ai-note { margin: 20px 0 0; }
.small { font-size: .9rem; }

.chat { margin: 0; display: grid; gap: 10px; border-top: 4px solid var(--brand); }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; }
.chat-msg p { margin: 0; }
.chat-msg ul { margin: 6px 0 0; padding-left: 18px; }
.chat-user { justify-self: end; background: var(--brand-600); color: var(--white); border-bottom-right-radius: 4px; }
.chat-ai { justify-self: start; background: var(--grey-100); color: var(--ink-900); border-bottom-left-radius: 4px; }
.chat-tool { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem;
  color: var(--grey-600); padding: 2px 4px; }
.chat-tool svg { width: 14px; height: 14px; color: var(--brand-600); }
input[type="date"] { accent-color: var(--brand-600); }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
input[type="date"]:required:invalid { color: var(--grey-600); }  /* empty: looks like a placeholder */

/* ── mailnote additions ─────────────────────────────────── */
.wordmark { align-items: center; gap: 8px; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.wordmark img { width: 28px !important; height: 28px; }
.wm-mail { color: var(--ink-900); }
.wm-note { color: var(--brand-600); margin-left: -8px; }
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.legal h2 { font-size: 1.2rem; margin-top: 28px; }
.small { font-size: .875rem; }

/* IFTTT consent page */
.consent-list { margin: 8px 0 14px; padding-left: 20px; }
.consent-list li { margin-bottom: 6px; }

/* Security & architecture page */
.security { max-width: 880px; padding-top: 40px; padding-bottom: 72px; }
.security h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -.01em; }
.security h2 {
  font-size: 1.35rem;
  margin: 44px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--grey-100);
  scroll-margin-top: 88px;
}
.security .lead { font-size: 1.05rem; }
.sec-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.sec-toc a {
  padding: 6px 12px;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
  background: var(--grey-50);
}
.sec-toc a:hover { border-color: var(--brand-200); background: var(--brand-50); }
.sec-figure { margin: 20px auto 8px; max-width: 520px; }
.sec-figure svg { display: block; width: 100%; height: auto; }
.sec-figure figcaption { color: var(--grey-600); font-size: .9rem; text-align: center; margin-top: 10px; }
.sec-where {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  padding: 20px;
}
.sec-where p { margin: 0; }
.sec-where-title { font-size: 1.2rem; font-weight: 700; color: var(--ink-900); margin-bottom: 4px !important; }
.sec-eu { flex: 0 0 96px; width: 96px; height: 96px; }
@media (max-width: 480px) { .sec-where { flex-direction: column; align-items: flex-start; } }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 16px 0; }
.fact {
  border: 1px solid var(--grey-200);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--white);
}
.fact h3 { font-size: 1rem; margin: 0 0 6px; }
.fact p { margin: 0; font-size: .95rem; }
.sec-sub { font-size: 1.1rem; margin: 32px 0 8px; }
.sec-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95rem; }
.sec-table th, .sec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grey-200); vertical-align: top; }
.sec-table th { color: var(--ink-900); background: var(--grey-50); }
.sec-table td:first-child { font-weight: 600; color: var(--ink-900); }
@media (max-width: 560px) { .sec-table th, .sec-table td { padding: 8px 6px; font-size: .9rem; } }

/* Diagrams (inline SVG) */
.svg-box { fill: var(--white); stroke: var(--grey); stroke-width: 1.2; }
.svg-main { fill: var(--brand-600); }
.svg-ext { fill: var(--grey-50); stroke: var(--grey); stroke-width: 1.2; stroke-dasharray: 4 3; }
.svg-frame { fill: var(--brand-50); stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 6 4; }
.svg-frame-label { font: 600 11.5px var(--font); fill: var(--brand-700); }
.svg-t { font: 600 13px var(--font); fill: var(--ink-900); text-anchor: middle; }
.svg-s { font: 11px var(--font); fill: var(--grey-600); text-anchor: middle; }
.svg-on-main { fill: var(--white); }
.svg-lock { font: 600 11px var(--font); fill: #15803d; }
.svg-line { stroke: var(--ink); stroke-width: 1.5; }
.svg-dash { stroke: var(--grey-600); stroke-width: 1.2; stroke-dasharray: 4 3; }
.svg-arrowhead { fill: var(--ink); }
.svg-sent { fill: #ecfdf3; stroke: #86efac; }
.svg-never { fill: #fef2f2; stroke: #fca5a5; }
.svg-k { font: 700 11px var(--font); letter-spacing: .06em; fill: #15803d; }
.svg-k-never { fill: #b91c1c; }
.svg-row text { font: 13px var(--font); fill: var(--ink); }
.svg-ok { fill: #15803d; font-weight: 700; }
.svg-no { fill: #b91c1c; font-weight: 700; }
.svg-eu-bg { fill: #003399; }
.svg-star { font-size: 11px; fill: #ffcc00; text-anchor: middle; dominant-baseline: central; }
.svg-pin { fill: var(--white); }
.svg-left { text-anchor: start; }

/* Two-factor authentication pages (website/templates/mfa/) */
.qr { text-align: center; margin: 8px 0 4px; }
.qr img { width: 200px; height: 200px; image-rendering: pixelated; }
.secret { margin: 0 0 16px; font-size: .9rem; color: var(--grey-600); }
.secret code { display: block; margin-top: 6px; word-break: break-all; font-size: .95rem; color: var(--ink); }
.codes { background: var(--grey-100, #f3f4f6); border-radius: 8px; padding: 12px 16px; font-size: 1.05rem; line-height: 1.7; columns: 2; text-align: center; }
.btn-danger { background: #b42318; border-color: #b42318; color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }

/* Security page: confidential subject example */
.conf-example { display: flex; align-items: center; gap: 12px; margin: 16px 0 20px; }
.conf-box { flex: 1; border: 1px solid var(--grey-200, #e5e7eb); border-radius: 10px; padding: 12px 14px; background: var(--white, #fff); min-width: 0; }
.conf-sent { border-color: #b7e4c4; background: #f0faf3; }
.conf-k { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-600); }
.conf-subject { margin: 0; font-weight: 600; color: var(--ink-900); overflow-wrap: anywhere; }
.conf-hash { margin: 4px 0 0; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; color: var(--grey-600); overflow-wrap: anywhere; }
.conf-arrow { font-size: 1.6rem; color: var(--grey-600); }
@media (max-width: 560px) { .conf-example { flex-direction: column; align-items: stretch; } .conf-arrow { text-align: center; transform: rotate(90deg); } }

/* ── "Why mailnote?" deck (website/templates/website/why.html) ── */
html:has(.page-why) { scroll-padding-top: 68px; }
@media (min-width: 900px) and (min-height: 700px) { html:has(.page-why) { scroll-snap-type: y proximity; } }
.center { text-align: center; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.btn-light { background: var(--white); color: var(--ink-900); }
.btn-light:hover { background: var(--brand-100); color: var(--ink-900); }

.slide {
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: center;
  padding: 56px 0;
  scroll-snap-align: start;
  overflow: hidden;
}
@media (min-width: 900px) { .slide { padding: 72px 0; } }
.slide > .wrap { width: 100%; }
.slide-alt { background: var(--grey-50); border-top: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); }
.slide-cover {
  background:
    radial-gradient(1000px 420px at 85% -10%, var(--brand-100), transparent 70%),
    linear-gradient(180deg, var(--brand-50), var(--white));
}
.slide-dark { background: var(--ink); color: var(--grey-100); }
.slide-dark h2, .slide-dark h3 { color: var(--white); }
.slide-dark .kicker { color: var(--brand-200); }
.slide-dark .lead { color: var(--white); }
.slide-cta { background: linear-gradient(180deg, var(--white), var(--brand-50)); }

.slide h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); letter-spacing: -.02em; margin-bottom: 20px; }
.slide h2 { font-size: clamp(1.8rem, 4.4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: 18px; text-wrap: balance; }
.slide .accent { color: var(--brand-600); }
.slide-dark .accent { color: var(--brand-200); }
.kicker { margin: 0 0 10px; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); }
.slide-intro { margin-bottom: 32px; }
.slide-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) {
  .slide-grid { grid-template-columns: .85fr 1.15fr; gap: 56px; }
  .slide-grid-rev { grid-template-columns: 1fr 1fr; }
}
.slide-hint { margin-top: 32px; color: var(--grey-600); font-size: .9rem; }
.kbd { display: inline-block; border: 1px solid var(--grey); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; font-size: .85rem; }
.x-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.x-list li { position: relative; padding-left: 32px; }
.x-list li::before {
  content: "✕"; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: #fdecea; color: #b3261e; font-size: .7rem; font-weight: 700;
}

/* Fade-in, only when the script runs (without it everything is simply shown). */
@media (prefers-reduced-motion: no-preference) {
  .deck-js .slide .wrap { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .deck-js .slide.is-in .wrap { opacity: 1; transform: none; }
}

/* Side dots */
.deck-nav { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 9; display: none; flex-direction: column; gap: 10px; }
@media (min-width: 1200px) { .deck-nav:not([hidden]) { display: flex; } }
.deck-nav a { width: 10px; height: 10px; border-radius: 50%; background: var(--grey); opacity: .55; transition: transform .2s, opacity .2s, background-color .2s; }
.deck-nav a:hover { opacity: 1; transform: scale(1.3); }
.deck-nav a[aria-current] { background: var(--brand-600); opacity: 1; transform: scale(1.35); }

/* Shared bits of the mock-ups */
.mock-figure { margin: 0; min-width: 0; }
.mock-figure figcaption { color: var(--grey-600); font-size: .88rem; text-align: center; margin-top: 12px; }
.slide-dark .mock-figure figcaption { color: var(--grey); }
.av {
  flex: 0 0 auto; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: .68rem; font-weight: 700; color: var(--white); letter-spacing: .02em;
}
.av-s { background: #1d5fd1; } .av-m { background: #0f766e; } .av-h { background: #9333ea; }
.av-j { background: #c2410c; } .av-b { background: #64748b; }
.chip {
  display: inline-block; font-size: .7rem; line-height: 1.5; padding: 0 7px; border-radius: 999px;
  background: var(--grey-50); border: 1px solid var(--grey-200); color: var(--ink); white-space: nowrap;
}
.chip.k-agree, .chip.k-decision, .chip.k-risk, .chip.k-action { background: var(--brand-50); border-color: transparent; font-weight: 700; }
.k-agree, .k-decision { color: #1a7f37 !important; }
.k-risk { color: #b42318 !important; }
.k-action { color: #9a6700 !important; }

/* An Outlook-like window */
.ol {
  container-type: inline-size;
  border-radius: 10px; overflow: hidden; background: var(--white); border: 1px solid var(--grey-200);
  box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 24px 48px rgba(15, 23, 42, .14);
  font-family: "Segoe UI", var(--font); font-size: 12px; line-height: 1.4; color: #242424; text-align: left;
}
.ol-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; background: #0f6cbd; color: var(--white); }
.ol-dots {
  width: 14px; height: 14px; flex: 0 0 auto;
  background: radial-gradient(circle, #fff 1.2px, transparent 1.6px) 0 0 / 5px 5px;
}
.ol-search { flex: 1; max-width: 300px; margin: 0 auto; background: rgba(255, 255, 255, .92); color: #616161; border-radius: 4px; padding: 3px 10px; }
.ol-me { width: 24px; height: 24px; border-radius: 50%; background: #1d5fd1; border: 1.5px solid #fff; display: grid; place-items: center; font-size: .62rem; font-weight: 700; }
.ol-body { display: grid; grid-template-columns: 1fr 200px; min-height: 360px; background: #fafafa; }
.ol-folders, .ol-list { display: none; }
@container (min-width: 560px) { .ol:not(.ol-small) .ol-body { grid-template-columns: 170px 1fr 210px; } .ol-list { display: block; } }
@container (min-width: 700px) { .ol:not(.ol-small) .ol-body { grid-template-columns: 92px 170px 1fr 220px; } .ol-folders { display: block; } }
@container (max-width: 400px) { .ol-body { grid-template-columns: 1fr; } .mn { border-left: 0; border-top: 1px solid #e3e3e3; } }
.ol-folders { padding: 10px 6px; border-right: 1px solid #ececec; }
.ol-f { margin: 0 0 2px; padding: 4px 8px; border-radius: 4px; display: flex; justify-content: space-between; }
.ol-f.is-on { background: #e8ebfa; font-weight: 600; }
.ol-f b { color: #0f6cbd; }
.ol-list { background: var(--white); border-right: 1px solid #ececec; }
.ol-tabs { margin: 0; padding: 8px 10px 6px; display: flex; gap: 12px; border-bottom: 1px solid #ececec; color: #616161; }
.ol-tabs .is-on { color: #242424; font-weight: 600; border-bottom: 2px solid #0f6cbd; padding-bottom: 2px; }
.ol-msg { padding: 7px 10px; border-bottom: 1px solid #f2f2f2; display: grid; position: relative; }
.ol-msg b { font-weight: 400; }
.ol-msg span, .ol-msg i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-msg i { color: #616161; font-style: normal; }
.ol-msg.is-unread b, .ol-msg.is-unread span { font-weight: 700; }
.ol-msg.is-unread span { color: #0f6cbd; }
.ol-msg.is-on { background: #e8ebfa; }
.ol-msg.is-unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #0f6cbd; }
.ol-read { padding: 14px 16px; background: var(--white); min-width: 0; }
.ol-subject { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.ol-from { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.ol-from b { display: block; font-weight: 600; }
.ol-from small { color: #616161; font-size: 11px; }
.ol-text { margin: 0 0 10px; }
.ol-text small { color: #616161; }

/* The mailnote pane inside it */
.mn { padding: 10px; border-left: 1px solid #e3e3e3; background: #f6f8fa; font-family: "Segoe UI", var(--font); min-width: 0; }
.mn-head { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-weight: 700; font-size: 13px; color: var(--ink-900); }
.mn-pin { margin-left: auto; font-size: 11px; opacity: .6; }
.mn-h { margin: 10px 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5f6b7a; display: flex; gap: 6px; align-items: center; }
.mn-h .chip { text-transform: none; letter-spacing: 0; font-weight: 600; }
.mn-note {
  position: relative; background: var(--white); border: 1px solid #dde3ea; border-radius: 7px;
  padding: 7px 9px; margin-bottom: 6px; font-size: 11.5px;
}
.mn-note.is-here { border-color: #1d5fd1; box-shadow: inset 3px 0 0 #1d5fd1; }
.mn-note.is-related { border-style: dashed; }
.mn-t { margin: 4px 0 0; font-weight: 600; color: var(--ink-900); }
.mn-d { margin: 2px 0 0; color: #5f6b7a; }
.mn-m { margin: 5px 0 0; display: flex; align-items: center; gap: 5px; color: #5f6b7a; font-size: 10.5px; }
.mn-m .av { width: 16px; height: 16px; font-size: .45rem; }
.mn-check {
  position: absolute; top: 7px; right: 8px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c7ced6;
  display: grid; place-items: center; font-size: 10px; color: var(--white);
}
.mn-check.is-done { background: #1a7f37; border-color: #1a7f37; }
.mn-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; }
.mn-empty { margin: 0 0 4px; color: #5f6b7a; font-size: 11.5px; }
.mn-empty u { color: #1d5fd1; text-decoration: none; }

/* Slide 2: separate mailboxes */
.silos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.silo {
  background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: 8px; min-height: 170px; box-shadow: var(--shadow);
}
.silo-who { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--ink-900); }
.silo-mail { border-left: 3px solid #0f6cbd; background: #f3f6fd; border-radius: 4px; padding: 5px 8px; font-size: .8rem; display: grid; }
.silo-mail span { color: var(--grey-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.silo-empty { flex: 1; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: var(--grey-200); border: 2px dashed var(--grey-200); border-radius: 8px; }
.silo-know { margin: auto 0 0; font-size: .8rem; font-weight: 600; color: #b3261e; }
.silo.has-thread { border-color: var(--brand-200); }
.silo.has-thread .silo-know { color: #1a7f37; }

/* Slide 3: "as discussed" */
.discuss { display: grid; gap: 14px; }
.bubble { border-radius: var(--radius); padding: 18px 20px; }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin: 0; }
.bubble-k { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.bubble-mail { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); font-size: 1.1rem; }
.bubble-q { color: #fca5a5; font-size: .95rem; font-weight: 600; }
.bubble-note { background: var(--white); color: var(--ink); border-left: 5px solid var(--brand); box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.discuss-arrow { text-align: center; font-size: 1.8rem; font-weight: 300; color: var(--brand-200); line-height: 1; }

/* Slide 4: comparison */
.cmp { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cmp-card { border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 18px 20px; background: var(--white); }
.cmp-card p { margin: 0; font-size: .95rem; color: var(--grey-600); }
.cmp-card .cmp-name { margin: 0 0 8px; font-weight: 700; font-size: 1.05rem; color: var(--ink-900); }
.cmp-us { background: var(--brand-50); border: 2px solid var(--brand); }
.cmp-us p { color: var(--ink); }
.cmp-us .cmp-name { font-size: 1.3rem; letter-spacing: -.02em; }
.cmp-us .wm-note { margin-left: 0; }

/* Slide 5: steps */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { counter-increment: step; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step h3 { font-size: 1.15rem; margin: 18px 0 6px; display: flex; align-items: center; gap: 10px; }
.step h3::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--brand-600); color: var(--white); font-size: .9rem;
}
.step p { margin: 0; color: var(--grey-600); }
.step-pic { height: 130px; border-radius: var(--radius-sm); background: var(--brand-50); display: grid; place-items: center; align-content: center; gap: 10px; padding: 12px; font-size: .8rem; }
.mini-mail { display: flex; gap: 8px; align-items: center; background: var(--white); border-radius: 8px; padding: 8px 12px; border-left: 3px solid #0f6cbd; box-shadow: var(--shadow); }
.mini-mail b, .mini-mail small { display: block; } .mini-mail small { color: var(--grey-600); }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--brand); border-radius: 6px; padding: 3px 10px; font-weight: 600; color: var(--brand-700); }
.mini-form { background: var(--white); border-radius: 8px; padding: 10px; box-shadow: var(--shadow); width: 100%; max-width: 260px; }
.mini-form p { margin: 0 0 6px; } .mini-form p:last-child { margin: 0; }
.mini-kinds { display: flex; flex-wrap: wrap; gap: 3px; }
.mini-kinds .is-sel { outline: 2px solid #1a7f37; outline-offset: 1px; }
.mini-input { border: 1px solid var(--brand-600); border-radius: 5px; padding: 3px 7px; box-shadow: 0 0 0 3px var(--brand-100); white-space: nowrap; overflow: hidden; }
.caret { display: inline-block; width: 1px; height: 1em; background: var(--ink); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.step .mini-save { display: inline-block; background: var(--brand-600); color: var(--white); border-radius: 5px; padding: 1px 12px; font-weight: 600; }
.mini-team { display: flex; align-items: center; }
.mini-team .av { width: 40px; height: 40px; font-size: .8rem; border: 3px solid var(--brand-50); margin-left: -8px; }
.mini-live { margin-left: 10px; font-weight: 700; color: #1a7f37; display: inline-flex; align-items: center; gap: 6px; }
.mini-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .25); }

/* Slide 6: two mailboxes */
.pair { display: grid; gap: 16px; align-items: center; margin-bottom: 20px; }
@media (min-width: 980px) { .pair { grid-template-columns: 1fr 90px 1fr; gap: 8px; } }
.ol-small .ol-body { min-height: 230px; }
.pair-link { display: grid; place-items: center; }
.pair-link span {
  font-size: .78rem; font-weight: 700; color: var(--brand-700); background: var(--brand-100); border-radius: 999px; padding: 4px 12px;
  white-space: nowrap; position: relative;
}
@media (min-width: 980px) {
  .pair-link { position: relative; height: 100%; }
  .pair-link::before { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; border-top: 2px dashed var(--brand); }
}

/* Slide 7: pane on its own */
.pane-solo {
  max-width: 380px; margin: 0 auto; background: #f6f8fa; border: 1px solid #dde3ea; border-radius: 12px; padding: 14px;
  box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 24px 48px rgba(15, 23, 42, .14); font-family: "Segoe UI", var(--font); font-size: 12px; text-align: left;
}
.pane-solo .mn-note { font-size: 12px; }
.pane-ctx { margin-left: auto; font-weight: 400; font-size: 11px; color: #5f6b7a; }

/* Slide 8: scenarios */
.scen { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 12px; }
.scen-card { border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 20px; background: var(--grey-50); }
.scen-card h3 { font-size: 1.1rem; margin: 6px 0 6px; }
.scen-card p { margin: 0; color: var(--grey-600); font-size: .95rem; }
.scen-card .scen-icon { font-size: 1.6rem; margin: 0; line-height: 1; }

/* Slide 9: who */
.who { display: grid; gap: 28px; margin-top: 12px; }
@media (min-width: 900px) { .who { grid-template-columns: 1fr 1fr; gap: 48px; } }
.who h3 { font-size: 1.1rem; margin-bottom: 14px; }
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.role-list li { display: flex; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-sm); padding: 10px 14px; }
.role-list .av { width: 34px; height: 34px; font-size: .85rem; }
.role-list b, .role-list small { display: block; }
.role-list small { color: var(--grey-600); font-size: .88rem; }

/* Slide 10: IT */
.it-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 8px; }
.it-card { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); border-radius: var(--radius); padding: 18px 20px; }
.it-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.it-card p { margin: 0; font-size: .95rem; color: var(--grey-200); }
.it-more { margin: 28px 0 0; }

/* Slide 11: summary */
.usp { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 12px; }
.usp-card { border-radius: var(--radius); padding: 20px; background: var(--white); border: 1px solid var(--grey-100); box-shadow: var(--shadow); border-top: 4px solid var(--brand); }
.usp-card h3 { font-size: 1.15rem; margin: 6px 0; }
.usp-card p { margin: 0; color: var(--grey-600); }
.usp-card .usp-n { margin: 0; font-size: .8rem; font-weight: 800; color: var(--brand-600); }

/* Slide 12 */
.cta-lead { margin: 0 auto 28px; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 24px; }
