:root {
  color-scheme: light;
  --navy-950: #041020;
  --navy-900: #07152b;
  --navy-800: #0d2341;
  --navy-700: #17365f;
  --cyan: #20d4e5;
  --cyan-soft: #8beaf2;
  --blue: #2b76ff;
  --lime: #b9e63b;
  --orange: #ff9f43;
  --pink: #ff637d;
  --ink: #0a1930;
  --muted: #65738a;
  --surface: #ffffff;
  --canvas: #f2f5f8;
  --line: #dce3ea;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(68px + var(--safe-top));
  padding: var(--safe-top) 20px 0;
  color: #fff;
  background: rgba(7, 21, 43, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--navy-950);
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  background: var(--cyan);
  border-radius: 10px 3px 10px 3px;
  transform: skew(-5deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: .01em;
}

.brand small {
  margin-top: 3px;
  color: #9eb0c8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #c7d4e5;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
}

.connection-dot {
  width: 7px;
  height: 7px;
  background: #53dc8b;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(83, 220, 139, .12);
}

.connection-pill.offline .connection-dot {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 159, 67, .12);
}

.home-main {
  padding-bottom: calc(100px + var(--safe-bottom));
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 24px 46px;
  color: #fff;
  background:
    linear-gradient(130deg, rgba(32, 212, 229, .08), transparent 42%),
    var(--navy-900);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: -50px;
  bottom: -82px;
  z-index: -1;
  width: 230px;
  height: 230px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(255, 255, 255, .025),
    0 0 0 70px rgba(255, 255, 255, .018);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  filter: blur(5px);
  border-radius: 50%;
  opacity: .18;
}

.hero-glow-one {
  top: -110px;
  right: -45px;
  background: var(--cyan);
}

.hero-glow-two {
  bottom: -150px;
  left: -80px;
  background: var(--blue);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  margin-bottom: 6px;
  color: #17879a;
}

.hero h1 {
  max-width: 630px;
  margin: 0;
  font-size: clamp(38px, 10vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
}

.hero h1 span {
  color: var(--cyan);
}

.hero-copy {
  max-width: 530px;
  margin: 22px 0 0;
  color: #b6c6d9;
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 18px;
  font-weight: 800;
  border-radius: 12px;
}

.primary-button {
  color: var(--navy-950);
  background: var(--cyan);
  box-shadow: 0 12px 30px rgba(32, 212, 229, .2);
}

.primary-button span {
  font-size: 20px;
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  cursor: pointer;
}

.hero-actions[hidden],
#installButton[hidden] {
  display: none !important;
}

.hero-actions button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.install-help {
  max-width: 560px;
  margin: 12px 0 0;
  color: #8fa3bb;
  font-size: 11px;
  line-height: 1.45;
}

.tool-section {
  padding: 32px 18px 18px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto 18px;
  padding: 0 5px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.03em;
}

.version-label {
  margin-bottom: 3px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: #e8edf2;
  border-radius: 6px;
}

.tool-grid {
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  gap: 12px;
}

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 24px;
  min-height: 100px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(10, 25, 48, .07);
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(23, 42, 69, .065);
  transition: transform .18s ease, box-shadow .18s ease;
}

.tool-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--card-accent);
}

.tool-card:active {
  transform: scale(.985);
}

.accessories-card {
  --card-accent: #7b5fd1;
  --card-tint: #f1edff;
}

.wind-card {
  --card-accent: var(--blue);
  --card-tint: #eaf1ff;
}

.guide-card {
  --card-accent: #93bf20;
  --card-tint: #f0f8da;
}

.checklist-card {
  --card-accent: var(--orange);
  --card-tint: #fff2e5;
}

.locator-card {
  --card-accent: var(--pink);
  --card-tint: #ffedf1;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--card-accent);
  background: var(--card-tint);
  border-radius: 14px;
}

.tool-icon svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.9;
}

.tool-copy,
.tool-copy > span,
.tool-copy strong,
.tool-copy small {
  display: block;
}

.tool-kicker {
  margin-bottom: 3px;
  color: var(--card-accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tool-copy strong {
  font-size: 17px;
  line-height: 1.25;
}

.tool-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #8190a4;
  font-size: 17px;
}

.support-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  max-width: 980px;
  align-items: center;
  gap: 12px;
  margin: 14px 18px 0;
  padding: 16px;
  color: #d9e4f1;
  background: var(--navy-800);
  border-radius: 16px;
}

.support-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--navy-950);
  font-weight: 900;
  background: var(--cyan);
  border-radius: 12px;
}

.support-card span,
.support-card strong {
  display: block;
}

.support-card span {
  color: #96a9c0;
  font-size: 11px;
}

.support-card strong {
  margin-top: 3px;
  color: #fff;
  font-size: 13px;
}

.support-card a {
  padding: 9px 11px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  border: 1px solid rgba(32, 212, 229, .26);
  border-radius: 9px;
}

.app-note {
  max-width: 700px;
  margin: 20px auto 0;
  padding: 0 25px;
  color: #8793a2;
  font-size: 10px;
  line-height: 1.55;
  text-align: center;
}

.app-note a {
  color: #64758a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bottom-nav {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: calc(68px + var(--safe-bottom));
  padding: 7px 5px var(--safe-bottom);
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(11, 27, 49, .08);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: #78869a;
  font-size: 9px;
  font-weight: 750;
}

.bottom-nav a::before {
  position: absolute;
  top: -7px;
  width: 30px;
  height: 3px;
  content: "";
  background: transparent;
  border-radius: 0 0 3px 3px;
}

.bottom-nav a.active {
  color: #106d7f;
}

.bottom-nav a.active::before {
  background: var(--cyan);
}

.bottom-nav svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: calc(82px + var(--safe-bottom));
  left: 18px;
  max-width: 420px;
  margin: auto;
  padding: 13px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  background: #14253c;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(2, 10, 23, .24);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-page {
  height: 100dvh;
  overflow: hidden;
  background: #fff;
}

.tool-header {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: calc(58px + var(--safe-top));
  align-items: center;
  gap: 8px;
  padding: var(--safe-top) 12px 0;
  color: #fff;
  background: var(--navy-900);
  box-shadow: 0 6px 18px rgba(4, 16, 32, .16);
}


.tool-heading {
  min-width: 0;
  text-align: center;
}

.tool-heading small,
.tool-heading strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tool-heading small {
  margin-bottom: 2px;
  color: #89a0bc;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tool-heading strong {
  font-size: 14px;
}

.tool-stage {
  position: fixed;
  top: calc(58px + var(--safe-top));
  right: 0;
  bottom: calc(76px + var(--safe-bottom));
  left: 0;
  background: #edf1f5;
}

.tool-stage iframe {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 0;
  opacity: 0;
  transition: opacity .2s ease;
}

.tool-stage iframe.loaded {
  opacity: 1;
}

.tool-loading {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.loader {
  width: 28px;
  height: 28px;
  border: 3px solid #cdd6df;
  border-top-color: #16889a;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 680px) {
  .hero {
    padding: 72px max(7vw, 32px) 62px;
  }

  .tool-section {
    padding-top: 42px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-card {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 979px) {
  .home-main { padding-bottom: calc(112px + var(--safe-bottom)); }

  .bottom-nav {
    display: flex;
    min-height: calc(72px + var(--safe-bottom));
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) var(--safe-bottom) max(6px, env(safe-area-inset-left, 0px));
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: max(6px, env(safe-area-inset-left, 0px));
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .bottom-nav::-webkit-scrollbar { display: none; }

  .bottom-nav a {
    flex: 1 0 74px;
    min-width: 74px;
    padding: 4px 2px 6px;
    font-size: 9px;
    white-space: nowrap;
    scroll-snap-align: center;
  }

  .bottom-nav a::before { top: -11px; }
  .bottom-nav svg { width: 21px; height: 21px; }
  .toast { bottom: calc(92px + var(--safe-bottom)); }
  .tool-stage { bottom: calc(84px + var(--safe-bottom)); }
}

@media (max-width: 360px) {
  .bottom-nav {
    padding-right: max(2px, env(safe-area-inset-right, 0px));
    padding-left: max(2px, env(safe-area-inset-left, 0px));
  }

  .bottom-nav a {
    gap: 3px;
    padding-right: 1px;
    padding-left: 1px;
    font-size: 8.5px;
  }

  .bottom-nav svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 980px) {
  .app-header {
    padding-right: max(calc((100vw - 1100px) / 2), 24px);
    padding-left: max(calc((100vw - 1100px) / 2), 24px);
  }

  .hero {
    padding-right: max(calc((100vw - 980px) / 2), 40px);
    padding-left: max(calc((100vw - 980px) / 2), 40px);
  }

  .bottom-nav {
    right: 24px;
    bottom: 18px;
    left: 24px;
    width: 700px;
    min-height: 62px;
    margin: auto;
    padding-bottom: 7px;
    border: 1px solid var(--line);
    border-radius: 18px;
  }

  .home-main {
    padding-bottom: 120px;
  }

  .tool-stage {
    bottom: calc(92px + var(--safe-bottom));
  }

  .tool-bottom-nav {
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Book a CPD contact panel. */
.cpd-card {
  max-width: 980px;
  margin: 18px 18px 0;
  overflow: hidden;
  color: #fff;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(7, 31, 49, .15);
}

.cpd-banner {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  padding: 22px;
  color: var(--navy-950);
  background: var(--cyan);
}

.cpd-banner-icon,
.cpd-book-icon,
.cpd-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.cpd-banner-icon {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, .35);
  border-radius: 14px;
}

.cpd-banner-icon svg {
  width: 31px;
  height: 31px;
  stroke-width: 2;
}

.cpd-heading .eyebrow {
  margin-bottom: 5px;
  color: rgba(4, 16, 32, .68);
}

.cpd-heading h2 {
  margin: 0;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1;
  letter-spacing: -.04em;
}

.cpd-heading h2 span {
  color: #fff;
}

.cpd-heading > p:last-child {
  max-width: 540px;
  margin: 9px 0 0;
  color: rgba(4, 16, 32, .75);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.cpd-book-icon {
  width: 72px;
  height: 72px;
}

.cpd-book-icon svg {
  width: 58px;
  height: 58px;
  stroke-width: 1.55;
}

.cpd-contacts {
  padding: 2px 22px;
}

.cpd-contact {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.cpd-contact + .cpd-contact {
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.cpd-avatar {
  width: 52px;
  height: 52px;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  border-radius: 50%;
}

.cpd-avatar svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.cpd-contact-details {
  min-width: 0;
}

.cpd-contact h3,
.cpd-contact p {
  margin: 0;
}

.cpd-contact h3 {
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.cpd-contact p {
  margin-top: 2px;
  color: #aebdca;
  font-size: 12px;
}

.cpd-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 10px;
}

.cpd-contact-links a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cpd-contact-links a:hover,
.cpd-contact-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cpd-contact-links svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke-width: 1.9;
}

@media (min-width: 680px) {
  .cpd-card {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 430px) {
  .cpd-banner {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
  }

  .cpd-banner-icon {
    width: 50px;
    height: 50px;
  }

  .cpd-book-icon {
    display: none;
  }

  .cpd-heading h2 {
    font-size: 30px;
  }

  .cpd-heading > p:last-child {
    font-size: 12px;
  }

  .cpd-contacts {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cpd-contact {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .cpd-avatar {
    width: 44px;
    height: 44px;
  }

  .cpd-contact-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

/* Shared non-floating header for every tool page. */
.tool-header-center {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tool-header-brand {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
}

.tool-header-logo {
  display: block;
  width: clamp(115px, 28vw, 180px);
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.tool-header-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 1px;
  background: rgba(255, 255, 255, .18);
}

.tool-header .tool-heading {
  min-width: 0;
  flex: 0 1 auto;
  text-align: left;
}

@media (max-width: 430px) {
  .tool-header-center { gap: 8px; }
  .tool-header-brand { flex-basis: 115px; }
  .tool-header-logo { width: 115px; }
  .tool-header-divider { height: 27px; }
  .tool-header .tool-heading strong { font-size: 12px; }
}
