.home-title {
  font-size: clamp(1.9rem, 4.5vw, 3.6rem);
}
@media (max-width: 770px) {
  .home-title {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }
}
@media (max-width: 620px) {
  .home-title {
    font-size: 1.9rem;
    line-height: 1.15;
  }
}
@media (max-width: 380px) {
  .home-title {
    font-size: 1.5rem;
    line-height: 1.15;
  }
}

/* =========================================================
   DAILY BRAIN KISS
========================================================= */

.daily-kiss {
  position: relative;
  width: 100%;
  margin: 32px auto 70px;
  padding: 22px clamp(58px, 7vw, 72px) 22px 24px;
  text-align: center;
  background: linear-gradient(145deg, rgba(15,25,31,.94), rgba(7,13,18,.86));
  border: 1px solid rgba(52,211,153,.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 35px rgba(0,0,0,.22), 0 0 35px rgba(52,211,153,.04);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .28s ease, box-shadow .28s ease;
}

.daily-kiss:hover {
  border-color: rgba(52,211,153,.45);
  box-shadow: 0 14px 35px rgba(0,0,0,.25), 0 0 25px rgba(52,211,153,.08);
}

.kiss-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  color: var(--green-1);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kiss-heading span {
  overflow-wrap: anywhere;
}

.kiss-emoji {
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
}

.kiss-toggle {
  position: absolute;
  right: 18px;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  color: var(--green-1);
  font-size: 1.55rem;
  line-height: 1;
  opacity: .9;
  transition: transform .28s ease;
}

.daily-kiss.kiss-collapsed .kiss-text,
.daily-kiss.kiss-collapsed .kiss-hint,
.daily-kiss.kiss-collapsed .kiss-extra {
  display: none;
}

.daily-kiss.kiss-expanded .kiss-text,
.daily-kiss.kiss-expanded .kiss-hint,
.daily-kiss.kiss-expanded .kiss-extra {
  display: block;
}

.kiss-text {
  width: 100%;
  margin: 16px 0 8px;
  color: var(--text);
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  font-weight: 500;
  line-height: 1.5;
}

.kiss-hint {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.8rem, 1.3vw, .85rem);
  font-weight: 300;
  line-height: 1.5;
}

.kiss-extra {
  margin: 18px auto 0;
  width: 100%;
  min-width: 0;
}

.kiss-extra-text {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.6;
  text-align: center;
}

.kiss-extra img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 14px;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.feeling-section {
  margin-top: 50px;
  min-width: 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 20px;
  min-width: 0;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.section-heading p,
.section-heading h3 {
  margin-top: 5px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 380px) {
  #feelingTitle {
    font-size: 1.2rem;
    font-weight: 500;
  }
}
/* =========================================================
   TOOL GRID — ALWAYS 3 CARDS PER ROW
========================================================= */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}


/* =========================================================
   TOOL CARDS
========================================================= */

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  min-width: 0;
  min-height: 220px;
  box-sizing: border-box;
  padding: 18px 16px;

  background: linear-gradient(
    145deg,
    rgba(15,25,31,.94),
    rgba(7,13,18,.86)
  );

  border: 1px solid rgba(167,139,250,.55);
  border-radius: var(--radius-lg);

  box-shadow:
    0 5px 16px rgba(0,0,0,.18),
    0 0 8px rgba(167,139,250,.12),
    0 0 14px rgba(52,211,153,.05);

  cursor: pointer;
  user-select: none;
  text-align: left;
  text-decoration: none;
  outline: none;
  overflow: hidden;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

/* Subtle coloured highlight along the top of each card */
.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(167,139,250,.8),
    rgba(52,211,153,.65),
    transparent
  );

  pointer-events: none;
}

.tool-card:hover {
  border-color: rgba(167,139,250,.9);

  box-shadow:
    0 6px 18px rgba(0,0,0,.22),
    0 0 12px rgba(167,139,250,.24),
    0 0 20px rgba(52,211,153,.10);
}

.tool-card:focus-visible {
  outline: 2px solid var(--green-1);
  outline-offset: 3px;
}


/* =========================================================
   TOOL CARD CONTENT
========================================================= */

.tool-emoji {
  font-size: 1.9rem;
  line-height: 1;
  margin: 0 0 12px;
  filter: drop-shadow(0 4px 10px rgba(52,211,153,.18));
}

.tool-title {
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 7px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;

  padding: 3px 9px;
  border-radius: 999px;

  font-size: .65rem;
  font-weight: 300;
  letter-spacing: .05em;
  line-height: 1.4;
  text-transform: uppercase;

  color: var(--green-1);
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.25);

  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.tool-desc {
  flex: 1;
  min-width: 0;
  color: #b9cfc9;
  font-size: clamp(.75rem, 1.2vw, .87rem);
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}


/* =========================================================
   CTA ARROW BUTTON
========================================================= */
.tool-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: auto;
  flex-shrink: 0;

  min-width: 140px;
  max-width: 100%;
  padding: 9px 26px;

  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-align: center;
  text-decoration: none;

  color: #f5fff9;

  background: linear-gradient(
    110deg,
    #30203f 0%,
    #263849 30%,
    #176052 63%,
    #20875b 100%
  );

  border: 1px solid rgba(133, 205, 164, 0.30);
  border-radius: 999px;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.24),
    0 2px 8px rgba(24, 105, 72, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.tool-card:hover .tool-arrow,
.tool-card.active .tool-arrow {
  background: linear-gradient(
    110deg,
    #3b2850 0%,
    #2b4655 30%,
    #1d705c 63%,
    #2b9969 100%
  );

  transform: translateX(3px);

  border-color: rgba(156, 222, 182, 0.42);

  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.22),
    0 4px 12px rgba(25, 120, 79, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tool-card:active .tool-arrow {
  transform: translateX(3px) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .tool-arrow {
    transition: none;
  }
}


/* =========================================================
   FEELING PICKER CARDS
========================================================= */

.feeling-card {
  min-height: 175px;
  align-items: center;
  text-align: center;
  padding: 18px 12px 14px;
}

.feeling-card .tool-emoji {
  font-size: 2rem;
  margin: 0 0 10px;
}

.feeling-card .tool-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.feeling-card .tool-tag {
  justify-content: center;
  text-align: center;
  margin-bottom: 12px;
}


/* =========================================================
   PROBLEM DECODER
========================================================= */

.decoder-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(167,139,250,.12);
  min-width: 0;
}

.decoder-heading {
  margin-bottom: 22px;
}

.decoder-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.decoder-card {
  min-height: 205px;
}

.decoder-card .tool-desc {
  margin-top: 2px;
}


/* =========================================================
   RESPONSIVE — TABLETS AND SMALLER SCREENS
   Keep 3 columns at every screen width.
========================================================= */

@media (max-width: 720px) {
  .daily-kiss {
    margin: 24px auto 42px;
    padding: 20px 58px 20px 18px;
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .tool-card {
    min-height: 0;
    padding: 12px 9px;
    border-radius: 12px;
  }

  .tool-emoji {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .tool-title {
    font-size: .8rem;
  }

  .tool-tag {
    padding: 3px 5px;
    font-size: .55rem;
    letter-spacing: .015em;
    margin-bottom: 8px;
  }

  .tool-desc {
    font-size: .7rem;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .tool-arrow {
    padding: 4px 20px;
    min-width: 56px;
    font-size: .75rem;
  }

  .feeling-card {
    min-height: 0;
    padding: 12px 7px;
  }

  .feeling-card .tool-emoji {
    font-size: 1.55rem;
    margin-bottom: 8px;
  }

  .feeling-card .tool-title {
    font-size: .82rem;
  }

  .feeling-card .tool-tag {
    justify-content: center;
    text-align: center;
  }

  .decoder-section {
    margin-top: 36px;
    padding-top: 28px;
  }

  .info-row {
    grid-template-columns: 1fr;
  }

  .why-box {
    padding: 20px 18px;
  }

  .info-card {
    padding: 20px 18px 16px;
  }

  .ps-note {
    padding: 17px 18px;
  }
}


/* =========================================================
   RESPONSIVE — SMALL PHONES
   Three columns remain; cards become more compact.
========================================================= */

@media (max-width: 540px) {
  .daily-kiss {
    margin: 20px auto 34px;
    padding: 20px 52px 20px 16px;
    border-radius: 18px;
  }

  .kiss-heading {
    font-size: .68rem;
    gap: 6px;
  }

  .kiss-toggle {
    right: 8px;
    width: 38px;
    height: 38px;
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .tool-card {
    min-height: 0;
    padding: 10px 7px;
  }

  .tool-emoji {
    font-size: 1.3rem;
    margin-bottom: 7px;
  }

  .tool-title {
    font-size: .74rem;
    line-height: 1.25;
  }

  .tool-tag {
    padding: 3px 4px;
    font-size: .5rem;
    line-height: 1.3;
    margin-bottom: 7px;
  }

  .tool-desc {
    font-size: .65rem;
    line-height: 1.35;
    margin-bottom: 7px;
  }

  .tool-arrow {
    padding: 3px 17px;
    min-width: 50px;
    font-size: .7rem;
  }

  .feeling-card {
    min-height: 0;
    padding: 10px 5px;
  }

  .feeling-card .tool-emoji {
    font-size: 1.4rem;
    margin-bottom: 7px;
  }

  .feeling-card .tool-title {
    font-size: .75rem;
  }

  .feeling-card .tool-tag {
    margin-bottom: 8px;
  }

  .decoder-card {
    min-height: 0;
  }
}


/* =========================================================
   RESPONSIVE — EXTRA SMALL PHONES
========================================================= */

@media (max-width: 360px) {
  .daily-kiss {
    padding-left: 14px;
    padding-right: 48px;
  }

  .kiss-toggle {
    right: 5px;
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .tool-card {
    padding: 9px 5px;
  }

  .tool-emoji {
    font-size: 1.15rem;
  }

  .tool-title {
    font-size: .68rem;
  }

  .tool-tag {
    font-size: .46rem;
    letter-spacing: 0;
    padding: 3px;
  }

  .tool-desc {
    font-size: .6rem;
  }

  .tool-arrow {
    padding: 3px 14px;
    min-width: 44px;
    font-size: .66rem;
  }
}


/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .tool-card,
  .tool-arrow,
  .daily-kiss,
  .kiss-toggle {
    transition: none;
  }
}