/* HowIsMy.Life's page (2026-12-05): its Living Sky window and the free tools' cards, moved as they were from styles.css
   when the home page gave the three apps equal room. Loaded after /apps/app.css, whose colours it uses. */
:root {
  --max-width: var(--max);
  --page-pad: var(--pad);
}

/* the top of this page: the name is long and the sky is wide, so two even columns and a smaller name than the other apps' */
.ap-hero.ap-even .ap-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ap-hero.ap-even h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
@media (max-width: 900px) { .ap-hero.ap-even .ap-wrap { grid-template-columns: 1fr; } }

.product-window {
  border: 1px solid var(--ink);
  background: var(--white);
  transform: rotate(1.25deg);
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-window {
  transform: rotate(0deg) translateY(-0.4rem);
}

.window-bar {
  display: grid;
  min-height: 2.8rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--ink);
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.window-dots {
  display: flex;
  gap: 0.35rem;
}

.window-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.window-body {
  position: relative;
  min-height: clamp(390px, 45vw, 620px);
  padding: clamp(1.25rem, 3vw, 3rem);
  color: var(--white);
  background: #172923;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
  overflow: hidden;
}

.cosmos {
  position: absolute;
  top: 44%;
  left: 57%;
  width: min(68%, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.cosmos-ring,
.cosmos-center {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cosmos-center {
  width: 28%;
  height: 28%;
  background: var(--coral);
  box-shadow: 0 0 0 14px rgba(255, 93, 58, 0.12);
}

.cosmos::before,
.cosmos::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 122%;
  height: 34%;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(25deg);
}

.cosmos::after {
  transform: translate(-50%, -50%) rotate(-42deg);
}

.insight-card {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
  z-index: 4;
  width: min(82%, 330px);
  padding: 1.4rem;
  color: var(--ink);
  background: var(--acid);
}

.insight-card p {
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.insight-card strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.insight-card span {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .product-window {
    transform: none;
  }
}

@media (max-width: 620px) {
  .window-body {
    min-height: 390px;
  }

  .window-bar {
    grid-template-columns: 1fr auto;
  }

  .window-dots {
    display: none;
  }
}

.tool-copy h3 {
  font-weight: 700;
}

.glyph-weather {
  width: clamp(11rem, 18vw, 15rem);
  height: clamp(11rem, 18vw, 15rem);
  margin-top: clamp(2.5rem, 5vw, 4.2rem);
  color: var(--sky);
}

.glyph-weather svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.globe-halo,
.globe-outline,
.globe-grid ellipse,
.globe-grid path,
.weather-orbit {
  fill: none;
  stroke: currentColor;
}

.globe-halo {
  opacity: 0.16;
  stroke-width: 1;
  stroke-dasharray: 3 8;
  transform-origin: 110px 110px;
  animation: globe-halo-spin 20s linear infinite;
}

.globe-outline {
  opacity: 0.9;
  stroke-width: 1.35;
}

.globe-grid {
  opacity: 0.36;
  stroke-width: 0.8;
}

.globe-land {
  color: var(--acid);
  fill: currentColor;
  opacity: 0.88;
  transform-origin: center;
  animation: globe-land-drift 8s ease-in-out infinite alternate;
}

.globe-point {
  fill: var(--coral);
  stroke: #151515;
  stroke-width: 2;
}

.weather-orbit {
  position: absolute;
  top: 49%;
  left: -12%;
  z-index: 3;
  width: 124%;
  height: 22%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.7;
  transform: rotate(-18deg);
  animation: weather-orbit-tilt 6s ease-in-out infinite alternate;
}

.weather-orbit::after {
  position: absolute;
  top: 50%;
  right: 7%;
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  border: 2px solid #151515;
  border-radius: 50%;
  background: var(--coral);
  transform: translateY(-50%);
}

.weather-pulse {
  position: absolute;
  top: 34%;
  right: 19%;
  z-index: 4;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #151515;
  border-radius: 50%;
  background: var(--coral);
}

.weather-pulse::before,
.weather-pulse::after {
  position: absolute;
  inset: -0.45rem;
  content: "";
  border: 1px solid var(--coral);
  border-radius: 50%;
  animation: weather-location-pulse 2.6s ease-out infinite;
}

.weather-pulse::after {
  animation-delay: 1.3s;
}

.tool-weather:hover .glyph-weather {
  color: #111111;
}

.tool-weather:hover .globe-land {
  color: var(--coral);
}

@media (max-width: 620px) {
  .glyph-weather {
    width: 9.5rem;
    height: 9.5rem;
  }
}

.window-body {
  background: #070a1c;
  background-image: radial-gradient(ellipse at 50% 45%, rgba(51, 72, 166, 0.4), transparent 58%),
    radial-gradient(1.2px 1.2px at 12% 18%, #ffffff, transparent),
    radial-gradient(1px 1px at 82% 24%, #dfe6ff, transparent),
    radial-gradient(1.4px 1.4px at 70% 72%, #ffffff, transparent),
    radial-gradient(1px 1px at 23% 81%, #cdd9ff, transparent),
    radial-gradient(1px 1px at 91% 57%, #ffffff, transparent),
    radial-gradient(1.3px 1.3px at 39% 35%, #ffffff, transparent);
  background-size: 100% 100%;
}

.living-sky-preview {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
  animation: living-sky-breathe 10s ease-in-out infinite;
}

.living-sky-preview::before,
.living-sky-preview::after {
  display: none;
}

.living-sky-head {
  position: absolute;
  top: clamp(1rem, 2.5vw, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  left: clamp(1rem, 2.5vw, 2rem);
  z-index: 15;
  display: flex;
  color: rgba(236, 235, 255, 0.72);
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: clamp(0.52rem, 0.85vw, 0.68rem);
  letter-spacing: 0.12em;
}

.living-sky-head span:first-child {
  color: #fff3d3;
}

.living-zodiac {
  position: absolute;
  top: 50%;
  left: 53%;
  z-index: 2;
  width: min(72%, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(205, 200, 240, 0.22);
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.38) 0 0.35deg,
    transparent 0.35deg 30deg
  );
  mask: radial-gradient(circle, transparent 0 88%, #000 88.5% 100%);
  transform: translate(-50%, -50%);
  animation: living-zodiac-turn 90s linear infinite;
}

.living-zodiac::before,
.living-zodiac::after {
  position: absolute;
  inset: 5%;
  content: "";
  border: 1px dashed rgba(205, 200, 240, 0.14);
  border-radius: 50%;
}

.living-zodiac::after {
  inset: 12%;
}

.sky-orbit {
  position: absolute;
  top: 50%;
  left: 53%;
  z-index: 4;
  border: 1px dashed rgba(205, 200, 240, 0.23);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  animation: living-orbit-spin 24s linear infinite;
}

.sky-orbit-one { width: 28%; height: 13%; animation-duration: 9s; animation-delay: -6s; }

.sky-orbit-two { width: 39%; height: 18%; animation-duration: 14s; animation-delay: -3s; }

.sky-orbit-three { width: 49%; height: 24%; animation-duration: 18s; animation-delay: -11s; }

.sky-orbit-four { width: 59%; height: 30%; animation-duration: 25s; animation-delay: -17s; }

.sky-orbit-five { width: 68%; height: 37%; animation-duration: 34s; animation-delay: -7s; }

.sky-orbit-six { width: 78%; height: 44%; animation-duration: 48s; animation-delay: -31s; }

.sky-planet {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  width: clamp(1.25rem, 3vw, 2.1rem);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(50%, -50%);
}

.sky-planet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(210, 220, 255, 0.35));
}

.sky-planet small {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 50%;
  color: rgba(233, 231, 246, 0.5);
  font-family: var(--mono);
  font-size: clamp(0.34rem, 0.65vw, 0.48rem);
  letter-spacing: 0.06em;
  transform: translateX(-50%);
}

.planet-sun {
  width: clamp(2rem, 4.5vw, 3.2rem);
}

.planet-jupiter {
  width: clamp(1.8rem, 4vw, 2.7rem);
}

.living-you {
  position: absolute;
  top: 50%;
  left: 53%;
  z-index: 10;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  transform: translate(-50%, -50%);
}

.living-you i {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #fff6e3;
  box-shadow: 0 0 8px 3px rgba(255, 236, 190, 0.7), 0 0 28px 10px rgba(124, 151, 255, 0.22);
  animation: living-you-breathe 4s ease-in-out infinite;
}

.living-you span {
  position: absolute;
  top: 2.25rem;
  color: rgba(255, 244, 220, 0.64);
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
}

.living-meteors {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.living-meteors i {
  position: absolute;
  top: 7%;
  left: 78%;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  opacity: 0;
  animation: living-meteor 13s linear 2s infinite;
}

.living-meteors i::after {
  position: absolute;
  width: 90px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(-48deg);
  transform-origin: left center;
}

.living-meteors i:last-child {
  top: 25%;
  left: 36%;
  animation-delay: 8s;
  animation-duration: 17s;
}

.living-sky-caption {
  right: auto;
  bottom: clamp(0.8rem, 2vw, 1.6rem);
  left: clamp(0.8rem, 2vw, 1.6rem);
  width: min(68%, 310px);
  padding: clamp(0.9rem, 2vw, 1.3rem);
  color: #f0effa;
  border: 1px solid rgba(213, 211, 245, 0.2);
  background: rgba(10, 13, 36, 0.72);
  backdrop-filter: blur(12px);
}

.living-sky-caption p {
  color: #d3caff;
}

.living-sky-caption strong {
  font-size: clamp(1rem, 1.8vw, 1.5rem);
}

.living-sky-caption span {
  color: rgba(233, 231, 246, 0.58);
}

@media (max-width: 620px) {
  .living-sky-head span:last-child,
.sky-planet small {
    display: none;
  }

  .living-zodiac {
    width: 82%;
  }

  .sky-orbit-six { width: 86%; }

  .living-sky-caption {
    width: calc(100% - 1.6rem);
  }
}

.product-window {
  color: #111111;
  border-color: #60605e;
  border-radius: 0.8rem;
  overflow: hidden;
}

.tools-grid {
  display: grid;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #373737;
  border-left: 1px solid #373737;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  position: relative;
  display: flex;
  min-height: 510px;
  padding: clamp(1.4rem, 3vw, 2.8rem);
  color: var(--white);
  border-right: 1px solid #373737;
  border-bottom: 1px solid #373737;
  background: #151515;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  transition: color 300ms ease, background 300ms ease;
}

.tool-card::after {
  position: absolute;
  right: -12%;
  bottom: -42%;
  width: 65%;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.tool-card:hover::after {
  transform: scale(1.25);
}

.tool-kundli:hover {
  background: var(--coral);
}

.tool-weather:hover {
  color: #111111;
  background: var(--sky);
}

.tool-panchang:hover {
  color: #111111;
  background: var(--acid);
}

.tool-match:hover {
  background: #3265db;
}

.tool-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.tool-topline i {
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.tool-glyph {
  position: relative;
  z-index: 2;
  width: 9rem;
  height: 9rem;
  margin: clamp(3rem, 7vw, 6rem) auto 2rem;
}

.glyph-kundli {
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.glyph-kundli::before,
.glyph-kundli::after,
.glyph-kundli b {
  position: absolute;
  content: "";
  border: 1px solid currentColor;
}

.glyph-kundli::before {
  inset: 25%;
}

.glyph-kundli::after {
  top: 50%;
  left: -14%;
  width: 128%;
  height: 1px;
  border-width: 1px 0 0;
}

.glyph-kundli b:first-child {
  top: -14%;
  left: 50%;
  width: 1px;
  height: 128%;
  border-width: 0 0 0 1px;
}

.glyph-weather b:first-child {
  position: absolute;
  top: 4%;
  left: 15%;
  width: 52%;
  height: 52%;
  border-radius: 50%;
  background: var(--acid);
}

.glyph-weather b:nth-child(2),
.glyph-weather b:nth-child(3) {
  position: absolute;
  right: 5%;
  bottom: 18%;
  width: 68%;
  height: 29%;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: inherit;
}

.glyph-weather b:nth-child(3) {
  right: 35%;
  bottom: 5%;
  width: 35%;
  height: 1px;
  border-width: 1px 0 0;
  border-radius: 0;
}

.glyph-panchang {
  border: 1px solid currentColor;
  border-radius: 50%;
}

.glyph-panchang::before,
.glyph-panchang::after,
.glyph-panchang b {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: currentColor;
  transform-origin: 0 50%;
}

.glyph-panchang::before {
  width: 35%;
  height: 1px;
  transform: rotate(-90deg);
}

.glyph-panchang::after {
  width: 27%;
  height: 1px;
  transform: rotate(25deg);
}

.glyph-panchang b {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.glyph-match b {
  position: absolute;
  top: 18%;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.glyph-match b:first-child {
  left: 0;
}

.glyph-match b:last-child {
  right: 0;
}

.tool-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.tool-copy h3 {
  margin: 0;
  font-size: clamp(2.1rem, 3.5vw, 3.8rem);
  font-variation-settings: "wdth" 86;
  font-weight: 580;
  letter-spacing: -0.05em;
  line-height: 1;
}

.tool-copy p {
  max-width: 410px;
  margin: 1rem 0 1.5rem;
  color: #aaa9a4;
  line-height: 1.55;
  transition: color 300ms ease;
}

.tool-card:hover .tool-copy p {
  color: currentColor;
}

.tool-link {
  display: inline-block;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

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

@media (max-width: 620px) {
  .tool-card {
    min-height: 440px;
  }

  .tool-glyph {
    width: 7.2rem;
    height: 7.2rem;
    margin-top: 3rem;
  }
}

@keyframes globe-halo-spin {
  to { transform: rotate(360deg); }
}

@keyframes globe-land-drift {
  from { transform: translateX(-2px); }
  to { transform: translateX(4px); }
}

@keyframes weather-orbit-tilt {
  from { transform: rotate(-18deg) scaleX(0.98); }
  to { transform: rotate(-12deg) scaleX(1.04); }
}

@keyframes weather-location-pulse {
  0% { opacity: 0.8; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(1.6); }
}

@keyframes living-sky-breathe {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

@keyframes living-zodiac-turn {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes living-orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes living-you-breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes living-meteor {
  0%, 84% { opacity: 0; transform: translate(0, 0); }
  86% { opacity: 1; }
  94%, 100% { opacity: 0; transform: translate(-180px, 250px); }
}
