:root {
  --product-ink: #142641;
  --product-muted: #425673;
  --product-blue: #2155a6;
}

#mainNav, #mainNav.navbar-shrink {
  background: #fff;
  border-bottom: 1px solid #e0e8f4;
}

#mainNav .navbar-brand,
#mainNav.navbar-shrink .navbar-brand {
  color: var(--product-ink);
  font-weight: 800;
  letter-spacing: -.02em;
}

#mainNav .navbar-nav > li > a,
#mainNav.navbar-shrink .navbar-nav > li > a {
  color: var(--product-ink);
  font-size: .875rem;
  letter-spacing: 0;
  text-transform: none;
}

#mainNav .navbar-nav > li > a.active {
  color: var(--product-blue) !important;
}

.product-hero, .product-demos {
  color: var(--product-ink);
  scroll-margin-top: 4rem;
}

.product-hero {
  padding: clamp(5.75rem, 10vw, 8rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero-layout {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-copy h1, .product-demos h2, .demo-copy h3 {
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 5.7vw, 5rem);
  margin: 0 0 1rem;
}

.hero-copy p {
  font-size: clamp(1.075rem, 2vw, 1.3rem);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.store-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.store-links img {
  display: block;
  width: auto;
  height: 2.75rem;
}

.store-proof, .store-proof:hover, .store-proof:focus {
  display: inline-block;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
  margin-top: 1rem;
}

.hero-visual {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem) 1rem;
  border-radius: 2rem;
}

.hero-phone {
  padding: .4rem;
  border-radius: 1.6rem;
  background: #142641;
}

.hero-phone img, .demo-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-phone img { border-radius: 1.25rem; }

.product-demos {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.product-demos h2 { font-size: clamp(2rem, 4vw, 3.5rem); }

.demo-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.demo-card {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid #e0e8f4;
  border-radius: 1.5rem;
}

.demo-copy { padding: 1.4rem; }
.demo-copy h3 { font-size: 1.5rem; }

.demo-copy p {
  color: var(--product-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

.demo-visual {
  display: grid;
  justify-items: center;
  padding: 1rem;
}


.demo-visual img {
  width: min(100%, 12rem);
  border-radius: .85rem;
  border: 3px solid var(--product-ink);
}

@media (min-width: 768px) {
  .hero-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.product-hero {
  background:
    radial-gradient(ellipse at 88% 18%, #3047a3 0, transparent 47%),
    linear-gradient(125deg, #101f3d 15%, #162d59 72%, #243778);
  color: #fff;
}

.hero-copy p { color: #dce8ff; }

.store-proof, .store-proof:hover, .store-proof:focus { color: #ffdc83; }

.store-links .badge-link {
  border-radius: .45rem;
  transition: transform .2s ease;
}

.store-links .badge-link:hover { transform: translateY(-2px); }

.product-hero a:focus-visible {
  outline: 2px solid #ffdc83;
  outline-offset: 5px;
}

.hero-visual {
  background:
    radial-gradient(circle, #ffffff38 1px, transparent 1.5px) 0 0 / 18px 18px,
    linear-gradient(145deg, #c6b8ff, #86bfff 60%, #6ed7ec);
  color: #16274b;
  box-shadow: 0 1.4rem 3rem #080f3050;
}

.hero-phone {
  width: min(100%, 16.5rem);
  box-shadow: 0 1.25rem 2.6rem #16234365;
}

.product-demos { background: #f5f7ff; }

.demo-card {
  background: #fff;
  box-shadow: 0 .5rem 1.4rem #1623430d;
}

.demo-month { background: linear-gradient(150deg, #c6e4ff, #adc5ff); }
.demo-edit { background: linear-gradient(150deg, #ffe4a8, #ffd0aa); }
.demo-share { background: linear-gradient(150deg, #e5d3ff, #d4d8ff); }
.demo-stats { background: linear-gradient(150deg, #c3f3df, #a4e3e9); }

@media (min-width: 1200px) {
  .demo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .store-links .badge-link { transition: none; }
  .store-links .badge-link:hover { transform: none; }
}

/* The French Google Play PNG has 41 transparent pixels on each side. */
.store-links .badge-link-padded {
  position: relative;
  width: calc(2.75rem * 564 / 168);
  height: 2.75rem;
  overflow: hidden;
}

.store-links .badge-link-padded img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: calc(2.75rem * 250 / 168);
  max-width: none;
  transform: translate(-50%, -50%);
}

#mainNav .navbar-toggler-icon {
  width: 1.125rem;
  height: 1.125rem;
  margin-inline-start: .2rem;
}

#mainNav .brand-plan { color: var(--product-blue); }

.hero-visual { scroll-margin-top: 4.5rem; }
.tour-screen { position: relative; }
.hero-phone img[hidden] { display: none; }

.tour-marker, .tour-back {
  position: absolute;
  padding: 0;
  border: 2px solid #184dba;
  border-radius: .55rem;
  background: transparent;
  box-shadow: inset 0 0 0 1px #fff, 0 0 0 .2rem #184dba66;
}

.tour-marker[data-step="0"] {
  top: 38.5%;
  left: .4%;
  width: 13.2%;
  height: 12.7%;
}

.tour-marker[data-step="1"] {
  top: 14%;
  left: 36%;
  width: 61%;
  height: 20%;
}

.tour-back {
  top: .4%;
  left: .3%;
  width: 11%;
  height: 7.5%;
}

@media (prefers-reduced-motion: no-preference) {
  .tour-marker, .tour-back { animation: tour-pulse 1.8s ease-out 3; }
  @keyframes tour-pulse {
    65%, 100% { box-shadow: inset 0 0 0 1px #fff, 0 0 0 .5rem #184dba00; }
  }
}

.tour-caption { width: 100%; text-align: center; }
.tour-caption p {
  min-height: 3em;
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
}

.tour-controls { display: flex; justify-content: center; gap: .5rem; }
.tour-controls button {
  min-height: 2.75rem;
  padding: .25rem .7rem;
  border: 1px solid #1e3c7840;
  border-radius: .55rem;
  color: #16274b;
  background: #ffffffc9;
  font-weight: 700;
}
.tour-controls button:disabled { visibility: hidden; }
.tour-marker:focus-visible, .tour-back:focus-visible, .tour-controls button:focus-visible {
  outline: 2px solid #101f3d;
  outline-offset: 3px;
}

#mainNav .language-menu {
  max-height: min(22rem, 45vh);
  overflow-y: auto;
}

#page-top #mainNav .language-selector {
  color: var(--product-ink);
  border-color: #c8d5e8;
  background: #fff;
}

#page-top #mainNav .language-selector:hover,
#page-top #mainNav .language-selector:focus,
#page-top #mainNav .language-selector[aria-expanded="true"] {
  color: var(--product-blue);
  border-color: var(--product-blue);
  background: #eef5ff;
}
