/* PlanetPOS — 2023 Apple layout language on the planetpos.com palette.
   Dark bands #0D0C17, accent #188BF6, button gradient #314755 -> #26A0DA.
   Flat surfaces, hairline borders, no gloss and no drop shadows. */

:root {
  /* planetpos.com palette */
  --p-dark: #0d0c17;
  --p-black: #000000;
  --p-white: #ffffff;
  --p-gray: #cbd5e0;
  --p-blue: #188bf6;
  --p-blue-soft: #9db6ed;
  --p-cobalt: #155eef;
  --p-green: #37ca37;
  --p-green-soft: #9ae6b4;
  --grad-a: #314755;
  --grad-b: #26a0da;

  --sidebar-w: clamp(240px, 19vw, 292px);
  --container: 1060px;
  --gutter: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.47;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

img { max-width: 100%; height: auto; display: block; }

/* Long words / emails must not force horizontal scroll on narrow phones */
h1, h2, h3, p, li, a, .contact-detail { overflow-wrap: break-word; }

/* Display face for headings and the wordmark — gives the page
   character the default system stack lacks */
h1, h2, h3,
.contact-detail,
.quote-by {
  font-family: var(--font-display);
}

a { color: var(--p-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ SECTION THEMING ============ */

/* ============ SURFACE TOKENS ============
   Light bands flip with the theme. Brand blues (--p-blue, --grad-a/b,
   --p-cobalt) are deliberately theme-independent. Dark bands declare their
   own values on the element, which always beats an inherited token. */

:root {
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --card: #ffffff;
  --ink: #0d0c17;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, .1);
  --grid-line: rgba(13, 12, 23, .10);
  --grid-mask: radial-gradient(ellipse 96% 82% at 50% 0%, #000 0%, transparent 88%);
  --bloom-blue: rgba(24, 139, 246, .30);
  --bloom-malibu: rgba(99, 179, 237, .46);
  --bloom-lavender: rgba(214, 188, 250, .44);
  --bloom-pink: rgba(251, 182, 206, .48);
  --bloom-teal: rgba(129, 230, 217, .46);
  --bloom-cyan: rgba(38, 160, 218, .36);
}

[data-theme="dark"] {
  --surface: #14131f;
  --surface-2: #0e0d17;
  --card: #1c1b29;
  --ink: #ffffff;
  --ink-2: #cbd5e0;
  --ink-3: #9db6ed;
  --line: rgba(255, 255, 255, .12);
  --grid-line: rgba(255, 255, 255, .03);
  --grid-mask: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  --bloom-blue: rgba(24, 139, 246, .16);
  --bloom-malibu: rgba(99, 179, 237, .30);
  --bloom-lavender: rgba(214, 188, 250, .28);
  --bloom-pink: rgba(251, 182, 206, .32);
  --bloom-teal: rgba(129, 230, 217, .30);
  --bloom-cyan: rgba(38, 160, 218, .22);
}

.section {
  padding: 124px 0;
  background: var(--surface);
  color: var(--ink);
}

/* Dark bands stay dark in both themes */
.section--dark {
  --surface: #0d0c17;
  --surface-2: #0a0912;
  --card: #16151f;
  --ink: #ffffff;
  --ink-2: #cbd5e0;
  --ink-3: #9db6ed;
  --line: rgba(255, 255, 255, .12);
  --grid-line: rgba(255, 255, 255, .03);

  color: var(--ink);
  background-color: var(--surface);
  background-image: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(38, 160, 218, .16), transparent 70%);
}

/* Alternate light band */
.features, .partners { background: var(--surface-2); }
.testimonials, .cta-faq { background: var(--surface); }

/* ============ SECTION BOUNDARIES ============ */
/* Hairline rule marks each block as its own page */

.section { border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }

/* ============ DECORATIVE BACKGROUNDS ============ */

.section { position: relative; overflow: hidden; }
.section > .container { position: relative; z-index: 1; }

/* Fine grid + masked fade */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: var(--grid-mask);
  mask-image: var(--grid-mask);
}

/* Soft colour bloom, bottom-left */
.section::after {
  content: '';
  position: absolute;
  left: -160px;
  bottom: -220px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--bloom-blue), transparent 62%);
  filter: blur(70px);
}

.section--dark::after {
  left: auto;
  right: -140px;
  top: -200px;
  bottom: auto;
  background: radial-gradient(circle, rgba(38, 160, 218, .30), transparent 62%);
}

/* ---- Per-band shapes ---- */

/* Features: diagonal hatch + blue/lavender blooms */
.features::before {
  background-image:
    repeating-linear-gradient(45deg, var(--grid-line) 0 1px, transparent 1px 16px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

.features::after {
  background:
    radial-gradient(circle, var(--bloom-malibu), transparent 62%),
    radial-gradient(circle, var(--bloom-lavender), transparent 62%);
  background-position: -120px 40%, calc(100% + 120px) calc(100% - 60px);
  background-size: 520px 520px, 460px 460px;
  background-repeat: no-repeat;
}

/* Testimonials: soft multi-colour wash */
.testimonials::after {
  background:
    radial-gradient(circle, var(--bloom-pink), transparent 62%),
    radial-gradient(circle, var(--bloom-teal), transparent 62%),
    radial-gradient(circle, var(--bloom-cyan), transparent 62%);
  background-position: -80px -60px, calc(100% + 60px) -80px, 50% calc(100% + 180px);
  background-size: 480px 480px, 460px 460px, 620px 620px;
  background-repeat: no-repeat;
}

/* Partners: teal bloom + dot matrix */
.partners::before {
  background-image:
    radial-gradient(circle, var(--grid-line) 1.5px, transparent 1.5px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px, 72px 72px, 72px 72px;
}

.partners::after { background: radial-gradient(circle, var(--bloom-teal), transparent 62%); }

/* Hero gets concentric rings behind the headline */
.hero {
  background-image:
    radial-gradient(circle at 84% 16%, transparent 0 136px, rgba(38, 160, 218, .20) 136px 137px,
      transparent 137px 244px, rgba(38, 160, 218, .12) 244px 245px, transparent 245px),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(38, 160, 218, .16), transparent 70%);
}

/* CTA card gets its own inner glow */
.card-cta { position: relative; overflow: hidden; }

.card-cta::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(38, 160, 218, .28), transparent 65%);
}

.card-cta-inner { position: relative; z-index: 1; }

/* ============ SIDEBAR ============ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--p-dark);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Scrolled past the bar: slide it out of view. Reappears on scroll up. */
.sidebar.away { transform: translateY(-100%); }
.sidebar.stuck { box-shadow: 0 6px 28px rgba(0, 0, 0, .5); }

/* Three equal zones — brand | nav | phone — each centred in its own column,
   so the lockup sits symmetrically without colliding with the nav. */
.sidebar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 75px;
}

/* Theme toggle — taken out of the centred column and pinned to the
   viewport's right edge. .sidebar is fixed, so it's the containing block. */
.theme-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  width: 62px;
  height: 32px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}

/* Keep the centred column clear of the pinned button */
@media (max-width: 1500px) {
  .sidebar-inner { padding-right: 92px; }
}

.theme-toggle:hover { background: rgba(255, 255, 255, .14); }

.theme-toggle:focus-visible { outline: 2px solid var(--p-blue); outline-offset: 3px; }

.theme-toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #26a0da, #188bf6);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  transition: transform .28s cubic-bezier(.4, 1.4, .5, 1);
}

[data-theme="dark"] .theme-toggle .knob { transform: translateX(30px); }

.theme-toggle .icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, .55);
}

.theme-toggle .icon:last-child { margin-left: auto; }
[data-theme="dark"] .theme-toggle .icon:last-child { color: #fff; }

.sidebar-inner > .brand { justify-self: center; padding: 0; }

.menu-btn {
  display: none;
  order: 3;
  margin-left: auto;
  padding: 9px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
}


/* Lockup: real square mark + "Planet" white / "pos" blue.
   Block-level flex so it stays left-aligned despite a text-align:center parent,
   and sits in normal flow so it can never overlap centred content. */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  padding: 0 12px 28px;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: contain;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  white-space: nowrap;
}

.wordmark-accent { color: var(--p-blue); }

.brand img { width: 56px; height: 56px; border-radius: 15px; }
.sidebar .brand { gap: 13px; }
.sidebar .wordmark { font-size: 24px; }

/* Dedicated brand band at the top of the hero — the lockup gets its own
   section, centred and divided off from the headline below it */
.brandbar {
  display: flex;
  justify-content: center;
  margin-bottom: 52px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.brandbar-lock { gap: 24px; padding: 0; }
.brandbar-lock img { width: 92px; height: 92px; border-radius: 23px; }
.brandbar-lock .wordmark { font-size: 50px; }

/* Footer lockup at double size, both mark and wordmark so the pair
   keeps its proportion */
.site-footer .brand { display: inline-flex; gap: 22px; padding: 0; }
.site-footer .brand img { width: 160px; height: 160px; border-radius: 24px; }
.site-footer .wordmark { font-size: 60px; }

/* Nav is the auto column, so it centres itself in the bar */
.nav { display: flex; justify-content: center; min-width: 0; }

.nav-list { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 8px;
  color: var(--p-white);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}

.nav-link:hover { background: rgba(255, 255, 255, .09); color: var(--p-white); text-decoration: none; }
.nav-link.active { background: var(--p-blue); font-weight: 600; }

/* Anchored to .nav-link, not .nav-item — the item grows when its submenu
   opens, which would otherwise drag a 50%-centred caret downward.
   rotate(-45deg) points the chevron right (closed);
   rotate(45deg) points it down (open). */
.caret {
  position: absolute;
  right: 9px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-right: 2.5px solid rgba(255, 255, 255, .9);
  border-bottom: 2.5px solid rgba(255, 255, 255, .9);
  transform: rotate(-45deg);
  transition: transform .22s ease, border-color .22s ease;
}

.nav-item.open > .nav-link .caret {
  transform: rotate(45deg);
  border-color: var(--p-blue);
}

/* Give triggers room for the chevron — nested ones need this too, and
   .dropdown .nav-link outranks .nav-trigger, so it must be restated here. */
.nav-trigger { padding-right: 32px; }
.dropdown .nav-link.nav-trigger { padding-right: 32px; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 20;
  min-width: 236px;
  padding: 6px;
  list-style: none;
  background: #1f1e2c;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .7);
}

.nav-item.open > .dropdown { display: block; }

.dropdown a {
  display: block;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--p-gray);
  font-size: 13px;
}

.dropdown a:hover { background: rgba(255, 255, 255, .08); color: var(--p-white); text-decoration: none; }

/* Third level: nested inside a dropdown, stacked with a guide rail */
.dropdown .nav-link { padding: 8px 24px 8px 10px; color: var(--p-gray); font-size: 13px; }
.dropdown .nav-link:hover { background: rgba(255, 255, 255, .07); color: var(--p-white); }

/* Nested triggers align their chevron with top-level ones */
.dropdown .nav-trigger .caret { right: 9px; }

.dropdown .has-dropdown > .dropdown {
  position: static;
  margin: 2px 0 8px 12px;
  padding: 0 0 0 10px;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
}

.sidebar-meta {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  white-space: nowrap;
  color: var(--p-blue-soft);
  font-size: 13px;
  line-height: 1;
}

.sidebar-meta a { color: var(--p-gray); font-weight: 500; }
.sidebar-meta a:hover { color: var(--p-white); }

.sidebar-scrim { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .55); }

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  /* Too crowded beside the brand + toggle + hamburger */
  .sidebar-meta { display: none; }
}

/* ============ LAYOUT ============ */

.main { margin-left: 0; padding-top: 74px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ============ TYPE ============ */

.eyebrow { margin: 0 0 8px; font-size: 18px; line-height: 1.4; color: var(--ink-3); }
.eyebrow-blue { color: var(--p-blue); }

.section-head { text-align: center; margin-bottom: 56px; }

.grad-text { color: var(--ink); }

.section-title { margin: 0; font-size: clamp(36px, 5vw, 62px); font-weight: 600; line-height: 1.07; letter-spacing: -.02em; }
.section-title-sm { margin: 0; font-size: clamp(29px, 4vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }

.placeholder-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }

/* ============ BUTTONS ============ */
/* Matches planetpos.com .btn-grad */

.btn {
  display: inline-block;
  margin: 10px;
  padding: 15px 45px;
  border: 0;
  border-radius: 10px;
  background-image: linear-gradient(to right, var(--grad-a) 0%, var(--grad-b) 51%, var(--grad-a) 100%);
  background-size: 200% auto;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.19;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 139, 246, .32);
  transition: background-position .5s ease, box-shadow .2s ease, transform .2s ease;
}

.btn:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(24, 139, 246, .45);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(24, 139, 246, .32); }

/* Outline variant */
.btn-outline {
  background: transparent;
  border-color: var(--p-blue);
  color: var(--p-blue);
}

.btn-outline:hover { background: rgba(24, 139, 246, .12); color: var(--p-blue); }

/* ============ CARDS ============ */

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  padding: 32px;
}


/* ============ HERO ============ */
/* Apple-style: solid type, tight tracking, pill CTAs. No gradient. */

.hero {
  padding: 44px 0 clamp(54px, 6.5vw, 98px);
  text-align: center;
}

.hero .eyebrow {
  margin: 0 0 18px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--p-blue-soft);
}

.hero-title {
  margin: 0 auto;
  max-width: 1040px;
  font-size: clamp(42px, 6.8vw, 80px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: #26a0da;
}

.hero-lead {
  margin: 24px auto 0;
  max-width: 900px;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.42;
  letter-spacing: -.01em;
  color: var(--p-gray);
}

.hero-actions { display: flex; justify-content: center; gap: 4px; margin: 34px 0 0; }
.hero-actions .col-half { flex: 0 0 auto; }
.hero-actions .align-right,
.hero-actions .align-left { text-align: center; }

/* Solid pill CTAs — no gradient */
.hero .btn {
  margin: 6px;
  padding: 12px 26px;
  background: var(--p-blue);
  background-image: none;
  border: 0;
  border-radius: 980px;
  box-shadow: none;
  font-size: 17px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  transition: background .18s ease;
}

.hero .btn:hover {
  background: #2a90fb;
  background-position: initial;
  box-shadow: none;
  transform: none;
}

.hero .btn:active { background: #0f6fd4; }
.col-half { flex: 1 1 50%; }
.align-right { text-align: right; }
.align-left { text-align: left; }

.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }

.strip-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
}

.strip-item img { width: 100%; }

/* Drop-zone placeholder */
.strip-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 210px;
  margin: 12px;
  padding: 26px 16px;
  border: 2px dashed rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  text-align: center;
}

.strip-placeholder svg { color: var(--ink-3); opacity: .75; }

.strip-placeholder .ph-title { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.strip-placeholder .ph-note { margin: 0; font-size: 12px; color: var(--ink-3); }

/* Light-band variant */
.section:not(.section--dark) .strip-placeholder {
  border-color: rgba(13, 12, 23, .18);
  background: rgba(13, 12, 23, .02);
}

/* ============ FEATURES ============ */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-col {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  text-align: center;
}

.feature-col img { width: 150px; margin: 0 auto 20px; border-radius: 12px; }
.feature-name { margin: 0 0 16px; font-size: clamp(22px, 2.4vw, 27px); font-weight: 600; letter-spacing: -.015em; }
.feature-list { margin: 0; padding: 0; list-style: none; display: inline-block; text-align: left; }

.feature-list li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 15px;
  color: var(--ink-2);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--p-blue);
}

/* ============ VIDEO ============ */

.video-frame { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.video-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-cta { text-align: center; margin-top: 32px; }

/* ============ TESTIMONIALS ============ */

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.quote {
  margin: 0;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.quote p { margin: 0 0 16px; font-size: 18px; color: var(--ink); }
.quote-by { font-size: 15px; color: var(--ink-3); }

/* Empty placeholder quotes keep their card height */
.quote-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  color: var(--ink-3);
  opacity: .5;
  letter-spacing: .1em;
}

/* ============ PARTNERS ============ */

/* Logo wall gets a wider container than the 980px text measure so the
   artwork has room; source files are served at 1200px so detail is there. */
.partners .container { max-width: 1320px; }

.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 148px;
  padding: 10px;
  /* Partner logo files carry their own white background, so the tile is
     pinned light in both themes — otherwise white plates float on dark. */
  border: 1px solid rgba(13, 12, 23, .14);
  border-radius: 12px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  text-align: center;
}

/* Real logo artwork: contain, desaturate slightly, lift on hover */
.logo-chip img {
  width: 100%;
  max-height: 119px;
  object-fit: contain;
  border-radius: 8px;
  opacity: .92;
  transition: opacity .2s ease, transform .2s ease;
}

.logo-chip:hover img { opacity: 1; transform: scale(1.04); }

/* Anchor fills the tile so the whole card is clickable */
.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.logo-link:hover { text-decoration: none; }
.logo-link:focus-visible { outline: 2px solid var(--p-blue); outline-offset: 3px; border-radius: 6px; }

.partners-more { text-align: center; margin-top: 40px; }
.partners-more-title { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -.015em; }

/* ============ CTA + FAQ ============ */

.card-cta {
  --line: rgba(255, 255, 255, .12);
  --surface: #16151f;
  --ink: #ffffff;
  --ink-2: #cbd5e0;
  padding: 72px 40px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background: var(--p-dark);
  text-align: center;
}

.card-cta-inner { max-width: 680px; margin: 0 auto; }
.card-cta .grad-text { color: #ffffff; }
.cta-title { margin: 0 0 16px; font-size: clamp(31px, 4.4vw, 53px); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.cta-text { margin: 0 auto 28px; font-size: 20px; line-height: 1.42; color: var(--ink-2); }

.faq { margin-top: 96px; text-align: left; }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  position: relative;
  margin: 0;
  padding: 20px 40px 20px 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-icon { position: absolute; right: 6px; top: 26px; width: 12px; height: 12px; }

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink-3);
  transition: transform .25s ease, opacity .25s ease;
}

.faq-icon::before { top: 5px; left: 0; width: 12px; height: 2px; }
.faq-icon::after { top: 0; left: 5px; width: 2px; height: 12px; }

.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-item.open .faq-q { color: var(--p-blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { margin: 0; padding: 0 0 22px; font-size: 18px; color: var(--ink-2); }

/* ============ CONTACT ============ */

.contact { text-align: center; }
.contact-intro { margin: 14px auto 0; max-width: 580px; font-size: 18px; color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.contact-col { padding: 24px 16px; }

.contact-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  stroke: var(--p-blue);
}

.contact-detail { margin: 0; font-size: clamp(20px, 2.2vw, 23px); font-weight: 600; letter-spacing: -.015em; }
.contact-detail a { color: var(--p-white); }
.contact-detail a:hover { color: var(--p-blue); }
.contact-label { color: var(--ink-2); font-weight: 400; }
.contact-label-standalone { display: block; margin-bottom: 16px; font-size: 23px; }

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }

.social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 62px;
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-2);
  background: var(--card);
}

.social a:hover { color: var(--p-blue); text-decoration: none; }
.social span { font-size: 10px; color: var(--ink-3); }

/* ============ FOOTER ============ */

.site-footer {
  padding: 48px 0;
  padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--p-blue-soft);
  background: var(--p-black);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.copyright { margin: 28px 0 0; font-size: 24px; }

/* ============ SCROLL REVEAL ============ */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============
   1180  small laptops
   1024  tablet landscape / small laptops
    900  tablet portrait / large phones      -> 2-up cards, drawer nav
    767  phones                               -> 1-up cards
    480  small phones                         -> full-width buttons
   coarse pointers get enlarged tap targets
*/

@media (max-width: 1180px) {
  .section { padding: 104px 0; }
  .partners .container { max-width: 1080px; }
}

@media (max-width: 1024px) {
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {

  .section { padding: 88px 0; }
  .feature-grid, .quote-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }

  .hero-actions { flex-direction: column; align-items: center; }
  .col-half { flex: 1 1 100%; }
  .align-right, .align-left { text-align: center; }

  .faq { margin-top: 72px; }
}

/* Phones */
@media (max-width: 767px) {
  .section { padding: 70px 0; }
  .btn { font-size: 15px; padding: 14px 26px; }
  .faq-q { font-size: 18px; }
  .feature-grid, .quote-grid, .contact-grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
}

/* Small phones */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 58px 0; }
  .hero-title { max-width: 100%; }
  .feature-grid, .quote-grid, .contact-grid { gap: 18px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .btn { width: 100%; margin: 6px 0; text-align: center; }
  .hero-actions { flex-direction: column; }
  .social a { width: 54px; }
  .card, .quote, .feature-col { padding: 22px 18px; }
}

/* ---- Touch devices: comfortable tap targets, no sticky hover ---- */
@media (hover: none) and (pointer: coarse) {
  .nav-link { padding: 12px 13px; }
  .dropdown a { padding: 12px 11px; }
  .faq-q { padding: 20px 40px 20px 0; }
  .social a { padding: 13px 4px; }
}

/* ---- Mobile: nav collapses into a panel under the bar ---- */
@media (max-width: 900px) {
  /* Back to flex so the hamburger doesn't wrap onto a second grid row,
     and order it last so it sits just left of the pinned toggle. */
  .sidebar-inner { display: flex; gap: 12px; padding-right: 78px; }
  .sidebar-inner > .brand { margin-right: auto; }
  .menu-btn { display: block; order: 4; margin-left: auto; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--p-dark);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transition: max-height .3s ease;
  }

  .nav.open { max-height: 80vh; overflow-y: auto; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; padding: 8px 16px 16px; }
  .nav-link { justify-content: space-between; padding: 13px 10px; font-size: 15px; }
  .caret { right: 12px; }

  .dropdown {
    position: static;
    min-width: 0;
    margin: 0 0 8px 12px;
    background: #1f1e2c;
    box-shadow: none;
  }
}
