:root{
  --sky:#6EC5F1;
  --pale:#DAEDF4;
  --mist:#F2FCFF;
  --blue:#28A7E5;
  --navy:#065792;
  --cyan:#09C5FF;
  --white:#FFFFFF;
  --ink:#0A1420;
  --deep:#03131F;
  --muted:#4C5A66;
  --muted-2:#5C6B77;
  --line:rgba(6,87,146,0.12);
  --line-strong:rgba(6,87,146,0.22);
  --max:1120px;
  --ease-out:cubic-bezier(0.23,1,0.32,1);
  --shadow-card:0 24px 60px -32px rgba(6,87,146,0.38);
  --shadow-phone:0 34px 70px -34px rgba(3,19,31,0.55);
}

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

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

body{
  margin:0;
  font-family:'Barlow',sans-serif;
  font-size:17px;
  line-height:1.6;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img,
svg{display:block;max-width:100%;}

button,
input{font:inherit;}

a{color:inherit;text-decoration:none;}

p,
h1,
h2,
h3,
figure{margin:0;}

::selection{background:var(--cyan);color:var(--ink);}

:focus-visible{
  outline:3px solid var(--cyan);
  outline-offset:3px;
  border-radius:4px;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.skip-link{
  position:absolute;
  left:16px;
  top:-64px;
  z-index:100;
  padding:12px 18px;
  border-radius:999px;
  background:var(--navy);
  color:var(--white);
  font-size:14px;
  font-weight:700;
  transition:top 160ms var(--ease-out);
}

.skip-link:focus{top:12px;}

.wrap{
  max-width:var(--max);
  margin-inline:auto;
  padding-inline:clamp(20px,4vw,32px);
}

h1,
h2,
h3{
  font-family:'Barlow Condensed',sans-serif;
  color:var(--navy);
  font-optical-sizing:auto;
  text-wrap:balance;
}

h1{
  font-size:clamp(3rem,7.6vw,6.8rem);
  font-weight:600;
  line-height:0.94;
  letter-spacing:-0.02em;
  overflow-wrap:break-word;
}

h2{
  font-size:clamp(2.3rem,4.8vw,4rem);
  font-weight:600;
  line-height:1.0;
  letter-spacing:-0.015em;
}

h3{
  font-size:clamp(1.6rem,2.8vw,2.4rem);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-0.01em;
}

p{
  color:var(--muted);
  font-size:1.0625rem;
  line-height:1.65;
  text-wrap:pretty;
}

.micro{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--muted-2);
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--navy);
}

.eyebrow::before{
  content:"";
  width:26px;
  height:1px;
  flex:none;
  background:var(--blue);
}

.icon{
  width:20px;
  height:20px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:0 24px;
  border:1px solid transparent;
  border-radius:999px;
  font-family:'Barlow',sans-serif;
  font-size:15px;
  font-weight:700;
  letter-spacing:-0.01em;
  cursor:pointer;
  transition:transform 160ms var(--ease-out),background-color 160ms ease,border-color 160ms ease,color 160ms ease,box-shadow 160ms ease;
}

.btn:active{transform:scale(0.97);}

.btn:disabled{
  cursor:default;
  opacity:0.7;
  transform:none;
}

.btn-primary{
  background:var(--navy);
  color:var(--white);
  box-shadow:0 1px 2px rgba(6,87,146,0.14);
}

.btn-hero{
  background:var(--white);
  color:var(--navy);
  box-shadow:0 1px 2px rgba(0,0,0,0.12);
}

.btn-secondary{
  background:transparent;
  border-color:var(--line-strong);
  color:var(--navy);
}

.btn-small{
  min-height:40px;
  padding:0 16px;
  font-size:13px;
}

.text-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding-bottom:2px;
  border-bottom:1px solid transparent;
  font-size:14.5px;
  font-weight:700;
  color:var(--navy);
  transition:border-color 160ms ease,color 160ms ease;
}

.text-link span{transition:transform 160ms var(--ease-out);}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,0.8);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  backdrop-filter:blur(18px) saturate(180%);
  border-bottom:1px solid rgba(6,87,146,0.08);
  transition:box-shadow 200ms ease;
}

.site-header.is-scrolled{box-shadow:0 10px 30px -24px rgba(6,87,146,0.4);}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  height:72px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:21px;
  font-weight:700;
  letter-spacing:0.01em;
  color:var(--navy);
}

.brand img{
  width:32px;
  height:32px;
  object-fit:contain;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:clamp(14px,1.8vw,24px);
  font-size:14px;
  font-weight:600;
  color:#2B3844;
}

.nav-links a{
  opacity:0.74;
  white-space:nowrap;
  transition:opacity 160ms ease,color 160ms ease;
}

.nav-links .nav-login-mobile{display:none;}

.nav-links a[aria-current="page"]{
  opacity:1;
  color:var(--navy);
}

.nav-login{flex:none;}

.nav-toggle{
  display:none;
  align-items:center;
  gap:8px;
  margin-left:auto;
  padding:8px 12px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:transparent;
  color:var(--navy);
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  cursor:pointer;
}

.nav-toggle-icon{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
}

.hero{
  position:relative;
  display:flex;
  align-items:center;
  min-height:clamp(620px,78vh,820px);
  overflow:hidden;
  color:var(--white);
  background:var(--deep) url("../assets/images/high-five-hero.jpg") center 38% / cover no-repeat;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(3,19,31,0.92) 0%,rgba(3,19,31,0.72) 36%,rgba(3,19,31,0.22) 72%,rgba(3,19,31,0.04) 100%),
    linear-gradient(0deg,rgba(3,19,31,0.62) 0%,rgba(3,19,31,0) 48%);
  pointer-events:none;
}

.hero-inner{
  position:relative;
  z-index:1;
  width:100%;
  padding-top:clamp(64px,8vw,104px);
  padding-bottom:clamp(56px,7vw,88px);
}

.hero-copy{
  min-width:0;
  max-width:620px;
}

.hero .eyebrow{color:var(--cyan);}

.hero .eyebrow::before{background:var(--cyan);}

.hero h1{
  margin-top:18px;
  color:var(--white);
}

.hero .lede{
  max-width:540px;
  margin-top:24px;
  color:rgba(255,255,255,0.86);
}

.hero-actions{
  display:flex;
  align-items:center;
  gap:clamp(18px,2.5vw,28px);
  flex-wrap:wrap;
  margin-top:32px;
}

.hero .text-link{color:var(--white);}

.phone{
  position:relative;
  background:var(--ink);
  border-radius:38px;
  padding:8px;
  box-shadow:var(--shadow-phone),inset 0 0 0 1px rgba(255,255,255,0.14);
}

.phone-title{
  position:absolute;
  top:18px;
  left:0;
  right:0;
  z-index:2;
  font-family:'Barlow Condensed',sans-serif;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.01em;
  color:var(--navy);
  text-align:center;
  pointer-events:none;
}

.phone img{
  width:100%;
  height:auto;
  border-radius:30px;
  background:var(--white);
}

@keyframes rise{
  from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:none;}
}

.hero-copy > *{animation:rise 700ms var(--ease-out) both;}

.hero-copy > :nth-child(2){animation-delay:60ms;}
.hero-copy > :nth-child(3){animation-delay:120ms;}
.hero-copy > :nth-child(4){animation-delay:180ms;}

.proof{
  padding:clamp(36px,4.5vw,56px) 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.proof-grid{
  display:grid;
  grid-template-columns:190px repeat(3,1fr);
  gap:clamp(24px,3vw,40px);
  align-items:start;
}

.proof-phone-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  min-width:0;
}

.proof-phone{
  width:100%;
  max-width:190px;
}

.proof-phone-caption{
  max-width:190px;
  font-size:11px;
  line-height:1.45;
  color:var(--muted-2);
  text-align:center;
}

.proof-item{
  padding:0 clamp(16px,2vw,28px);
  border-left:1px solid var(--line);
}

.proof-item:last-child{padding-right:0;}

.proof-item .micro{margin-bottom:12px;}

.proof-item h3{
  margin-bottom:10px;
  font-size:clamp(1.35rem,1.9vw,1.6rem);
  line-height:1.1;
}

.proof-item p{
  font-size:0.95rem;
  line-height:1.6;
}

.proof-item .text-link{
  margin-top:14px;
  font-size:13.5px;
}

.problem{
  position:relative;
  overflow:hidden;
  padding:clamp(76px,10vw,124px) 0 calc(clamp(76px,10vw,124px) + 140px);
  background:var(--navy);
  color:var(--white);
}

.topo-edge{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:0;
  width:100%;
  height:220px;
  pointer-events:none;
}

.topo-fill{fill:var(--white);}

.topo-line{
  fill:none;
  stroke-linecap:round;
  vector-effect:non-scaling-stroke;
}

.topo-pale{stroke:var(--pale);stroke-width:1.5;opacity:0.55;}
.topo-white{stroke:var(--white);stroke-width:1.2;opacity:0.3;}
.topo-sky{stroke:var(--sky);stroke-width:2.2;opacity:0.7;}
.topo-cyan{stroke:var(--cyan);stroke-width:2.4;opacity:0.7;}
.topo-blue{stroke:var(--blue);stroke-width:2.6;opacity:0.85;}
.topo-navy{stroke:var(--navy);stroke-width:1.8;opacity:0.4;}

.problem-inner{
  position:relative;
  z-index:1;
  max-width:840px;
  margin-inline:auto;
  text-align:center;
}

.problem h2{
  color:var(--white);
  font-size:clamp(2.6rem,5.6vw,4.6rem);
  line-height:0.98;
  letter-spacing:-0.02em;
}

.problem p{
  max-width:640px;
  margin:24px auto 0;
  color:rgba(255,255,255,0.72);
  font-size:clamp(1rem,1.3vw,1.1rem);
  line-height:1.65;
}

.problem-quote{
  max-width:760px !important;
  margin-top:36px !important;
  font-family:'Barlow Condensed',sans-serif;
  font-size:clamp(1.5rem,2.6vw,2.2rem) !important;
  font-weight:500;
  line-height:1.2 !important;
  letter-spacing:-0.01em;
  color:var(--cyan) !important;
  text-wrap:balance;
}

.chapters{padding:clamp(80px,10vw,140px) 0;}

.section-head{
  max-width:760px;
  margin:0 auto clamp(44px,6vw,80px);
  text-align:center;
}

.section-head h2{margin-top:16px;}

.chapter{
  display:grid;
  grid-template-columns:minmax(0,0.95fr) minmax(0,1.05fr);
  gap:clamp(40px,6vw,88px);
  align-items:center;
  padding:clamp(48px,6vw,80px) 0;
}

.chapter + .chapter{border-top:1px solid var(--line);}

.chapter-copy{max-width:560px;}

.chapter-label{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:'IBM Plex Mono',monospace;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--muted-2);
}

.chapter-label span{color:var(--navy);}

.chapter-label::after{
  content:"";
  flex:1;
  height:1px;
  margin-left:8px;
  background:var(--line);
}

.chapter-copy h3{margin-top:16px;}

.chapter-copy p{margin-top:18px;}

.chapter-copy .text-link{margin-top:24px;}

.chapter-visual{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:640px;
}

.phone-chapter{width:min(280px,66%);}

.float-card{
  position:absolute;
  left:0;
  bottom:28px;
  width:min(250px,48%);
  padding:18px;
  border:1px solid rgba(6,87,146,0.12);
  border-radius:20px;
  background:rgba(255,255,255,0.92);
  box-shadow:var(--shadow-card);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  backdrop-filter:blur(18px) saturate(160%);
}

.chapter-flip .chapter-copy{order:2;}

.chapter-flip .chapter-visual{order:1;}

.chapter-flip .float-card{
  left:auto;
  right:0;
}

.card-label{
  font-family:'IBM Plex Mono',monospace;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--muted-2);
}

.chips{
  display:flex;
  gap:6px;
  margin-top:12px;
}

.chip{
  padding:6px 10px;
  border:1px solid rgba(6,87,146,0.2);
  border-radius:999px;
  background:transparent;
  color:#2B3844;
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
  transition:transform 120ms var(--ease-out),background-color 160ms ease,color 160ms ease,border-color 160ms ease;
}

.chip:active{transform:scale(0.96);}

.chip[aria-pressed="true"]{
  background:var(--navy);
  border-color:var(--navy);
  color:var(--white);
}

.tt-readout{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-top:16px;
  font-size:13.5px;
  color:var(--muted);
}

.tt-readout strong{
  font-family:'Barlow Condensed',sans-serif;
  font-size:2.2rem;
  line-height:1;
  letter-spacing:-0.02em;
  color:var(--navy);
}

.spark{
  width:100%;
  height:52px;
  margin-top:8px;
}

.action-text{
  margin-top:12px;
  font-size:13.5px;
  line-height:1.5;
  color:#2B3844;
}

.action-text strong{color:var(--navy);}

.action-btn,
.shift-btn{
  width:100%;
  margin-top:16px;
}

.fill-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
  font-size:13.5px;
  color:var(--muted);
}

.dots{
  font-size:13px;
  letter-spacing:2px;
  color:var(--blue);
}

.float-card.is-handled{opacity:0.66;}

.float-card.is-handled .action-btn{
  border-color:var(--line);
  background:var(--mist);
  color:var(--muted);
  opacity:1;
  box-shadow:none;
}

.shift-btn:disabled{
  border-color:var(--line);
  background:var(--mist);
  color:var(--navy);
  opacity:1;
  box-shadow:none;
}

.trust{
  padding:clamp(80px,10vw,120px) 0;
  background:var(--deep);
  color:var(--white);
}

.trust .section-head{
  max-width:620px;
  margin:0 0 56px;
  text-align:left;
}

.trust .eyebrow{color:var(--cyan);}

.trust .eyebrow::before{background:var(--cyan);}

.trust h2{color:var(--white);}

.trust-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
}

.trust-item{
  padding:28px clamp(20px,2.6vw,32px) 0;
  border-top:1px solid rgba(255,255,255,0.16);
  border-left:1px solid rgba(255,255,255,0.12);
}

.trust-item:first-child{
  padding-left:0;
  border-left:none;
}

.trust-item:last-child{padding-right:0;}

.trust-icon{
  width:28px;
  height:28px;
  margin-bottom:20px;
  color:var(--cyan);
  stroke-width:1.5;
}

.trust-item h3{
  color:var(--white);
  font-size:1.35rem;
  line-height:1.15;
}

.trust-item p{
  margin-top:10px;
  color:rgba(255,255,255,0.66);
  font-size:0.95rem;
  line-height:1.65;
}

.ridge{
  background:var(--white);
  line-height:0;
}

.ridge svg{
  width:100%;
  height:64px;
}

.final{padding:clamp(72px,9vw,120px) 0 clamp(88px,11vw,150px);}

.final-inner{
  max-width:820px;
  margin-inline:auto;
  text-align:center;
}

.final h2{margin-top:16px;}

.final-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  flex-wrap:wrap;
  margin-top:36px;
}

.store-block{margin-top:56px;}

.store-badges{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

.store-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 18px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:14px;
  background:var(--ink);
  color:var(--white);
  transition:transform 160ms var(--ease-out),background-color 160ms ease;
}

.store-badge:active{transform:scale(0.98);}

.store-badge-icon{
  width:26px;
  height:26px;
  flex:none;
}

.store-label{
  display:flex;
  flex-direction:column;
  font-size:10px;
  line-height:1.25;
  letter-spacing:0.02em;
  color:rgba(255,255,255,0.72);
}

.store-label strong{
  margin-top:1px;
  font-size:15px;
  font-weight:700;
  letter-spacing:-0.01em;
  color:var(--white);
}

.site-footer{
  padding:44px 0;
  border-top:1px solid var(--line);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:18px;
  font-weight:700;
  letter-spacing:0.01em;
  color:var(--navy);
}

.footer-brand img{
  width:30px;
  height:30px;
  object-fit:contain;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px 24px;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
}

.footer-copy{
  font-size:13px;
  color:var(--muted-2);
}

.footer-copy a{
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:3px;
}

@media (hover:hover) and (pointer:fine){
  .btn-primary:hover{background:var(--ink);}
  .btn-hero:hover{background:var(--cyan);color:var(--ink);}
  .hero .text-link:hover{border-color:var(--white);}
  .btn-secondary:hover{
    border-color:var(--navy);
    background:var(--mist);
  }
  .text-link:hover{border-color:var(--navy);}
  .text-link:hover span{transform:translateX(3px);}
  .nav-links a:hover{opacity:1;}
  .store-badge:hover{background:var(--navy);}
  .footer-links a:hover{color:var(--navy);}
  .chip:hover{border-color:var(--navy);}
}

@media (max-width:900px){
  .nav{height:64px;}

  .nav-links{
    position:absolute;
    top:64px;
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    max-height:calc(100vh - 64px);
    max-height:calc(100dvh - 64px);
    padding:8px clamp(20px,4vw,32px) 20px;
    overflow-y:auto;
    border-bottom:1px solid var(--line);
    background:var(--white);
    box-shadow:0 18px 40px -28px rgba(6,87,146,0.4);
    -webkit-overflow-scrolling:touch;
  }

  .nav-links.open{display:flex;}

  .nav-links a{
    width:100%;
    padding:14px 0;
    border-bottom:1px solid rgba(6,87,146,0.08);
    font-size:16px;
  }

  .nav-links a:last-child{border-bottom:none;}

  .nav-toggle{display:inline-flex;}

  .nav-login{display:none;}

  .nav-links .nav-login-mobile{
    display:block;
    margin-top:12px;
    padding:12px 16px;
    border:1px solid var(--navy);
    border-radius:999px;
    background:var(--mist);
    color:var(--navy);
    font-weight:700;
    opacity:1;
    text-align:center;
  }

  .hero{
    min-height:auto;
    background-image:url("../assets/images/high-five-hero-mobile.jpg");
    background-position:center 40%;
  }

  .hero::before{
    background:linear-gradient(180deg,rgba(3,19,31,0.94) 0%,rgba(3,19,31,0.84) 55%,rgba(3,19,31,0.7) 100%);
  }

  .hero-inner{
    padding-top:clamp(56px,9vw,80px);
    padding-bottom:clamp(56px,9vw,80px);
  }

  .hero-copy{max-width:640px;}


  .proof-grid{
    grid-template-columns:1fr;
    gap:0;
  }

  .proof-phone-wrap{
    justify-self:center;
    padding-bottom:24px;
  }

  .proof-item{
    padding:24px 0;
    border-top:1px solid var(--line);
    border-left:none;
  }

  .proof-item:last-child{padding-bottom:0;}

  .chapter{
    grid-template-columns:1fr;
    gap:32px;
  }

  .chapter-flip .chapter-copy{order:1;}

  .chapter-flip .chapter-visual{order:2;}

  .chapter-visual{
    flex-direction:column;
    min-height:0;
  }

  .phone-chapter{width:min(260px,72%);}

  .float-card,
  .chapter-flip .float-card{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    width:min(320px,92%);
    margin-top:-48px;
    z-index:2;
  }

  .trust .section-head{
    max-width:560px;
    margin-bottom:40px;
  }

  .trust-grid{grid-template-columns:1fr;}

  .trust-item{
    padding:24px 0;
    border-top:1px solid rgba(255,255,255,0.16);
    border-left:none;
  }

  .trust-item:first-child{padding-top:0;border-top:none;}

  .trust-item:last-child{padding-bottom:0;}
}

@media (max-width:560px){
  .problem-quote{font-size:1.5rem !important;}

  .final-actions{
    flex-direction:column;
    gap:18px;
  }

  .final-actions .btn{width:100%;}

  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}

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

  .hero-copy > *{animation:none;}

  .btn,
  .chip,
  .store-badge,
  .text-link span,
  .nav-links a,
  .site-header{transition-duration:0.01ms;}
}
