/* =====================================================================================================================
   Dummy Metrics site: shared styles for index.html, pricing.html and login.html.
   LAYOUT = the user's reference cloudflare.com (header and accent panels 1480px, column 1200px, 56px hero headline),
   then made 15% wider at the user's request (15:15, "a little too thin"): panels 1700px, column 1380px.
   BOXES = Cloudflare's container system, read off its computed CSS (user, 15:00: "one area's container is a little more
   lit up, dots and dashes, barely noticeable dot patterns, nice cubes, lighter outlines"):
     - a 12px dot field (0.75px dots at 12.5%) shows in the gutters beside the content column, which is solid page colour
     - 16px-on/16px-off dashed rails down the column and dashed lines across the whole screen at section edges,
       with 14px rounded "cube" nodes (well fill + hairline) where they cross
     - LIT WELLS: one step lighter than the page + a 12.5% hairline + a faint inner top-left highlight, holding DARKER
       page-colour cards that carry their own hairline (8px radius)
     - dashed shells (dashed outer edge, lit) around solid inner cards; dashed 4px info boxes; accent-tinted dashed boxes
     - dashed icon cubes; on accent panels: white/5 cubes with white/70 dashed edges and a white/10 selection square
       with 8px corner nodes
   COLOURS = the dashboard's Roblox dark theme: page #121215, lit #18191d, cards #191a1f / #202227 / #272930,
   text #f7f7f8 / #bcbec8, accent Roblox blue #335fff, success #39c582. Hairlines are a cool white at 12.5%.
   Font = Builder Sans (the dashboard's). Pills for actions, sentence case, medium weights, tight tracking.
   ================================================================================================================== */
@font-face { font-family: "Builder Sans"; font-weight: 400; font-display: swap; src: url(../fonts/builder-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Builder Sans"; font-weight: 500; font-display: swap; src: url(../fonts/builder-sans-500.woff2) format("woff2"); }
@font-face { font-family: "Builder Sans"; font-weight: 600; font-display: swap; src: url(../fonts/builder-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Builder Sans"; font-weight: 700; font-display: swap; src: url(../fonts/builder-sans-700.woff2) format("woff2"); }
:root {
  --bg: #121215; --lit: #18191d; --s1: #191a1f; --s2: #202227; --s3: #272930;
  --text: #f7f7f8; --text-2: #d5d7dd; --muted: #bcbec8; --dim: #8b8e97;
  --blue: #335fff; --blue-2: #4a71ff; --glow: #9db6ff; --green: #39c582; --amber: #e0a63a;
  --hair: rgba(222, 228, 255, .125); --hair-2: rgba(222, 228, 255, .2); --dot: rgba(222, 228, 255, .14);
  --a-tint: rgba(51, 95, 255, .07); --a-edge: rgba(122, 152, 255, .55);
  --stack: inset 1px 6px 16px rgba(255, 255, 255, .05), 0 4px 12px rgba(0, 0, 0, .02), 0 2px 12px rgba(0, 0, 0, .03);
  /* guide lines: 1.5px, 16 on / 16 off, a step brighter than the dots (user: "a little thicker and brighter") */
  --guide: rgba(222, 228, 255, .24);
  --dash-v: linear-gradient(var(--guide) 50%, transparent 50%) 0 0 / 1.5px 32px;
  --dash-h: linear-gradient(90deg, var(--guide) 50%, transparent 50%) 0 0 / 32px 1.5px;
  --font: "Builder Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; --mono: ui-monospace, "SF Mono", Consolas, monospace;
  --max: 1700px; --col: 1380px; --pad: clamp(16px, 2.4vw, 32px); --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text-2); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { position: relative; margin: 0; overflow-x: hidden; }
/* the dot field: exactly as wide as the panels, behind everything, with a dashed rail down each outer edge in line
   with the panels' sides; the column and the panels cover the middle, so dots and rails show in the gutters */
body::before { content: ''; position: absolute; top: 72px; bottom: 0; left: 50%; z-index: -1; width: min(100% - 16px, var(--max)); transform: translateX(-50%); background: linear-gradient(var(--guide) 50%, transparent 50%) 0 0 / 1.5px 32px repeat-y, linear-gradient(var(--guide) 50%, transparent 50%) 100% 0 / 1.5px 32px repeat-y, radial-gradient(circle at 6px 6px, var(--dot) .75px, transparent 1.25px) 0 0 / 12px 12px; pointer-events: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(51, 95, 255, .45); color: #fff; }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
.sub { color: var(--muted); }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font: 600 15px var(--font); white-space: nowrap; cursor: pointer; user-select: none; transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease); }
.pill-blue { background: var(--blue); color: #fff; box-shadow: var(--stack); }
.pill-blue:hover { background: var(--blue-2); }
.pill-line { background: transparent; color: var(--text); border-color: var(--hair-2); }
.pill-line:hover { background: rgba(222, 228, 255, .06); border-color: rgba(222, 228, 255, .3); }
.pill-white { height: 52px; padding: 0 26px; background: #fff; color: #121215; font-size: 16px; }
.pill-white:hover { background: #e9edff; }
.pill svg { width: 18px; height: 18px; fill: currentColor; }

/* top bar, Cloudflare's (measured; user 15:41 "too small height wise", "what is with these ugly lines"): 72px tall,
   the page colour, NO line under it; 16px medium near-white links in the middle; 38px pills on the right with one
   faint solid edge. Scrolled (site.js): no background; the middle links and the secondary pill slide up out of view;
   the logo and the main pill stay, floating over the page. */
.hdr { --hh: 72px; position: sticky; top: 0; z-index: 20; background: var(--bg); transition: background .25s var(--ease); }
.hdr-in { position: relative; display: flex; align-items: center; gap: 16px; width: min(100% - 2 * var(--pad), var(--max)); height: var(--hh); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--text); user-select: none; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo b { font: 700 19px/1 var(--font); letter-spacing: -.015em; }
.hdr nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.hdr nav a { padding: 7px 13px; border-radius: 6px; font: 500 16px var(--font); color: var(--text); }
.hdr nav a:hover { background: rgba(222, 228, 255, .07); }
.hdr nav a[aria-current="page"] { background: rgba(222, 228, 255, .09); }
.hdr .end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hdr .end .login { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; font: 500 16px var(--font); color: var(--text); }
.hdr .end .login:hover { background: rgba(222, 228, 255, .07); }
.hdr .pill { height: 38px; padding: 0 16px; font-size: 16px; font-weight: 500; }
.hdr nav, .hdr .end .login { transition: transform .45s cubic-bezier(.19, 1, .22, 1), opacity .2s var(--ease), background .16s var(--ease); }
.hdr.scrolled { background: transparent; }
.hdr.scrolled nav { transform: translate(-50%, -72px); opacity: 0; pointer-events: none; }
.hdr.scrolled .end .login { transform: translateY(-72px); opacity: 0; pointer-events: none; }
.page-auth .hdr.scrolled .end .login { transform: none; opacity: 1; pointer-events: auto; }

/* accent panel (hero / closing): capped like Cloudflare's, 8px from the edges below that; a fine even dot texture
   and a light rising from the bottom, like their hero poster; a faint inner highlight on the top-left edge */
.panel { position: relative; overflow: hidden; width: min(100% - 16px, var(--max)); margin: 8px auto 0; border-radius: 16px; background: var(--blue); box-shadow: var(--stack); isolation: isolate; }
.panel.dots::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 6px 6px, rgba(255, 255, 255, .17) 1px, transparent 1.5px) 0 0 / 12px 12px; }
.panel.glow::after { content: ''; position: absolute; left: 50%; bottom: -260px; z-index: -1; width: 900px; max-width: 120%; height: 420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(225, 233, 255, .9), rgba(157, 182, 255, .55) 45%, transparent 100%); filter: blur(10px); }

/* the framed column: solid page colour over the dot field, dashed rails both sides, a dashed line across the whole
   screen at the top of every section with a cube where it crosses each rail */
.frame { position: relative; width: min(100% - 2 * var(--pad), var(--col)); margin: 8px auto 0; background: var(--bg); }
.frame::before, .frame::after { content: ''; position: absolute; top: 0; bottom: 0; width: 1.5px; background: var(--dash-v); pointer-events: none; }
.frame::before { left: -.75px; } .frame::after { right: -.75px; }
.sec { --px: clamp(20px, 4vw, 56px); --py: clamp(64px, 8vw, 104px); position: relative; padding: var(--py) var(--px); }
/* a BAND is Cloudflare's flush box: it breaks out of the section padding to run rail to rail, has a hairline top edge
   with a cube at each end, and when it closes its section the next section's dashed line is its bottom edge */
.band { position: relative; margin-inline: calc(-1 * var(--px)); border-top: 1px solid var(--hair); }
.band > .node { top: -9.5px; }
.sec > .band:last-child { margin-bottom: calc(-1 * var(--py)); }
.band.lit { background: var(--lit); box-shadow: var(--stack); }
.sec::before, .xline::before { content: ''; position: absolute; top: -.75px; left: 0; right: 0; height: 1.5px; background: var(--dash-h); pointer-events: none; }
/* an OUTER line: as wide as the panels, cubes on the outer rails, plus cubes where it crosses the column's rails */
.oline { position: relative; width: min(100% - 16px, var(--max)); height: 0; margin: 0 auto; }
.oline::before { content: ''; position: absolute; top: -.75px; left: 0; right: 0; height: 1.5px; background: var(--dash-h); }
.colmark { position: absolute; top: 0; left: 50%; width: min(100% + 16px - 2 * var(--pad), var(--col)); height: 0; transform: translateX(-50%); }
.xline { position: relative; height: 0; }
.node { position: absolute; z-index: 2; top: -9px; width: 18px; height: 18px; border: 1px solid var(--guide); border-radius: 4px; background: var(--lit); }
.node.l { left: -9px; } .node.r { right: -9px; }
.head { max-width: 760px; margin: 0 auto; text-align: center; }
.head h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
.head p { margin: 16px auto 0; max-width: 56ch; font-size: 18px; }

/* the box kit */
.well { position: relative; padding: 8px; border: 1px solid var(--hair); border-radius: 12px; background: var(--lit); box-shadow: var(--stack); }
.cell { border: 1px solid var(--hair); border-radius: 8px; background: var(--bg); }
.shell { padding: 6px; border: 1px dashed var(--hair-2); border-radius: 14px; background: var(--lit); box-shadow: var(--stack); }
.dbox { padding: 18px 20px; border: 1px dashed var(--hair-2); border-radius: 6px; }
.abox { border: 1px dashed var(--a-edge); border-radius: 6px; background: var(--a-tint); }
.cube { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1px dashed var(--a-edge); border-radius: 4px; background: var(--a-tint); }
.cube svg { width: 22px; height: 22px; fill: var(--glow); }
.dotrow { height: 2px; background: linear-gradient(90deg, currentColor 2px, transparent 2px) 0 0 / 6px 2px; opacity: .3; }
/* segmented switch: a dashed pill track with a lit blue pill that slides to the picked side */
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px dashed var(--hair-2); border-radius: 999px; }
.seg button { position: relative; z-index: 1; height: 38px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 15px var(--font); cursor: pointer; transition: color .2s var(--ease); }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { color: #fff; }
.seg > i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--blue); box-shadow: var(--stack); transition: transform .3s var(--ease); }
.seg.right > i { transform: translateX(100%); }

/* footer, Cloudflare's: as wide as the panels, so its sides run on the outer rails (drawn on it, over the page colour),
   a dashed line with cubes along its top, a plain hairline above the legal row */
.foot { position: relative; width: min(100% - 16px, var(--max)); margin: 0 auto; padding: 64px clamp(24px, 4vw, 64px) 36px; background: linear-gradient(var(--guide) 50%, transparent 50%) 0 0 / 1.5px 32px repeat-y, linear-gradient(var(--guide) 50%, transparent 50%) 100% 0 / 1.5px 32px repeat-y, var(--bg); }
.foot::before { content: ''; position: absolute; top: -.75px; left: 0; right: 0; height: 1.5px; background: var(--dash-h); }
.foot.after-panel { margin-top: 8px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 200px)); gap: 32px 64px; }
.foot-top p { margin: 14px 0 0; max-width: 34ch; color: var(--muted); font-size: 15px; }
.foot h4 { margin: 0 0 12px; color: var(--dim); font: 600 13px var(--font); letter-spacing: .04em; text-transform: uppercase; }
.foot nav a { display: block; padding: 4px 0; color: var(--text-2); font-size: 15px; }
.foot nav a:hover { color: var(--text); }
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--hair); }

@media (max-width: 900px) {
  body::before { background: radial-gradient(circle at 6px 6px, var(--dot) .75px, transparent 1.25px) 0 0 / 12px 12px; }
  .hdr nav { display: none; }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .logo b { font-size: 16px; }
  .hdr { --hh: 60px; } body::before { top: 60px; }
  .hdr .end .login { padding: 0 12px; }
  .hdr .pill { padding: 0 14px; }
  .logo { min-height: 44px; }
  .foot nav a { padding: 9px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
