/* Company branding shared by the homepage, product pages and legal pages. */
:root {
  --royal: #123cb7;
  --royal-dark: #0e2e8f;
  --ink: #181b24;
  --muted: #4e576a;
  --line: #dde3ec;
  --ivory: #fff;
  --ivory-deep: #f4f6fb;
  --paper: #fff;
  --forest: var(--royal);
  --gold: var(--royal);
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: var(--sans);
  --content-width: 72rem;
  --site-gutter: clamp(1.25rem, 5vw, 4rem);
}

[hidden] { display: none !important; }

.site-header {
  width: 100%;
  min-height: 5rem;
  padding: 1rem max(var(--site-gutter), calc((100% - var(--content-width)) / 2));
  gap: .75rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.company-wordmark {
  display: block;
  width: 11.5rem;
  height: auto;
  max-width: 100%;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem 2rem;
  padding: 2rem max(var(--site-gutter), calc((100% - var(--content-width)) / 2));
  border: 0;
  background: var(--royal);
  color: #fff;
}

.site-footer p { margin: 0; }
.site-footer nav { flex-wrap: wrap; gap: .75rem 1.5rem; }
.site-footer a, .site-footer .copyright, .site-footer .trademark { color: inherit; }
.site-footer a:focus-visible { outline-color: #fff; }
.site-footer .company-wordmark { filter: brightness(0) invert(1); }
.site-footer .copyright, .site-footer .trademark { flex-basis: 100%; }
.site-footer .trademark { color: #e2e9ff; }

.legal-page h1, .product-page h1 {
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.045em;
}

.product-section > h2 {
  color: var(--ink);
  font-weight: 650;
}

.product-app-icon { border-radius: 21%; }
.store-badge { display: inline-flex; align-self: flex-start; border-radius: .5rem; }
.store-badge img { display: block; }

.product-screenshot {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 38rem;
  height: auto;
  object-fit: contain;
  border-radius: .75rem;
}

.product-faq { max-width: 68ch; margin: 0; }
.product-faq dt { margin-top: 1.4rem; font-weight: 700; }
.product-faq dd { margin: .25rem 0 0; }

/* Homepage */
.home {
  --ivory: #f5f3ee;
  --ink: #20232b;
  --muted: #515461;
  --line: #dedad1;
  --royal: #1943c0;
}

.home .site-header { background: #fbfaf7; }
.home .site-header nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; }

.home-hero, .app-directory {
  width: min(100% - 2 * var(--site-gutter), var(--content-width));
  padding-inline: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 4.5vw, 4.25rem);
  padding-block: clamp(2.125rem, 5vw, 4.5rem) clamp(2.125rem, 4vw, 3.5rem);
}

.hero-intro h1 {
  max-width: 12ch;
  margin: 0 0 1rem;
  font-size: clamp(2.625rem, 5vw, 4.35rem);
  line-height: 1.015;
  font-weight: 740;
  letter-spacing: -.065em;
}

.hero-intro p {
  max-width: 38ch;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.875rem;
  padding: .625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: var(--royal);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.primary-action:hover { background: var(--royal-dark); }

.app-carousel {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 2rem);
  background: var(--royal);
  color: #fff;
  border-radius: 1rem;
}

.carousel-header, .directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.carousel-header { gap: .375rem .65rem; margin-bottom: .875rem; }
.carousel-header h2 {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.carousel-position {
  color: #e4ecff;
  font-size: .875rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.carousel-controls button, .app-filters button {
  font: inherit;
  cursor: pointer;
}

.carousel-controls button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #8fa9f3;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.carousel-controls button:hover { background: #2954cd; }

.carousel-cards {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.featured-card {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.featured-app-heading {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
  margin-bottom: 1rem;
}

.featured-app-heading img, .directory-icon, .carousel-preview img {
  display: block;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22%;
  object-fit: contain;
}

.featured-app-heading img {
  width: clamp(4.5rem, 6.4vw, 5.5rem);
  height: auto;
  aspect-ratio: 1;
  border: 0;
}

.platform-label {
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
}

.featured-app-heading .platform-label { color: #e4ecff; }

.featured-app-heading h3 {
  margin: .15rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.375rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.featured-description {
  max-width: 40ch;
  min-height: 3.1em;
  margin: 0 0 .75rem;
  color: #f0f4ff;
  line-height: 1.55;
}

.featured-link {
  margin-top: auto;
  color: #fff;
  font-weight: 650;
  text-underline-offset: .25em;
}

.carousel-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 5.25rem;
  flex-direction: column;
  gap: .5rem;
  padding-inline-start: .75rem;
  border-inline-start: 1px solid #8fa9f3;
  color: #e4ecff;
  text-align: center;
  font-size: .875rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.app-directory {
  padding-block: 1.25rem clamp(2.5rem, 4.5vw, 4rem);
  border-top: 1px solid var(--line);
}

.directory-header { gap: 1rem 1.5rem; margin-bottom: 1.05rem; }
.directory-header h2 {
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.052em;
}

.app-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.app-filters button {
  border: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--ink);
  min-height: 2.75rem;
  padding: .3rem .8rem;
  border-radius: .4375rem;
  font-size: .875rem;
  font-weight: 650;
}
.app-filters button:hover { border-color: var(--royal); }
.app-filters button[aria-pressed="true"] {
  border-color: var(--royal);
  background: var(--royal);
  color: white;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 5vw, 4rem);
}

.directory-app {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.7rem, 1.5vw, 1rem);
  min-height: 7rem;
  padding-block: .875rem;
  border-bottom: 1px solid var(--line);
}

.directory-app-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .15rem .65rem;
}

.directory-app h3 { margin: 0; font-size: 1.0625rem; }
.directory-app h3 a { text-decoration: none; }
.directory-app h3 a::after { position: absolute; inset: 0; content: ""; }
.directory-app h3 a:focus-visible { outline: 0; }
.directory-app h3 a:focus-visible::after { outline: 2px solid var(--royal); outline-offset: 2px; }
.directory-app:hover h3 a, .directory-app:focus-within h3 a { color: var(--royal); text-decoration: underline; }
.directory-app p { margin: .25rem 0 0; color: var(--muted); line-height: 1.45; }
.directory-arrow { color: var(--royal); }
.directory-anchor { position: absolute; inset-block-start: 0; }

button:focus-visible, .home a:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 3px;
}
.home .app-carousel :focus-visible,
.home .site-footer a:focus-visible { outline-color: white; }
.home .directory-app h3 a:focus-visible { outline: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.carousel-preview--previous { display: none; }

@media (max-width: 57rem) {
  .carousel-preview { display: none; }
}

@media (max-width: 46rem) {
  .home-hero, .directory-grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero { gap: 1.75rem; }
  .hero-intro h1 { max-width: 13ch; }
  .featured-description { min-height: 4.65em; }
}

@media (max-width: 32.5rem) {
  .site-header { flex-wrap: wrap; }
  .company-wordmark { width: 10rem; }
  .product-identity { flex-direction: column; margin-bottom: 1.75rem; }
}

@media (max-width: 22rem) {
  .featured-description { min-height: 6.2em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Shared product landing-page layout. */
.product-preview {
  --ivory: #f5f3ee;
  --paper: #fbfaf7;
  --ink: #20232b;
  --muted: #515461;
  --line: #dedad1;
  --royal: #1943c0;
  line-height: 1.6;
}

.product-preview .site-header { background: var(--paper); }

.product-preview .product-page {
  width: min(100% - 2 * var(--site-gutter), var(--content-width));
}

.product-preview .product-hero,
.product-preview .product-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.25rem, 5vw, 4rem);
}

.product-preview .product-hero {
  align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  padding-block: clamp(2rem, 4.5vw, 4rem);
}

.product-preview .product-page--landscape .product-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.product-preview .product-identity {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1rem;
}

.product-preview .product-identity img {
  width: 4rem;
  height: 4rem;
  border-radius: .875rem;
}

.product-preview .product-identity h1 {
  margin: 0;
  font-size: clamp(2.125rem, 4vw, 3.5rem);
  text-wrap: balance;
}

.product-preview .product-intro p {
  max-width: 62ch;
  margin: 0 0 .875rem;
}

.product-preview .product-intro .lead {
  font-size: clamp(1.0625rem, 1.45vw, 1.25rem);
}

.product-preview .product-actions {
  flex-direction: row;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
}

.product-preview .product-button { border-radius: .5rem; }

.product-preview .product-media {
  display: grid;
  justify-items: center;
  gap: .65rem;
  margin: 0;
  padding: clamp(.75rem, 2vw, 1.375rem);
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #e9edf5;
}

.product-preview .product-media img {
  width: min(100%, 12rem);
  max-height: none;
  border-radius: .4rem;
}

.product-preview .product-page--landscape .product-media img { width: 100%; }

.product-preview .product-media figcaption {
  color: var(--muted);
  font-size: .875rem;
}

.product-preview .product-section { padding-block: clamp(1.5rem, 3.5vw, 2.75rem); }

.product-preview .product-section-heading .eyebrow {
  margin: 0 0 .5rem;
  color: var(--royal);
  font-size: .8125rem;
  letter-spacing: .055em;
  text-transform: none;
}

.product-preview .product-section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.04em;
}

.product-preview .product-section-body > :first-child { margin-block-start: 0; }
.product-preview .product-section-body > :last-child { margin-block-end: 0; }

.product-preview .product-features { gap: .875rem 1.25rem; }

.product-preview .product-features li {
  padding: .75rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.product-preview .product-features strong { margin-bottom: .25rem; }
.product-preview .product-steps li { margin: 0 0 .6rem; }
.product-preview .product-steps li:last-child { margin: 0; }
.product-preview .product-note {
  padding: .75rem 1rem;
  border-inline-start: 3px solid var(--royal);
  background: var(--paper);
}

.product-preview .cards { gap: 1rem; }
.product-preview .card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
}

.product-preview .card h3 { margin: 0; }
.product-preview .card .price { margin: .25rem 0 .5rem; }
.product-preview .card p:last-child { margin-bottom: 0; }

.product-preview .product-faq dt {
  margin: .875rem 0 0;
  padding-top: .875rem;
  border-top: 1px solid var(--line);
}

.product-preview .product-faq dt:first-child { margin: 0; padding: 0; border: 0; }
.product-preview .product-faq dd { color: var(--muted); }

@media (max-width: 46rem) {
  .product-preview .product-hero,
  .product-preview .product-page--landscape .product-hero,
  .product-preview .product-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-preview .product-hero { gap: 1.25rem; }
  .product-preview .product-section { gap: .875rem; }
  .product-preview .product-media img { width: min(100%, 10rem); }
}

/* Fit narrower media frames to the artwork. */
.product-preview .product-page--portrait .product-media {
  justify-self: center;
  width: min(100%, 13.5rem);
  padding: .75rem;
  background: var(--paper);
}

@media (max-width: 46rem) {
  .product-preview .product-page--portrait .product-media { width: min(100%, 11.5rem); }
}

.product-preview .product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 12rem));
  align-items: start;
  gap: clamp(.75rem, 3vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-preview .product-gallery li { margin: 0; }
.product-preview .product-gallery a { display: block; border-radius: .4rem; }
.product-preview .product-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
