/* Landing page layout, typography, and app card styling. */

/* Landing page outer spacing. */
body {
  padding: 1.25rem;
}

.root-topbar-spacer {
  visibility: hidden;
}

/* Centers the homepage content block within the atmospheric background. */
.home {
  width: min(720px, 100%);
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

/* Brand logo container at the top of the homepage. */
.logo-lockup {
  width: 100%;
  display: block;
  margin: 0;
}

/* Main logo artwork. */
.brand-logo-mark {
  width: min(100%, 34rem);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* First supporting sentence under the logo. */
.brand-tagline {
  width: min(100%, 34rem);
  margin: 0.25rem 0 0;
  padding: 0 0 0 0.7rem;
  margin-inline: auto;
  color: #d3e4ed;
  font-size: 0.98rem;
  line-height: 1.4;
  text-align: left;
}

.brand-tagline-part {
  display: inline;
}

/* Secondary intro copy under the tagline. */
.brand-intro-line {
  width: min(100%, 34rem);
  margin: 0.1rem 0 0;
  padding: 0 0 0 0.7rem;
  margin-inline: auto;
  color: #bed0dc;
  font-size: 0.96rem;
  line-height: 1.45;
  text-align: left;
}

/* Accent color used inside the tagline heart glyph. */
.brand-heart {
  color: var(--primary);
}

/* Accessibility helper for headings that should remain screen-reader only. */
.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;
}

/* Divider between the intro block and the app list. */
.logo-divider {
  width: min(360px, 86%);
  height: 2px;
  background: #6f8796;
  opacity: 0.9;
  margin: 1.5rem 0 2rem;
}

.language-selector {
  width: 100%;
}

.language-selector-heading {
  width: min(624px, 100%);
  margin-bottom: 0;
}

.language-grid {
  width: min(624px, 100%);
  margin: 1.25rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.language-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(114, 198, 162, 0.44);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 66, 54, 0.3) 0%, rgba(15, 48, 40, 0.24) 100%);
  box-shadow: inset 0 1px 0 rgba(210, 255, 235, 0.08);
  color: var(--text-light);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease,
    transform 180ms ease;
}

.language-card:hover,
.language-card:focus-visible {
  border-color: rgba(152, 233, 199, 0.62);
  background: linear-gradient(180deg, rgba(28, 82, 66, 0.34) 0%, rgba(20, 59, 49, 0.28) 100%);
  box-shadow: 0 10px 28px rgba(13, 48, 37, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.language-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.language-card-title {
  display: block;
  color: #f4fbfe;
  font-size: 1.2rem;
  font-weight: 700;
}

.language-card-description {
  margin: 0;
  color: #d8f4e7;
  font-size: 0.95rem;
  line-height: 1.45;
}

/* App rows live in a simple vertical list so future apps can drop in cleanly. */
.showcase {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Section label above the generated app rows. */
.showcase-heading {
  width: min(624px, 100%);
  margin: 0;
  margin-inline: auto;
  padding-left: 0.7rem;
  color: #f4fbfe;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Shared base card for each homepage app row. */
.app-row {
  width: min(624px, 100%);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(230, 247, 248, 0.2);
  border-radius: 14px;
  background: rgba(11, 31, 42, 0.24);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease,
    transform 180ms ease;
  -webkit-user-select: text;
  user-select: text;
  margin: 0 auto;
}

/* Released app state on the homepage. */
.app-row-released {
  border-color: rgba(114, 198, 162, 0.44);
  background: linear-gradient(180deg, rgba(22, 66, 54, 0.3) 0%, rgba(15, 48, 40, 0.24) 100%);
  box-shadow: inset 0 1px 0 rgba(210, 255, 235, 0.08);
}

/* Coming-soon app state on the homepage. */
.app-row-coming-soon {
  border-color: rgba(149, 157, 173, 0.34);
  background: linear-gradient(180deg, rgba(58, 64, 75, 0.28) 0%, rgba(42, 47, 58, 0.22) 100%);
  box-shadow: inset 0 1px 0 rgba(244, 247, 252, 0.04);
}

/* Hover/focus treatment for released app rows. */
.app-row-released:hover,
.app-row-released:focus-visible {
  border-color: rgba(152, 233, 199, 0.62);
  background: linear-gradient(180deg, rgba(28, 82, 66, 0.34) 0%, rgba(20, 59, 49, 0.28) 100%);
  box-shadow: 0 10px 28px rgba(13, 48, 37, 0.22);
  transform: translateY(-1px);
  outline: none;
}

/* Hover/focus treatment for coming-soon app rows. */
.app-row-coming-soon:hover,
.app-row-coming-soon:focus-visible {
  border-color: rgba(177, 185, 201, 0.48);
  background: linear-gradient(180deg, rgba(72, 78, 90, 0.34) 0%, rgba(54, 59, 71, 0.28) 100%);
  box-shadow: 0 10px 28px rgba(18, 21, 28, 0.18);
  transform: translateY(-1px);
  outline: none;
}

/* Shared sizing for app artwork in each row. */
.app-icon-image {
  width: 116px;
  height: 116px;
  flex-shrink: 0;
  display: block;
  border-radius: 13px;
}

/* Real app icon image styling. */
.app-icon-image {
  object-fit: cover;
}

/* Text column beside the app icon. */
.app-meta {
  min-width: 0;
}

/* App name shown in the row. */
.app-row-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f4fbfe;
}

/* Supporting description under the app name. */
.app-row-description {
  margin: 0.2rem 0 0;
  color: #c7d9e5;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Released description color variant. */
.app-row-description-released {
  color: #d8f4e7;
}

/* Coming-soon description color variant. */
.app-row-description-coming-soon {
  color: #c7cedb;
}

/* Small status pill shown under the app description. */
.app-row-status {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Coming-soon status pill styling. */
.app-row-status-coming-soon {
  color: #eef3ff;
  background: rgba(152, 162, 179, 0.2);
  border: 1px solid rgba(192, 201, 216, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Released status pill styling. */
.app-row-status-released {
  color: #dffbf0;
  background: rgba(62, 126, 98, 0.22);
  border: 1px solid rgba(124, 216, 176, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Tighten the logo scale on narrow phones to keep the app list visible sooner. */
@media (max-width: 520px) {
  .brand-logo-mark {
    width: min(70%, 23.8rem);
  }

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

  /* Force the tagline onto two intentional lines on narrow screens. */
  .brand-tagline-break {
    display: block;
  }
}

@media (min-width: 521px) and (max-width: 1024px) {
  .brand-logo-mark {
    width: min(85%, 28.9rem);
  }
}
