/* ============================================================
   IDMAG.PL — component styles, built on Pointech tokens
   (colors_and_type.css must be loaded first)
   ============================================================ */

* { box-sizing: border-box; }
body { margin: 0; }

/* ─────────── comparison shell ─────────── */
.cmp {
  background: var(--pt-ink-050);
  min-height: 100vh;
  padding: 0 0 96px;
}
.cmp-top {
  background: var(--pt-ink-1000);
  color: #fff;
  padding: 22px 40px;
  display: flex; align-items: center; gap: 18px;
  position: sticky; top: 0; z-index: 80;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.cmp-top .cmp-mark { display: flex; align-items: center; gap: 10px; }
.cmp-top .cmp-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--pt-blue-300);
}
.cmp-top h1 { font-size: 18px; color: #fff; font-weight: 600; letter-spacing: -.01em; }
.cmp-top .cmp-meta { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.45); text-transform: uppercase; }

.cmp-section { max-width: 1480px; margin: 0 auto; padding: 64px 40px 0; }
.cmp-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.cmp-head .cmp-num {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em;
  color: var(--pt-blue-700); background: var(--pt-blue-100);
  padding: 4px 10px; border-radius: 2px; font-weight: 500;
}
.cmp-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.cmp-head p { color: var(--fg-3); font-size: 15px; max-width: 52ch; margin-left: auto; text-align: right; }
.cmp-frame {
  background: #fff; border: 1px solid var(--border-1); border-radius: var(--r-3);
  box-shadow: var(--shadow-2); overflow: hidden;
}

/* ─────────── buttons ─────────── */
.btn {
  font-family: var(--font-body); font-weight: 600;
  font-size: 14px; letter-spacing: .01em;
  padding: 12px 20px; border-radius: var(--r-2); border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--pt-blue-700); color: #fff; }
.btn-primary:hover { background: var(--pt-blue-800); box-shadow: var(--shadow-brand); }
.btn-secondary { background: #fff; color: var(--pt-blue-700); border-color: var(--border-2); }
.btn-secondary:hover { background: var(--pt-blue-050); border-color: var(--pt-blue-400); }
.btn-ghost { background: transparent; color: var(--pt-blue-700); }
.btn-ghost:hover { background: var(--pt-blue-050); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-onblue { background: #fff; color: var(--pt-blue-700); }
.btn-onblue:hover { background: var(--pt-blue-050); box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.btn-onblue-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-onblue-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

/* ─────────── wordmark (Pointech-style lockup) ─────────── */
.id-mark { position: relative; display: inline-flex; align-items: center; text-decoration: none; border: 0; background: var(--pt-blue-700); padding: .4em .66em .4em .56em; font-size: 19px; border-radius: 1px; }
.id-mark.sm { font-size: 15px; }
.id-mark.lg { font-size: 23px; }
.id-mark-sq { position: absolute; z-index: 0; left: .4em; top: .2em; bottom: .2em; width: auto; aspect-ratio: 1; background: var(--pt-blue-400); }
.id-mark-word { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; letter-spacing: .12em; font-size: 1em; color: #fff; line-height: 1; }

/* ─────────── site nav ─────────── */
.id-nav {
  position: relative; z-index: 30;
  background: #fff; border-bottom: 1px solid var(--border-1);
}
.id-nav-inner { display: flex; align-items: center; gap: 32px; padding: 16px 40px; }
.id-nav-links { display: flex; gap: 26px; flex: 1; }
.id-nav-links a { color: var(--fg-2); font-size: 14px; font-weight: 500; border: 0; }
.id-nav-links a:hover { color: var(--pt-blue-700); }
.id-nav-links a.is-active { color: var(--pt-blue-700); }
.id-nav-right { display: flex; align-items: center; gap: 14px; }
.id-nav-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); padding: 9px 14px; border-radius: var(--r-2);
  border: 1px solid transparent; color: var(--fg-3); min-width: 240px;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.id-nav-search:focus-within { border-color: var(--pt-blue-700); background: #fff; box-shadow: 0 0 0 3px rgba(94,113,249,.16); }
.id-nav-search input { border: 0; background: transparent; outline: none; flex: 1; font-family: var(--font-body); font-size: 13px; color: var(--fg-1); }
.id-nav-lang { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--fg-3); display: flex; gap: 6px; }
.id-nav-lang b { color: var(--pt-blue-700); }
.id-nav-icon { width: 38px; height: 38px; border: 1px solid var(--border-1); background: #fff; border-radius: var(--r-2); color: var(--fg-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color var(--dur-fast), color var(--dur-fast); position: relative; }
.id-nav-icon:hover { border-color: var(--pt-blue-400); color: var(--pt-blue-700); }
.id-nav-icon .cart-count { position: absolute; top: -7px; right: -7px; background: var(--pt-blue-700); color: #fff; font-family: var(--font-mono); font-size: 10px; min-width: 17px; height: 17px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }

/* ─────────── breadcrumb ─────────── */
.id-crumbs { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.id-crumbs a { color: var(--fg-3); border: 0; }
.id-crumbs a:hover { color: var(--pt-blue-700); }
.id-crumbs .sep { color: var(--fg-4); }
.id-crumbs .cur { color: var(--fg-1); }

/* ─────────── eyebrow ─────────── */
.id-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pt-blue-700); font-weight: 500; }

/* ─────────── placeholder image ─────────── */
.id-ph {
  position: relative; width: 100%; height: 100%;
  background:
    linear-gradient(var(--bg-2), var(--bg-2));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: var(--pt-ink-300);
}
.id-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(94,113,249,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94,113,249,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.id-ph-icon { position: relative; color: var(--pt-ink-300); opacity: .85; }
.id-ph-icon svg { width: 38%; height: 38%; max-width: 160px; }
.id-ph-cap {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-4);
  background: rgba(255,255,255,.7); padding: 4px 8px; border-radius: 2px;
  backdrop-filter: blur(4px);
}
.id-ph.on-blue { color: rgba(255,255,255,.4); background: var(--pt-blue-800); }
.id-ph.on-blue::before { background-image: linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px); }
.id-ph.on-blue .id-ph-icon { color: rgba(255,255,255,.5); }
.id-ph.on-blue .id-ph-cap { background: rgba(11,17,128,.4); color: rgba(255,255,255,.65); }

/* ─────────── gallery ─────────── */
.id-gallery { display: flex; flex-direction: column; gap: 14px; }
.id-gallery-main {
  position: relative; aspect-ratio: 4 / 3; width: 100%;
  border: 1px solid var(--border-1); border-radius: var(--r-2); overflow: hidden;
  background: #fff;
}
.id-gallery-badge { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 7px; }
.id-gallery-zoom { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 2px; background: rgba(255,255,255,.85); backdrop-filter: blur(4px); border: 1px solid var(--border-1); display: flex; align-items: center; justify-content: center; color: var(--fg-2); cursor: pointer; }
.id-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.id-thumb {
  position: relative; aspect-ratio: 1; border: 1px solid var(--border-1); border-radius: var(--r-1);
  overflow: hidden; cursor: pointer; background: #fff; padding: 0;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.id-thumb:hover { border-color: var(--pt-blue-300); }
.id-thumb.is-active { border-color: var(--pt-blue-700); box-shadow: 0 0 0 1px var(--pt-blue-700); }
.id-thumb .id-ph::before { background-size: 14px 14px; }
.id-thumb .id-ph-icon svg { max-width: 40px; }

/* ─────────── tag / chip / pill ─────────── */
.id-tag { font-family: var(--font-mono); font-size: 11px; padding: 4px 9px; border-radius: 2px; background: var(--pt-blue-050); color: var(--pt-blue-700); letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; }
.id-tag.scan { background: rgba(0,194,168,.12); color: #00866F; }
.id-pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.id-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.id-pill.ok { background: var(--pt-success-bg); color: var(--pt-success); }
.id-pill.ok .dot { background: var(--pt-success); }
.id-pill.brand { background: var(--pt-blue-100); color: var(--pt-blue-700); }
.id-pill.brand .dot { background: var(--pt-blue-700); }

/* spec chips (key highlights) */
.id-specchips { display: flex; flex-wrap: wrap; gap: 8px; }
.id-specchip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-1); border-radius: var(--r-2);
  padding: 8px 12px; font-size: 13px; color: var(--fg-1); background: #fff;
}
.id-specchip svg { width: 16px; height: 16px; color: var(--pt-blue-700); }
.id-specchip b { font-weight: 600; }
.id-specchip .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }

/* ─────────── quote box ─────────── */
.id-quote { border: 1px solid var(--border-1); border-radius: var(--r-3); padding: 22px; background: var(--bg-2); }
.id-quote.solid { background: #fff; box-shadow: var(--shadow-1); }
.id-quote-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.id-quote-price .amt { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--fg-1); }
.id-quote-price .net { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .06em; text-transform: uppercase; }
.id-quote-hint { font-size: 13px; color: var(--fg-3); margin-bottom: 16px; line-height: 1.5; }
.id-quote-actions { display: flex; flex-direction: column; gap: 10px; }

/* ─────────── trust ─────────── */
.id-trust { display: flex; flex-direction: column; gap: 12px; }
.id-trust-item { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--fg-2); }
.id-trust-item svg { width: 18px; height: 18px; color: var(--pt-blue-700); flex-shrink: 0; }
.id-trust-item b { color: var(--fg-1); font-weight: 600; }
.id-trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.id-trust-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px;
  border: 1px solid var(--border-1); border-radius: var(--r-2); background: #fff;
  font-size: 12.5px; color: var(--fg-1); font-weight: 500;
}
.id-trust-badge svg { width: 18px; height: 18px; color: var(--pt-blue-700); }
.id-trust-badge .pt { font-family: var(--font-display); font-weight: 800; color: var(--pt-blue-700); }

/* ─────────── spec sheet ─────────── */
.id-specsheet { display: grid; gap: 0; }
.id-specgroup { border-top: 1px solid var(--border-1); }
.id-specgroup-h {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pt-blue-700); font-weight: 500;
  padding: 18px 0 12px;
}
.id-specrow { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 11px 0; border-bottom: 1px solid var(--border-1); font-size: 14px; }
.id-specrow dt { color: var(--fg-3); margin: 0; }
.id-specrow dd { margin: 0; color: var(--fg-1); font-weight: 500; }
.id-specrow dd.mono { font-family: var(--font-mono); font-weight: 400; font-variant-numeric: tabular-nums; }

/* tabs */
.id-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border-1); }
.id-tab {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 14px 18px; border: 0; background: transparent; color: var(--fg-3);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.id-tab:hover { color: var(--fg-1); }
.id-tab.is-active { color: var(--pt-blue-700); border-bottom-color: var(--pt-blue-700); }
.id-tab .count { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); }

/* ─────────── related cards ─────────── */
.id-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border-1); border-left: 1px solid var(--border-1); }
.id-rel-card {
  border-right: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1);
  padding: 22px; background: #fff; position: relative; overflow: hidden;
  transition: background var(--dur-base) var(--ease-out);
}
.id-rel-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pt-blue-400); transform: scaleY(0); transform-origin: top; transition: transform var(--dur-base) var(--ease-out); }
.id-rel-card:hover { background: var(--pt-blue-050); }
.id-rel-card:hover::before { transform: scaleY(1); }
.id-rel-img { aspect-ratio: 4/3; border: 1px solid var(--border-1); border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.id-rel-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px; }
.id-rel-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.id-rel-meta { font-family: var(--font-mono); font-size: 12px; color: var(--pt-blue-700); }

/* ─────────── footer ─────────── */
.id-footer { background: var(--pt-ink-1000); color: rgba(255,255,255,.65); padding: 56px 40px 24px; }
.id-footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.id-footer-tag { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 32ch; margin: 16px 0; }
.id-footer-pt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.45); line-height: 1.7; }
.id-footer-pt b { color: #fff; }
.id-footer-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.id-footer-col a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,.65); border: 0; }
.id-footer-col a:hover { color: #fff; }
.id-footer-bar { display: flex; justify-content: space-between; padding-top: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.4); }

/* section label inside a variant */
.id-block-h { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
