/* N School marketing page: the N Suite banking page's design, in N School's
   colours (from the N School sales page). Light only, like the banking page. */
:root {
  --paper: #FFFFFF;
  --stone: #F1F6FA;      /* hero, cards */
  --stone-2: #E6EEF4;
  --tint: #DFF0FB;       /* film poster, reel */
  --line: #DFE6EC;
  --ink: #1C1B2E;
  --ink-70: #45505C;
  --ink-45: #6B7684;
  --brand: #00A5ED;      /* N School blue */
  --accent: #076C9C;     /* headings' emphasis, buttons */
  --accent-ink: #055372;
  --deep: #06293A;       /* the film section */
  --deep-2: #0B3A52;
  --on-deep: #F5F9FC;
  --deep-text: #C9D6E0;
  --hi: #6BCDF9;         /* emphasis on dark */
  --maxw: 1240px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 2px rgba(28, 27, 46, .05), 0 18px 50px -22px rgba(28, 27, 46, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 Figtree, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
em { font-style: normal; font-weight: 700; color: var(--accent); }

.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 300; line-height: 1.04; }
h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 300; line-height: 1.06; }
h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 300; line-height: 1.12; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-70); font-weight: 400; line-height: 1.5; max-width: 34em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; background: var(--accent); color: #fff; border: 1.5px solid var(--accent); font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn:disabled, .btn.off { opacity: .45; cursor: not-allowed; pointer-events: none; }
.play-ic { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.arr { display: inline-block; transition: transform .2s var(--ease); }
a:hover .arr, button:hover .arr { transform: translateX(4px); }

/* UST mark and the N School wordmark */
.ust { display: inline-grid; grid-template-columns: auto auto; gap: 0 5px; font-weight: 700; font-size: 12px; line-height: 1; letter-spacing: .02em; }
.ust .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; justify-self: center; align-self: center; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.wordmark img { width: 26px; height: 26px; border-radius: 6px; }
.wordmark.light { color: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: transparent; transition: background .25s, box-shadow .25s; }
.nav.scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .sep { width: 1px; height: 22px; background: var(--line); }
.brand .sub { font-size: 13px; color: var(--ink-45); padding-left: 14px; border-left: 1px solid var(--line); }
.links { display: flex; gap: 26px; list-style: none; margin: 0 auto; padding: 0; font-size: 14px; font-weight: 500; }
.links a { padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.links a:hover { border-color: var(--brand); }
.hero ~ * { position: relative; }

/* 1 · Hero */
.hero { background: var(--stone); margin-top: -66px; padding-top: 66px; }
.hero > .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--d, 0s) var(--ease) forwards; }
.hero .lede { margin: 0 0 36px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fade { opacity: 0; animation: fade 1s .1s var(--ease) forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
.reel { background: var(--tint); border-radius: 6px; box-shadow: var(--shadow); padding: 22px 22px 0; overflow: hidden; opacity: 0; animation: fade 1.2s .45s var(--ease) forwards; }
.reel-head .k { font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.reel-head .t { font-size: 22px; font-weight: 400; letter-spacing: -.01em; margin: 4px 0 18px; }
.reel-head .t b { color: var(--accent); font-weight: 700; }
.reel-shots { position: relative; height: 250px; }
.reel-shots .desk { position: absolute; left: 0; top: 0; width: 82%; border-radius: 6px 6px 0 0; box-shadow: var(--shadow); }
.reel-shots .phone { position: absolute; right: 2%; top: 12px; width: 25%; border-radius: 16px; border: 4px solid var(--ink); box-shadow: var(--shadow); }
.strip { border-top: 1px solid var(--line); background: #fff; }
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.strip .logos { display: flex; gap: 40px; flex-wrap: wrap; }
.strip .logo { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 400; color: var(--ink-70); }
.strip .logo img { width: 24px; height: 24px; border-radius: 5px; }
.strip .logo.main { font-weight: 600; color: var(--ink); padding-right: 32px; border-right: 1px solid var(--line); }
.strip .logo.sub { font-size: 16px; }
.strip .logos { align-items: center; }
.strip .built { font-size: 13px; color: var(--ink-45); }
.strip .built b { color: var(--ink); }

/* Scroll reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--d, 0s) var(--ease), transform .9s var(--d, 0s) var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .reel, .fade, .hero h1 .line > span { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* 2 · The apps */
.apps { padding: 120px 0 130px; }
.apps h2 { max-width: 12em; margin-bottom: 28px; }
.apps .lede { margin: 0 0 56px; max-width: 30em; }
.app-grid { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 18px; }
.app-card { display: flex; flex-direction: column; background: var(--stone); border-top: 4px solid var(--c); padding: 20px 20px 24px; transition: transform .3s var(--ease), box-shadow .3s; }
a.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app-card .shot { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; box-shadow: 0 10px 30px -16px rgba(28, 27, 46, .35); margin-bottom: 22px; }
.app-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.app-card .k { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.app-card h3 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card p { font-size: 14px; color: var(--ink-70); margin: 0 0 18px; flex: 1; }
.more { font-size: 13px; font-weight: 700; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.more.off { color: var(--ink-45); cursor: default; }
.soon { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a5a00; background: #FCEFD2; padding: 3px 7px; border-radius: 3px; }
.soon-card { opacity: .78; }
.soon-card .shot img { filter: grayscale(.6); }

/* Status chips: coming soon, new, last updated */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; line-height: 1.4; }
.chip.upd { background: var(--tint); color: var(--accent-ink); }
.chip.new { background: #DDF5EA; color: #0B6B45; }
.chip.soon { background: #FCEFD2; color: #8a5a00; }

/* 3 · The film */
.dark { background: var(--deep); color: var(--on-deep); }
.dark .eyebrow { color: var(--hi); }
.dark em { color: var(--hi); }
.dark .lede { color: var(--deep-text); }
.watch { padding: 110px 0 110px; }
.watch-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.watch-head .lede { margin: 0; }
.film { position: relative; aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.film video { width: 100%; height: 100%; display: block; background: #000; }
.film-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.film-play:disabled { cursor: default; }
.poster { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; padding: 0 5%; color: var(--ink); }
.pcopy .wordmark { font-size: 30px; font-weight: 400; gap: 12px; }
.pcopy .wordmark img { width: 46px; height: 46px; border-radius: 10px; }
.ptitle { font-size: clamp(22px, 2.6vw, 36px); font-weight: 300; line-height: 1.15; margin: 22px 0 18px; letter-spacing: -.02em; }
.ptitle b { color: var(--accent); font-weight: 700; }
.psub { font-size: 14px; color: var(--ink-70); display: flex; align-items: center; gap: 6px; }
.psub .ust { font-size: 10px; color: var(--ink); }
.pshots { position: relative; height: 78%; }
.pshots .desk { position: absolute; left: 0; top: 8%; width: 86%; box-shadow: var(--shadow); border-radius: 6px; }
.pshots .phone { position: absolute; right: 0; top: 18%; width: 22%; border-radius: 18px; border: 5px solid var(--ink); box-shadow: var(--shadow); }
.film-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 41, 58, .85)); }
.film-ic { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 92px; height: 92px; border-radius: 50%; background: rgba(7, 108, 156, .92); box-shadow: 0 0 0 10px rgba(255, 255, 255, .25); z-index: 2; transition: transform .3s var(--ease); }
.film-ic::after { content: ""; position: absolute; left: 37px; top: 30px; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.film-play:hover .film-ic, .v-over-media:hover .film-ic, .v-media:hover .film-ic { transform: translate(-50%, -50%) scale(1.06); }
.film-meta { position: absolute; left: 3%; bottom: 6%; z-index: 2; color: #fff; display: flex; flex-direction: column; gap: 6px; }
.film-meta b { font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; }
.film-meta span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hi); }

/* 4 · N School Browser, explained */
.app-sec { padding: 130px 0 60px; }
.sec-head .wordmark { font-size: 26px; font-weight: 400; gap: 10px; margin-bottom: 18px; }
.sec-head .wordmark img { width: 38px; height: 38px; border-radius: 8px; }
.sec-head h2 { font-size: clamp(40px, 5.4vw, 70px); margin-bottom: 72px; }
.modules { display: grid; grid-template-columns: 170px 1fr; gap: 24px 48px; background: var(--stone); padding: 44px 40px; margin-bottom: 120px; }
.count b { display: block; font-size: 110px; font-weight: 300; line-height: .9; color: var(--accent); letter-spacing: -.04em; }
.count span { display: block; font-size: 13px; margin-top: 12px; color: var(--ink-70); max-width: 9em; }
.groups { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.group .k { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: #fff; font-size: 13px; padding: 6px 10px 6px 20px; position: relative; }
.chips span::before { content: ""; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--brand); }
.plus { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; color: var(--ink-70); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pill { background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; padding: 5px 10px; }

.feat { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; margin-bottom: 140px; }
.feat.vf { grid-template-columns: 1.25fr 1fr; }
.feat .eyebrow { margin-bottom: 14px; }
.feat h3 { margin-bottom: 18px; }
.feat p { color: var(--ink-70); font-size: 16px; margin: 0 0 20px; max-width: 30em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: var(--stone); font-size: 12px; font-weight: 600; padding: 6px 10px; }
.shot.desk { box-shadow: var(--shadow); border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.shot.desk img { width: 100%; }
.fvis.stack { position: relative; padding-bottom: 18%; }
.fvis.stack .small { position: absolute; width: 58%; right: -4%; bottom: 0; }
.fvis.phones { display: flex; gap: 24px; justify-content: center; background: var(--tint); padding: 48px 24px; }
.shot.phone { width: 42%; max-width: 230px; border-radius: 26px; overflow: hidden; border: 6px solid var(--ink); box-shadow: var(--shadow); background: #fff; }
.shot.phone:nth-child(2) { transform: translateY(36px); }
.fvis.chat { background: var(--deep); padding: 44px 40px 28px; }
.convo { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.convo .me { align-self: flex-end; background: var(--accent); color: #fff; padding: 12px 16px; max-width: 78%; border-radius: 14px 14px 4px 14px; }
.convo .them { align-self: flex-start; background: #fff; color: var(--ink); padding: 14px 16px; max-width: 88%; border-radius: 14px 14px 14px 4px; }
.convo .them .k { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.convo b { color: var(--accent-ink); }
.bars { display: grid; gap: 6px; margin-top: 12px; font-size: 12px; }
.bars span { position: relative; padding: 5px 8px; z-index: 0; display: flex; justify-content: space-between; }
.bars i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tint); z-index: -1; }
.fvis.chat .note { color: var(--deep-text); font-size: 11px; margin: 22px 0 0; }

/* 5 · Feature videos */
.videos { background: var(--stone); padding: 120px 0 140px; }
.vtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.vtabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; font-weight: 600; font-size: 15px; color: var(--ink-45); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-bottom: -1px; }
.vtabs button:hover { color: var(--ink); }
.vtabs button.on { color: var(--ink); border-color: var(--brand); }
.v-empty { background: #fff; padding: 48px; color: var(--ink-70); }
.v-over { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; background: #fff; margin-bottom: 28px; box-shadow: 0 10px 30px -22px rgba(28, 27, 46, .4); }
.v-over-media, .v-media { all: unset; position: relative; display: block; aspect-ratio: 16 / 9; background: var(--deep); cursor: pointer; overflow: hidden; }
.v-over-media:disabled, .v-media:disabled { cursor: default; }
.v-over-media video, .v-media video, .v-over-media img, .v-media img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.v-over-txt { padding: 36px 36px 32px; display: flex; flex-direction: column; align-items: flex-start; }
.v-over-txt h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 12px; }
.v-over-txt p { color: var(--ink-70); margin: 0 0 12px; }
.v-over-txt .count { font-size: 13px; color: var(--ink-45); margin-bottom: 24px; flex: 1; }
.film-ic.sm { width: 56px; height: 56px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); top: 50%; }
.film-ic.sm::after { left: 22px; top: 18px; border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; }
.v-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.v-card { background: #fff; display: flex; flex-direction: column; border-top: 3px solid var(--brand); }
.v-card.none { border-top-color: var(--line); }
.v-card.none .v-media { background: repeating-linear-gradient(135deg, var(--stone) 0 10px, var(--stone-2) 10px 20px); }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 12px; font-weight: 600; color: var(--ink-45); letter-spacing: .02em; }
.v-over-media .ph { color: var(--deep-text); }
.ph-ic { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; opacity: .7; }
.ph-ic::after { content: ""; position: absolute; left: 14px; top: 11px; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.v-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.v-body .k { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.v-body h4 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.v-body p { font-size: 13px; color: var(--ink-70); margin: 0 0 14px; }
.v-body .more { margin-top: auto; }

/* Player */
.player { position: fixed; inset: 0; z-index: 100; background: rgba(6, 20, 30, .82); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .25s ease forwards; }
.player-box { background: #fff; width: min(1120px, 100%); max-height: 100%; display: flex; flex-direction: column; outline: none; }
.player-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.player-head .k { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.player-head b { font-size: 18px; }
.player-head .x { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink-45); }
.player video { width: 100%; max-height: 70vh; background: #000; display: block; }
.player-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: 13px; color: var(--ink-45); }
.player-foot .btn:disabled { opacity: .35; }

/* Footer */
.foot { background: #0B1A24; color: var(--deep-text); padding: 48px 0; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .brand { color: #fff; }
.foot .brand .sep { background: rgba(255, 255, 255, .2); }
.foot p { margin: 0; font-size: 13px; }

/* Smaller screens */
@media (max-width: 1080px) {
  .app-grid, .v-grid { grid-template-columns: repeat(2, 1fr); }
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  .groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero > .wrap, .watch-head, .feat, .feat.vf, .v-over, .modules { grid-template-columns: 1fr; }
  .feat.vf > .fvis { order: 2; }
  .feat { gap: 36px; margin-bottom: 96px; }
  .poster { grid-template-columns: 1fr; padding: 6%; }
  .pshots { display: none; }
  .groups { grid-template-columns: 1fr; }
  .brand .sub, .strip .built { display: none; }
}
@media (max-width: 560px) {
  .app-grid, .v-grid { grid-template-columns: 1fr; }
  .nav .btn { display: none; }
  .strip .logos { gap: 18px; }
  .strip .logo { font-size: 15px; }
  .count b { font-size: 80px; }
  .film-ic { width: 64px; height: 64px; }
  .film-ic::after { left: 25px; top: 20px; border-left-width: 18px; border-top-width: 12px; border-bottom-width: 12px; }
  .fvis.chat { padding: 28px 20px 20px; }
}
