/* ============================================================
   BuyerTell — "CHROME & GLASS" shared system for content pages.
   Depth, not grid: surfaces are lit glass slabs over a deep cool
   ground; separation comes from elevation, never a 1px rule.
   Iridescence is rationed to one idea — live detection.
   (index.html keeps an inline copy so it stays self-contained.)
   ============================================================ */
@import url("/assets/type.css");

:root {
  color-scheme: dark;
  --void:    #05070A;
  --ink-bg:  #0A0E14;
  --riser:   #111823;
  --glass:    rgba(146,176,214,0.055);
  --glass-2:  rgba(146,176,214,0.085);
  --edge:     rgba(198,222,255,0.13);
  --edge-soft:rgba(198,222,255,0.07);
  --hairline: rgba(198,222,255,0.09);
  --ink:   #E4EAF2;
  --ink-2: #98A6B8;
  --ink-3: #626F81;
  --ir-1: #6FE3FF;
  --ir-2: #A78BFF;
  --ir-3: #FF7FD0;
  --iris: linear-gradient(96deg, var(--ir-1), var(--ir-2) 52%, var(--ir-3));
  --hot:  #FF6B57;

  --display: "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --sans: "Instrument Sans", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: var(--display);

  --r: 18px;
  --r-s: 11px;
  --maxw: 1220px;
  --readw: 720px;

  /* aliases — older markup still names gold/scan/text/dim/faint/line */
  --gold: var(--ir-2); --gold-d: var(--ir-3); --scan: var(--ir-1);
  --text: var(--ink); --dim: var(--ink-2); --faint: var(--ink-3);
  --line: var(--hairline); --line-2: var(--edge); --good: var(--ir-1);
  --ink-2-legacy: var(--riser);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 74% -12%, rgba(120,160,220,0.16), transparent 66%),
    radial-gradient(760px 520px at 6% 24%, rgba(150,110,220,0.09), transparent 62%),
    linear-gradient(180deg, #0B1016 0%, var(--ink-bg) 40%, var(--void) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(167,139,255,0.4); color: #fff; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ir-1); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 34px; }
@media (max-width: 560px){ .wrap { padding: 0 20px; } }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .dot { color: var(--ir-1); }
.scan, .gold { color: var(--ir-1); }

/* the slab — every raised surface */
.card, .post, .callout, .cmp-wrap {
  background: linear-gradient(180deg, var(--glass-2), var(--glass) 42%, rgba(146,176,214,0.03));
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border-radius: var(--r); border: 0;
  box-shadow:
    inset 0 1px 0 var(--edge),
    inset 0 0 0 1px rgba(198,222,255,0.045),
    0 30px 60px -34px rgba(0,0,0,0.95);
}

/* chrome display type — the ramp is one line box tall and tiles down, so
   every line gets a full sky/horizon/ground reflection instead of a fade */
.chrome {
  --lh: 1em; --ry: -0.14em;
  background-image:
    linear-gradient(102deg, transparent 34%, rgba(255,255,255,0.92) 47%, transparent 58%),
    linear-gradient(180deg,
      #FFFFFF 0%, #F2F6FD 9%, #CFDAE9 24%,
      #97A4B6 40%, #545F6E 50%, #9DA3AB 60%,
      #DCDBD6 74%, #FAF8F3 88%, #FFFFFF 100%);
  background-size: 280% var(--lh), 100% var(--lh);
  background-position: -140% var(--ry), 0 var(--ry);
  background-repeat: no-repeat repeat, no-repeat repeat;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: sheen 2.4s cubic-bezier(.5,0,.2,1) 1s 1 both;
}
@keyframes sheen { to { background-position: 240% var(--ry), 0 var(--ry); } }

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  background: linear-gradient(180deg, rgba(10,14,20,0.86), rgba(10,14,20,0.55));
  box-shadow: 0 1px 0 var(--edge-soft), 0 18px 40px -34px #000;
  border-bottom: 0;
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .glyph {
  width: 30px; height: 30px; border-radius: 50%; position: relative; flex: none; overflow: hidden; border: 0;
  background: conic-gradient(from 210deg, #F2F7FF, #7E8DA2 22%, #2C3541 38%, #C9BCA8 55%, #FFFFFF 70%, #6E7C90 88%, #F2F7FF);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35), 0 6px 18px -8px rgba(120,180,255,0.6);
}
.brand .glyph::before, .brand .glyph::after { content: ""; position: absolute; background: rgba(8,12,18,0.45); }
.brand .glyph::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.brand .glyph::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.brand .sweep-mini {
  position: absolute; inset: 0; border-radius: 50%; z-index: 2;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(5,8,12,0.55) 42deg, transparent 64deg);
  animation: spin 4.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand b { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 600;
  font-size: 16px; letter-spacing: -0.022em; display: block; line-height: 1.15; }
.brand span { font-family: var(--mono); font-size: 9px; color: var(--ink-3); letter-spacing: 0.26em; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }

.btn {
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  padding: 11px 20px; border-radius: 999px; cursor: pointer; border: 0; color: #0A0E14;
  background: linear-gradient(180deg, #FFFFFF, #E2E9F3 46%, #B9C6D6);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0,0,0,0.18),
    0 10px 24px -12px rgba(150,190,255,0.7), 0 2px 6px -3px rgba(0,0,0,0.6);
  display: inline-block; transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn.ghost { color: var(--ink); background: rgba(146,176,214,0.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px rgba(198,222,255,0.09); }
.btn.ghost:hover { background: rgba(146,176,214,0.14); filter: none; }
@media (max-width: 840px){ .nav-links a:not(.btn){ display: none; } }

/* ---------- PAGE HEADER ---------- */
.page-head { padding: 74px 0 34px; }
.page-head h1 {
  --lh: 1.03em;
  font-family: var(--display); font-variation-settings: "wdth" 105; font-weight: 640;
  letter-spacing: -0.038em; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.03;
  margin: 20px 0 0; text-wrap: balance;
}
.page-head h1 .em { font-style: normal; font-family: var(--display); font-weight: 640; }
.page-head .lede { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 18.5px); margin: 24px 0 0; max-width: 40em; line-height: 1.65; }

/* ---------- BREADCRUMB ---------- */
.crumb { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 32px; }
.crumb a:hover { color: var(--ir-1); }
.crumb .sep { margin: 0 10px; color: var(--edge); }

/* ---------- SECTION SCAFFOLD ---------- */
section { position: relative; padding: 80px 0; }
.sec-head { max-width: 46em; margin-bottom: 40px; border-top: 0; padding-top: 0; }
.sec-head h2 {
  font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 600;
  letter-spacing: -0.035em; font-size: clamp(26px, 3.3vw, 40px); line-height: 1.04;
  margin: 18px 0 0; text-wrap: balance;
}
.sec-head p { color: var(--ink-2); font-size: 16px; margin: 18px 0 0; max-width: 38em; }
.rule { display: none; }

/* ---------- PROSE ---------- */
.prose { max-width: var(--readw); }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 600;
  letter-spacing: -0.034em; font-size: 30px; line-height: 1.1; margin-top: 56px; }
.prose h3 { font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 600;
  letter-spacing: -0.03em; font-size: 21px; margin-top: 38px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ir-1); box-shadow: inset 0 -1px 0 rgba(111,227,255,0.4); }
.prose a:hover { box-shadow: inset 0 -1px 0 var(--ir-1); }
.prose ul, .prose ol { padding-left: 22px; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.prose code { font-family: var(--mono); font-size: 0.86em; color: var(--ir-1);
  background: rgba(111,227,255,0.09); padding: 2px 7px; border-radius: 5px; }
.prose blockquote {
  margin: 32px 0; padding: 6px 0 6px 26px; border-left: 0; position: relative;
  font-family: var(--display); font-variation-settings: "wdth" 104; font-weight: 400;
  font-size: 20px; color: var(--ink); font-style: normal; letter-spacing: -0.026em; line-height: 1.55;
}
.prose blockquote::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #FFFFFF, #7E8DA2 40%, #2C3541 60%, #C9BCA8); }
.prose .lead { font-size: 20px; color: var(--ink); line-height: 1.62; letter-spacing: -0.02em; }
.prose figure { margin: 32px 0; }
.prose hr { border: 0; height: 1px; background: var(--edge-soft); margin: 44px 0; }

/* ---------- CALLOUT / CARD ---------- */
.callout { padding: 20px 24px; margin: 32px 0; border-radius: var(--r-s); }
.callout .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--iris); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; }
.callout p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
.card { padding: 26px; }

/* ---------- COMPARISON TABLE ---------- */
.cmp-wrap { overflow-x: auto; margin: 8px 0; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.cmp th, table.cmp td { text-align: left; padding: 16px 20px; vertical-align: top;
  box-shadow: inset 0 -1px 0 rgba(198,222,255,0.06); }
table.cmp thead th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3); background: rgba(146,176,214,0.05); }
table.cmp thead th.us { background: var(--iris); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; }
table.cmp tbody tr:last-child td { box-shadow: none; }
table.cmp td.feature { color: var(--ink); font-weight: 600; }
table.cmp td { color: var(--ink-2); }
table.cmp .yes { color: var(--ir-1); } table.cmp .no { color: var(--hot); }
table.cmp col.us-col, table.cmp td.us-cell { background: rgba(167,139,255,0.055); }

/* ---------- POST LIST ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; background: none; border: 0; }
.post { padding: 30px; display: flex; flex-direction: column; gap: 10px; position: relative;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.post:hover { transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(214,234,255,0.22), inset 0 0 0 1px rgba(198,222,255,0.08),
    0 40px 70px -34px rgba(0,0,0,0.95), 0 0 50px -30px rgba(140,180,255,0.55); }
.post .tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.post h3 { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 600;
  letter-spacing: -0.032em; font-size: 21px; margin: 0; line-height: 1.16; }
.post p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.58; }
.post .more { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  margin-top: auto; padding-top: 8px;
  background: var(--iris); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; }
@media (max-width: 720px){ .posts { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-block {
  padding: 72px 36px; text-align: center; margin: 20px 0; position: relative; overflow: hidden;
  border: 0; border-radius: var(--r);
  background: linear-gradient(180deg, var(--glass-2), var(--glass) 42%, rgba(146,176,214,0.03));
  backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--edge), inset 0 0 0 1px rgba(198,222,255,0.045),
    0 40px 80px -36px rgba(0,0,0,0.95);
}
.cta-block::before { content: ""; position: absolute; left: 50%; top: -70%; width: 130%; height: 100%;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(55% 50% at 50% 100%, rgba(190,220,255,0.16), transparent 72%); }
.cta-block h2 { --lh: 1.04em;
  font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 640;
  letter-spacing: -0.042em; font-size: clamp(28px, 4vw, 46px); margin: 0; line-height: 1.04; text-wrap: balance; }
.cta-block h2 .em { font-style: normal; font-family: var(--display); font-weight: 640; }
.cta-block p { color: var(--ink-2); max-width: 32em; margin: 20px auto 30px; font-size: 16.5px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
footer { padding: 44px 0 64px; margin-top: 20px; border-top: 0; box-shadow: inset 0 1px 0 var(--edge-soft); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.14em; text-transform: uppercase; }
.foot-in a { color: var(--ink-2); }
.foot-in a:hover { color: var(--ir-1); }
.foot-in b { color: var(--ink-2); font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .chrome { background-position: 50% var(--ry), 0 var(--ry); }
}
