/*
 * ipvalv.com: the product's own look, taken from the running app (Theming/IpvalvTheme.cs, wwwroot/css/app.css,
 * the layout and component CSS), on top of the shared base. Colours are the app's tokens exactly; where text
 * sits on paper a darker brass (--brass-text) is used because #A6842D alone is below 4.5:1 there.
 */

:root {
  --ink: #14213d;
  --ink-2: #1c2d4d;
  --paper: #eef0ec;
  --panel: #ffffff;
  --brass: #a6842d;
  --brass-light: #c9a54d;
  --brass-text: #7a5f17;
  --alert: #a63a2e;
  --alert-bg: #f7e9e6;
  --pending: #8a6d2f;
  --pending-bg: #efeae0;
  --success: #3f6b52;
  --success-bg: #e8efe9;
  --slate: #5b6678;
  --slate-light: #8992a1;
  --wait-bg: #eff0ec;
  --border: #dbddd5;
  --row-hover: #f7f8f5;

  --bg: var(--paper);
  --text: var(--ink);
  --muted: var(--slate);
  --link: var(--brass-text);
  --accent: var(--brass-light);
  --focus: var(--brass);
  --eyebrow: var(--brass-text);
  --selection: var(--brass-light);
  --radius: 3px;

  --font-body: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

h1 {
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.h-section {
  font-size: var(--step-3);
  font-weight: 600;
}

.h-card {
  font-size: var(--step-1);
  font-weight: 600;
}

/* Header: the app's navy sidebar gradient with the brass hairline */

.site-header {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #eef0ec;
}

.site-header::after {
  content: "";
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--brass) 0%, transparent 70%);
  opacity: 0.7;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
  color: #fff;
}

.brand__mark span {
  color: var(--brass-light);
}

.brand__mark--footer {
  font-size: 2rem;
}

.brand__sub {
  margin-top: 0.15rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 240, 236, 0.55);
}

@media (max-width: 40rem) {
  .brand__sub {
    display: none;
  }
}

.site-nav a:not(.btn) {
  color: rgba(238, 240, 236, 0.86);
  font-size: 0.95rem;
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:not(.btn):hover {
  color: #fff;
  border-bottom-color: rgba(201, 165, 77, 0.6);
}

.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--brass-light);
}

.site-nav__cta {
  list-style: none;
}

/* Buttons: uppercase and letter-spaced, as in the app */

.btn {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.btn--small {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
}

.btn--brass {
  background: var(--brass-light);
  color: var(--ink);
}

.btn--brass:hover {
  background: #ffffff;
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ink:hover {
  background: var(--ink-2);
}

.btn--ghost-light {
  border-color: rgba(238, 240, 236, 0.5);
  color: #eef0ec;
}

.btn--ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Hero and page heads */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #eef0ec;
  padding-block: var(--space-6);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass) 0%, transparent 60%);
  opacity: 0.6;
}

.hero .eyebrow {
  color: var(--brass-light);
}

.hero .lede {
  color: rgba(238, 240, 236, 0.86);
  max-width: 38rem;
}

.hero h1 {
  max-width: 15ch;
}

.hl {
  color: var(--brass-light);
}

.hero__inner {
  align-items: center;
}

.page-hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #eef0ec;
  padding-block: var(--space-5);
  border-bottom: 2px solid var(--brass);
}

.page-hero .eyebrow {
  color: var(--brass-light);
}

.page-hero .lede {
  color: rgba(238, 240, 236, 0.86);
  max-width: 44rem;
}

.page-hero h1 {
  max-width: 20ch;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center h1,
.page-hero--center .lede {
  margin-inline: auto;
}

.status-seal {
  display: flex;
  justify-content: center;
}

.status-seal .seal-ring {
  width: 44px;
  height: 44px;
}

.status-seal svg {
  width: 20px;
  height: 20px;
}

.page-hero--center .seal--urgent {
  color: var(--brass-light);
}

/* Sections, cards, lists */

.section--white {
  background: var(--panel);
  border-block: 1px solid var(--border);
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.section--white .card {
  background: var(--paper);
}

.card--accent {
  border-left: 3px solid var(--brass);
}

.numbered {
  list-style: none;
  margin: 0;
  padding: 0;
}

.numbered__n {
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--brass-text);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.trust-item .seal {
  margin-top: 0.1rem;
}

.trust-item--wide {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.feature-list li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--brass);
}

.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
}

.roadmap__item {
  display: grid;
  gap: 0.25rem;
  padding: var(--space-3);
  background: var(--panel);
  border: 1px dashed var(--slate-light);
  border-radius: var(--radius);
}

.roadmap__item span {
  color: var(--muted);
}

/* Status label for things that are not built yet. Always says so in words, never colour alone. */
.tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--brass-text);
}

.tag--premium {
  background: var(--ink);
  border-color: var(--ink);
  color: #eef0ec;
}

.choice-grid {
  align-items: stretch;
}

.note {
  font-size: var(--step--1);
  color: var(--muted);
}

.callout--wide {
  max-width: 48rem;
}

/* Call to action band and footer */

.cta-band {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #eef0ec;
  border-top: 2px solid var(--brass);
}

.cta-band .lede {
  color: rgba(238, 240, 236, 0.86);
  max-width: 40rem;
}

.cta-band .h-section {
  max-width: 24ch;
}

.site-footer {
  background: var(--ink);
  color: rgba(238, 240, 236, 0.85);
  padding-top: var(--space-5);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__tag {
  color: rgba(238, 240, 236, 0.7);
  max-width: 30ch;
}

.footer-heading {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238, 240, 236, 0.5);
  margin-bottom: 0.75rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: #eef0ec;
  text-decoration-color: rgba(201, 165, 77, 0.6);
}

.site-footer a:hover {
  color: var(--brass-light);
}

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--space-3);
  font-size: var(--step--1);
  color: rgba(238, 240, 236, 0.55);
}
