:root {
  --primary: #0052ff;
  --secondary: #5e72c3;
  --tertiary: #bf3003;
  --neutral: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f4f6fb;
  --surface-soft: #f7f8fc;
  --border: #d8deea;
  --border-strong: #c7d0e3;
  --text: #20242d;
  --text-muted: #5f667a;
  --shadow: 0 22px 40px -30px rgba(42, 58, 108, 0.28);
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --wrap: min(1180px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--neutral);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 222, 234, 0.82);
}

.nav-row,
.hero-grid,
.footer-row {
  display: grid;
  gap: 24px;
}

.nav-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 56px;
}

.brand,
.site-nav a,
.button,
h1,
h2,
h3,
strong {
  font-family: "Manrope", sans-serif;
}

.brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.site-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.site-nav a.is-active {
  color: var(--primary);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button-small {
  min-height: 30px;
  padding: 0 14px;
}

.button-primary {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 10px 24px -18px rgba(0, 82, 255, 0.6);
}

.button-primary:hover {
  background: #1d61ff;
}

.button-secondary,
.button-outline {
  color: #434656;
  background: #f1f3f8;
  border: 1px solid var(--border);
}

.button-secondary:hover,
.button-outline:hover {
  background: #ebeff7;
}

.hero {
  padding: 44px 0 56px;
  background:
    radial-gradient(circle at right 20%, rgba(94, 114, 195, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.98));
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  justify-self: center;
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.06em;
}

h1 {
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 1.02;
  font-weight: 800;
  margin: 0 auto;
}

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

.card-copy p,
.support-grid p,
.site-footer p {
  color: var(--text-muted);
}

.hero-visual {
  display: grid;
  justify-items: center;
}

.device-frame {
  position: relative;
  width: 188px;
  height: 352px;
  border: 5px solid #20242d;
  border-radius: 24px;
  background: #ffffff;
  box-shadow:
    0 16px 22px -16px rgba(32, 36, 45, 0.45),
    0 6px 12px rgba(32, 36, 45, 0.14);
}

.device-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 64px;
  height: 6px;
  margin-left: -32px;
  border-radius: 999px;
  background: rgba(32, 36, 45, 0.16);
}

.device-screen {
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  padding: 26px 14px 14px;
}

.screen-chip {
  width: 44px;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #eef2fb;
}

.screen-panel {
  border-radius: 8px;
  background: #edf0f6;
}

.screen-panel-hero {
  height: 94px;
}

.screen-two-up {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.screen-two-up .screen-panel {
  height: 56px;
}

.screen-panel-feed {
  position: relative;
  height: 132px;
  margin-top: 10px;
}

.screen-panel-feed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  border-radius: 8px 0 0 8px;
  background: var(--primary);
}

.collection {
  padding: 34px 0 56px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid #eef1f7;
  border-radius: 4px;
}

.card-featured {
  grid-column: span 7;
  min-height: 248px;
}

.card:not(.card-featured):not(.card-roadmap) {
  grid-column: span 5;
}

.app-card-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 100%;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-media {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.app-logo {
  display: block;
  object-fit: contain;
}

.app-logo-urotrax {
  width: 88px;
  height: 88px;
}

.app-logo-glp1 {
  width: 88px;
  height: 88px;
}

.card h3 {
  margin-top: 0;
  font-size: 2rem;
  font-weight: 800;
}

.card-copy p {
  margin: 10px 0 0;
  font-size: 0.86rem;
  line-height: 1.65;
  max-width: 25rem;
}

.card-link,
.card-link-primary {
  margin-top: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
}

.card-link-primary {
  color: var(--primary);
  margin-top: 28px;
}

.card-link {
  color: var(--text);
}

.card-note {
  margin: 18px 0 0;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
}

.preview-tile {
  width: 92px;
  height: 92px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0 54%, rgba(94, 114, 195, 0.08) 54% 100%),
    linear-gradient(135deg, #ffffff 0%, #eef2f9 100%);
  border: 1px solid #edf0f6;
  display: grid;
  place-items: center;
}

.preview-clock {
  position: relative;
  width: 44px;
  height: 44px;
  border: 4px solid rgba(32, 36, 45, 0.22);
  border-radius: 50%;
}

.preview-clock::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 6px;
  height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: var(--secondary);
}

.preview-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 999px;
  transform-origin: bottom center;
  background: var(--secondary);
}

.preview-hand-hour {
  height: 12px;
  transform: rotate(48deg);
}

.preview-hand-minute {
  height: 16px;
  transform: rotate(132deg);
}

.site-footer {
  padding: 20px 0 28px;
}

.footer-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  border-top: 1px solid rgba(216, 222, 234, 0.9);
  padding-top: 14px;
}

.site-footer p,
.footer-links a {
  font-size: 0.62rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: var(--text-muted);
}

.legal-page {
  background: #fbfcfe;
}

.legal-main {
  padding: 42px 0 56px;
}

.legal-wrap {
  max-width: 820px;
}

.legal-intro {
  margin-bottom: 24px;
}

.legal-kicker,
.legal-meta {
  margin: 0;
  color: var(--text-muted);
}

.legal-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: "Manrope", sans-serif;
}

.legal-intro h1 {
  margin-top: 8px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.legal-meta {
  margin-top: 10px;
  font-size: 0.9rem;
}

.legal-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.legal-card h2 {
  margin-top: 26px;
  font-size: 1.2rem;
  font-weight: 800;
}

.legal-card p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-card a {
  color: var(--primary);
}

@media (max-width: 900px) {
  .hero-grid,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .card-featured,
  .card:not(.card-featured):not(.card-roadmap) {
    grid-column: span 12;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .app-card-layout {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-row {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 10px 0 12px;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    gap: 14px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    line-height: 1.1;
  }

  .hero-visual {
    justify-items: center;
  }

  .app-card-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .legal-card {
    padding: 20px;
  }
}
