/* Compare page: Email Security vs Browser Security.
   A text header beside the A5 animation on a dark page, then the article on a white sheet
   over the painted hills. Set in Geist at the light end: a 200-weight display with the
   second line at 600, light 300 section heads, violet 600 panel titles, airy 1.7 body.
   Loads after shared.css, home.css and page.css. */

html { scroll-snap-type: none !important; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.page-compare { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-size: 18px; line-height: 1.6; }
.page-compare .nav .logo { visibility: visible; }
main { overflow-x: clip; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[id] { scroll-margin-top: calc(var(--nav-h) + var(--bar-h, 0px) + 40px); }
.page-compare b, .page-compare strong { font-weight: 600; }

/* The header animation (A5), mounted by anim/runtime.js on [data-anim] */
.ea-anim { position: relative; aspect-ratio: 1000 / 611; overflow: hidden; background: #070212; }
.ea-anim > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Figures */
.fig { margin: 0; }
.fig img { display: block; width: 100%; height: auto; }

/* The comparison table: mechanics. Under 680px of its own width each row becomes a card. */
.tw { container: tw / inline-size; }
table.alt { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.alt th, .alt td { text-align: left; vertical-align: middle; }
.alt .c { text-align: center; }
.alt .w-v { width: 23%; } .alt .w-d { width: 14%; } .alt .w-c { width: 11%; } .alt .w-b { width: 30%; }
.yn { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
@container tw (max-width: 680px) {
  table.alt, .alt tbody, .alt tr, .alt td, .alt tbody th { display: block; }
  .alt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .alt tbody { display: grid; gap: 12px; }
  .alt tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; }
  .alt tbody th, .alt tbody td { padding: 0 !important; height: auto !important; background: none !important; border-radius: 0 !important; }
  .alt tbody th { grid-column: 1 / -1; }
  .alt .dep, .alt .best { grid-column: 1 / -1; }
  .alt .dep::before { content: attr(data-label) " "; font-weight: 600; }
  .alt .best::before { content: attr(data-label) " "; font-weight: 600; }
  .alt .c { display: grid; justify-items: start; gap: 8px; text-align: left; }
  .alt .c::before { content: attr(data-label); font-weight: 600; white-space: nowrap; }
}

/* Lists */
.ls { list-style: none; margin: 0; padding: 0; }

/* The phone contents bar: current section, progress, and the list on demand.
   Hidden until the reader reaches the first section. */
.mbar { display: none; }
@media (max-width: 1099px) {
  .mbar { --pad: 20px; display: block; position: fixed; z-index: 95; left: 0; right: 0; top: var(--nav-h); transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform 0.25s ease, opacity 0.2s ease; }
  html.is-reading .mbar { transform: none; opacity: 1; pointer-events: auto; }
  .mbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 var(--pad); }
  .mbar-cur { min-width: 0; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
  .mbar-btn { flex: none; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 16px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; cursor: pointer; }
  .mbar-prog { height: 3px; }
  .mbar-prog i { display: block; height: 100%; width: calc(var(--read, 0) * 100%); transition: width 0.15s linear; }
  .mbar-list { padding: 8px var(--pad) 20px; max-height: calc(100svh - var(--nav-h) - 80px); overflow: auto; }
  .mbar-list ol { list-style: none; margin: 0; padding: 0; }
  .mbar-list a { display: grid; grid-template-columns: 10px minmax(0, 1fr); column-gap: 16px; align-items: baseline; padding: 10px 0; font-size: 17px; font-weight: 500; line-height: 1.4; }
  .mbar-list a i { width: 10px; height: 10px; border-radius: 50%; transform: translateY(-1px); }
  .mbar-list a.on { font-weight: 650; }
}

/* ---------- Tokens ---------- */
.page-compare { --ink: #111114; --violet: #8742c6; --glow: #d78dec; --plum: #240c46;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --gap: var(--s7); --pad: 96px; --col: 704px; --lap: 48px;
  --desk: url(/images/brand/hills-tall.jpg); --desk-pos: center 65%; --wash: #f4f0fa;
  --hf: "Geist", sans-serif; --hw: 600; --hst: normal;
  color: var(--ink); background: #e8def4; }
.page-compare main { position: relative; isolation: isolate; }

/* ---------- Header: text page left, the animation on a dark page right ---------- */
.e-head { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 560px; margin-top: var(--nav-h); background: #fcfbfe; }
.e-text { position: relative; display: grid; align-content: center; padding: var(--s6) var(--s7) calc(var(--s6) + var(--lap)) max(var(--s6), calc((100vw - 1312px) / 2)); }
.e-art { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; padding: var(--s5) var(--s6) calc(var(--s5) + var(--lap)); background: #12062a; }
.e-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/images/brand/signal.jpg) center 70% / cover no-repeat; opacity: 0.5; }
.e-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, rgba(5, 1, 9, 0.2), rgba(5, 1, 9, 0.78)); }
.e-anim { width: 100%; max-width: 580px; }
.e-anim .ea-anim { border-radius: 10px; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(215, 141, 236, 0.22); }

/* ---------- The desk and the sheet ---------- */
.e-deskart { position: fixed; inset: 0; z-index: -1; background: var(--desk) var(--desk-pos) / cover no-repeat, #e8def4; }
.e-deskart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(240, 233, 249, 0.1), rgba(240, 233, 249, 0.35)); }
.e-desk { position: relative; z-index: 1; padding: 0 0 var(--s7); }
.paper { position: relative; max-width: 1216px; margin: calc(-1 * var(--lap)) auto 0; background: #fff; border-radius: 6px;
  box-shadow: 0 1px 2px rgba(36, 12, 70, 0.06), 0 12px 32px -12px rgba(36, 12, 70, 0.18), 0 60px 120px -40px rgba(36, 12, 70, 0.42); }
.p-body { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s6); padding: var(--s6) var(--pad) var(--s7); }
.p-main { min-width: 0; max-width: var(--col); justify-self: center; width: 100%; }
.p-mtoc { display: none; }

/* ---------- Spacing rules: one scale, equal section gaps ---------- */
.sec + .sec { margin-top: var(--gap); }
.sh { margin: 0 0 var(--s3); }
.sh h2 { margin: 0; text-wrap: balance; }
.flow > * { margin: 0; }
.flow > * + * { margin-top: var(--s3); }
.flow > .pnl, .flow > .pnl + *, .flow > .fig, .flow > .fig + *, .flow > .tw, .flow > .tw + *, .flow > .pq, .flow > .pq + * { margin-top: var(--s5); }
.flow > :first-child { margin-top: 0; }
.flow a, .src a { color: inherit; text-decoration: underline; text-decoration-color: rgba(135, 66, 198, 0.5); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color 0.15s ease, text-decoration-color 0.15s ease; }
.flow a:hover, .src a:hover { color: var(--violet); text-decoration-color: var(--violet); }

/* Figures: dark plates bleed to the paper's right edge */
.fig { margin-right: calc(-1 * var(--pad)); }
.fig img { border-radius: 6px 0 0 6px; }
.fig figcaption { margin-top: var(--s2); padding-right: var(--pad); }

/* Panels: a wash whose text keeps the column's left edge */
.pnl { margin: 0 calc(-1 * var(--s4)) 0 calc(-1 * var(--s5)); padding: var(--s4) var(--s4) var(--s4) var(--s5); border-radius: 10px; background: var(--wash); }
.pnl > * { margin: 0; }
.pnl > * + * { margin-top: var(--s2); }
.pnl .ls { display: grid; gap: var(--s3); margin-top: var(--s3); }
.today-l { display: grid; gap: var(--s3); }
/* List marks hang in the margin so the text edge holds */
.ben-l > li, .tips-l > li, .trend-l > li, .today-l > li { position: relative; }
.ben-l > li::before, .tips-l > li::before, .trend-l > li::before, .today-l > li::before { content: ""; position: absolute; }

/* Table */
.tbl { margin-left: calc(-1 * var(--s2)); margin-right: calc(var(--s4) - var(--pad)); }
.tbl thead th { height: 48px; padding: 0 var(--s2); white-space: nowrap; }
.tbl thead th:first-child { border-radius: 8px 0 0 8px; } .tbl thead th:last-child { border-radius: 0 8px 8px 0; }
.tbl thead th.c, .tbl td.c { padding-inline: 4px; }
.tbl tbody th, .tbl tbody td { height: 72px; padding: var(--s2); }
.tbl tbody tr > :first-child { border-radius: 8px 0 0 8px; } .tbl tbody tr > :last-child { border-radius: 0 8px 8px 0; }

/* Sources */
.src-grid { display: grid; gap: var(--s5); }
.src-g > * { margin: 0; }
.src-g ul { display: grid; gap: var(--s1); margin-top: var(--s2); }
.src a { text-decoration-color: rgba(17, 17, 20, 0.25); text-decoration-thickness: 1px; }

.p-toc-h { margin: 0 0 var(--s2); }

/* Closing band sits on the desk */
.page-compare .q-cta.section { padding-top: 0; background: transparent; position: relative; z-index: 1; }

/* Phone contents bar */
.mbar { background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 30px -20px rgba(36, 12, 70, 0.5); }
.mbar-prog { background: #ece4f6; } .mbar-prog i { background: linear-gradient(90deg, var(--violet), var(--glow)); }
.mbar-btn:hover, .mbar-list a:hover { color: var(--violet); }
.mbar-list a i { background: #ece4f6; } .mbar-list a.read i { background: var(--violet); } .mbar-list a.on i { background: var(--glow); box-shadow: 0 0 10px rgba(215, 141, 236, 0.9); }

@media (max-width: 1099px) {
  .page-compare { --pad: 48px; --lap: 32px; }
  .e-head { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .e-art { order: -1; padding: var(--s5); }
  .e-text { padding: var(--s5) 48px calc(var(--s5) + var(--lap)); }
  .paper { margin-inline: 24px; }
  .p-body { grid-template-columns: minmax(0, 1fr); padding-top: var(--s5); }
  .p-main { max-width: none; }
  .p-mtoc { display: block; margin-top: var(--s5); }
}
@media (max-width: 640px) {
  .page-compare { --pad: 20px; --gap: var(--s6); --lap: 24px; }
  .e-art { padding: var(--s3) 20px; }
  .e-text { padding: var(--s4) 20px calc(var(--s4) + var(--lap)); }
  .paper { margin-inline: 10px; }
  .p-body { padding: var(--s4) var(--pad) var(--s6); }
  .pnl { margin-inline: -12px; padding: 20px 12px; }
  .pnl-ben, .pnl-tips, .pnl-trend { margin-left: -12px; padding-left: 12px; }
  .ben-l, .tips-l, .trend-l, .today-l { padding-left: 24px; }
  .fig { margin-inline: calc(-1 * var(--pad)); }
  .fig img { border-radius: 0; }
  .fig figcaption { padding-inline: var(--pad); }
  .tbl { margin-inline: 0; }
  .tbl tbody tr { padding: 20px; border-radius: 10px; background: var(--wash) !important; }
}

/* ---------- TLDR: a button under the date, opening the summary inline ---------- */
.tldr { margin-top: var(--s4); }
.tldr-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.tldr-p[data-open="true"] { grid-template-rows: 1fr; }
.tldr-clip { min-height: 0; overflow: hidden; }
.tldr-clip p { max-width: 27em; margin: 0; padding-top: var(--s3); font-size: 20px; font-weight: 400; line-height: 1.5; letter-spacing: -0.01em; opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.3s ease; }
.tldr-p[data-open="true"] .tldr-clip p { opacity: 1; transform: none; }

/* ---------- The question leads every contents list ---------- */
.toc-q { margin: 0 0 var(--s2); font-size: 17px; font-weight: 500; line-height: 1.45; letter-spacing: -0.008em; color: var(--ink); }
.p-toc-h { font-family: var(--hf); font-stretch: var(--hst); }

/* Contents list rows: a dot, filled once read, lit for the current section */
.c5-list a, .m-list a { display: grid; grid-template-columns: 8px minmax(0, 1fr); column-gap: 14px; align-items: baseline; padding: 6px 0; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); transition: color 0.15s ease; }
.c5-list a i, .m-list a i { width: 8px; height: 8px; border-radius: 50%; background: #ddd0ef; transform: translateY(-1px); transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.c5-list a:hover, .m-list a:hover { color: var(--violet); }
.c5-list a.read i, .m-list a.read i { background: var(--violet); }
.c5-list a.on, .m-list a.on { font-weight: 700; }
.c5-list a.on i, .m-list a.on i { background: var(--glow); box-shadow: 0 0 10px rgba(215, 141, 236, 0.9); }

/* The full contents after the opening, on phones and tablets */
.p-mtoc .p-toc-h { margin: 0 0 var(--s2); font-size: 18px; font-weight: var(--hw); letter-spacing: -0.015em; }
.mbar-list .toc-q { margin: 8px 0 8px; }
@media (max-width: 1099px) {
  .p-mtoc { display: block; margin-top: var(--s5); }
}

/* ---------- The opening: a lead paragraph, opened by a glow rule, its first words heavier ---------- */
.lead-in { font-weight: inherit; }
.intro-card::before { content: ""; display: block; width: 56px; height: 4px; margin-bottom: var(--s3); border-radius: 2px; background: linear-gradient(90deg, var(--violet), var(--glow)); box-shadow: 0 0 14px rgba(215, 141, 236, 0.8); }
.lede { font-size: 22px; line-height: 1.5; letter-spacing: -0.012em; }
.lead-in { font-family: var(--hf); font-stretch: var(--hst); font-weight: var(--hw); color: var(--plum); }
@media (max-width: 640px) {
  .lede { font-size: 20px; }
}

/* ---------- Guide map: at top right, the page's sections as bars sized to their length, the view framed ---------- */
.tc9 { display: none; }
.pv { position: absolute; pointer-events: none; }
@media (min-width: 1100px) {
  .tc9 { display: block; position: fixed; z-index: 90; top: calc(var(--nav-h) + var(--s4)); right: max(24px, calc((100vw - 1216px) / 2 + var(--s4))); width: 64px; height: 240px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 20px 40px -24px rgba(36, 12, 70, 0.55), 0 0 0 1px rgba(135, 66, 198, 0.1); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
  html.is-reading .tc9 { opacity: 1; pointer-events: auto; }
}
.tc9-map { position: relative; height: 100%; }
.tc9-map a { position: absolute; left: 0; right: 0; top: calc(var(--p0, 0) * 100%); height: calc(var(--p1, 0) * 100% - 3px); border-radius: 3px; background: #ece4f6; transition: background-color 0.2s ease; }
.tc9-map a:hover { background: #d7c5f0; }
.tc9-map a.read { background: #b99be6; }
.tc9-map a.on { background: linear-gradient(180deg, var(--violet), var(--glow)); box-shadow: 0 0 12px rgba(215, 141, 236, 0.8); }
.tc9-map .pv { left: -5px; right: -5px; top: calc(var(--v0, 0) * 100%); height: calc(var(--v1, 0) * 100%); border-radius: 5px; box-shadow: 0 0 0 2px var(--violet); }
.tc9-cur { position: absolute; right: -10px; top: calc(100% + 22px); width: max-content; max-width: 200px; margin: 0; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 12px 30px -16px rgba(36, 12, 70, 0.55); font-family: var(--hf); font-stretch: var(--hst); font-size: 16px; font-weight: var(--hw); line-height: 1.35; text-align: right; transition: opacity 0.2s ease; }
.tc9-panel { position: absolute; right: calc(100% + 12px); top: 0; width: 340px; padding: var(--s3); border-radius: 14px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 30px 60px -30px rgba(36, 12, 70, 0.6), 0 0 0 1px rgba(135, 66, 198, 0.1); opacity: 0; visibility: hidden; transform: translateX(8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.tc9:hover .tc9-panel, .tc9:focus-within .tc9-panel { opacity: 1; visibility: visible; transform: none; }
.tc9:hover .tc9-cur, .tc9:focus-within .tc9-cur { opacity: 0; }

/* The map steps aside while the article passes under it (page.js sets the classes) */
@media (min-width: 1100px) {
  .tc9 { transition: opacity 0.3s ease, transform 0.3s ease; }
  html.is-reading .tc9.is-aside { opacity: 0; transform: translateX(16px); pointer-events: none; }
  .tc9.cur-aside .tc9-cur { opacity: 0; }
}

/* ---------- The TLDR button: a ring pulses out from its edge, and bursts as the summary opens ---------- */
.tldr { position: relative; z-index: 4; }
.tldr-btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-width: 116px; min-height: 50px; padding: 0 30px; border: 0; border-radius: 12px; color: #fff; background: var(--violet); font: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0.1em; line-height: 1; cursor: pointer; user-select: none; box-shadow: 0 12px 26px -12px rgba(135, 66, 198, 0.85); transition: transform 0.15s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease; }
.tldr-btn:hover { transform: translateY(-2px); background: #9654d6; }
.tldr-btn:active { transform: translateY(1px) scale(0.97); transition-duration: 0.05s; }
.tldr-btn[aria-expanded="true"] { background: #5f2797; box-shadow: inset 0 2px 8px rgba(20, 5, 40, 0.45); }
.tldr-btn:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; }
.tldr-btn .tb { position: relative; z-index: 2; }
.fx { position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; }
.fx::before, .fx::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: 0 0 0 2px var(--glow); opacity: 0; }
@keyframes tl-ring { 0% { inset: 0; border-radius: 12px; opacity: 0.85; } 70%, 100% { inset: -16px; border-radius: 26px; opacity: 0; } }
@keyframes tl-ringburst { 0% { inset: 0; border-radius: 12px; opacity: 1; box-shadow: 0 0 0 3px var(--glow), 0 0 24px rgba(215, 141, 236, 0.8); } 100% { inset: -34px; border-radius: 44px; opacity: 0; box-shadow: 0 0 0 1px var(--glow), 0 0 24px rgba(215, 141, 236, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .tldr-btn[aria-expanded="false"] .fx::before { animation: tl-ring 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
  .tldr-btn[aria-expanded="false"]:hover .fx::before { animation-duration: 1.3s; }
  .tldr-btn.is-burst .fx::after { animation: tl-ringburst 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) 1 both; }
}

/* ---------- Type ---------- */
.e-title { margin: 0; font-size: clamp(42px, 4.6vw, 68px); font-weight: 200; line-height: 1.0; letter-spacing: -0.045em; }
.e-title .t1, .e-title .t2 { display: block; }
.e-title .t2 { font-weight: 600; letter-spacing: -0.05em; }
.e-title .vs { color: var(--violet); }
.e-date { margin: var(--s4) 0 0; font-size: 16px; font-weight: 500; color: var(--violet); }

.p-main { font-size: 18px; line-height: 1.7; }
.sh h2 { font-size: clamp(28px, 2.3vw, 33px); font-weight: 300; line-height: 1.1; letter-spacing: -0.04em; }
.pnl > h3 { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; color: var(--violet); }
.pnl-lead { font-size: 24px; font-weight: 300; line-height: 1.3; letter-spacing: -0.03em; }
.p-main li b, .pnl-tips b { font-weight: 600; }

/* Marks: a small violet diamond */
.ben-l > li::before, .tips-l > li::before, .trend-l > li::before, .today-l > li::before { right: calc(100% + 16px); top: calc((1lh - 8px) / 2); width: 8px; height: 8px; border-radius: 1.5px; background: linear-gradient(135deg, var(--glow), var(--violet)); transform: rotate(45deg); }

/* Pull quote: light and large, the opening mark hung outside the column */
.pq { position: relative; }
.pq p { margin: 0; max-width: 19em; font-size: clamp(28px, 2.4vw, 34px); font-weight: 200; line-height: 1.18; letter-spacing: -0.04em; color: var(--plum); text-wrap: balance; }
.pq::before { content: "\201C"; position: absolute; right: calc(100% + 6px); top: -0.12em; font-size: clamp(60px, 5vw, 76px); font-weight: 200; line-height: 1; color: var(--violet); }

.fig figcaption { font-size: 16px; font-weight: 400; line-height: 1.45; color: var(--violet); }
.tbl .alt { font-size: 16px; line-height: 1.45; }
.tbl thead th { font-size: 15px; font-weight: 500; color: var(--violet); background: var(--wash); }
.tbl tbody th { font-weight: 600; }
.tbl tbody tr:nth-child(even) > * { background: #fbf9fd; }
.tbl .yn.y { width: 9px; height: 9px; border-radius: 1.5px; transform: rotate(45deg); background: var(--violet); }
.tbl .yn.n { width: 9px; height: 9px; border-radius: 1.5px; transform: rotate(45deg); box-shadow: inset 0 0 0 1.5px #b9a0dd; }

.p-toc-h { font-size: 20px; font-weight: 300; letter-spacing: -0.03em; }
.src-g h3 { font-size: 20px; font-weight: 300; letter-spacing: -0.025em; }
.src-g li { font-size: 17px; line-height: 1.5; }
.mbar-cur { font-weight: 600; }
