/* Customer-facing pages — landing + portal.
   Light, blue + gold accent, premium feel. Admin UI keeps its own dark styles.css. */

:root {
  --bg:           #ffffff;
  --surface:      #fafbfc;
  --surface-2:    #f8fafc;
  --border:       #e2e8f0;
  --border-strong:#cbd5e1;

  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;

  --blue:         #2563eb;
  --blue-hover:   #1d4ed8;
  --blue-soft:    #dbeafe;
  --blue-deep:    #1e3a8a;

  --gold:         #d4a017;
  --gold-hover:   #b88f15;
  --gold-soft:    #fef3c7;
  --gold-deep:    #92400e;

  --success:      #059669;
  --success-soft: #d1fae5;
  --danger:       #dc2626;
  --danger-soft:  #fee2e2;
  --warning:      #d97706;
  --warning-soft: #fed7aa;

  --radius:       10px;
  --radius-lg:    14px;
  --shadow-sm:    0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow:       0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg:    0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
*::selection { background: var(--blue-soft); color: var(--blue-deep); }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--blue-hover); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 720px; }

/* ───── Nav ───── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav .brand,
a.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.brand-text { color: var(--text); }
.brand-tld { color: #0d9488; }       /* teal — matches the SVG mark accent */
.brand-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 1px;
}
.brand-stack {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

/* Hero-sized logo block for the landing page */
.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2rem;
}
.hero-logo .brand-mark {
  width: 56px;
  height: 56px;
}
.hero-logo .brand-text { font-size: 1.7rem; }
.hero-logo .brand-sub { font-size: 0.72rem; }
.nav-links a {
  color: var(--text-muted);
  margin-left: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.cta-link {
  color: white;
  background: var(--blue);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-links a.cta-link:hover { background: var(--blue-hover); color: white; }

/* ───── Hero ───── */

.hero {
  text-align: center;
  padding: 5.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  z-index: -1;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--gold-soft);
  color: var(--gold-deep);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.tag::before {
  content: "★";
  color: var(--gold);
  font-size: 0.9em;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: var(--blue-deep);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue) 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ───── Buttons ───── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface);
  color: var(--text);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: white;
  box-shadow: var(--shadow);
}
.btn-gold:hover {
  filter: brightness(1.05);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
}
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-danger {
  background: white;
  color: var(--danger);
  border-color: var(--border-strong);
}
.btn-danger:hover { background: var(--danger-soft); }
.btn-row { display: inline-flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ───── Feature grid ───── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 3rem 0;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all .2s;
}
.feature:hover {
  border-color: var(--blue-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.feature p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.92rem;
}

/* ───── Steps section ───── */

.how {
  padding: 3.5rem 0 4rem;
  border-top: 1px solid var(--border);
}
.how h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 2.5rem;
  color: var(--text);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--gold);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.step h4 { font-size: 0.95rem; margin: 0 0 0.35rem; font-weight: 700; }
.step p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.step code {
  display: inline-block;
  background: white;
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ───── Footer ───── */

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}
.footer a {
  color: var(--text-muted);
  margin: 0 0.6rem;
}
.footer a:hover { color: var(--text); }
.footer .copyright { display: block; margin-top: 0.8rem; opacity: 0.85; }

/* ───── Portal dashboard ───── */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.45rem;
  font-size: 0.88rem;
  color: var(--text);
}
.user-chip .dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--success);
}
.user-chip .signout {
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  padding-left: 0.7rem;
  margin-left: 0.3rem;
  font-size: 0.85rem;
}
.user-chip .signout:hover { color: var(--text); }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 1rem;
}
.card-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.card .hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ───── Forms ───── */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  align-items: end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.input, .field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  background: white;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field input:disabled,
.field input[readonly] {
  background: var(--surface);
  color: var(--text-muted);
  cursor: not-allowed;
}
.field textarea { resize: vertical; min-height: 90px; }

/* ───── Tables ───── */

.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
td.mono { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }
td .sub { color: var(--text-muted); font-size: 0.85rem; display: block; margin-top: 0.15rem; }

/* ───── Badges ───── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.badge.active   { background: var(--success-soft); color: var(--success); border-color: rgba(5, 150, 105, 0.25); }
.badge.approved { background: var(--success-soft); color: var(--success); border-color: rgba(5, 150, 105, 0.25); }
.badge.pending  { background: var(--blue-soft);    color: var(--blue);    border-color: rgba(37, 99, 235, 0.25); }
.badge.revoked  { background: var(--danger-soft);  color: var(--danger);  border-color: rgba(220, 38, 38, 0.25); }
.badge.rejected { background: var(--danger-soft);  color: var(--danger);  border-color: rgba(220, 38, 38, 0.25); }
.badge.expired  { background: var(--warning-soft); color: var(--warning); border-color: rgba(217, 119, 6, 0.25); }
.badge.gold     { background: var(--gold-soft);    color: var(--gold-deep); border-color: rgba(212, 160, 23, 0.3); }
.badge.gold::before { content: "✦"; color: var(--gold); }

/* ───── States ───── */

.error {
  color: var(--danger);
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
  min-height: 1.25em;
}
.success-box {
  background: var(--success-soft);
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
}
.success-box h3 {
  color: var(--success);
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.success-box p { margin: 0; color: var(--text); font-size: 0.9rem; }

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 2rem;
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

/* ───── Sign-in screen ───── */

.signin-screen {
  max-width: 460px;
  margin: 5rem auto 3rem;
  text-align: center;
  padding: 0 1.5rem;
}
.signin-screen h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.signin-screen .lede {
  color: var(--text-muted);
  margin: 0 0 2rem;
}
.signin-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}
.signin-card .google-mount {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.gold-rule {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border: none;
  border-radius: 999px;
  margin: 0 auto 1.5rem;
}

/* ───── Nav inner wrapper ───── */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   APP SHELL — sidebar dashboard layout (signed-in view)
   ═══════════════════════════════════════════════════════ */

:root {
  --topbar-h: 64px;
  --sidebar-w: 240px;
  --app-max-w: 1440px;
}

.app-shell {
  min-height: 100vh;
  background: var(--surface-2);
}

/* ── Top bar ── */

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
}
.app-topbar-inner {
  max-width: var(--app-max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Two-column body (sidebar + main) ── */

.app-body {
  max-width: var(--app-max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 2.25rem;
  align-items: start;
}

/* ── Sidebar ── */

.app-sidebar {
  position: sticky;
  top: calc(var(--topbar-h) + 1.5rem);
  padding: 1.5rem 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;            /* small gap → blocks feel close, flowing */
  height: calc(100vh - var(--topbar-h) - 2rem);
  overflow-y: auto;
}

/* ── Each sidebar group is its own tinted block ── */

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.6rem 0.85rem 0;  /* room for items, no left padding so active border sits flush */
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

/* Admin block — pale blue tint */
#sidebar-admin-group {
  background: #eff6ff;             /* whisper blue */
  border-color: #dbeafe;
}
#sidebar-admin-group .sidebar-group-title {
  color: var(--blue-deep);
}
#sidebar-admin-group .sidebar-group-icon { color: var(--blue); }

/* Portal block — pale gold tint */
#sidebar-portal-group {
  background: #fefce8;             /* whisper gold */
  border-color: #fde68a;
}
#sidebar-portal-group .sidebar-group-title {
  color: var(--gold-deep);
}
#sidebar-portal-group .sidebar-group-icon { color: var(--gold); }

/* Group title — bigger, bolder, with icon */
.sidebar-group-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0.85rem 0.55rem;
  margin: 0;
}
.sidebar-group-icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* ── Sidebar items ── */

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
  border-radius: 0 6px 6px 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.sidebar-item:hover {
  background: rgba(15, 23, 42, 0.04);    /* neutral darken — works on both tints */
  color: var(--text);
}

/* Active item: white background pops cleanly on top of the tinted block;
   gold left bar is the unifying signal across both blocks. */
.sidebar-item.active {
  background: white;
  color: var(--blue-deep);
  border-left-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
#sidebar-portal-group .sidebar-item.active {
  color: var(--gold-deep);
}

.sidebar-item-label { flex: 1; }
.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  min-width: 1.25rem;
  height: 1.25rem;
}
.sidebar-item.active .sidebar-badge {
  background: var(--blue-deep);
}

.sidebar-footer {
  margin-top: auto;
  padding: 0 0.85rem;
  padding-top: 0.5rem;
}
.sidebar-footer-link {
  color: var(--text-light);
  font-size: 0.82rem;
  text-decoration: none;
}
.sidebar-footer-link:hover { color: var(--text); }

/* ── Main content area ── */

.app-main {
  padding: 1.5rem 0 4rem;
  min-width: 0;  /* allow grid child to shrink below content size */
}

.section-page {
  /* Hidden sections get [hidden] which the browser respects */
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.25rem;
}
.section-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.005em;
}
.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

/* Make cards in main use the full available width */
.app-main .card {
  margin-bottom: 0;
}

/* ───── Hero sign-in card ───── */
.signin-card.hero-signin {
  max-width: 460px;
  margin: 2rem auto 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   Landing page — workflow + comparison + final CTA
   ═══════════════════════════════════════════════════════ */

.section-h2 {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.section-lede {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

/* ── 4-step workflow with arrows ── */

.workflow-section {
  padding: 4rem 0 3rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.workflow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}
.workflow-step {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s;
}
.workflow-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.workflow-step .step-num {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-hover));
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}
.workflow-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.workflow-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.workflow-step code {
  background: var(--surface);
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82em;
}
.workflow-step .step-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 700;
  user-select: none;
  opacity: 0.55;
}

/* ── Two-column comparison: portal vs gateway ── */

.compare-section {
  padding: 4rem 0;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.compare-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.compare-col-header {
  margin-bottom: 0.25rem;
}
.compare-col-header .badge {
  margin-bottom: 0.65rem;
}
.compare-col-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}
.compare-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.compare-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.compare-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}
.compare-col:nth-child(1) .compare-card .icon {
  background: var(--gold-soft);
  color: var(--gold-deep);
}
.compare-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text);
}
.compare-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.compare-card code {
  background: var(--surface);
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ── Final CTA section ── */

.final-cta {
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--gold-soft) 100%);
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.final-cta h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--blue-deep);
  letter-spacing: -0.015em;
}
.final-cta p {
  color: var(--text);
  font-size: 1.02rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  opacity: 0.85;
}
.final-cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ───── Nav link styles for signed-in chip ───── */
.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* Helper utility classes */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .nav-links a { margin-left: 0.8rem; font-size: 0.85rem; }
  .nav-links a.cta-link { padding: 0.4rem 0.75rem; }
  .hero { padding: 3rem 0 2rem; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
