:root {
  --primary: #018a33;
  --primary-dark: #00491f;
  --text: #1c1c1e;
  --muted: #5f6b66;
  --card: #ffffff;
  --soft: #f4fff7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
}

.hero {
  min-height: 100vh;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.3) 40%,
    #ffffff 62%
  );
}

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-icon img {
  width: 180px;
  height: auto;
  display: block;
}

.tagline {
  font-size: 18px;
  font-weight: 700;
  color: #10251a;
}

.hero-layout {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns:
    minmax(220px, 1fr)
    minmax(360px, 1.08fr)
    minmax(220px, 1fr);
  align-items: stretch;
  gap: 28px;
}

.hero-image {
  height: 360px;
  overflow: hidden;
  background: #ffffff;
}

.hero-image img {
  width: 115%;
  height: 115%;
  display: block;
  object-fit: cover;
}

.hero-image-left img {
  object-position: left;
  position: relative;
  left: -50px;
}

.hero-image-right img {
  object-position: right;
  width: 130%;
  height: 120%;
  right: 73px;
  position: relative;
}

.content {
  max-width: none;
  margin: 0;
  padding: 24px 0;
  text-align: center;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  margin: 0;
  padding: 0;
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: var(--primary-dark);
}

h1 span {
  color: var(--primary);
}

.subtitle {
  max-width: 500px;
  margin: 0 auto 22px;
  padding-top: 12px;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.4;
  color: #2f3d39;
  background-color: rgba(255, 255, 255, 0.9);
}

.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 36px auto;
  padding: 0 20px;
}

.feature {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 111, 41, 0.08);
  border-radius: 22px;
  padding: 24px 16px;
  box-shadow: 0 14px 34px rgba(0, 111, 41, 0.08);
  text-align: center;
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #083d20;
}

.feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #3f4d48;
}

.download-card {
  max-width: 760px;
  margin: 0 auto 28px;
  background: #ffffff;
  border-radius: 24px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  box-shadow: 0 18px 45px rgba(0, 111, 41, 0.13);
  border: 1px solid rgba(0, 111, 41, 0.08);
}

.hero-download-card {
  display: none;
}

.app-store-button {
  width: 320px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #111111;
  color: white;
  text-decoration: none;
  border-radius: 16px;
  padding: 0 24px;
  justify-content: center;
  flex-shrink: 0;
}

.apple {
  font-size: 42px;
  line-height: 1;
}

.apple-icon {
  width: 36px;
  height: 36px;
  display: inline-block;
}

.app-store-text {
  text-align: left;
  line-height: 1.1;
}

.google-play-beta {
  width: 320px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  margin: 0;
  flex-shrink: 0;
}

.google-play-beta:hover {
  color: var(--primary-dark);
}

.google-play-icon {
  width: 320px;
  height: 90px;
  display: block;
  object-fit: contain;
}

.google-play-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.google-play-small {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.google-play-large {
  font-size: 23px;
  font-weight: 800;
}

.small {
  display: block;
  font-size: 18px;
}

.large {
  display: block;
  font-size: 38px;
  font-weight: 700;
}

.divider {
  width: 1px;
  height: 76px;
  background: #d9dedb;
  flex-shrink: 0;
}

.download-copy {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-copy h2 {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.download-copy p {
  margin: 0;
  color: #3f4d48;
  font-size: 16px;
  line-height: 1.35;
}

.mobile-download {
  display: flex;
}

.trust {
  color: #20352b;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 28px;
  text-align: center;
}

.contact-note {
  margin: 0;
  padding: 0 20px 36px;
  text-align: center;
  color: #3f4d48;
}

.contact-note a {
  color: #006f29;
}

footer {
  background: linear-gradient(90deg, var(--primary-dark), #006f29);
  color: white;
  padding: 18px 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}

.footer-brand img {
  width: 160px;
  height: auto;
}

.note {
  text-align: center;
  color: #6b736f;
  font-size: 14px;
  padding: 16px;
}

/* new animations */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content h1,
.subtitle,
.hero-download-card {
  animation: fadeUp 0.7s ease both;
}

.subtitle {
  animation-delay: 0.08s;
}

.hero-download-card {
  animation-delay: 0.16s;
}

.feature {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(0, 111, 41, 0.14);
  border-color: rgba(0, 111, 41, 0.16);
}

.app-store-button,
.google-play-beta {
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.app-store-button:hover,
.google-play-beta:hover {
  transform: translateY(-2px) scale(1.015);
  filter: brightness(1.04);
}

.app-store-button:active,
.google-play-beta:active {
  transform: scale(0.985);
}

.features-2 {
  display: grid;
  max-width: 980px;
  margin: 36px auto;
  padding: 0 20px;
}

.features-2 h4 {
  margin-bottom: 0px;
}

p {
  line-height: 1.5em;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;

    animation-iteration-count: 1 !important;

    scroll-behavior: auto !important;

    transition-duration: 0.001ms !important;
  }
}

/*end animations*/

/* Clickable feature cards */
.feature {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  padding-bottom: 40px;
}

.feature::after {
  content: "→";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.feature:hover::after,
.feature:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.feature:focus-visible {
  outline: 3px solid rgba(1, 138, 51, 0.25);
  outline-offset: 4px;
}

/* =========================================================
   SCOREKEEPING PROMO
   ========================================================= */

.scorekeeping-promo {
  width: calc(100% - 40px);
  max-width: 980px;
  margin: 54px auto 40px;
  padding: 48px 44px;

  background: linear-gradient(135deg, #f4fff7 0%, #ffffff 100%);
  border: 1px solid rgba(0, 111, 41, 0.09);
  border-radius: 30px;
  box-shadow: 0 20px 55px rgba(0, 111, 41, 0.08);

  text-align: center;
}

.scorekeeping-eyebrow {
  margin: 0 0 10px;

  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scorekeeping-promo h2 {
  max-width: 720px;
  margin: 0 auto 14px;

  color: var(--primary-dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.scorekeeping-intro {
  max-width: 680px;
  margin: 0 auto 26px;

  color: #3f4d48;
  font-size: 17px;
  line-height: 1.55;
}

.scorekeeping-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 14px 20px;

  background: var(--primary);
  color: #fff;

  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;

  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.scorekeeping-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ********************** MOBILE ************************** */
@media (max-width: 850px) {
  .hero {
    background: url("/images/paddlelink-hero.jpg") center top / contain
      no-repeat;

    padding: 28px 20px 0;
  }

  .topbar {
    align-items: flex-start;

    padding: 0;
  }

  .brand-icon img {
    width: 180px;
  }

  .tagline {
    font-size: 14px;
    text-align: right;
  }

  .hero-layout {
    display: block;
    margin: 0;
    padding: 0;
    max-width: 980px;
  }

  .hero-image {
    display: none;
  }

  .content {
    max-width: 980px;
    margin: 360px auto 0;
    padding: 20px 20px;
    text-align: center;
    background: #ffffff;
    display: block;
  }

  h1 {
    font-size: clamp(42px, 7vw, 72px);
  }

  .subtitle {
    max-width: 700px;
    margin: 0 auto 28px;
    font-size: clamp(18px, 2.4vw, 27px);
  }

  .hero-download-card {
    display: flex;
    max-width: 420px;
    margin: 0 auto 28px;
  }

  .features {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 28px auto 36px;
    padding: 0;
  }

  .download-card {
    max-width: 420px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 18px;
  }

  .mobile-download {
    display: flex;
    margin: 0 auto 28px;
  }

  .divider {
    display: none;
  }

  .download-copy {
    width: 100%;
    max-width: 340px;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .download-copy h2 {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
  }

  .download-copy p {
    font-size: 17px;
  }

  .app-store-button {
    width: 100%;
    max-width: 320px;
  }

  .google-play-beta {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    justify-content: center;
  }

  .google-play-icon {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .google-play-beta {
    justify-content: center;
  }

  .google-play-small {
    font-size: 15px;
  }

  .google-play-large {
    font-size: 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .scorekeeping-promo {
    max-width: 620px;
    margin: 36px auto;
    padding: 36px 24px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 20px;
  }

  .content {
    margin-top: 140px;
  }

  h1 {
    background-color: rgba(255, 255, 255, 0.9);
  }

  .subtitle {
    margin: 4px auto 10px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }

  .brand-icon img,
  .tagline {
    display: none;
  }

  .large {
    font-size: 31px;
  }

  .footer-brand img {
    margin-bottom: -8px;
  }
  .footer-right {
    flex-direction: column;
    gap: 12px;
  }
  .scorekeeping-promo {
    width: calc(100% - 40px);
    margin: 32px auto;
    padding: 32px 20px;
    border-radius: 24px;
  }

  .scorekeeping-promo h2 {
    font-size: 30px;
  }

  .scorekeeping-intro {
    font-size: 16px;
  }
}
