/*
Theme Name: Haptic Pulse
Theme URI: https://haptic-pulse.com/
Author: Haptic Pulse
Author URI: https://haptic-pulse.com/
Description: Native block theme for the Haptic Pulse Garmin Connect IQ app.
Version: 1.0.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: haptic-pulse
*/

:root {
  --hp-ink: #edf7ff;
  --hp-muted: #9ab4c8;
  --hp-navy: #031525;
  --hp-navy-soft: #082139;
  --hp-line: rgba(126, 202, 255, 0.16);
  --hp-blue: #18a8ff;
  --hp-cyan: #63d8ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background:
    radial-gradient(circle at 80% 8%, rgba(24, 168, 255, 0.13), transparent 26rem),
    var(--hp-navy);
  color: var(--hp-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  margin: 0;
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(3, 21, 37, 0.9);
  border-bottom: 1px solid var(--hp-line);
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(24px, 6vw, 88px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wp-block-group.brand {
  align-items: center;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 12px;
}

.brand-icon {
  margin: 0;
  width: 44px;
}

.brand-icon img,
.footer-icon img {
  border-radius: 11px;
  box-shadow: 0 8px 28px rgba(0, 123, 217, 0.22);
  display: block;
}

.site-header .wp-block-site-title {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0;
}

.site-header .wp-block-site-title a {
  text-decoration: none;
}

.main-nav {
  color: var(--hp-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.main-nav .wp-block-navigation__container {
  gap: clamp(18px, 3vw, 38px);
}

.main-nav .wp-block-navigation-item__content:hover,
.main-nav .wp-block-navigation-item__content:focus-visible {
  color: #fff;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(48px, 8vw, 110px);
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  margin: 0 auto;
  max-width: 1260px;
  min-height: calc(100svh - 76px);
  padding: clamp(70px, 10vw, 140px) clamp(24px, 6vw, 88px);
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  color: var(--hp-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.support-section h2,
.section h3,
.hero p,
.section p,
.support-section p {
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(3.5rem, 7.2vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -0.072em;
  line-height: 0.94;
  margin-bottom: 30px;
  max-width: 800px;
}

.hero-text {
  color: var(--hp-muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  max-width: 610px;
}

.rate-example {
  color: #c4d9e8;
  font-size: 0.86rem;
  font-weight: 700;
  margin: 25px 0 0;
}

.rate-example strong {
  color: var(--hp-cyan);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 22px;
}

.hero-actions .wp-block-button__link {
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 750;
  padding: 13px 22px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-actions .wp-block-button__link:hover,
.hero-actions .wp-block-button__link:focus-visible {
  transform: translateY(-2px);
}

.hero-actions .is-style-fill .wp-block-button__link {
  background: linear-gradient(120deg, var(--hp-blue), var(--hp-cyan));
  color: #02131f;
}

.hero-actions .is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--hp-ink);
}

.release-note {
  color: #7997ad;
  font-size: 0.77rem;
}

.hero-visual {
  display: grid;
  isolation: isolate;
  min-height: 480px;
  place-items: center;
  position: relative;
}

.hero-visual::before,
.hero-visual::after {
  border: 1px solid rgba(72, 184, 255, 0.16);
  border-radius: 50%;
  content: "";
  height: 115%;
  position: absolute;
  width: 115%;
  z-index: -1;
}

.hero-visual::after {
  border-color: rgba(99, 216, 255, 0.08);
  height: 150%;
  width: 150%;
}

.hero-icon {
  background: linear-gradient(145deg, rgba(20, 58, 87, 0.82), rgba(5, 25, 43, 0.5));
  border: 1px solid rgba(99, 216, 255, 0.24);
  border-radius: 38%;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.11);
  display: grid;
  height: clamp(260px, 30vw, 400px);
  margin: 0;
  place-items: center;
  transform: rotate(3deg);
  width: clamp(260px, 30vw, 400px);
}

.hero-icon img {
  border-radius: 20%;
  height: 65%;
  object-fit: contain;
  transform: rotate(-3deg);
  width: 65%;
}

.section {
  margin: 0 auto;
  max-width: 1260px;
  padding: clamp(86px, 11vw, 150px) clamp(24px, 6vw, 88px);
}

.section + .section,
.section.bordered {
  border-top: 1px solid var(--hp-line);
}

.section-heading {
  max-width: 720px;
}

.section h2,
.support-section h2 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin-bottom: 22px;
}

.section-heading > p:last-child,
.legal-heading > p:not(.eyebrow) {
  color: var(--hp-muted);
  font-size: 1.05rem;
}

.purpose-grid,
.feature-grid,
.watch-flow,
.legal-grid {
  display: grid;
  gap: 16px;
  margin-top: 54px;
}

.purpose-grid {
  grid-template-columns: repeat(2, 1fr);
}

.purpose-card {
  border-top: 1px solid rgba(99, 216, 255, 0.34);
  padding: 72px 8px 12px 0;
  position: relative;
}

.purpose-card::before {
  background: var(--hp-cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(99, 216, 255, 0.42);
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  top: 28px;
  width: 7px;
}

.purpose-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 11px;
}

.purpose-card p,
.purpose-note,
.feature-card p,
.legal-card p,
.safety-copy p {
  color: var(--hp-muted);
  font-size: 0.9rem;
}

.purpose-note {
  border-left: 2px solid rgba(99, 216, 255, 0.46);
  margin: 48px 0 0;
  max-width: 760px;
  padding-left: 20px;
}

.research-intro {
  align-items: start;
  display: grid;
  gap: clamp(40px, 7vw, 100px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.research-summary {
  border-top: 1px solid var(--hp-line);
  padding-top: 28px;
}

.research-summary p {
  color: var(--hp-muted);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.research-summary strong {
  color: var(--hp-ink);
}

.evidence-note,
.safety-card {
  background: linear-gradient(120deg, rgba(17, 59, 90, 0.75), rgba(7, 29, 48, 0.75));
  border: 1px solid rgba(99, 216, 255, 0.2);
  border-radius: 22px;
  margin-top: 56px;
  padding: clamp(26px, 4vw, 42px);
}

.evidence-note {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(130px, 0.24fr) 1fr;
}

.evidence-label {
  color: var(--hp-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.evidence-note p {
  color: #c2d8e7;
  margin: 0;
}

.reference-list {
  margin-top: 64px;
  max-width: 980px;
}

.reference-list h3 {
  font-size: 1rem;
  margin-bottom: 22px;
}

.reference-list p {
  border-top: 1px solid var(--hp-line);
  color: #8faabd;
  font-size: 0.78rem;
  margin: 0;
  padding: 18px 0;
}

.reference-list a {
  color: var(--hp-cyan);
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.feature-grid,
.watch-flow {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.watch-card {
  background: rgba(10, 40, 65, 0.64);
  border: 1px solid var(--hp-line);
  border-radius: 22px;
}

.feature-card {
  min-height: 275px;
  padding: 30px;
}

.feature-number {
  color: var(--hp-cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 58px 0 12px;
}

.control-strip {
  border-bottom: 1px solid var(--hp-line);
  border-top: 1px solid var(--hp-line);
  color: #bcd2e2;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin-top: 44px;
  padding: 23px;
  text-align: center;
  text-transform: uppercase;
}

.watch-flow {
  margin-top: 56px;
}

.watch-card {
  margin: 0;
  overflow: hidden;
}

.watch-card .wp-block-image {
  margin: 0;
}

.watch-card img {
  background: #f4f5f6;
  display: block;
  height: auto;
  width: 100%;
}

.watch-card .watch-caption {
  padding: 24px 26px 28px;
}

.watch-card .watch-caption h3 {
  font-size: 1rem;
  margin-bottom: 7px;
}

.watch-card .watch-caption p {
  color: var(--hp-muted);
  font-size: 0.84rem;
  margin-bottom: 0;
}

.legal-heading {
  max-width: 790px;
}

.updated {
  font-size: 0.77rem !important;
  margin-top: 26px;
}

.legal-grid {
  gap: 0 48px;
  grid-template-columns: 1fr 1fr;
}

.legal-card {
  border-top: 1px solid var(--hp-line);
  padding: 28px 0 24px;
}

.legal-card h3 {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}

.safety-card {
  display: grid;
  gap: 30px;
  grid-template-columns: auto 1fr;
  margin-top: 48px;
  padding: clamp(28px, 5vw, 56px);
}

.safety-mark {
  align-items: center;
  border: 1px solid var(--hp-cyan);
  border-radius: 50%;
  color: var(--hp-cyan);
  display: flex;
  font-size: 1.3rem;
  font-weight: 800;
  height: 50px;
  justify-content: center;
  margin: 0;
  width: 50px;
}

.safety-copy h3 {
  margin-top: 0;
}

.support-section {
  align-items: center;
  background: #eef8ff;
  color: #051a2a;
  display: flex;
  flex-direction: column;
  padding: clamp(90px, 12vw, 150px) 24px;
  text-align: center;
}

.support-section .eyebrow {
  color: #0077c8;
}

.support-section h2 {
  margin-bottom: 14px;
}

.support-section > p:not(.eyebrow):not(.support-link) {
  color: #536b7c;
  max-width: 570px;
}

.support-link {
  color: #005e9f;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 750;
  margin-top: 28px;
}

.support-link a {
  text-decoration-color: #8eb8d2;
  text-underline-offset: 7px;
}

.site-footer {
  align-items: center;
  color: #7894a7;
  display: grid;
  font-size: 0.7rem;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  padding: 38px clamp(24px, 6vw, 88px);
}

.site-footer p,
.site-footer .wp-block-site-title {
  margin: 0;
}

.footer-brand {
  align-items: center;
  color: var(--hp-ink);
  display: flex;
  gap: 10px;
}

.footer-icon {
  margin: 0;
  width: 36px;
}

.site-footer .wp-block-site-title {
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
  }

  .main-nav .wp-block-navigation__responsive-container-open {
    color: var(--hp-ink);
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .hero-visual {
    min-height: 400px;
    order: -1;
  }

  .hero-icon {
    height: 250px;
    width: 250px;
  }

  .feature-grid,
  .watch-flow,
  .purpose-grid,
  .research-intro,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 230px;
  }

  .feature-card h3 {
    margin-top: 50px;
  }

  .site-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-visual::after {
    display: none;
  }

  .safety-card,
  .evidence-note {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}


.page-shell {
  margin: 0 auto;
  max-width: 900px;
  min-height: calc(100svh - 220px);
  padding: clamp(72px, 10vw, 120px) clamp(24px, 6vw, 64px);
}

.page-shell > .wp-block-post-title {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 0 0 48px;
}

.page-content {
  background: linear-gradient(120deg, rgba(17, 59, 90, 0.58), rgba(7, 29, 48, 0.72));
  border: 1px solid var(--hp-line);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 56px);
}

.page-content h2 {
  color: var(--hp-cyan);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 14px;
}

.page-content h3 {
  border-top: 1px solid var(--hp-line);
  font-size: 1rem;
  margin: 32px 0 8px;
  padding-top: 26px;
}

.page-content p {
  color: var(--hp-muted);
  margin: 0 0 16px;
}

.page-content strong {
  color: var(--hp-ink);
}

.page-content a {
  color: var(--hp-cyan);
  text-underline-offset: 4px;
}
