/* TruWAI site. © 2026 TruWAI. All rights reserved. */
:root {
  color-scheme: light;
  --navy: #0F2A44;
  --blue: #1F5F8B;
  --teal: #159A86;
  --teal-dark: #0E7666;
  --muted: #5B6B7F;
  --text: #1B2733;
  --surface: #F5F7FA;
  --border: #DFE5EC;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: #FFFFFF;
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--navy); color: #FFFFFF; padding: 0.5rem 0.9rem; border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; color: #FFFFFF; }

/* Home */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}

.brand { margin: 0; line-height: 0; }
.brand img { width: min(440px, 82vw); height: auto; }

.tagline {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  /* letter-spacing adds space after the last letter; balance it */
  padding-left: 0.32em;
}

.products {
  margin-top: 3.25rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.product {
  width: min(520px, 100%);
  padding: 1.75rem 1.75rem 1.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.product h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--navy);
}

.badge {
  display: inline-block;
  padding: 0.12rem 0.6rem;
  border: 1px solid var(--teal-dark);
  border-radius: 999px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product p { margin: 0 0 1.35rem; }

.button {
  display: inline-block;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease;
}
.button:hover { background: var(--teal-dark); color: #FFFFFF; }

/* Legal pages */
.page-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
}
.page-header .inner { max-width: 820px; margin: 0 auto; display: flex; align-items: center; }
.page-header img { width: 150px; height: auto; display: block; }

.doc {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}
.doc h1 { color: var(--navy); font-size: 2rem; line-height: 1.25; margin: 0 0 0.35rem; }
.doc .effective { color: var(--muted); margin: 0 0 2rem; }
.doc h2 { color: var(--navy); font-size: 1.3rem; line-height: 1.35; margin: 2.4rem 0 0.7rem; }
.doc h3 { color: var(--navy); font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
.doc p, .doc li { max-width: 72ch; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li + li { margin-top: 0.35rem; }
.doc code { font-size: 0.9em; background: var(--surface); padding: 0.05em 0.35em; border-radius: 4px; }

.summary {
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  background: var(--surface);
  padding: 1rem 1.25rem;
}
.summary h2 { margin-top: 0.2rem; }

.table-wrap { overflow-x: auto; margin: 0.9rem 0 1.2rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
th { color: var(--navy); background: var(--surface); font-weight: 650; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--navy); }

@media (max-width: 560px) {
  .hero { padding-top: 3rem; }
  .tagline { font-size: 0.8rem; letter-spacing: 0.24em; padding-left: 0.24em; }
  .product { padding: 1.4rem 1.25rem 1.5rem; }
  .doc h1 { font-size: 1.6rem; }
  .site-footer .inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
