/* The home page, from the Figma frame "comc-promo-hero" (COMC-Pager-Extension, node
   23:11). Dark only, as designed. The privacy and terms pages keep legal.css.
   Fonts are self-hosted (public/home/, OFL licences beside them) so a visit sends
   nothing to a third party. */
@font-face {
  font-family: "Outfit"; src: url("/home/outfit.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Geist"; src: url("/home/geist.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
:root {
  --bg: #0e0f14; --red: #e51c24; --red-deep: #7f1014; --text: #ffffff;
  --muted: #8e939e; --faint: #606470;
  --display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 16px/1.5 var(--body); overflow-x: hidden; position: relative;
}
p { margin: 0; }

/* The two red glows, placed as in the frame: low left and high right. */
.glow { position: absolute; pointer-events: none; z-index: 0; }
.glow-left { left: -350px; top: 250px; }
.glow-right { left: calc(50% + 160px - 380px); top: -380px; }
.page { position: relative; z-index: 1; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; }

main {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 48px;
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 60px 80px;
}

.tile {
  width: 100px; height: 100px; flex: none; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(to bottom, var(--red), var(--red-deep));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--display); line-height: normal; text-align: center;
}
.tile b { font-weight: 800; font-size: 24px; }
.tile span { font-weight: 500; font-size: 16px; }

.headlines { display: flex; flex-direction: column; gap: 16px; }
h1 {
  margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.2;
  font-size: clamp(34px, 5vw, 48px);
}
h1 em { font-style: normal; color: var(--red); }
.lede { font-size: 18px; line-height: 1.5; color: var(--muted); }

.features { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; list-style: none; }
.features li { display: flex; gap: 16px; align-items: flex-start; }
.features .icon {
  width: 40px; height: 40px; flex: none; border-radius: 8px; background: rgba(229, 28, 36, .1);
  display: flex; align-items: center; justify-content: center;
}
.features .icon img { display: block; }
.features h2 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: normal; }
.features p { font-size: 14px; line-height: normal; color: var(--muted); }

.cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 16px; line-height: normal; white-space: nowrap;
  filter: drop-shadow(0 4px 6px rgba(229, 28, 36, .25)); transition: background 120ms;
}
.btn:hover { background: #f0323a; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn img { display: block; }
.support { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--faint); }
/* The supported browsers as small round logo chips. Their names are the images' alt
   text, and a tooltip on hover where there is one; touch screens get no tooltip. */
.browsers { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.browsers li {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center;
}
.browsers img { display: block; }
@media (hover: hover) {
  .browsers li::after {
    content: attr(data-name); position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%); padding: 5px 8px; border-radius: 6px; white-space: nowrap;
    background: #1c1d24; color: var(--text); font-size: 12px; line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .5); pointer-events: none;
    opacity: 0; transition: opacity 110ms ease 150ms;
  }
  .browsers li:hover::after { opacity: 1; }
}

/* Not in the frame: the legal links and the not-affiliated line every page carries. */
footer {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 80px 40px;
  font-size: 13px; color: var(--faint);
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (max-width: 700px) {
  main { padding: 56px 28px; gap: 36px; }
  footer { padding: 0 28px 40px; }
  .tile { width: 72px; height: 72px; border-radius: 10px; }
  .tile b { font-size: 18px; }
  .tile span { font-size: 12px; }
  .lede { font-size: 16px; }
  .glow-right { left: auto; right: -600px; }
}
