@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
  font-family: 'HouschkaRounded';
  src: url('./HouschkaRounded-Bold.woff2') format('woff2'),
       url('./HouschkaRounded-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CourierPrime';
  src: url('./assets/fonts/courier-prime/CourierPrime-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CourierPrime';
  src: url('./assets/fonts/courier-prime/CourierPrime-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cutive';
  src: url('./assets/fonts/cutive/Cutive-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Andika';
  src: url('./assets/fonts/andika/Andika-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --kassie-bg: #56c8cb;
  --kassie-yellow: #f5da58;
  --kassie-dark-brown: #3F2A14;
  --kassie-white: #ffffff;
  --kassie-red: #c92939;
  --kassie-blue: #4a58c8;
  --kassie-cyan: #44C1C5;
  --kassie-text: #3F2A14;
  --kassie-card-bg: rgba(255, 255, 255, 0.2);
  --kassie-blue-o: rgba(49, 162, 255, 0.2);
  --kassie-blue-b: rgb(38, 72, 167, 0.6);
  --kassie-blue-f: rgb(38, 72, 167, 0.9);
}

* {
  box-sizing: border-box;
}

  
  
  .link-icon {
    width: 16px;
    height: 16px;
    vertical-align:bottom;
  }
  .footer-links {
    vertical-align:bottom;
  }
  .footer-links a{
    text-decoration:none;
    color:var(--kassie-blue-b) !important;
    transition:  color 0.3s ease-in-out 0.8s !important; 
  }
  
  .footer-links a:hover{ 
    text-decoration:none  !important;
    color:var(--kassie-blue-f) !important;
    
    transition: color 0.3s ease-out 0.5s;
  }
  .footer-links a img{
  opacity:0.6;
  transition: opacity 0.5s ease-out 0.5s ease-in 0.5s !important; 
  }
  .footer-links a:hover img{
  opacity:1;
  transition: opacity 0.8s ease-in 1s ease-in 0.5s !important; 
  }
body {
  margin: 0;
  padding: 0;
  background: var(--kassie-bg);
  font-family: 'HouschkaRounded', 'Roboto', Arial, sans-serif;
  color: var(--kassie-text);
  line-height: 1;
  overflow-x: hidden;
  font-size: 1.5rem;
}

/* ===================== */
/* LANGUAGE SYSTEM       */
/* ===================== */
[data-lang] {
  display: none !important;
}

[data-lang].show {
  display: block !important;
}

/* Inline items inside flex parents */
.step-label [data-lang].show,
.footer-links [data-lang].show {
  display: inline !important;
}

/* h2 inside section-header are inline */
.section-header h2[data-lang].show,
.header-link h2[data-lang].show {
  display: inline !important;
}

/* Lists */
ul[data-lang].show {
  display: block !important;
}

.container {
  width: min(750px, 95%);
  margin: auto;
  padding: 1rem 0 2rem;
  overflow: visible;
}

/* ===================== */
/* LANGUAGE TOGGLE       */
/* ===================== */
.lang-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lang-btn {
  border: 2px solid var(--kassie-dark-brown);
  background: var(--kassie-yellow);
  color: var(--kassie-dark-brown);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: var(--kassie-white);
}

.lang-btn.active {
  background: var(--kassie-dark-brown);
  color: var(--kassie-white);
  border-color: var(--kassie-dark-brown);
}

/* ===================== */
/* HERO                  */
/* ===================== */
.hero {
  position: relative;
}

.hero-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--kassie-yellow);
  border: 3px solid var(--kassie-dark-brown);
  border-radius: 30px;
  padding: 0.6rem 2rem 0.6rem calc(6rem + 50px);
  position: relative;
  min-height: 90px;
}

.hero-avatar-wrap {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 120px;
  background:  var(--kassie-dark-brown) ;
  /* border: 6px solid var(--kassie-dark-brown) !important; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top:3px;
}

.hero-avatar {
  width: 116px;
  height: 116px;
  object-fit: contain;
}

.hero-text h1 {
  font-size: 2.2rem;
  margin: 0;
  color: var(--kassie-text);
  font-family: 'HouschkaRounded', Arial, sans-serif;
  letter-spacing: 0.2rem;
}

.hero-subtitle {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  color: var(--kassie-text);
  font-family: 'Cutive', serif;
  font-weight: bold;
  font-style: normal;
  letter-spacing: 0.08rem;
}

/* ===================== */
/* CARDS                 */
/* ===================== */
.card {
  background: var(--kassie-card-bg);
  border-radius: 30px;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  color: var(--kassie-text);
}

.card p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--kassie-text);
  font-family: 'Andika', sans-serif;
}

/* ===================== */
/* JOURNEY               */
/* ===================== */
.journey {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  padding-top: 2.5rem;
}

.step-label {
  position: absolute;
  top: -1rem;
  left: -220px;
  font-size: 1.1rem;
  color: var(--kassie-dark-brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step-label span {
  margin-left: 140px;
  font-size: 1.3rem;
  font-style: normal;
}

.arrow-svg {
  width: 80px;
  height: auto;
  margin-left: 190px;
}

/* Card wrappers — the mascot is positioned relative to the feature-card */
.journey-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.feature-card {
  background: var(--kassie-white);
  border-radius: 25px;
  padding: 3.5rem 1.5rem 3rem 3rem;
  position: relative;
  width: 100%;
}

.feature-card.admin {
  border: 5px solid var(--kassie-red);
}

.feature-card.app {
  border: 5px solid var(--kassie-blue);
}

/* Step badge: sits ON TOP of the card top border, center-aligned */
.step-badge {
  position: absolute;
  top: -66px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
}

.step-number {
  width: 62px;
  height: 62px;
}

.step-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.play-btn img {
  width: 62px;
  height: 62px;
}

.feature-card h3 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.2rem;
  color: var(--kassie-text);
  font-weight: bold;
}

.feature-card ul {
  padding-left: 1.2rem;
  margin: 0;
  list-style: disc;
}

.feature-card li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--kassie-text);
  font-family: 'Andika', sans-serif;
  font-weight: normal;
}

/* ===================== */
/* MASCOTS               */
/* ===================== */
/* Mascots: same height as the feature-card, bottom-aligned */
.journey-card-wrapper {
  overflow: visible;
}

/* Desktop/tablet: show img version, hide div version */
.mascot {
  display: none;
}

/* Wrapper is invisible on desktop — img is absolute */
.mascot-wrap {
  display: none;
}

.mascot-left-img {
  position: absolute;
  left: -195px;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  z-index: 3;
}

.mascot-right-img {
  position: absolute;
  right: -195px;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  z-index: 3;
}

/* ===================== */
/* BOTTOM ICONS          */
/* ===================== */
/* Bottom icons sit ON TOP of the card bottom border, center-aligned */
.bottom-icons {
  position: absolute;
  bottom: -31px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.bottom-icons img {
  width: 62px;
  height: 62px;
}

/* ===================== */
/* SECTION HEADERS       */
/* ===================== */
.section-header {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--kassie-yellow);
  border: 3px solid var(--kassie-dark-brown);
  border-radius: 30px;
  padding: 1rem 1.5rem 1rem 4.5rem;
  position: relative;
  min-height: 64px;
}

.heart-header {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}
.section-header.heart-header {
  padding-top:-6px;
  padding-bottom:-6px;
}
/* Icon overlaps the left border */
.header-icon-wrap {
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.header-icon {
  width: 64px;
  height: 64px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--kassie-text);
}

.header-link {
  text-decoration: none;
}

.header-link h2 {
  color: var(--kassie-text);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 6px;
}

.social-links a[aria-label="Instagram"] {
  background: radial-gradient(circle at 25% 110%, #ffdd55 0%, #ff543e 32%, #c837ab 62%, #5b51d8 100%);
}

.social-links a[aria-label="Facebook"] {
  background: #ffffff;
  padding: 1px;
}

.social-links a[aria-label="Facebook"] img {
  width: 39px;
  height: 39px;
}

.social-links a img {
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: none;
  padding: 0;
}

/* ===================== */
/* STORY CARD            */
/* ===================== */
.story-card {
  padding: 2rem 2.5rem;
}

.story-card p {
  font-size: 1rem;
  line-height: 1.8;
  font-family: 'Andika', sans-serif;
}

/* ===================== */
/* DEVICE                */
/* ===================== */
.device-section {
  margin-top: 1.5rem;
  text-align: center;
}

.device-image {
  width: 100%;

  border-radius: 20px;
  border: 3px solid var(--kassie-dark-brown);
}

/* ===================== */
/* FOOTER                */
/* ===================== */
footer {
  padding: 1.5rem 1rem;
  background: var(--kassie-bg);
  border-top: 2px solid var(--kassie-dark-brown);
  text-align: center;
  margin-top: 2rem;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
}

footer p {
  margin: 0.25rem 0;
  color: var(--kassie-dark-brown);
  font-size: 0.9rem;
  font-family: 'Andika', sans-serif;
}

.footer-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--kassie-dark-brown);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: 'Andika', sans-serif;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  color: var(--kassie-dark-brown);
}

/* ===================== */
/* RESPONSIVE            */
/* ===================== */

/* Tablet — stack cards vertically */
@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .hero-banner {
    padding-left: calc(6rem + 50px);
  }

  .journey {
    grid-template-columns: 1fr;
    gap: calc(4rem + 50px);
  }

  .journey-card-wrapper {
    width: 65%;
    margin: 0 auto;
  }

  .feature-card {
    padding-left: 90px;
    padding-right: 60px;
    padding-top: calc(3.5rem - 15px);
  }

  .step-badge {
    top: -56px;
  }

  .feature-card h3 {
    font-size: 1.4rem;
  }

  .feature-card li {
    font-size: 1.2rem;
    font-weight: normal;
    font-family: 'Andika', sans-serif;
  }

  .card p,
  .story-card p,
  .hero-subtitle,
  .footer-links a,
  footer p {
    font-size: 1.2rem;
    font-family: 'Andika', sans-serif;
  }

  .mascot-left-img {
    left: -210px;
  }

  .mascot-right-img {
    right: -210px;
  }

  .step-label {
    left: -150px;
  }

  .step-label span {
    margin-left: 210px;
  }

  .step-label .arrow-svg {
    margin-left: 280px;
    width: 100px;
  }
}

/* Mobile: cards stack vertically */
@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }

  /* Tighten letter-spacing on all headings so they fit on one line */
  h1, h2, h3,
  .section-header h2,
  .page-title h2,
  .hero-text h1 {
    letter-spacing: -0.5px;
  }

  .container {
    width: 92%;
    overflow: visible;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
  }

  .lang-toggle {
    margin-bottom: 0.5rem;
  }

  .card {
    margin-top: 1rem;
  }

  .journey {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-top: 0px;
    margin-top: 2rem;
  }

  /* Each card wrapper becomes a CSS Grid: mascot + card side by side */
  .journey-card-wrapper {
    display: grid !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 1rem;
    align-items: stretch;
  }

  .admin-wrapper {
    position: relative;
  }

  .app-wrapper {
    position: relative;
  }

  .feature-card {
    width: 100% !important;
    padding: 2.5rem 0.75rem 2.5rem 0.75rem;
  }

  /* Mascots: absolute inside wrapper, height 100% of wrapper */
  .journey-card-wrapper {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 2rem;
  }

  .feature-card {
    width: 60% !important;
    margin-left: auto;
    padding: 2.5rem 0.75rem 2.5rem 0.75rem;
  }

  .admin-wrapper .feature-card {
    margin-left: auto;
    margin-right: 0;
  }

  .app-wrapper .feature-card {
    margin-left: 0;
    margin-right: auto;
  }

  .mascot-left-img,
  .mascot-right-img {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    height: 100% !important;
    width: auto !important;
    object-fit: contain;
    object-position: bottom;
  }

  .mascot-left-img {
    left: calc(-15% + 5px) !important;
    z-index: 1;
  }

  .mascot-right-img {
    right: calc(-15% + 15px) !important;
    z-index: 1;
  }

  .feature-card {
    z-index: 2;
    position: relative;
  }

  .heart-header {
    z-index: 3;
    position: relative;
  }

  /* Top icons centered on card border */
  .step-badge {
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
  }

  .step-number {
    width: 36px;
    height: 36px;
  }

  .step-avatar {
    width: 52px;
    height: 52px;
  }

  .play-btn img {
    width: 36px;
    height: 36px;
  }

  /* Bottom icons */
  .bottom-icons img {
    width: 36px;
    height: 36px;
  }

  .bottom-icons {
    bottom: -18px;
  }

  /* Step label */
  .step-label {
    position: relative;
    left: auto !important;
    top: auto;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 5px;
    gap: 0.1rem;
  }

  .step-label span {
    margin-left: 45px !important;
    font-size: 1.1rem;
  }

  .step-label .arrow-svg {
    margin-left: 20px !important;
    width: 50px !important;
  }

  /* Section headers */
  .section-header {
    margin-top: 1.5rem;
    margin-bottom: 0;
  }

  .section-header h2 {
    font-size: 0.8rem;
    margin-top: 0;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    white-space: nowrap;
  }

  /* Social icons */
  .social-links a {
    width: 32px;
    height: 32px;
    padding: 4px;
  }

  .social-links a img {
    width: 31px;
    height: 31px;
  }

  .social-links a[aria-label="Facebook"] img {
    width: 31px;
    height: 31px;
  }

  /* Footer links */
  footer p {
    font-size: 0.9rem;
  }

  .footer-links a,
  .footer-links span {
    font-size: 0.9rem;
  }

  /* Smaller bullet points for feature card lists */
  .feature-card ul {
    list-style-type: disc;
    padding-left: 1rem;
  }

  .feature-card li {
    font-size: 0.75rem;
  }

  .feature-card li::marker {
    font-size: 0.5rem;
  }

  /* Hero */
  .hero {
    margin-bottom: 0;
  }

  .hero-banner {
    padding: 0 0 0 5rem !important;
  }

  .hero-avatar-wrap {
    width: 75px;
    height: 75px;
    left: -10px;
  }

  .hero-avatar {
    width: 73px;
    height: 73px;
  }

  .hero-text h1 {
    font-size: 1.4rem;
    margin-left: 0;
    padding:0;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-left: 0;
  }

  /* Cards */
  .card {
    padding: 1.5rem;
  }

  .card h2 {
    font-size: 0.85rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  /* Section headers — icon same height as yellow box */
  .section-header {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem 1rem 0.25rem 3.5rem;
    min-height: 44px;
    overflow: visible;
  }

  .section-header h2 {
    font-size: 0.8rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
  }

  .header-link h2 {
    font-size: 0.75rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
  }

  .header-icon-wrap {
    width: 44px;
    height: 44px;
  }

  .header-icon {
    width: 44px;
    height: 44px;
  }

  /* Feature card text */
  .feature-card h3 {
    font-size: 1rem;
  }

  .feature-card li {
    font-size: 0.8rem;
    margin-left: 0;
  }
}

/* Very small screens */
@media (max-width: 420px) {
  .feature-card {
    padding: 2rem 0.5rem 2rem 0.5rem;
  }

  .admin-wrapper .feature-card {
    width: 65% !important;
  }

  .app-wrapper .feature-card {
    width: 65% !important;
  }

  .step-number {
    width: 38px;
    height: 38px;
  }

  .step-avatar {
    width: 52px;
    height: 52px;
  }

  .play-btn img {
    width: 38px;
    height: 38px;
  }

  .bottom-icons img {
    width: 38px;
    height: 38px;
  }

  .hero-banner {
    padding: 0 0 0 6.5rem !important;
    margin:0;
    height:75px !important;
  }

  .hero-avatar-wrap {
    width: 100px;
    height: 100px;
  }

  .hero-avatar,
  .hero-avatar img {
    width: 96px;
    height: 96px;
  }

  .hero-text h1 {
    font-size: 1.2rem;
  }

  .hero-subtitle {
    font-size: 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  
  .card h2 {
    font-size:0.9rem;
  }

  a.header-link h2{
    font-size:0.9rem;
    letter-spacing:-0.5px;
    }
  .section-header {
    padding-left: 3rem;
    min-height: 38px;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    border:2px solid var(--kassie-text);
  }

  .header-icon-wrap {
    width: 38px;
    height: 38px;
    background-color:var(--kass-text);
  }

  .header-icon {
    width: 38px;
    height: 38px;
    
  }
  .header-icon img{
    width: 38px;
    height: 38px;
    
  }

  .feature-card h3 {
    font-size: 0.9rem;
  }

  .feature-card li {
    font-size: 0.75rem;
  }
  a{
    font-size:0.70rem !important;
  }
}

/* ===================== */
/* WIGGLE                 */
/* ===================== */
@keyframes wiggle {
  0%,100% { transform: rotate(0); }
  20% { transform: rotate(-5deg); }
  40% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(3deg); }
}
.do-wiggle {
  animation: wiggle 0.5s ease-in-out;
  transform-origin: center center;
}

/* ===================== */
/* BOUNCE (in-place)      */
/* ===================== */
@keyframes bounce-pop {
  0%,100% { transform: scale(1); }
  40% { transform: scale(1.25); }
  60% { transform: scale(0.9); }
  80% { transform: scale(1.05); }
}
.do-bounce {
  animation: bounce-pop 0.35s ease;
}

/* ===================== */
/* FOOTER LINK ICONS     */
/* ===================== */
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.footer-links .link-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

@media (max-width: 700px) {
  .footer-links .link-icon {
    width: 16px;
    height: 16px;
  }
}
