/*
 * ingle-welcome.css
 * Welcome-page content only.
 *
 * Shared shell, header, account, navigation and footer styles live in:
 * /style/ingle-app-shell.css
 */

/* ==========================================================================
   1. Page layout and shared Welcome surfaces
   ========================================================================== */

.welcome-main {
  display: grid;
  align-content: start;
  gap: 16px;
}

.welcome-hero,
.welcome-actions,
.community-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.welcome-hero {
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ==========================================================================
   2. Rotating ambassador hero
   ========================================================================== */

.hero-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbe9df;
}

/*
 * Each ambassador appears first as an illustrated guest and then fades
 * into the matching host photograph. Every pair occupies eight seconds.
 */
.hero-pair {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroPairCycle 56s infinite;
}

.hero-pair-1 {
  animation-delay: 0s;
  opacity: 1;
}

.hero-pair-2 {
  animation-delay: 8s;
}

.hero-pair-3 {
  animation-delay: 16s;
}

.hero-pair-4 {
  animation-delay: 24s;
}

.hero-pair-5 {
  animation-delay: 32s;
}

.hero-pair-6 {
  animation-delay: 40s;
}

.hero-pair-7 {
  animation-delay: 48s;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-guest {
  z-index: 1;
  opacity: 1;
  animation: heroGuestToHost 8s ease-in-out infinite;
}

.hero-host {
  z-index: 2;
  opacity: 0;
  animation: heroHostComesAlive 8s ease-in-out infinite;
}

@keyframes heroPairCycle {
  0%,
  12.5% {
    opacity: 1;
  }

  14.5%,
  98% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes heroGuestToHost {
  0%,
  36% {
    opacity: 1;
    transform: scale(1);
  }

  52%,
  100% {
    opacity: 0;
    transform: scale(1.018);
  }
}

@keyframes heroHostComesAlive {
  0%,
  34% {
    opacity: 0;
    transform: scale(1.018);
  }

  52%,
  88% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.01);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 18, 29, 0.22),
    transparent 45%
  );
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

/* ==========================================================================
   3. Hero copy
   ========================================================================== */

.hero-copy {
  padding: 22px 20px 24px;
}

.welcome-main h1,
.welcome-main h2,
.welcome-main p {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.welcome-main h1 {
  max-width: 16ch;
  margin-bottom: 12px;
  font-size: clamp(2rem, 9.5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-lead {
  margin-bottom: 15px;
  color: #354257;
  font-size: 1.04rem;
  line-height: 1.55;
}

.hero-proof {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

/* ==========================================================================
   4. Start-anywhere action cards
   ========================================================================== */

.welcome-actions {
  padding: 20px 14px 14px;
}

.section-heading {
  padding: 0 6px 12px;
}

.welcome-main h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 6vw, 2.4rem);
  letter-spacing: -0.035em;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.action-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.action-card:active {
  transform: scale(0.985);
}

.action-card:focus-visible {
  outline: 3px solid rgba(47, 103, 216, 0.28);
  outline-offset: 2px;
}

.action-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.4rem;
}

.action-content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.action-content strong {
  font-size: 1.16rem;
}

.action-content span {
  color: #526078;
  font-size: 0.88rem;
  line-height: 1.4;
}

.action-arrow {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.56;
}

.action-speak {
  border-color: #d1ebdf;
  background: var(--green-soft);
}

.action-study {
  border-color: #e1d7fa;
  background: var(--purple-soft);
}

.action-listen {
  border-color: #d9e8f2;
  background: #eef7fc;
}

.action-gallery {
  border-color: #f7d9cb;
  background: var(--orange-soft);
}

.action-progress {
  border-color: #d6e4fb;
  background: var(--blue-soft);
}

/* ==========================================================================
   5. Community note
   ========================================================================== */

.community-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #eef9f3, #f7fbf8);
}

.community-icon {
  flex: 0 0 auto;
  font-size: 1.55rem;
}

.community-note p {
  margin: 0;
  color: #3f4f63;
  font-size: 0.88rem;
  line-height: 1.45;
}

.community-note strong {
  color: #13613f;
}

/* ==========================================================================
   6. Responsive layout
   ========================================================================== */

@media (min-width: 540px) {
  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-card {
    min-height: 118px;
    grid-template-columns: 46px minmax(0, 1fr);
    align-content: center;
  }

  .action-arrow {
    display: none;
  }
}

@media (min-width: 760px) {
  .welcome-main {
    gap: 14px;
    padding-top: 6px;
  }

  .welcome-hero {
    min-height: 0;
    height: 286px;
    display: grid;
    grid-template-columns:
      minmax(0, 0.92fr)
      minmax(0, 1.08fr);
  }

  .hero-media {
    aspect-ratio: auto;
    order: 2;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 34px;
  }

  .welcome-main h1 {
    max-width: 13ch;
    margin-bottom: 10px;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 0.98;
  }

  .hero-lead {
    margin-bottom: 8px;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .hero-proof {
    font-size: 0.84rem;
  }

  .hero-badge {
    right: 16px;
    left: auto;
    bottom: 14px;
  }

  .welcome-actions {
    padding: 17px;
  }

  .section-heading {
    padding: 0 3px 10px;
  }

  .welcome-main h2 {
    font-size: clamp(1.5rem, 3.4vw, 1.95rem);
  }
}

@media (min-width: 900px) {
  .action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .action-card {
    min-height: 124px;
    grid-template-columns: 48px minmax(0, 1fr);
    justify-items: initial;
    padding: 16px;
    text-align: left;
  }

  .action-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.35rem;
  }

  .action-content strong {
    font-size: 1.08rem;
  }

  .action-content span {
    font-size: 0.81rem;
  }

  .action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(26, 38, 53, 0.09);
  }
}

/* ==========================================================================
   7. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-pair,
  .hero-guest,
  .hero-host {
    animation: none;
  }

  .hero-pair {
    opacity: 0;
  }

  .hero-pair-1 {
    opacity: 1;
  }

  .hero-pair-1 .hero-guest {
    opacity: 0;
  }

  .hero-pair-1 .hero-host {
    opacity: 1;
  }
}
.action-card {
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
}

.ingle-footer {
  margin-top: 18px;
  padding: 20px 0 6px;
}

.ingle-footer__top {
  text-align: center;
  font-size: .82rem;
  color: #7a8598;
}

.ingle-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: .74rem;
  color: #8b94a6;
}

.ingle-footer__links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ingle-footer__links a {
  color: inherit;
  text-decoration: none;
}

.ingle-footer__links a:hover {
  text-decoration: underline;
}
.ingle-footer{
    margin-top:28px;
    padding-top:8px;
}

.ingle-footer__links{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:8px;

    margin-bottom:18px;

    font-size:.78rem;
    color:#7b8796;
}

.ingle-footer__links a{
    color:inherit;
    text-decoration:none;
}

.ingle-footer__links a:hover{
    text-decoration:underline;
}

.ingle-footer__tagline{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;

    font-size:.82rem;
    color:#7b8796;
}

.ingle-footer__message{
    flex:1;
    text-align:center;
}

.ingle-footer__copyright{
    white-space:nowrap;
    flex:none;
}
.ingle-footer{
    margin-top:10px;
    padding:0 4px 8px;
}

.ingle-footer__links{
    display:flex;
    align-items:center;
    gap:8px;

    font-size:.74rem;
    color:#8a93a3;
}

.ingle-footer__links a{
    color:inherit;
    text-decoration:none;
}

.ingle-footer__links a:hover{
    text-decoration:underline;
}

.ingle-footer__copyright{
    margin-left:auto;
    white-space:nowrap;
}