/* Product pages (Olaryn Identity, Olaryn Billing, Olaryn Analytics): hero, example screens and diagrams. Tokens live in base.css. */

/* Hero: two-tone title left, short explanation and buttons right, example screen underneath */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; padding-block: 48px 56px; }
.hero-side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; }

/* Tagline + chip row under the hero */
.tagline { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-block: 32px 64px; }
.tagline p { font: 400 24px/1.375 var(--sans); letter-spacing: 0; }
.tagline .ink, .tagline .dim { display: inline; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; list-style: none; }
.chips .label { margin-right: 8px; color: var(--muted); }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-soft); color: var(--ink); }

/* Example sign-in screen */
.app-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-id p { color: var(--ink); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; font: 550 13px/1 var(--sans); color: #FFFFFF; }
.avatar-northwind, .choice-northwind { background: #0F7A61; }
.avatar-lumen, .choice-lumen { background: #A34B0B; }
.signin { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px 28px; }
.signin h3 { font: 500 18px/1.3 var(--sans); letter-spacing: 0; color: var(--ink); }
.signin .sub { margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.choice { display: flex; align-items: center; justify-content: center; gap: 9px; height: 42px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1 var(--sans); color: var(--ink); }
.choice svg { width: 16px; height: 16px; flex: none; }
.choice-main { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.choice-northwind, .choice-lumen { color: #FFFFFF; box-shadow: none; }
.square .choice { border-radius: 4px; }
.or { display: flex; align-items: center; gap: 10px; margin: 2px 0; font-size: 12px; color: var(--faint); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Ordered explanation inside a card (how sign-in works / how a charge works) */
.flow { display: flex; flex-direction: column; padding: 4px 16px 8px; list-style: none; counter-reset: flow; }
.flow li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); counter-increment: flow; }
.flow li:last-child { border-bottom: 0; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--panel); font: 500 12px/1 var(--mono); color: var(--ink); }
.flow b { display: block; font-weight: 500; color: var(--ink); }
.flow span { font-size: 14px; color: var(--muted); }
.card-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Small screens inside feature cards */
.mini { width: 100%; max-width: 280px; padding: 20px; }
.prompt { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.prompt .ring { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.prompt .ring svg { width: 26px; height: 26px; }
.mini b { font: 500 15px/1.3 var(--sans); letter-spacing: 0; color: var(--ink); }
.mini .muted { font-size: 13px; color: var(--muted); }
.mail { display: flex; flex-direction: column; gap: 10px; }
.mail .from { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.mail .go { display: grid; place-items: center; height: 36px; margin-top: 4px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font: 550 13px/1 var(--sans); }
.mini .pair .choice { height: 38px; font-size: 13px; }
.mini-stack { display: flex; flex-direction: column; gap: 10px; }

/* Example chat with an AI assistant */
.chat { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 540px; margin: 0 auto; padding: 8px 8px 20px; }
.bubble { max-width: 82%; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.bubble-me { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--btn); color: var(--btn-ink); }
.bubble-ai { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--card); box-shadow: 0 0 0 1px var(--line-soft); color: var(--ink); }
.bubble-ai .status { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Two example apps side by side */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.apps .app-id { margin-bottom: 8px; color: var(--ink); }

/* Plain-language fact list (label left, explanation right) */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line-soft); }
.facts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts b { font-weight: 500; color: var(--ink); }
.facts span { font-size: 14px; color: var(--muted); }

/* Credit ledger (Olaryn Billing) */
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { padding: 10px 16px; border-bottom: 1px solid var(--line); font-weight: 450; font-size: 12px; color: var(--muted); text-align: left; }
.ledger td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; }
.ledger td small { display: block; font-size: 12px; color: var(--muted); }
.ledger .n { font: 400 14px/1.4 var(--mono); letter-spacing: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger th.n { font: 450 12px/1.4 var(--sans); }
.ledger .minus { color: var(--muted); }
.ledger tfoot td { border-bottom: 0; font-weight: 500; }
.balance { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px; border-top: 1px solid var(--line); }
.balance strong { font: 400 30px/1.1 var(--sans); letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Code */
.code { overflow-x: auto; padding: 20px; font: 400 13px/1.7 var(--mono); letter-spacing: 0; color: var(--ink); tab-size: 2; }
.code .c { color: var(--muted); }

/* Simple bar graphic (Olaryn Analytics examples, decorative) */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 72px; }
.bars i { flex: 1; display: block; border-radius: 3px 3px 0 0; background: var(--line); }
.bars i.on { background: var(--ink); }
.h1 { height: 30%; } .h2 { height: 45%; } .h3 { height: 38%; } .h4 { height: 58%; } .h5 { height: 52%; } .h6 { height: 70%; } .h7 { height: 88%; }
.meter { display: flex; flex-direction: column; gap: 10px; padding: 0; list-style: none; }
.meter li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.meter i { display: block; height: 8px; border-radius: 999px; background: var(--ink); }
.w1 { width: 90%; } .w2 { width: 62%; } .w3 { width: 41%; } .w4 { width: 24%; }

@media (prefers-reduced-motion: no-preference) { .hero-stage { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .15s both; } }

@media (max-width: 1023px) {
  .hero, .hero-stage-grid, .tagline { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .hero { padding-block: 32px 40px; }
  .tagline { padding-block: 24px 48px; }
  .tagline p { font-size: 20px; }
  .apps { grid-template-columns: 1fr; }
  .ledger th, .ledger td { padding-inline: 12px; }
}
@media (max-width: 420px) {
  .signin { padding: 24px 18px; }
  .pair { grid-template-columns: 1fr; }
}
