/* ==========================================================================
   NookPass — hand-authored stylesheet.
   Palette and gradients mirror www.nookpass.com: brand blue -> cyan, deep-navy
   dark sections, calm premium surfaces. Self-contained; only external dep is the
   General Sans brand font (declared in the site config).
   ========================================================================== */

:root {
  --brand: #2069e6;
  --brand-2: #3a86f5;
  --cyan: #1bb6d9;
  --navy-1: #081436;
  --navy-2: #0e2f86;
  --navy-3: #1e63e6;
  --sky: #7cc9ff;
  --sky-soft: #cfe8ff;
  --wash: #eaf2ff;

  --ink: #0b1220;
  --ink-soft: #38414f;
  --muted: #667085;
  --line: #e6e9f0;
  --bg: #f7f8fa;
  --surface: #ffffff;

  --grad: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
  --grad-navy: linear-gradient(158deg, #081436 0%, #0e2f86 40%, #1e63e6 74%, #3f97f5 108%);
  --grad-device: linear-gradient(150deg, #2a2f38, #0b0e13 60%);

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .04), 0 6px 20px rgba(11, 18, 32, .05);
  --shadow-md: 0 18px 44px rgba(15, 40, 110, .12);
  --shadow-brand: 0 14px 34px rgba(32, 105, 230, .34);
  --maxw: 1140px;
  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
p { margin: 0; }
svg[width="0"] { position: absolute; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

.ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.ico--sm { width: 16px; height: 16px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* --- eyebrow / lede ------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.eyebrow--onDark { color: var(--sky); }
.eyebrow--onDark .dot { background: linear-gradient(135deg, var(--sky), #fff); }

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); }
.lede--narrow { max-width: 620px; margin-inline: auto; }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { box-shadow: 0 18px 40px rgba(32, 105, 230, .44); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--onDark { background: #fff; color: var(--navy-2); }
.btn--onDark:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.btn--ghostDark { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--ghostDark:hover { background: rgba(255, 255, 255, .16); }

/* --- brand ---------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand__mark {
  width: 24px; height: 24px; border-radius: 8px; background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 12px rgba(32, 105, 230, .35);
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 6px 6px auto 6px; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, .85); box-shadow: 0 5px 0 rgba(255, 255, 255, .55);
}

/* --- nav (dark, sits over the hero and stays legible over light sections) -- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 16, 40, .72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav .brand { color: #fff; }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { color: rgba(255, 255, 255, .78); font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: #fff; }
.nav__cta { margin-left: 6px; padding: 9px 18px; background: #fff; color: var(--navy-2); border-color: transparent; }
.nav__cta:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }

/* --- hero (dark, animated node network) ----------------------------------- */
.hero {
  position: relative; margin-top: -68px; padding: calc(68px + clamp(40px, 7vw, 88px)) 0 clamp(72px, 9vw, 128px);
  background:
    radial-gradient(120% 90% at 78% 8%, #2a63c8 0%, rgba(42, 99, 200, 0) 46%),
    radial-gradient(90% 80% at 12% 90%, #123a86 0%, rgba(18, 58, 134, 0) 50%),
    linear-gradient(160deg, #0a1b45 0%, #0e2f86 46%, #12459e 100%);
  color: #fff; overflow: hidden;
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .8; }
.hero__aura {
  position: absolute; inset: -25% -10% auto auto; width: 720px; height: 720px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(124, 201, 255, .3), rgba(124, 201, 255, 0) 60%); filter: blur(8px);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.6vw, 76px); margin-bottom: 22px; color: #fff; }
/* On the dark hero the gradient text reads as light sky-blue, matching nookpass.com. */
.hero .grad-text { background: linear-gradient(120deg, #bcd8ff, #7cc9ff 55%, #e8f3ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero .lede { max-width: 31rem; }
.lede--onDark { color: rgba(255, 255, 255, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero__actions.center { justify-content: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--muted); }
.hero__meta--onDark { color: rgba(255, 255, 255, .55); }
.hero__meta span { position: relative; padding-left: 16px; }
.hero__meta span::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), #fff); }
/* White curved lip so the hero flows into the first light section. */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: 1; }

/* --- phone (tall iPhone-style: blue header + white sheet) ------------------ */
.phone-wrap { position: relative; justify-self: center; padding: 8px 26px; }
.phone {
  position: relative; width: 290px; padding: 10px; border-radius: 52px;
  background: linear-gradient(150deg, #2b3040, #0a0d13 62%);
  box-shadow: 0 50px 100px rgba(8, 20, 54, .45), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone__bar { position: absolute; top: 20px; left: 0; right: 0; display: flex; justify-content: center; z-index: 3; pointer-events: none; }
.phone__pill { width: 88px; height: 27px; border-radius: 999px; background: #05070c; }
.phone__screen {
  position: relative; overflow: hidden; border-radius: 43px; min-height: 600px;
  background: #fff; display: flex; flex-direction: column;
}
/* Blue header area of the app */
.phone__top { background: linear-gradient(160deg, #2069e6 0%, #2f7bf0 55%, #1bb6d9 130%); padding: 44px 18px 26px; color: #fff; }
.phone__status { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; padding: 0 2px; color: var(--ink); }
.phone__status--on { color: #fff; }
.phone__sig { width: 26px; height: 11px; border-radius: 3px; }
.phone__sig--on { background: linear-gradient(90deg, #fff 0 3px, transparent 3px 5px, #fff 5px 8px, transparent 8px 10px, #fff 10px 14px, transparent 14px 16px, #fff 16px 22px, transparent 22px 24px, rgba(255,255,255,.55) 24px 26px) left / 100% 100%; }
.phone__date { font-size: 12.5px; color: rgba(255, 255, 255, .8); margin-top: 20px; }
.phone__hi { font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.phone__hi--on { color: #fff; }
.livebar { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 11px 13px; border-radius: 14px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .18); }
.livebar__text { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; }
.livebar__tag { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.livebar__title { font-size: 13.5px; font-weight: 600; color: #fff; }
.livebar .ico { color: rgba(255, 255, 255, .8); }
.ping--on { background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .3); }
/* White sheet that overlaps the blue header. Resets text to dark because the
   phone lives inside the dark hero, which would otherwise make it inherit white. */
.phone__sheet { flex: 1; margin-top: -16px; background: #fff; color: var(--ink); border-radius: 22px 22px 0 0; padding: 20px 16px; display: grid; gap: 12px; align-content: start; }

.quad { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.quad span { display: flex; flex-direction: column; gap: 9px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }
.qico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--wash); color: var(--brand); }
.qico .ico { width: 18px; height: 18px; }

.scard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 15px; box-shadow: var(--shadow-sm); }
.scard--next { border-left: 3px solid var(--brand); }
.scard__eyebrow { font-size: 11.5px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.scard__title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.scard__title--dark { color: var(--ink); }
.scard__meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

.float { position: absolute; background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 4; }
.float--badge { top: 150px; right: -4px; display: flex; align-items: center; gap: 11px; padding: 11px 15px; }
.float__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--wash); color: var(--brand); }
.float__ico .ico { width: 20px; height: 20px; }
.float--badge b { display: block; font-size: 13px; color: var(--ink); } .float--badge span { font-size: 11px; color: var(--muted); font-weight: 500; }
.float--ping { bottom: 48px; left: -6px; display: flex; align-items: center; gap: 8px; padding: 11px 15px; color: var(--ink-soft); }
.ping { width: 8px; height: 8px; border-radius: 50%; background: #12b877; box-shadow: 0 0 0 4px rgba(18, 184, 119, .2); }
@media (min-width: 901px) {
  .float--badge { animation: floaty 5.5s ease-in-out infinite; }
  .float--ping { animation: floaty 6.5s ease-in-out infinite .6s; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none !important; } }

/* --- sections ------------------------------------------------------------- */
.section { padding: clamp(60px, 8vw, 112px) 0; }
.section h2 { font-size: clamp(30px, 4.4vw, 46px); }
h2.center { margin-bottom: 46px; }
h2.center + .lede { margin-top: -32px; margin-bottom: 46px; }

/* --- feature grid --------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
/* Comprehensive feature list: fills 3-4 columns depending on width. */
.grid--feat { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d5def5; }
.feature__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff;
  margin-bottom: 16px; box-shadow: var(--shadow-brand);
}
.feature__ico--sm { width: 40px; height: 40px; margin-bottom: 0; flex: none; }
.feature h3 { font-size: 18px; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* --- integrations strip --------------------------------------------------- */
.integrations { padding: 0 0 clamp(40px, 6vw, 72px); }
.integrations__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 30px; box-shadow: var(--shadow-sm);
}
.integrations__head { display: flex; align-items: center; gap: 16px; }
.integrations__head h3 { font-size: 18px; }
.integrations__head p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.logos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.logos li {
  font-weight: 600; font-size: 14px; color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
}

/* --- use cases ------------------------------------------------------------ */
.section--wash { background: var(--surface); border-block: 1px solid var(--line); }
.usecases { list-style: none; margin: 8px auto 0; padding: 0; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.usecases li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  padding: 11px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.usecases li:hover { transform: translateY(-2px); border-color: #cdd8f2; color: var(--brand); }
.usecases .ico { color: var(--brand); }

/* --- steps (dark) --------------------------------------------------------- */
.section--dark { position: relative; background: var(--grad-navy); color: #fff; overflow: hidden; }
.section--dark h2 { color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step {
  display: flex; gap: 18px; padding: 26px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.step__num {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 17px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, rgba(124, 201, 255, .4), rgba(27, 182, 217, .3)); border: 1px solid rgba(255, 255, 255, .25);
}
.step__tag { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--sky); text-transform: uppercase; }
.step h3 { font-size: 20px; margin: 6px 0 8px; color: #fff; }
.step p { color: rgba(255, 255, 255, .74); font-size: 14.5px; }

/* --- journey -------------------------------------------------------------- */
.journey { margin-top: 8px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.phase--accent { background: var(--grad-navy); color: #fff; border: none; box-shadow: var(--shadow-md); transform: translateY(-8px); }
.phase--accent h3 { color: #fff; } .phase--accent .ticks li { color: rgba(255, 255, 255, .9); }
.phase--accent .phase__tag { background: rgba(255, 255, 255, .16); color: #fff; }
.phase__tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); background: var(--wash); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.phase h3 { font-size: 22px; margin-bottom: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 11px; color: var(--ink-soft); font-size: 15px; }
.ticks .ico { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--wash); color: var(--brand); }
.phase--accent .ticks .ico { background: rgba(255, 255, 255, .18); color: #fff; }

/* --- gallery (dark) ------------------------------------------------------- */
.gallery { position: relative; padding: clamp(60px, 8vw, 108px) 0; background: linear-gradient(180deg, #0a0d13, #0d1526); color: #fff; overflow: hidden; }
.gallery h2 { font-size: clamp(30px, 4.4vw, 46px); color: #fff; margin-top: 18px; }
.gallery__lede { color: rgba(255, 255, 255, .66); margin-top: 16px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 16px; max-width: 940px; margin: 44px auto 0; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 12px 30px rgba(0, 0, 0, .3); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: rgba(255, 255, 255, .05); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, .2) 45%, transparent); }
.tile figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.gallery__count { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; font-size: 13px; color: rgba(255, 255, 255, .5); }

@media (max-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 12px; }
  .tile--wide { grid-column: span 2; }
}

/* --- cta ------------------------------------------------------------------ */
.cta { position: relative; padding: clamp(72px, 10vw, 128px) 0; background: var(--grad-navy); color: #fff; overflow: hidden; text-align: center; }
.cta__glow { position: absolute; inset: auto auto -40% 50%; transform: translateX(-50%); width: 900px; height: 500px; background: radial-gradient(circle, rgba(124, 201, 255, .4), rgba(124, 201, 255, 0) 62%); pointer-events: none; }
.cta__inner { position: relative; z-index: 1; max-width: 700px; margin-inline: auto; }
.cta h2 { font-size: clamp(32px, 4.8vw, 50px); margin-bottom: 16px; color: #fff; }
.cta__lede { color: rgba(255, 255, 255, .82); font-size: 18px; margin-bottom: 30px; }

/* --- footer --------------------------------------------------------------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 58px 0 30px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 32ch; }
.footer__col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.footer__col a { display: block; color: var(--ink-soft); font-size: 15px; padding: 4px 0; }
.footer__col a:hover { color: var(--brand); }
.footer__legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  .phone-wrap { margin-top: 20px; }
  .float--badge { right: 0; } .float--ping { left: 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .phase--accent { transform: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
  .phone { width: 270px; }
  .step { flex-direction: column; gap: 12px; }
}
