/* --------------------------------------------------------------------------
   Wrist Goal — landing page (dark theme only)
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

:root {
  --color-bg: #0f1411;
  --color-surface: #161c17;
  --color-text: #e8f0e8;
  --color-text-muted: #9fb0a0;
  --color-accent: #4ade80;
  --color-border: #2a342b;
  --app-gradient: linear-gradient(135deg, rgba(79, 122, 138, 0.45) 0%, #4f7a8a 100%);
  --app-gradient-legacy: linear-gradient(180deg, #4f7a8a 0%, #0c4a5f 100%);
  /* .content-band: header through second download (features-cta) */
  --content-band-gradient: radial-gradient(
    ellipse 130% 95% at 50% 10%,
    #0a1e24 0%,
    #050a0c 38%,
    #000 62%,
    #0f1411 100%
  );
  /* .showcase-band: same palette as .content-band; radial with glow toward the bottom of the band */
  --showcase-band-gradient: radial-gradient(
    ellipse 130% 130% at 50% 50%,
    #0a1e24 0%,
    #050a0c 38%,
    #000 62%,
    #0f1411 100%
  );
  --on-gradient: #fff;
  --on-gradient-muted: rgba(255, 255, 255, 0.9);
  --app-title: #6eb4c4;
  --font-sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 40rem;
  --space: 1.25rem;
  --radius: 12px;
  --focus-ring: 0 0 0 3px #0f1411, 0 0 0 5px #4ade80;
  --badge-surface: #000;
  --badge-radius: min(1rem, 4.2vw);
  --badge-inset-trim: 1.01;
  --badge-pad-left: 0.25rem;
  --badge-aspect: 1516 / 455;
  --elevation-card: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 26px -2px rgba(0, 0, 0, 0.45),
    0 2px 8px -2px rgba(0, 0, 0, 0.32);
  --elevation-card-hover: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 32px -2px rgba(0, 0, 0, 0.5),
    0 4px 12px -2px rgba(0, 0, 0, 0.38);
  --elevation-download: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 40px -4px rgba(0, 0, 0, 0.55),
    0 4px 20px -4px rgba(0, 0, 0, 0.4);
  --elevation-badge: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 28px -2px rgba(0, 0, 0, 0.55),
    0 2px 12px -2px rgba(0, 0, 0, 0.45);
  --elevation-badge-hover: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 36px -2px rgba(0, 0, 0, 0.6),
    0 3px 14px -2px rgba(0, 0, 0, 0.5);
  --elevation-drop-img: drop-shadow(0 0 12px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 28px -2px rgba(0, 0, 0, 0.5));
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Hero band: through second store button (end of .features) */
.content-band {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--on-gradient);
  background: var(--content-band-gradient);
}

/* Same gap under .site-header as the old <main> padding had before the first column */
.content-band > .container {
  padding-top: calc(var(--space) * 2);
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

/* “In the app” — own background; flex grows so the column fills above the footer */
.showcase-band {
  flex: 1;
  width: 100%;
  min-height: 0;
  color: var(--on-gradient);
  background: var(--showcase-band-gradient);
  padding-bottom: calc(var(--space) * 2);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: #12637f;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  outline: none;
  box-shadow: var(--focus-ring);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space);
}

.site-header {
  padding-block: calc(var(--space) * 2) var(--space);
  background: transparent;
  text-align: center;
}

.site-header__title {
  margin: 0;
  font-size: clamp(2.85rem, 8.5vw, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  /* Fallback if background-clip is not available */
  color: var(--app-title, #12637f);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .site-header__title {
    background: var(--app-gradient-legacy);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}


.hero {
  margin-bottom: calc(var(--space) * 1.5);
  text-align: center;
}

.hero__heading {
  margin: 0 0 var(--space);
  font-size: clamp(1.4rem, 3.9vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-gradient);
}

.hero__lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--on-gradient-muted);
}

.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space);
  border-radius: var(--radius);
  background: #000;
  color: #f0f0f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--elevation-download);
  text-align: center;
}

.download__label {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2.8vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.download__link {
  display: block;
  width: min(100%, 20.5rem);
  line-height: 0;
  margin-inline: auto;
  text-decoration: none;
  border-radius: var(--badge-radius);
  box-shadow: var(--elevation-badge);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.download__link:hover {
  transform: translateY(-1px);
  box-shadow: var(--elevation-badge-hover);
}

.download__link:focus-visible {
  outline: none;
  box-shadow: var(--elevation-badge), 0 0 0 2px rgba(255, 255, 255, 0.35), 0 0 0 4px #88b1bf;
  border-radius: var(--badge-radius);
}

/* Grid: [left gutter] [art, right-aligned] — extra space is only on the left; right edge of art stays on the button’s right. */
.download__button {
  display: grid;
  grid-template-columns: var(--badge-pad-left) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  aspect-ratio: var(--badge-aspect, 1516 / 455);
  border-radius: var(--badge-radius);
  overflow: hidden;
  background: var(--badge-surface);
}

.download__button__gutter {
  min-width: 0;
}

.download__button .download__badge {
  min-width: 0;
}

.download__badge {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  transform: scale(var(--badge-inset-trim, 1.01));
  transform-origin: right center;
}

/* Second CTA under features: no card, on the features panel */
.features-cta {
  margin-top: calc(var(--space) * 4.25);
  margin-bottom: calc(var(--space) * 2.25);
  padding-inline: var(--space);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.features-cta__label {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2.8vw, 1.375rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f1f5f9;
}

/* —— Features (Da Fit–style band) + showcase —— */
.section-title {
  margin: 0 0 var(--space);
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--on-gradient);
}

/* Full-width panel + card grid */
.features--panel {
  width: 100%;
  margin-top: calc(var(--space) * 2);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  background: #000;
}

.features__header {
  max-width: 36rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.features__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.features__intro {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: #94a3b8;
}

.features__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

/* Two columns from tablet up → 5 items = 3 rows (2 + 2 + 1) */
@media (min-width: 36rem) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  height: 100%;
  padding: 1.65rem 1.25rem 1.5rem;
  text-align: center;
  background: #141a1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: var(--elevation-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--elevation-card-hover);
  transform: translateY(-2px);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(18, 99, 127, 0.25);
  color: #6eb4c4;
}

.feature-card__icon .icon {
  display: block;
  flex-shrink: 0;
}

.feature-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: #f1f5f9;
}

.feature-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  .feature-card {
    transition: none;
  }

  .feature-card:hover {
    transform: none;
  }
}

.showcase {
  margin-top: calc(var(--space) * 2.5);
  margin-bottom: calc(var(--space) * 0.5);
}

.showcase__lead {
  margin: 0 0 calc(var(--space) * 1.25);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--on-gradient-muted);
}

.showcase__grid {
  display: grid;
  gap: calc(var(--space) * 1.25);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .showcase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.showcase__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.showcase__img {
  display: block;
  width: 100%;
  max-width: 16rem;
  height: auto;
  margin-inline: auto;
  filter: var(--elevation-drop-img);
}

.showcase__caption {
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
  color: var(--on-gradient-muted);
}

.site-footer {
  margin-top: auto;
  padding-block: var(--space);
  border-top: 1px solid rgba(18, 99, 127, 0.4);
  background: #000;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #12637f;
}

.site-footer__disclaimer {
  margin: 0 0 var(--space);
}

.site-footer__meta {
  margin: 0;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .download__link {
    transition: none;
  }

  .download__link:hover {
    transform: none;
  }
}
