/* Pennant Apps Ltd — Responsive B2B Compliance & Trust Stylesheet */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-navy: #0b1220;
  --bg-navy-elevated: #111c33;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #e2e8f0;
  --border: #e2e8f0;
  --border-dark: rgba(148, 163, 184, 0.22);
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #eff6ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --emerald-border: #a7f3d0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --container-max: 1120px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-navy);
  color: #ffffff;
  padding: 0.75rem 1rem;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.125rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  min-height: 44px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.125rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--bg-soft);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.375rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
  background: var(--bg-soft);
  text-decoration: none;
}

.nav-link[aria-current="page"] {
  font-weight: 600;
  color: var(--primary);
}

.nav-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 0.75rem 1.125rem 1.125rem;
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-drawer .nav-link {
  width: 100%;
  padding-inline: 0.75rem;
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6875rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

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

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: #cbd5e1;
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--border-dark);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  color: #ffffff;
  padding-block: 3.5rem 4rem;
  border-bottom: 1px solid #1e293b;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.pill-emerald-dark {
  background: rgba(5, 150, 105, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pill-emerald {
  background: var(--emerald-soft);
  color: #065f46;
  border: 1px solid var(--emerald-border);
}

.pill-blue {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(1.875rem, 4.2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 58ch;
}

/* Architecture Trust Card */
.trust-card {
  background: var(--bg-navy-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 1.375rem;
  box-shadow: var(--shadow-md);
}

.trust-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.875rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-dark);
}

.trust-card-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.boundary-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.boundary-node {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
}

.boundary-node-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #93c5fd;
  margin-bottom: 0.2rem;
}

.boundary-node-title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #ffffff;
}

.boundary-node-desc {
  font-size: 0.8125rem;
  color: #cbd5e1;
  margin-top: 0.2rem;
}

.boundary-arrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #6ee7b7;
}

.boundary-egress-blocked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(5, 150, 105, 0.12);
  border: 1px dashed rgba(110, 231, 183, 0.45);
  font-size: 0.8125rem;
  color: #a7f3d0;
}

.mono {
  font-family: var(--font-mono);
}

/* Trust Strip */
.trust-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem;
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.trust-icon {
  width: 22px;
  height: 22px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.trust-item h2 {
  margin: 0 0 0.125rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.trust-item p {
  margin: 0;
  font-size: 0.84375rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Sections */
.section {
  padding-block: 3.5rem;
}

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

.section-header {
  max-width: 64ch;
  margin-bottom: 2.25rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.8vw, 2.0625rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.03125rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-navy);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* About & CTA Panel */
.about-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.about-meta {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.meta-list {
  margin: 0;
  display: grid;
  gap: 0.875rem;
}

.meta-list dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.meta-list dd {
  margin: 0.125rem 0 0;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  word-break: break-word;
}

/* Subpage Banner & Prose */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding-block: 2.5rem;
}

.page-hero h1 {
  margin: 0.625rem 0 0.625rem;
  font-size: clamp(1.75rem, 3.2vw, 2.375rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 65ch;
  font-size: 1.03125rem;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.375rem;
  color: var(--text-muted);
}

.prose li {
  margin-bottom: 0.45rem;
}

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 1rem 1.125rem;
  margin-block: 1.5rem;
}

.callout-emerald {
  background: var(--emerald-soft);
  border-color: var(--emerald-border);
  border-left-color: var(--emerald);
}

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

/* Responsive Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-block: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
}

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

/* Support Utilities */
.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.email-chip {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  word-break: break-all;
}

.copy-status {
  font-size: 0.84375rem;
  font-weight: 600;
  color: var(--emerald);
  min-height: 1.25em;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
  background: var(--bg);
}

.faq-item + .faq-item {
  margin-top: 0.875rem;
}

.faq-item h3 {
  margin: 0 0 0.375rem;
  font-size: 1.03125rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  background: var(--bg-navy);
  color: #cbd5e1;
  padding-block: 2.75rem 2.25rem;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.0625rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #94a3b8;
  max-width: 44ch;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.84375rem;
  color: #94a3b8;
}

/* Breakpoints */
@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }

  .trust-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .nav-toggle,
  .nav-drawer {
    display: none !important;
  }

  .nav-desktop {
    display: flex;
  }

  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-panel {
    grid-template-columns: 1.35fr 1fr;
    padding: 2.25rem;
  }

  .footer-top {
    flex-direction: row;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 4.5rem 5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .trust-strip-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding-block: 4.5rem;
  }
}
