/* Cognito Technologies: same palette and type as Cognito Expenses (CAVE theme). */
:root {
  --navy: #0a1633;
  --navy2: #111f45;
  --deep: #070f24;
  --blue: #084af3;
  --blue-light: #5b86ff;
  --blue-soft: #e9efff;
  --red: #f42525;
  --red-strong: #dc1f1f;
  --red-deep: #c11a1a;
  --ink: #0f172a;
  --text: #3d4556;
  --muted: #667085;
  --tint: #f3f6fd;
  --line: #e3e8f2;
  --hero-text: #c9d3ea;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 17px/1.65 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { font-family: 'Roboto Slab', Georgia, serif; color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 22, 51, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-header .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand span { font: 700 18px/1 'Roboto Slab', Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 6px; flex: none; }
.nav a { color: #d6def0; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none; white-space: nowrap; border: 2px solid transparent; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn-red { background: var(--red-strong); border-color: var(--red-strong); color: #fff; }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(244, 37, 37, .3); }
.btn-ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn svg { width: 16px; height: 16px; }

/* Hero */
.hero { color: var(--hero-text); padding: 88px 0 96px; background: radial-gradient(1200px 600px at 85% 10%, #173a9e 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%); }
.hero.compact { padding: 64px 0 72px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.hero .eyebrow { color: var(--blue-light); }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 6vw, 3.9rem); letter-spacing: -.01em; max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 36em; margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Sections */
.section { padding: 88px 0; }
.section.tint { background: var(--tint); }
.section-head { max-width: 46em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; }

/* Principles */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.grid-3 > div { background: #fff; padding: 30px 28px; }
.icon-chip { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); margin-bottom: 16px; }
.icon-chip svg { width: 20px; height: 20px; }
.grid-3 h3 { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.grid-3 p { font-size: 15px; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.app-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.app-card { text-decoration: none; color: inherit; }
a.app-card:hover { border-color: #c9d6f5; box-shadow: 0 18px 40px rgba(10, 22, 51, .1); transform: translateY(-3px); }
.app-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-top img { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 4px 12px rgba(10, 22, 51, .12); }
.app-top h3 { font-size: 22px; }
.app-top .tagline { color: var(--muted); font-size: 15px; margin-top: 2px; }
.app-card .desc { font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; padding: 0; list-style: none; }
.tags li { font-size: 13px; font-weight: 500; color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 4px 12px; }
.app-card .open { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--red-strong); }
.app-card .open svg { width: 16px; height: 16px; transition: transform .15s; }
a.app-card:hover .open svg { transform: translateX(3px); }
.soon { border-style: dashed; background: transparent; justify-content: center; align-items: flex-start; }
.soon .placeholder { width: 64px; height: 64px; border-radius: 16px; border: 2px dashed #c3cde3; display: flex; align-items: center; justify-content: center; color: #9aa7c4; font: 700 28px/1 'Roboto Slab', serif; margin-bottom: 18px; }
.soon h3 { font-size: 22px; margin-bottom: 6px; }
.soon p { color: var(--muted); font-size: 15px; }

/* Featured (home) */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.featured .copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 4px 0 14px; }
.featured .copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.phone { justify-self: center; width: 100%; max-width: 380px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%); border-radius: 24px; padding: 26px; color: var(--hero-text); box-shadow: 0 24px 60px rgba(10, 22, 51, .25); }
.phone .ph-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.phone .ph-head img { width: 42px; height: 42px; border-radius: 12px; }
.phone .ph-head b { display: block; color: #fff; font-family: 'Roboto Slab', serif; }
.phone .ph-head small { color: #9fb0d4; font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; margin-top: 10px; font-size: 15px; }
.row b { color: #fff; font-weight: 500; }
.row .arrow { color: #9fb0d4; }
.row .amt { color: #fff; font-family: 'Roboto Slab', serif; font-weight: 700; }

/* CTA band */
.cta { color: var(--hero-text); padding: 72px 0; background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.cta h2 em { font-style: normal; color: var(--red); }
.cta p { margin-top: 10px; font-size: 1.1rem; }

/* Footer */
.site-footer { background: var(--deep); color: #8796b8; font-size: 14px; padding: 36px 0; }
.site-footer .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand img { width: 26px; height: 26px; }
.site-footer .brand span { font-size: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer nav a { color: #fff; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .fine { margin-top: 18px; font-size: 13px; line-height: 1.6; max-width: 60em; }

/* 404 */
.notfound { min-height: 60vh; display: flex; align-items: center; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .apps { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 68px; }
  .section { padding: 64px 0; }
  .app-card { padding: 22px; }
}
@media (max-width: 420px) {
  .site-header .brand-long { display: none; }
  .nav a { padding: 8px 9px; }
}
