/* =============================================================================
   IntelliBOM · intellibom.ca · Scenario 2 · Ethereal Glass
   page-widgets.css — page-specific widgets: doc-card, bundle, plan, faq-item
   Pairs with pages.css (shell).
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. DOC-GRID — document gallery cards (documents.html)
   ---------------------------------------------------------------------------*/
.doc-group { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.doc-group__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
}
.doc-group__role {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--emerald);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 4px;
  background: var(--emerald-soft);
  white-space: nowrap;
}
.doc-group__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}
.doc-group__count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--steel-3);
  text-transform: uppercase;
  white-space: nowrap;
}
.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.doc-card {
  position: relative;
  padding: 22px 22px 20px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  display: grid;
  gap: 10px;
  align-content: start;
  transition: border-color 320ms var(--ease), transform 380ms var(--ease-glass);
}
.doc-card:hover {
  border-color: rgba(16, 185, 129, 0.34);
  transform: translateY(-2px);
}
.doc-card__code {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.doc-card__code::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--emerald);
}
.doc-card__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--white);
  text-wrap: balance;
}
.doc-card__body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--steel);
  text-wrap: pretty;
}
.doc-card__formats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.doc-card__formats span {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--void-3);
  border: 1px solid var(--line-strong);
  color: var(--steel);
}
.doc-card__formats span.fmt--on {
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--emerald-soft);
}

@media (max-width: 1040px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .doc-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   2. BUNDLE-GRID — 4 bundle cards
   ---------------------------------------------------------------------------*/
.bundle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.bundle-card {
  padding: 22px;
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  transition: border-color 320ms var(--ease), transform 380ms var(--ease-glass);
}
.bundle-card:hover {
  border-color: var(--emerald);
  transform: translateY(-2px);
}
.bundle-card__tag {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--emerald);
  text-transform: uppercase;
}
.bundle-card__name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.015em;
}
.bundle-card__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--steel);
}
@media (max-width: 1040px) { .bundle-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .bundle-grid { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------------------
   3. PLAN — pricing card (pricing.html)
   ---------------------------------------------------------------------------*/
.plan {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  gap: 28px;
}
.plan-card {
  position: relative;
  padding: clamp(32px, 4vw, 56px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(26px);
          backdrop-filter: blur(26px);
  overflow: hidden;
  box-shadow:
    0 40px 80px -40px rgba(0, 0, 0, 0.7),
    0 0 80px -40px rgba(16, 185, 129, 0.28);
}
.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--emerald), transparent);
  filter: drop-shadow(0 0 8px var(--emerald-glow));
}
.plan-card__head {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}
.plan-card__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--emerald);
  text-transform: uppercase;
}
.plan-card__name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}
.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 18px;
  font-family: var(--f-display);
  font-weight: 900;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.plan-card__price .currency { font-size: 28px; color: var(--emerald); font-weight: 700; }
.plan-card__price .amount   { font-size: clamp(60px, 7vw, 104px); line-height: 0.9; letter-spacing: -0.04em; }
.plan-card__price .period   { font-size: 14px; color: var(--steel-2); font-weight: 500; font-family: var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; }
.plan-card__lede {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--steel);
  max-width: 54ch;
}
.plan-card__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.plan-card__hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.plan-card__included {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 28px;
  padding: 0;
  list-style: none;
  margin: 0;
}
.plan-card__included li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--steel);
}
.plan-card__included li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 700;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .plan-card__included { grid-template-columns: 1fr; }
}

.plan-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.plan-trust__cell {
  padding: 18px 20px;
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  text-align: left;
}
.plan-trust__cell dt {
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--steel-3);
  text-transform: uppercase;
}
.plan-trust__cell dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--white);
}
@media (max-width: 820px) { .plan-trust { grid-template-columns: 1fr 1fr; } }

/* -----------------------------------------------------------------------------
   4. FAQ — accordion (faq.html)
   ---------------------------------------------------------------------------*/
.faq-group {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.faq-group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.faq-group__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--emerald);
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 4px;
  background: var(--emerald-soft);
  white-space: nowrap;
}
.faq-group__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  color: var(--white);
  letter-spacing: -0.02em;
}
.faq-item {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  transition: border-color 320ms var(--ease);
  overflow: hidden;
}
.faq-item[open],
.faq-item:hover {
  border-color: rgba(16, 185, 129, 0.28);
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--white);
  letter-spacing: -0.01em;
  position: relative;
  transition: color 220ms var(--ease);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(var(--emerald), var(--emerald)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--emerald), var(--emerald)) center / 1.5px 12px no-repeat;
  transition: transform 320ms var(--ease-glass);
}
.faq-item[open] > summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(var(--emerald), var(--emerald)) center / 12px 1.5px no-repeat;
}
.faq-item__body {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 72ch;
}
.faq-item__body p { margin: 0 0 10px; }
.faq-item__body p:last-child { margin-bottom: 0; }
.faq-item__body strong { color: var(--white); font-weight: 600; }
.faq-item__body code {
  font-family: var(--f-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--emerald);
}
