/* SentRate home (index.html) only */
.page {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.accent-strip {
  height: 3px;
  background: linear-gradient(90deg, var(--sr-blue) 0%, var(--sr-teal) 50%, var(--sr-green) 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.site-header-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(1.5rem, env(safe-area-inset-right, 0px)) 0.75rem max(1.5rem, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--sr-gray-900);
  text-decoration: none;
  transition: color 0.15s;
}

.site-brand:hover { color: var(--sr-blue); }

.site-brand:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--sr-blue);
  outline-offset: 2px;
}

.site-brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.env-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--sr-blue);
  background: var(--sr-badge-bg);
  border: 1px solid var(--sr-badge-border);
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Symmetric vertical padding so flex center matches visual center; safe-area on block axis */
  padding-block: max(1rem, env(safe-area-inset-bottom, 0px));
  padding-inline: max(1.5rem, env(safe-area-inset-left, 0px)) max(1.5rem, env(safe-area-inset-right, 0px));
  min-height: 0;
}

.hero {
  text-align: center;
  width: 100%;
  max-width: min(32rem, 100%);
  margin: 0 auto;
  padding: 2.5rem 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.25rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  animation: hero-fade-in 0.6s ease-out both;
  touch-action: manipulation;
}

/* Pointer hover: gentle lift */
@media (hover: hover) and (pointer: fine) {
  .hero:hover {
    transform: translateY(-3px) scale(1.006);
    box-shadow:
      0 10px 36px rgba(13, 71, 161, 0.09),
      0 3px 10px rgba(0, 137, 123, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: var(--sr-hero-border-hover);
  }

  .hero:hover:active {
    transform: translateY(0) scale(0.996);
    box-shadow:
      0 4px 16px rgba(13, 71, 161, 0.06),
      0 1px 4px rgba(0, 137, 123, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition-duration: 0.12s;
  }
}

/* Tap / click: short press-in (touch and mouse) */
.hero:active {
  transform: translateY(2px) scale(0.994);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(0, 0, 0, 0.04);
  transition-duration: 0.12s;
}

.hero h1 {
  position: relative;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--sr-blue-deep);
  background: linear-gradient(90deg, var(--sr-blue-deep) 0%, var(--sr-blue) 25%, var(--sr-teal) 50%, var(--sr-hero-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: default;
}

.hero h1::after {
  content: "SentRate";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.2) 45%,
    transparent 50%,
    rgba(0, 0, 0, 0.08) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
}

.hero p {
  font-size: 1.0625rem;
  color: var(--sr-gray-600);
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-divider {
  width: 3rem;
  height: 3px;
  border: none;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sr-blue), var(--sr-teal), var(--sr-green));
  margin: 1.25rem auto 0;
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
    transition: none;
  }
  .hero:active {
    transform: none;
    box-shadow:
      0 4px 24px rgba(0, 0, 0, 0.04),
      0 1px 3px rgba(0, 0, 0, 0.03),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  @media (hover: hover) and (pointer: fine) {
    .hero:hover,
    .hero:hover:active {
      transform: none;
      box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
  }
  .site-brand {
    transition: none;
  }
}

@media (max-width: 640px) {
  .site-header-inner {
    padding: max(0.625rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) 0.625rem max(1rem, env(safe-area-inset-left, 0px));
  }
  .site-brand {
    font-size: 1.0625rem;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.45rem;
    border-radius: 8px;
  }
  .site-brand-logo {
    width: 1.75rem;
    height: 1.75rem;
  }
  .main {
    padding-block: max(0.75rem, env(safe-area-inset-bottom, 0px));
    padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  }
  .hero {
    padding: 1.75rem max(1.25rem, env(safe-area-inset-right, 0px)) 1.5rem max(1.25rem, env(safe-area-inset-left, 0px));
    border-radius: 1rem;
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(1.625rem, 8vw, 1.85rem);
    line-height: 1.12;
    padding: 0 0.125rem;
  }
  .hero p {
    font-size: 1rem;
    line-height: 1.55;
    padding: 0 0.125rem;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: clamp(1.4rem, 9vw, 1.65rem);
  }
  .hero p {
    font-size: 0.9375rem;
  }
  .env-badge {
    font-size: 0.625rem;
    padding: 0.35rem 0.65rem;
  }
}
