/* ==========================================================================
   Base
   ========================================================================== */

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  line-height: 1.6;
  color: #111827; /* gray-900 */
  background-color: #f9fafb; /* gray-50 */
}

/* Improve text rendering & links */
body,
button,
input,
select,
textarea {
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2563eb; /* blue-600 */
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.page-main {
  padding: 1.5rem 1rem 3rem;
}

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background-color: #f3f4f6; /* gray-100 */
}

.section-inner,
.page-header-inner,
.site-header-inner,
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

.layout-two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
}

@media (max-width: 768px) {
  .layout-two-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: #111827;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 0.75rem;
}

ul,
ol {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
}

.lede {
  font-size: 1.05rem;
  max-width: 52rem;
  color: #4b5563; /* gray-600 */
}

/* ==========================================================================
   Header & Navigation (cleaned)
   ========================================================================== */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Brand with optional logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #111827;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: #6b7280; /* gray-500 */
}

/* Navigation */

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #374151; /* gray-700 */
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
  background-color: #eff6ff; /* blue-50 */
  color: #1d4ed8; /* blue-700 */
  text-decoration: none;
}

.nav-link.active,
.nav-link[aria-current="page"] {
  background-color: #1d4ed8; /* blue-700 */
  color: #ffffff;
}

/* Mobile header behavior */
@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    width: 100%;
    justify-content: flex-start;
    row-gap: 0.35rem;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 26px;
  }

  /* Optional: hide subtitle on very small screens if it feels cramped */
  .brand-subtitle {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: radial-gradient(circle at top left, #eff6ff, #ffffff 55%);
  padding: 2.5rem 0 2.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.hero-copy p {
  font-size: 1rem;
  color: #4b5563;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-media {
  text-align: right;
}

.hero-media img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    display: none; /* hide media on small screens if no strong image */
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid #d1d5db; /* gray-300 */
  background-color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease,
    box-shadow 0.12s ease, color 0.12s ease;
}

.btn:hover,
.btn:focus {
  background-color: #f3f4f6;
  border-color: #9ca3af; /* gray-400 */
  text-decoration: none;
}

.btn.primary {
  border-color: #1d4ed8;
  background-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn.primary:hover,
.btn.primary:focus {
  background-color: #1e40af; /* blue-800 */
  border-color: #1e40af;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.25);
}

/* Centered CTA in sections */
.section-cta {
  margin-top: 1.5rem;
  text-align: center;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.card h3 {
  margin-bottom: 0.4rem;
}

.card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Page headers
   ========================================================================== */

.page-header {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background-color: #ffffff;
}

.page-header h1 {
  font-size: 1.7rem;
}

.page-header .lede {
  margin-top: 0.25rem;
}

/* ==========================================================================
   Tables – Standards
   ========================================================================== */

.standards-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.standards-table th,
.standards-table td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
}

.standards-table th {
  font-weight: 600;
  background-color: #f9fafb;
  font-size: 0.85rem;
  color: #4b5563;
}

.standards-table tr:last-child td {
  border-bottom: none;
}

.standards-table tbody tr:hover {
  background-color: #f3f4f6;
}

/* ==========================================================================
   News list
   ========================================================================== */

.news-list {
  max-width: 720px;
}

.news-item {
  background-color: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.news-item h2 {
  font-size: 1.2rem;
}

.news-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.news-note {
  font-size: 0.85rem;
  color: #6b7280;
}

/* ==========================================================================
   Logos / grid helpers
   ========================================================================== */

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.logo-grid img {
  max-height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.78;
}

.logo-grid img:hover {
  filter: none;
  opacity: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background-color: #ffffff;
  padding: 1.5rem 0 2rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-links a {
  color: #6b7280;
}

.footer-links a:hover {
  color: #111827;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Misc
   ========================================================================== */

.section-inner > h2:first-child {
  margin-top: 0;
}

.section-inner > p:first-of-type {
  margin-top: 0.25rem;
}

/* Slightly tighter list spacing in some areas */
.section-inner ul li,
.section-inner ol li {
  margin-bottom: 0.15rem;
}

/* ==========================================================================
   Highlighted section – OATH & Passwordless
   ========================================================================== */

.section-highlight {
  background: radial-gradient(circle at top left, #eff6ff, #ffffff 55%);
  border-top: 1px solid #bfdbfe; /* blue-200 */
  border-bottom: 1px solid #bfdbfe;
}

.section-highlight .section-inner {
  background-color: #eff6ff; /* blue-50 */
  border-radius: 0.9rem;
  border: 1px solid #bfdbfe;
  box-shadow: 0 14px 35px rgba(59, 130, 246, 0.15);
  padding: 1.75rem 1.5rem;
  position: relative;
}

.highlight-label {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: #dbeafe; /* blue-100 */
  color: #1d4ed8;           /* blue-700 */
  margin-bottom: 0.5rem;
}

.section-highlight h2 {
  margin-top: 0.1rem;
}

.highlight-link {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.highlight-link a {
  font-weight: 500;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #111827;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
}

@media (max-width: 480px) {
  .brand-logo {
    height: 26px;
  }

  .brand-subtitle {
    display: none; /* optional: hide subtitle on very small screens */
  }
}

/* ==========================================================================
   FAQ layout tweaks
   ========================================================================== */

.faq-main .page-header-inner,
.faq-main .section-inner {
  max-width: 720px;  /* slightly narrower column for FAQ */
}

/* Slightly smaller bullets for FAQ lists */
.faq-main .section-inner ul {
  margin-left: 1.1rem;
}

