/* =========================
   Together2 Folder Vibe CSS
   ========================= */

/* ---- Brand palette (from your PDF) ----
   Pride   #6561A8
   Serenity#00B3CC
   Light   #FDD500
   Awe     #EE7996
   Joy     #EC694A
   Drive   #E5005A
   Gratitude #008B65
   Hope    #C7D540
*/
:root{
  --pride: #6561A8;
  --serenity: #00B3CC;
  --light: #FDD500;
  --awe: #EE7996;
  --joy: #EC694A;
  --drive: #E5005A;
  --gratitude: #008B65;
  --hope: #C7D540;

  --bg: var(--pride);
  --text: #ffffff;
  --text-soft: rgba(255,255,255,.85);

  --card: rgba(255,255,255,.12);
  --card-strong: rgba(255,255,255,.18);
  --border: rgba(255,255,255,.22);

  --shadow: 0 12px 30px rgba(0,0,0,.25);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --max: 1100px;
}


body {
  font-family: 'Comfortaa', cursive, sans-serif;
}

h1, h2, h3, .btn, .circle-card, .brand {
  font-family: 'Comfortaa', cursive, sans-serif;
  font-weight: 700;
}

p, .lead, .nav .links {
  font-weight: 400;
}

/* ---- Base ---- */
*{
  box-sizing: border-box;
  font-family: 'Comfortaa', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html, body{
  height: 100%;
  width: 100%;
}

body{
  margin: 0;
  background:
    radial-gradient(1200px 700px at 30% 10%, rgba(255,255,255,.12), transparent 55%),
    radial-gradient(900px 600px at 80% 30%, rgba(0,179,204,.20), transparent 55%),
    var(--pride);
  color: #ffffff;
  overflow-x: hidden;
}


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

.container{
  width: 100%;
  max-width: 1200px;
  padding: 24px;
}

.card{
  background: rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 22px;
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff;
}

.section h2{
  font-family: 'Comfortaa', sans-serif;
  font-weight: 800;
  color: #fff;
}

.section p, .section ul{
  color: rgba(255,255,255,0.95);
}

.section h2, 
.section h3 {
  color: #fff;
  font-weight: 800;
}

.section p,
.section li {
  color: rgba(255,255,255,0.95);
}


/* ---- Top nav (optional) ---- */
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav .brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .2px;
}
.nav .brand-badge{
  width: 42px; height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.nav .links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--text-soft);
}

/* ---- Hero ---- */
.hero{
  padding: 80px 40px 60px 40px;
}

.hero .wrap{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: center;
}
@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
}

.h-eyebrow{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 700;
}

h1{
  margin: 16px 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}
.lead{
  margin: 0 0 22px;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--text-soft);
  max-width: 52ch;
}

.cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.split{
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 20px;
  align-items: center;
}

.split-image{
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.35);
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 48px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

@media (max-width: 700px){
  .split{
    grid-template-columns: 1fr;
  }

  .split-image{
    margin: 0 auto;
  }
}


/* ---- Buttons ---- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: .2px;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.btn:active{ transform: translateY(0px) scale(.99); }

.btn-primary{ background: var(--drive); }
.btn-secondary{
  background: rgba(255,255,255,.14);
  border-color: var(--border);
  color: #fff;
}
.btn-accent{ background: var(--serenity); }

/* ---- Folder card / panel ---- */
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.10));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 22px;
}

.section{
  margin: 40px 0;
}

@media (max-width: 800px) {

  .hero h1{
    font-size: 36px;
    line-height: 1.1;
  }

  .split{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .split-image{
    order: -1;
    min-height: 180px;
  }

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

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

  .journey{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    flex-direction: row;
    justify-content: space-around;
    background: rgba(0,0,0,.3);
    backdrop-filter: blur(10px);
    padding: 10px;
    z-index: 50;
  }

  .container{
    padding-bottom: 100px;
  }

}

.journey-step{
  flex: 1;
  text-align: center;
  font-size: 14px;
}

.journey-step span{
  display: block;
  font-size: 18px;
}

.image-chip{
  width: 100%;
  height: 160px;
  border-radius: 16px;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 16px;
}

.panel{
  max-width: 1100px;
  margin: 20px auto;
}
@media (max-width: 800px){

  /* Page padding so content doesn't hit edges */
  .container{
    width: 100%;
    padding: 16px;
    padding-bottom: 120px;
  }

  /* Panels become cards instead of long strips */
  .panel{
    margin: 16px 0;
    border-radius: 22px;
    padding: 18px;
  }

  /* Big headings fit phones */
  h1{
    font-size: 36px;
    line-height: 1.1;
  }
  h2{
    font-size: 26px;
  }

  /* Hero spacing */
  .hero{
    padding: 40px 16px 20px;
  }

  /* Circles become tappable tiles */
  .circle-grid{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .circle-card{
    border-radius: 20px;
    aspect-ratio: auto;
    padding: 20px 12px;
    min-height: 140px;
  }

  .circle-emoji{
    font-size: 32px;
  }

  /* Journey bar becomes bottom nav */
  .journey{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(12px);
    padding: 10px 6px;
    z-index: 100;
    border-top: 1px solid rgba(255,255,255,.2);
  }

  .journey-step{
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 8px 4px;
  }

  .journey-step span{
    display: block;
    font-size: 18px;
  }

  .journey-step.active{
    background: rgba(255,255,255,.25);
    border-radius: 14px;
  }

  /* Dog guide floats above nav */
  .dog-guide{
    position: fixed;
    bottom: 72px;
    left: 12px;
    right: 12px;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    z-index: 99;
  }

  /* Image chips go full width */
  .image-chip{
    width: 100%;
    height: 160px;
    border-radius: 18px;
    margin-bottom: 16px;
  }

  /* Grids collapse */
  .partner-grid,
  .team-grid,
  .journey-grid,
  .pathway{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Buttons easier to tap */
  .btn{
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
  }
}
@media (max-width: 800px){

  /* Pull content closer to top */
  .container{
    padding-top: 12px;
  }

  /* Reduce giant hero gaps on sub-pages */
  .panel.section{
    margin-top: 10px;
  }

  /* First panel on each page hugs the top */
  .panel.section:first-of-type{
    margin-top: 0;
  }

  /* Make dog guide less floaty */
  .dog-guide{
    bottom: 78px;
  }

  /* Make the chat cards feel closer */
  .team-grid,
  .partner-grid{
    margin-top: 12px;
  }

}
/* Stop the page from being pushed down by fixed UI */
body{
  padding-top: 0 !important;
}

/* Pull container up under the blobs */
.container{
  margin-top: -20px;
}

/* Remove any invisible spacer above first panel */
.panel.section:first-of-type{
  margin-top: 0 !important;
}

/* Make sure journey bar is NOT adding space */
.journey{
  margin: 0 !important;
}

/* Ensure dog guide floats, not pushes layout */
.dog-guide{
  position: fixed;
}

@media (max-width: 800px){

  /* Stack cards vertically */
  .team-grid{
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Make each flip card full-width */
  .flip-card{
    width: 100%;
    height: 260px;
    perspective: 1200px;
  }

  /* Tap target */
  .flip-inner{
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(.4,.2,.2,1);
    transform-style: preserve-3d;
  }

  /* Flip when tapped */
  .flip-card.active .flip-inner{
    transform: rotateY(180deg);
  }

  /* Prevent hover flip on mobile */
  .flip-card:hover .flip-inner{
    transform: none;
  }

}


/* ---- “What’s next?” 4 circles ---- */
.circle-grid{
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px){
  .circle-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px){
  .circle-grid{ grid-template-columns: 1fr; }
}

.circle-card{
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-weight: 900;
  line-height: 1.1;
  border: 2px solid rgba(255,255,255,.35);
  box-shadow: 0 16px 34px rgba(0,0,0,.25);
  transition: transform .15s ease, filter .15s ease;
}
.circle-card:hover{
  transform: translateY(-3px) rotate(-0.5deg);
  filter: brightness(1.03);
}
.circle-card small{
  display: block;
  margin-top: 8px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  opacity: .92;
}

.circle-card{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.circle-emoji{
  font-size: 48px;
  margin-bottom: 12px;
}

.circle-title{
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 6px;
}


.circle-card{
  animation: popIn 0.6s ease-out;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

@media (max-width: 800px){
  .partner-grid{
    grid-template-columns: 1fr;
  }
}

.partner-card{
  background: rgba(255,255,255,0.15);
  border-radius: 28px;
  padding: 28px;
  border: 3px solid rgba(255,255,255,0.6);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-primary{
  box-shadow: 0 0 0 rgba(229,0,91,0.6);
  animation: glow 2.5s infinite alternate;
}

@keyframes glow{
  from { box-shadow: 0 0 0 rgba(229,0,91,0.3); }
  to { box-shadow: 0 0 14px rgba(229,0,91,0.7); }
}

/* Assign circle colours */
.c-chat{ background: var(--light); color: #2a2452; }
.c-look{ background: var(--hope); color: #223018; }
.c-go{ background: var(--serenity); color: #082833; }
.c-plan{ background: var(--joy); color: #3b1b12; }

/* ---- Decorative blobs (like paint splashes) ---- */
.blob{
  position: absolute;
  z-index: 0;
  filter: blur(0px);
  opacity: .95;
  pointer-events: none;
}
.blob.one{
  width: 320px; height: 320px;
  top: -120px; left: -90px;
  background: radial-gradient(circle at 30% 30%, var(--awe), transparent 65%),
              radial-gradient(circle at 70% 70%, var(--light), transparent 62%);
  border-radius: 45% 55% 60% 40% / 45% 40% 60% 55%;
}
.blob.two{
  width: 380px; height: 260px;
  bottom: -120px; right: -140px;
  background: radial-gradient(circle at 30% 40%, var(--serenity), transparent 62%),
              radial-gradient(circle at 70% 60%, var(--drive), transparent 66%);
  border-radius: 55% 45% 50% 50% / 40% 55% 45% 60%;
}

/* Make sure content sits above blobs */
.hero .wrap, .nav, .panel{ position: relative; z-index: 2;
}

.hero h1, .hero .lead {
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.chat-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 800px){
  .chat-grid{
    grid-template-columns: 1fr;
  }
}

.journey-step{
  position: relative;
}

.journey-step.active::after{
  content: "⬆";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: var(--light);
}

.chat-card{
  background: rgba(255,255,255,0.15);
  border-radius: 28px;
  padding: 28px;
  border: 3px solid rgba(255,255,255,0.6);
}

.chat-cta{
  margin-top: 40px;
  text-align: center;
}

.avatar.dog{
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255,255,255,0.4));
  position: relative;
}

.avatar.dog::after{
  content: "🐶";
  font-size: 40px;
  position: absolute;
  top: 20px;
  left: 25px;
}

.journey{
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}

.journey-step{
  background: rgba(255,255,255,0.25);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.journey-step:hover{
  opacity: 1;
  transform: scale(1.05);
}

.journey-step.active{
  background: var(--light);
  color: #2a2452;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}

.flip-card{
  background: transparent;
  width: 100%;
  height: 260px;
  perspective: 1000px;
}

.flip-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner{
  transform: rotateY(180deg);
}

.flip-front, .flip-back{
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  border: 3px solid rgba(255,255,255,0.4);
}

.flip-front{
  background: var(--light);
  color: #2a2452;
}

.flip-back{
  background: var(--gratitude);
  color: #fff;
  transform: rotateY(180deg);
  padding: 24px;
  text-align: center;
}

.dog-guide{
  text-align: center;
  padding: 14px;
  font-weight: 800;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-bottom: 2px solid rgba(255,255,255,0.3);
}

/* Individual dog colours */
.buddy{ background: var(--awe); }
.poppy{ background: var(--hope); }
.scout{ background: var(--serenity); }

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

@media (max-width: 800px){
  .team-grid{
    grid-template-columns: 1fr;
  }
}

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

@media(max-width: 800px){
  .block-grid{
    grid-template-columns: 1fr;
  }
}

.block-card{
  background: rgba(255,255,255,0.25);
  border-radius: 24px;
  padding: 20px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease;
}

.block-card:hover{
  transform: scale(1.03);
}

.day-builder{
  margin-top: 40px;
  background: rgba(255,255,255,0.2);
  border-radius: 28px;
  padding: 24px;
}

.day-builder ul{
  list-style: none;
  padding: 0;
}

.day-builder li{
  background: var(--light);
  color: #2a2452;
  padding: 12px 16px;
  border-radius: 999px;
  margin: 8px 0;
  font-weight: 800;
}

.quiz-question button{
  width: 100%;
  padding: 18px 20px;
  margin: 12px 0;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.35);
  color: #2a2452;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  transition: all 0.15s ease;
}

.quiz-question button:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.5);
}

.quiz-question button:active{
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.quiz-question button.selected{
  background: var(--light);
  color: #2a2452;
  box-shadow: 0 0 0 4px rgba(253,213,0,0.5);
}

#quiz-result{
  margin-top: 32px;
  background: rgba(255,255,255,0.2);
  border-radius: 28px;
  padding: 28px;
  border: 3px solid rgba(255,255,255,0.5);
}


/* ---- Footer ---- */
.footer{
  padding: 34px 0 44px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.blob.one {
  animation: float 14s ease-in-out infinite;
}

.blob.two {
  animation: float 18s ease-in-out infinite reverse;
}

@media (max-width: 800px){

  /* Lock the viewport */
  html, body{
    overflow-x: hidden;
  }

  body{
    margin: 0;
    padding: 0;
    display: block;
  }

  /* Main scroll container */
  .container{
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 12px 120px; /* space for bottom nav */
  }

  /* Panels become app cards */
  .panel{
    width: 100%;
    margin: 12px 0;
    padding: 16px;
    border-radius: 20px;
  }

  /* Collapse all grids */
  .hero,
  .columns,
  .pathway,
  .journey-grid,
  .partner-grid,
  .team-grid,
  .circle-grid{
    display: block;
  }

  .circle-card,
  .partner-card,
  .flip-card,
  .path-step{
    width: 100%;
    margin-bottom: 14px;
  }

  /* Hero sizing */
  .hero{
    padding: 32px 16px 16px;
    text-align: left;
  }

  h1{
    font-size: 32px;
    line-height: 1.1;
  }

  h2{
    font-size: 24px;
  }

  /* Image placeholders */
  .image-chip{
    width: 100%;
    height: 160px;
    margin-bottom: 12px;
    border-radius: 16px;
  }

  /* Bottom navigation bar */
  .journey{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99;
    border-top: 1px solid rgba(255,255,255,.2);
  }

  .journey-step{
    flex: 1;
    text-align: center;
    font-size: 11px;
    padding: 6px 4px;
  }

  .journey-step span{
    display: block;
    font-size: 20px;
    line-height: 1;
  }

  .journey-step.active{
    background: rgba(255,255,255,.25);
    border-radius: 14px;
  }

  /* Dog helper bubble */
  .dog-guide{
    position: fixed;
    bottom: 74px;
    left: 10px;
    right: 10px;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(10px);
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 14px;
    z-index: 98;
  }

  /* Hide big decorative blobs on phones */
  .blob{
    display: none;
  }

  /* Make quiz buttons easy to tap */
  .quiz-question button{
    width: 100%;
    margin: 8px 0;
    font-size: 16px;
    padding: 14px;
    border-radius: 14px;
  }

}

