/* Appgate x Eduba landing page
   Bespoke build, tokens from brand-pack.json only. */

:root {
  --primary: #0072BA;
  --secondary: #081339;
  --accent: #85C54A;
  --neutral-dark: #151515;
  --neutral-light: #E0E3ED;
  --bg: #FFFFFF;
  --text-body: #2F3233;
  --text-heading: #081339;
  --gradient-light: #65BAE8;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-pill: 2rem;
  --shadow-subtle: 0 1px 2px rgba(8, 19, 57, 0.06);
  --shadow-medium: 0 6px 24px rgba(8, 19, 57, 0.10);
  --unit: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: canada-type-gibson, Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 114, 186, 0.3);
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover,
a:focus-visible {
  color: var(--secondary);
  border-color: var(--secondary);
}
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Layout scaffolding */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--neutral-light);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  height: 28px;
  width: auto;
  display: block;
}
.header-meta {
  font-size: 13px;
  color: var(--secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
  display: none;
}
@media (min-width: 640px) {
  .header-meta { display: inline-block; }
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  background:
    linear-gradient(180deg, #fff 0%, #f4f8fc 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(8, 19, 57, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 19, 57, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 80%);
}
.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(133, 197, 74, 0.18);
}

h1 {
  font-weight: 700;
  color: var(--text-heading);
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 18ch;
}
h1 .accent {
  color: var(--primary);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-body);
  max-width: 60ch;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .hero-sub { font-size: 19px; }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-light);
  margin-top: 32px;
}
.hero-meta .cell {
  min-width: 120px;
}
.hero-meta .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(8, 19, 57, 0.55);
  margin-bottom: 4px;
  font-weight: 600;
}
.hero-meta .value {
  display: block;
  color: var(--text-heading);
  font-weight: 600;
  font-size: 15px;
}

/* Section shared */
section {
  padding: 72px 0;
}
section + section { border-top: 1px solid var(--neutral-light); }

h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}
h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

p + p { margin-top: 14px; }

.lead {
  font-size: 17px;
  max-width: 68ch;
}

/* Frame: 3-layer diagram */
.frame {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .frame { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.layer {
  background: #fff;
  border: 1px solid var(--neutral-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  position: relative;
}
.layer .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 114, 186, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.layer.accent { border-left-color: var(--accent); }
.layer.accent .tag { color: #4d7c2e; background: rgba(133, 197, 74, 0.14); }
.layer p { font-size: 15px; color: var(--text-body); }

/* Proof: KPMG case block */
.proof {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
.proof::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle at center, rgba(101, 186, 232, 0.22), transparent 70%);
  pointer-events: none;
}
.proof .section-eyebrow { color: var(--gradient-light); }
.proof h3 {
  color: #fff;
  font-size: 22px;
  max-width: 32ch;
  margin-bottom: 16px;
  line-height: 1.25;
}
.proof p {
  color: rgba(224, 227, 237, 0.86);
  max-width: 58ch;
  font-size: 15.5px;
}
.proof-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
@media (min-width: 640px) {
  .proof-stats { grid-template-columns: repeat(4, 1fr); }
}
.proof-stats .stat {
  border-top: 1px solid rgba(224, 227, 237, 0.16);
  padding-top: 14px;
}
.proof-stats .num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.proof-stats .lbl {
  font-size: 12px;
  color: rgba(224, 227, 237, 0.68);
  letter-spacing: 0.04em;
}

/* Paper card */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
.card {
  background: #fff;
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.card:hover { box-shadow: var(--shadow-medium); }
.card .kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.card h3 { margin-bottom: 8px; font-size: 17px; }
.card p { font-size: 14.5px; color: var(--text-body); }
.card .link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  font-size: 13.5px;
}

/* Person block */
.person {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}
@media (min-width: 768px) {
  .person { grid-template-columns: 200px 1fr; gap: 32px; }
}
.person .badge {
  background: linear-gradient(160deg, var(--secondary) 0%, #15306b 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
}
.person .badge .who {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gradient-light);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.person .badge .name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.person .badge .role {
  font-size: 13px;
  color: rgba(224, 227, 237, 0.78);
}
.person-body p { font-size: 15.5px; }
.person-body p + p { margin-top: 12px; }

/* CTA section */
.cta {
  background:
    linear-gradient(180deg, #0a1a4a 0%, #081339 60%, #050c27 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(101, 186, 232, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(101, 186, 232, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,0.9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, rgba(0,0,0,0.9), transparent 70%);
  pointer-events: none;
}
.cta .wrap { position: relative; }
.cta .section-eyebrow { color: var(--accent); }
.cta h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 36px);
  max-width: 22ch;
  margin-bottom: 16px;
}
.cta p {
  color: rgba(224, 227, 237, 0.82);
  max-width: 58ch;
  font-size: 16.5px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--primary);
  min-height: 48px;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.btn:hover,
.btn:focus-visible {
  background: #005e99;
  border-color: #005e99;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 114, 186, 0.35);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn .arrow {
  display: inline-block;
  transition: transform 140ms ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.cta-note {
  font-size: 13.5px;
  color: rgba(224, 227, 237, 0.72);
  max-width: 44ch;
}
.cta-note strong { color: #fff; font-weight: 600; }

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: rgba(224, 227, 237, 0.8);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(224, 227, 237, 0.14);
}
.cta-contact strong { color: #fff; font-weight: 600; }

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--neutral-light);
  background: #fff;
  color: rgba(8, 19, 57, 0.62);
  font-size: 13px;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .site-footer .wrap { flex-direction: row; align-items: center; }
}
.site-footer a { color: var(--secondary); }

/* List style */
ul.check {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
ul.check li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Small screens */
@media (max-width: 374px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 40px; }
  section { padding: 56px 0; }
}
