/* Colours per theme come from the app's theme.json files. Plain is the Mac look. */
:root {
  --accent: #2E6E8E; --warm: #1F4A7A; --gold: #B89A5A; --cloth: #DCE7EA; --ink: #24364A;
  --grad-a: #9CC8D8; --grad-b: #1F4A7A;
  --texture: url(img/themes/hereford/parchment.png);
  --display: Luminari, "Big Caslon", Palatino, Georgia, serif;
  --body: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --paper: #F2EFE4; --wash: rgba(242,239,228,.7); --line: rgba(43,52,72,.18); --radius: 6px;
}
[data-theme="bayeux"] {
  --accent: #26545A; --warm: #A23B2E; --gold: #C09444; --cloth: #E8DDC4; --ink: #2B3448;
  --grad-a: #C09444; --grad-b: #A23B2E;
  --texture: url(img/themes/bayeux/linen.png); --paper: #F6F1E6; --wash: rgba(246,241,230,.75);
}
[data-theme="angelico"] {
  --accent: #2F5FA8; --warm: #C23C55; --gold: #D99A2B; --cloth: #FBF3E0; --ink: #4A3426;
  --grad-a: #E58C9A; --grad-b: #3F6FBF;
  --texture: url(img/themes/angelico/plaster.png); --paper: #FBF6EA; --wash: rgba(251,246,234,.7);
}
[data-theme="plain"] {
  --accent: #0A66D6; --warm: #D33A2C; --gold: #8A8A8E; --cloth: #F2F2F7; --ink: #1D1D1F;
  --grad-a: #E9E9EE; --grad-b: #D5D5DC;
  --texture: none; --paper: #FFFFFF; --wash: #fff; --line: rgba(0,0,0,.12); --radius: 10px;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 17px/1.55 var(--body);
  background: linear-gradient(var(--wash), var(--wash)), var(--texture) var(--paper);
}
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: 2rem; text-align: center; }
h3 { font-size: 1.2rem; }
code { font: .9em ui-monospace, Menlo, monospace; background: rgba(0,0,0,.06); padding: .1em .3em; border-radius: 4px; }
main, .top { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; }
.lead { font-size: 1.5rem; max-width: 60ch; }
.fine { font-size: .9rem; opacity: .75; }

/* top bar */
.top { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font: 1.35rem var(--display); color: var(--ink); text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 18px; margin-right: auto; }
.top nav a { color: var(--ink); text-decoration: none; opacity: .8; }
.top nav a:hover { opacity: 1; text-decoration: underline; }

/* theme switcher */
.switcher { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); }
.switcher-label { font-size: .8rem; opacity: .7; padding: 0 8px; }
.switcher button {
  font: .85rem var(--body); color: var(--ink); background: none; border: 0; border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
}
.switcher button:hover { background: rgba(0,0,0,.05); }
.switcher button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.centuries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 28px auto; }
.centuries button {
  font: inherit; color: var(--ink); cursor: pointer; padding: 18px 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255,255,255,.45); display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.centuries button:hover { background: rgba(255,255,255,.7); }
.centuries button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: rgba(255,255,255,.75); }
.centuries .pic { height: 96px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 10px; color: var(--accent); }
.centuries .pic img, .centuries .pic svg { max-height: 96px; max-width: 100%; width: auto; }
.centuries .pic svg { height: 44px; margin-bottom: 20px; }
.centuries b { font-family: var(--display); font-weight: 500; font-size: 1.05rem; line-height: 1.2; }
.centuries small { opacity: .7; }
.centuries button[aria-pressed="true"] small { color: var(--accent); opacity: 1; font-weight: 600; }
.centuries button[aria-pressed="true"] small::before { content: "✓ "; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 40px; align-items: center; padding-top: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; opacity: .7; margin: 0 0 12px; }
h1 { font-size: 3rem; }
h1 span { display: block; font-size: 1.6rem; margin-top: .3em; color: var(--accent); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 10px; }
.button {
  display: inline-block; padding: 11px 22px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 600; background: rgba(255,255,255,.4);
}
.button.primary { background: var(--accent); color: #fff; }
.button.buy { background: var(--warm); border-color: var(--warm); color: #fff; }
.button:hover { filter: brightness(1.08); }

/* the mock window */
.window {
  margin: 0; border-radius: 10px; overflow: hidden; font-size: 12px; line-height: 1.3;
  background: var(--cloth) var(--texture); background-blend-mode: multiply;
  box-shadow: 0 20px 50px rgba(0,0,0,.25), 0 0 0 1px rgba(0,0,0,.12);
}
.titlebar { position: relative; display: flex; align-items: center; height: 52px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow: hidden; }
.lights { display: flex; gap: 7px; z-index: 1; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #fe5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.titlebar-frieze { position: absolute; inset: 0 230px 0 70px; display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding-bottom: 4px; opacity: .85; pointer-events: none; }
.toolbar { margin-left: auto; display: flex; gap: 8px; z-index: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.5); }
.seg > * { padding: 3px 9px; }
.seg b { background: var(--accent); color: #fff; font-weight: 600; }
.search { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.6); color: #888; min-width: 90px; }
.tool { padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.5); border: 1px solid var(--line); color: var(--accent); }
.tool.wide { color: var(--ink); font-weight: 600; }
.window table { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
/* the app's columns: logo, Service, Usual sender, Inbox, Last email, Emails, Type, flag, eye + Unsubscribe */
.window col:nth-child(1) { width: 6%; } .window col:nth-child(2) { width: 15%; } .window col:nth-child(3) { width: 12%; }
.window col:nth-child(4) { width: 10%; } .window col:nth-child(5) { width: 11%; } .window col:nth-child(6) { width: 10%; }
.window col:nth-child(7) { width: 9%; } .window col:nth-child(8) { width: 4%; } .window col:nth-child(9) { width: 23%; }
.window th { text-align: left; font-weight: 600; padding: 6px 5px; border-bottom: 1px solid var(--line); font-size: 11.5px; opacity: .8; white-space: nowrap; }
.window th.sorted { font-weight: 700; opacity: 1; } .window th.sorted::after { content: " ⌄"; opacity: .6; }
.window td { padding: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window tbody tr:nth-child(even) { background: rgba(255,255,255,.28); }
/* Plain is the system look, but the app keeps the Bayeux colours for the eye, web tags, Unsubscribe and the gradient */
.window { --woad: var(--accent); --secondary: color-mix(in srgb, var(--ink) 55%, transparent); }
[data-theme="plain"] .window { --woad: #26545A; --warm: #A23B2E; --gold: #C09444; }
.window td:first-child { padding: 0 0 0 4px; }
.window .child td:first-child { padding-left: 22px; } /* macOS indents a list row inside the first column */
.chev { display: inline-block; width: 10px; font-style: normal; font-size: 14px; line-height: 1; color: var(--secondary); text-align: center; }
.chev.open { transform: rotate(90deg); }
.window tr:not(.child) td:first-child:not(:has(.chev)) { padding-left: 14px; }
.logo {
  display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; vertical-align: -3px;
  font: 700 9px/1 -apple-system, system-ui, sans-serif; color: #fff; background: linear-gradient(135deg, var(--gold), var(--warm));
}
.window td:nth-child(2) { color: var(--accent); font-weight: 600; position: relative; }
.window .child td:nth-child(2) { font-weight: 400; padding-left: 22px; }
/* the bracket around an open domain's lists, a piece per row */
.window .child td:nth-child(2)::before { content: ""; position: absolute; left: 2px; top: 0; bottom: 0; width: 6px; background: linear-gradient(135deg, var(--gold), var(--warm)); }
.window .child.first td:nth-child(2)::before { top: 2px; border-radius: 3px 3px 0 0; }
.window .child.last td:nth-child(2)::before { bottom: 2px; border-radius: 0 0 3px 3px; }
.turn { font-style: normal; font-size: 10px; color: var(--secondary); opacity: .7; margin-right: 4px; }
.window .done td:nth-child(2) { color: var(--secondary); }
.window td:nth-child(4) { color: var(--secondary); }
.window td:nth-child(5) { color: var(--secondary); font: 11px ui-monospace, Menlo, monospace; }
.count { display: inline-block; padding: 1px 7px; border-radius: 999px; font-weight: 600; font-variant-numeric: tabular-nums; }
.count.red { background: rgba(255,59,48,.3); } .count.orange { background: rgba(255,149,0,.3); }
.count.yellow { background: rgba(255,204,0,.3); } .count.green { background: rgba(52,199,89,.3); }
.chip { font-size: 10px; font-weight: 500; padding: 0 6px; border-radius: 999px; border: 1px solid color-mix(in srgb, currentColor 60%, transparent); }
.chip.web { color: var(--woad); } .chip.email { color: var(--warm); } .chip.lists { color: var(--secondary); }
.flag { color: var(--secondary); font-size: 14px; line-height: 1; } .flag.on { color: #FF9500; }
.eye {
  display: inline-block; width: 15px; height: 10px; margin-right: 8px; vertical-align: -1px; background: var(--woad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath fill-rule='evenodd' d='M12 0C6 0 1.5 4.5 0 8c1.5 3.5 6 8 12 8s10.5-4.5 12-8C22.5 4.5 18 0 12 0zm0 3a5 5 0 1 1 0 10a5 5 0 0 1 0-10zm0 2.3a2.7 2.7 0 1 0 0 5.4a2.7 2.7 0 0 0 0-5.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath fill-rule='evenodd' d='M12 0C6 0 1.5 4.5 0 8c1.5 3.5 6 8 12 8s10.5-4.5 12-8C22.5 4.5 18 0 12 0zm0 3a5 5 0 1 1 0 10a5 5 0 0 1 0-10zm0 2.3a2.7 2.7 0 1 0 0 5.4a2.7 2.7 0 0 0 0-5.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.again { color: var(--warm); font-weight: 700; }
.pill { display: inline-block; padding: 2px 7px; border-radius: 5px; background: var(--warm); color: #fff; font-size: 11px; font-weight: 600; }
.pill.gray { background: #9A9AA0; }

/* the smaller scenes: scanning, the popup, the results sheet, the servers tab */
.scenes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; padding-top: 0; }
.scene { display: flex; flex-direction: column; min-height: 300px; }
.scene .titlebar { height: 40px; }
.scene figcaption { margin-top: auto; padding: 8px 12px; font-size: .9rem; text-align: center; opacity: .8; background: rgba(255,255,255,.45); border-top: 1px solid var(--line); font-family: var(--body); }
.scene .statusbar { margin-top: 0; } .scene .splash { flex: 1; justify-content: center; }
.scene .caption { margin: 2px 0 4px; font-size: 13px; }
[data-figure]:not([src]) { display: none; }
.splash, .sheet { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 24px 20px; font-size: 13px; }
.splash img { height: 60px; } .splash .glyph { font-size: 30px; color: var(--accent); line-height: 1; }
.splash b { font-size: 16px; } .splash a { text-decoration: none; }
.bar { width: 70%; height: 6px; border-radius: 3px; background: rgba(0,0,0,.1); overflow: hidden; margin: 6px 0 2px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.sheet { margin: 14px 24px 16px; background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.sheet img { height: 40px; } .sheet .glyph { font-size: 26px; color: var(--accent); line-height: 1; }
.sheet > b { font-size: 16px; } .sheet .big { font-size: 15px; opacity: .8; } .sheet small { opacity: .7; }
.sheet .card { align-self: stretch; text-align: left; margin-top: 8px; padding: 8px 12px; border-radius: 6px; background: rgba(0,0,0,.04); }
.sheet .card b { color: var(--accent); }
.popup { margin: 18px 24px 16px; padding: 14px 16px 12px; font-size: 12.5px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.popup-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.popup-head img { height: 20px; }
.popup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.popup-grid label:nth-child(-n+2) { font-weight: 600; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.chk, .radio { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; border: 1px solid var(--line); background: #fff; border-radius: 3px; }
.radio { border-radius: 50%; }
.chk.on, .radio.on { background: var(--accent); border-color: var(--accent); }
.chk.on { box-shadow: inset 0 0 0 1.5px #fff; } .radio.on { box-shadow: inset 0 0 0 3px #fff; }
.popup-find { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.popup small { display: block; opacity: .65; margin: 6px 0 10px; }
.buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.buttons.spread { justify-content: space-between; align-self: stretch; }
.btn { padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,.7); font-weight: 600; }
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.frieze { display: flex; align-items: flex-end; justify-content: center; gap: 22px; padding: 10px 12px 6px; min-height: 0; }
.frieze:empty { display: none; }
.window .frieze { border-top: 1px solid var(--line); }
.statusbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 12px; border-top: 1px solid var(--line); font-size: 11.5px; background: rgba(255,255,255,.3); white-space: nowrap; }
.statusbar .caption { font-size: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.caption, .inscription { font-family: var(--display); letter-spacing: .08em; color: var(--warm); }
.inscription { text-align: center; margin: 48px 0 0; font-size: 1.2rem; }
.inscription small { display: block; font: .85rem var(--body); letter-spacing: 0; color: var(--ink); opacity: .65; margin-top: 4px; }
.inscription:has(span:empty) { display: none; }

/* steps and features */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step .n { font: 2.4rem var(--display); color: var(--gold); line-height: 1; display: block; margin-bottom: 8px; }
.fleuron { border: 0; text-align: center; font-size: 1.6rem; color: var(--gold); height: auto; margin: 0; }
.fleuron::before { content: attr(data-fleuron); }
[data-theme="plain"] .fleuron { height: 1px; background: var(--line); max-width: 1120px; margin: 0 auto; }
[data-theme="plain"] .fleuron::before { content: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.grid article {
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.45);
}
.grid article p { margin: 0; font-size: 1.2rem; }
.grid article:nth-of-type(even) h3 {color: var(--warm);}

/* themes section */
.themes { text-align: center; }
.themes .lead { margin: 0 auto; }
.theme-notes p { max-width: 60ch; margin: 0 auto; min-height: 3.2em; }
.themes .fine { margin-top: 18px; }

/* screenshots */
.shots .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 24px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.shots figcaption { font-size: .9rem; opacity: .75; margin-top: 8px; text-align: center; }

/* download */
.download { text-align: center; }
.download .lead, .download .cta { margin-left: auto; margin-right: auto; justify-content: center; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.2rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-family: var(--display); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > *:not(summary) { font-size: 1.2rem; }
.faq details p:last-child { margin-bottom: 0; }

footer { text-align: center; padding: 24px 16px 48px; }
footer .fine { max-width: 60ch; margin: 8px auto 0; }
.footer-frieze { opacity: .9; margin-bottom: 16px; }

@media (max-width: 1200px) {
  .window th:nth-child(4), .window td:nth-child(4), .window col:nth-child(4),
  .window th:nth-child(8), .window td:nth-child(8), .window col:nth-child(8) { display: none; }
  .tool.wide, .search { display: none; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  h1 { font-size: 2.3rem; }
  .steps, .scenes { grid-template-columns: 1fr; }
  .centuries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .window { font-size: 11px; }
  .window th:nth-child(5), .window td:nth-child(5), .window col:nth-child(5),
  .window th:nth-child(7), .window td:nth-child(7), .window col:nth-child(7) { display: none; }
  .titlebar-frieze { display: none; }
  .top nav { order: 3; width: 100%; margin: 0; }
}
@media (max-width: 480px) {
  .window th:nth-child(3), .window td:nth-child(3), .window col:nth-child(3) { display: none; }
}
