/* Port Explorer site — page layout and the popup demo, on Ease tokens (ease.css). No colors or fonts of its own. */

/* layout */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--s-6); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-5) 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 30px; font: var(--t-heading); color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.nav-links a { display: inline-flex; align-items: center; min-height: 24px; font: var(--t-secondary); color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

.hero { padding: var(--s-14) 0 var(--s-10); text-align: center; }
.hero h1 { margin: var(--s-4) auto var(--s-5); }
h1 em { font-style: normal; color: var(--lilac-txt); }
.lede { max-width: 640px; margin: 0 auto; font: 400 19px/1.5 var(--font); color: var(--ink-2); }
.hero .ease-btn, .get .ease-btn { margin-top: var(--s-8); padding: 12px 22px; font-size: 15px; flex-wrap: wrap; justify-content: center; text-align: center; }
.ease-btn small { font: inherit; font-weight: 400; color: inherit; opacity: 0.75; white-space: nowrap; }
.sub { margin-top: var(--s-3); font: var(--t-secondary); color: var(--ink-3); }
.sub + .sub { margin-top: var(--s-1); }
kbd { display: inline-block; margin: 0 1px; padding: 1px 6px; border: 1px solid var(--hair-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--card-2); font: 500 12px/1.4 var(--mono); color: var(--ink); }

.sect { padding: var(--s-14) 0 0; }
.sect .ease-card { padding: var(--s-8) var(--s-10); }
.sect h2 { font: 600 clamp(26px, 3.4vw, 34px)/1.12 var(--font); letter-spacing: -0.02em; }
h2 .quiet { color: var(--ink-3); font-weight: 500; }
.sect .ease-card > p { color: var(--ink-2); font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.ease-tile h3 { margin-bottom: var(--s-1); }
.ease-tile p { margin: 0; font: var(--t-secondary); color: var(--ink-2); }
.ease-tile code { background: var(--card); }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: var(--s-6) 0 0; display: grid; gap: var(--s-4); }
ol.steps li { position: relative; padding-left: 42px; }
ol.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lilac-tint); color: var(--lilac-txt); font: 600 12px/1 var(--font); }
ol.steps h3 { margin-bottom: 2px; }
ol.steps p { margin: 0; color: var(--ink-2); }
.bolt { display: inline-flex; vertical-align: -2px; color: var(--lilac-txt); }

.faq details { border-top: 1px solid var(--hair); padding: var(--s-4) 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s-4); min-height: 24px; cursor: pointer; list-style: none; font: var(--t-heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); }
pre { margin: var(--s-3) 0 0; padding: var(--s-3) var(--s-4); overflow-x: auto; border: 1px solid var(--hair); border-radius: var(--r-row); background: var(--paper); font: 400 12px/1.6 var(--mono); color: var(--ink); }
pre code { padding: 0; background: transparent; font-size: inherit; }

.get { text-align: center; padding: 72px 0 var(--s-8); }
.get h2 { font: 600 46px/1.1 var(--font); letter-spacing: -0.02em; }
.get .lede { font: var(--t-body); }
.footer { text-align: center; padding: var(--s-8) 0 var(--s-14); font: var(--t-secondary); color: var(--ink-3); }
.footer p { margin: var(--s-1) auto; max-width: none; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }

/* the demo: a menu bar with the bolt, and the popup anchored under it */
.demo { margin: var(--s-14) auto 0; max-width: 900px; }
.screen { position: relative; min-height: 440px; padding: 40px 56px 28px 16px; overflow: hidden; border-radius: var(--r-window); border: 1px solid var(--hair); background: linear-gradient(135deg, var(--wall-1), var(--wall-3)); box-shadow: var(--shadow-card); text-align: left; }
.menubar { position: absolute; inset: 0 0 auto 0; height: 28px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-4); background: color-mix(in srgb, var(--card) 60%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); font: var(--t-secondary); color: var(--ink-2); }
.mb-left, .mb-right { display: flex; align-items: center; gap: 14px; }
.mb-item { font-weight: 600; color: var(--ink); }
.apple { width: 11px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z'/></svg>") no-repeat center / contain; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z'/></svg>") no-repeat center / contain; }
.tray { display: inline-flex; color: var(--lilac-txt); }
.battery { position: relative; width: 22px; height: 10px; border: 1.2px solid currentColor; border-radius: 2px; }
.battery::before { content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }
.battery::after { content: ""; position: absolute; left: 1px; top: 1px; width: 16px; height: 6px; background: currentColor; border-radius: 1px; }
.wifi { width: 14px; height: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 11.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm-3.5-2.8a4.5 4.5 0 0 1 7 0 .75.75 0 1 1-1.12 1 3 3 0 0 0-4.76 0 .75.75 0 0 1-1.12-1zM2 5.7a8 8 0 0 1 12 0 .75.75 0 1 1-1.1 1.02 6.5 6.5 0 0 0-9.8 0A.75.75 0 0 1 2 5.7z'/></svg>") no-repeat center / contain; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 11.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2zm-3.5-2.8a4.5 4.5 0 0 1 7 0 .75.75 0 1 1-1.12 1 3 3 0 0 0-4.76 0 .75.75 0 0 1-1.12-1zM2 5.7a8 8 0 0 1 12 0 .75.75 0 1 1-1.1 1.02 6.5 6.5 0 0 0-9.8 0A.75.75 0 0 1 2 5.7z'/></svg>") no-repeat center / contain; }
.time { font-variant-numeric: tabular-nums; color: var(--ink); }

.popout { position: relative; width: min(440px, 100%); margin: 0 0 0 auto; padding: var(--s-3); background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.popout::before { content: ""; position: absolute; top: -7px; right: 28px; width: 12px; height: 12px; background: var(--card); border-left: 1px solid var(--hair); border-top: 1px solid var(--hair); transform: rotate(45deg); }
.search { display: flex; align-items: center; gap: var(--s-2); padding: 7px 10px; border-radius: var(--r-control); background: var(--paper); font: var(--t-secondary); color: var(--ink-3); }
.search .kbdg { margin-left: auto; padding: 2px 5px; border: 1px solid var(--hair); border-radius: 4px; font: 500 11px/1.2 var(--mono); }
.popout-stats { display: flex; gap: 6px; padding: 6px 4px 8px; font: 400 12px/1.4 var(--mono); color: var(--ink-3); }
.popout-rows { display: flex; flex-direction: column; gap: 2px; min-height: 236px; }
.popout-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: var(--s-3); padding: 8px; border-radius: var(--r-control); transition: background var(--d-micro) var(--ease), opacity 400ms var(--ease), transform 400ms var(--ease); }
.popout-row.is-hover { background: var(--paper); }
.pport { font: 600 13px/1 var(--mono); color: var(--lilac-txt); font-variant-numeric: tabular-nums; }
.pcmd { font: var(--t-heading); font-size: 13px; }
.psub { margin-top: 2px; font: 400 12px/1.3 var(--mono); color: var(--ink-3); }
.pkill { min-height: 24px; padding: 3px 8px; border: 0; border-radius: 5px; background: transparent; font: var(--t-secondary); font-weight: 500; color: var(--rose-txt); opacity: 0; transition: opacity var(--d-micro) var(--ease); }
.popout-row.is-hover .pkill { opacity: 1; }
.pkill.killed { color: var(--mint-txt); opacity: 1; }
.popout-row.removing { opacity: 0; transform: translateX(12px); }
.popout-foot { margin-top: var(--s-2); padding-top: var(--s-2); border-top: 1px solid var(--hair); text-align: center; font: var(--t-secondary); color: var(--ink-3); }
.caption { margin-top: var(--s-4); text-align: center; font: var(--t-secondary); color: var(--ink-3); }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .sect .ease-card { padding: var(--s-6) var(--s-5); }
  .screen { padding: 40px 12px 20px; }
  .popout::before { right: 16px; }
  .mb-left span:not(.apple):not(.mb-item), .battery, .wifi { display: none; }
}
