@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #1e2023;
  --text: #f2f1ee;
  --muted: #bebfc3;
  --line: #3a3c40;
  --smoke: #1e1f22;
  --selected: #4c4e51;
  --shell: 76rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--text);
}

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

body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid #e2e4e8;
  outline-offset: 4px;
}

.shell {
  width: min(var(--shell), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 0.75rem;
  left: var(--gutter);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

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

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner { min-height: 4.75rem; }

.language-menu {
  position: relative;
  z-index: 10;
}

.language-menu summary {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  padding-inline: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:hover, .language-menu[open] summary { background: var(--selected); }

.language-menu ul {
  position: absolute;
  inset: calc(100% + 0.4rem) 0 auto auto;
  min-width: 10rem;
  margin: 0;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--paper);
  box-shadow: 0 0.75rem 2rem #0006;
  list-style: none;
}

.language-menu a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding-inline: 0.7rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.language-menu a:hover, .language-menu a[aria-current="true"] { background: var(--selected); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.header-nav, .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
}

.header-nav {
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  background: var(--paper);
}

.nav-link, .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-link {
  padding-inline: 1rem;
  border-radius: 100vmax;
}

.nav-link:hover, .nav-link[aria-current="page"] {
  background: var(--selected);
  color: var(--text);
}

.footer-links a { white-space: nowrap; }

.footer-links a:hover, .footer-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: #92959a;
  text-underline-offset: 0.36em;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.68rem 1.2rem;
  border-radius: 100vmax;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  max-width: 100%;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--paper);
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.action:hover { background: #fff; }
.action:active { transform: scale(0.98); }

.action-secondary {
  border-color: #4a4c50;
  background: #292b2e;
  color: var(--text);
}

.action-secondary:hover { background: #36383c; }

.release-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  background: #232427;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.status-dot {
  flex: 0 0 auto;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #b5b8bd;
}

.brand-hero {
  position: relative;
  display: grid;
  align-items: center;
  width: min(var(--shell), 100% - 2 * var(--gutter));
  min-height: clamp(32rem, 47vw, 42rem);
  margin: 0.45rem auto 0;
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 2.8vw, 2rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.brand-hero .shell { width: 100%; padding-inline: clamp(1.5rem, 4.4vw, 4rem); }

.hero-landscape, .brand-hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-landscape { z-index: -2; }

.hero-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% bottom;
  filter: saturate(0.9) brightness(0.99);
}

.brand-hero::before {
  z-index: -1;
  content: "";
  background:
    linear-gradient(0deg, #12131516, transparent 40%),
    linear-gradient(90deg, #121315fa 0%, #121315ee 23%, #121315ce 40%, #121315a0 53%, #12131568 65%, #12131539 76%, #12131514 87%, transparent 98%);
}

.hero-copy { padding-block: 3.5rem 4.5rem; }

.hero-copy h1, .first-product h2, .brand-about h2, .apps-title h1,
.app-heading h2, .app-panel h3, .document h1 {
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(4.5rem, 8.6vw, 8rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
  word-spacing: 0.023em;
}

.hero-copy h1 span { display: block; }

.hero-copy > p {
  max-width: min(30rem, 62%);
  margin-top: clamp(1.35rem, 3.2vw, 2.2rem);
  color: var(--text);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  text-wrap: balance;
}

.hero-copy .action { margin-top: 1.6rem; }

.section-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.first-product {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  grid-template-areas: "copy visual";
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4.25rem);
  margin-block: clamp(2rem, 5vw, 4.25rem);
  padding: clamp(1.5rem, 3.5vw, 3rem) clamp(1.5rem, 4.4vw, 4rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 2.8vw, 2rem);
  background: var(--smoke);
}

.first-product-visual { grid-area: visual; --device-width: 14rem; }

.device-mockup {
  position: relative;
  width: min(100%, var(--device-width, 17rem));
  margin-inline: auto;
  filter: drop-shadow(0 0.7rem 1.1rem #0007);
}

.device-frame {
  position: relative;
  width: 100%;
  height: auto;
  mask: url("/assets/device-frame-mask.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* The display overlaps the frame mask by one source pixel to cover the edge. */
.device-display {
  position: absolute;
  inset: 1.8127% 4.1731% 1.8127% 4.4822%;
  overflow: hidden;
  border-radius: 13.88% / 6.43%;
  background: #1a1b1d;
}

.device-display .app-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.device-mockup[hidden], .device-display .app-screen[hidden] { display: none; }
.first-product-copy { grid-area: copy; }

.first-product h2, .app-heading h2 {
  margin-top: 0.5rem;
  font-size: clamp(3.25rem, 6.6vw, 6.4rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.first-product-copy > p:not(.section-label), .app-summary > p:not(.release-status) {
  max-width: 29rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.6;
}

.first-product-copy .action { margin-top: 1.45rem; }

.brand-about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem 2rem;
  padding-block: clamp(1.5rem, 3.6vw, 3rem) clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.brand-about h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.brand-about p {
  margin-top: 0.4rem;
  color: var(--muted);
  line-height: 1.55;
}

.apps-title {
  padding-block: clamp(1.75rem, 3.3vw, 3rem) 0.5rem;
}

.apps-title h1 {
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.app-product {
  padding-block: 0.65rem clamp(3rem, 6.5vw, 5.5rem);
}

.app-product + .app-product { padding-top: 2.5rem; border-top: 1px solid var(--line); }

.app-heading h2 { margin-top: 0; font-size: clamp(3.45rem, 6vw, 5.6rem); }

.app-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.7rem;
}

.app-summary > p:not(.release-status) { margin-top: 0; }

.app-preview {
  margin-top: clamp(0.85rem, 1.7vw, 1.4rem);
  padding: clamp(1rem, 3.1vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 2.8vw, 2rem);
  background: var(--smoke);
}

.first-product, .app-preview[data-enhanced] {
  background-image: radial-gradient(
    ellipse var(--light-width, 35%) 64% at var(--light-x, 76%) var(--light-y, 50%),
    #47484c 0%, #47484c7a 26%, #47484c30 55%, transparent 100%
  );
}

.app-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.16rem;
  width: min(100%, 25rem);
  margin-top: 1rem;
  padding: 0.22rem;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  background: var(--paper);
}

.app-tabs button {
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.35rem 0.2rem;
  border: 1px solid transparent;
  border-radius: 100vmax;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}

.app-tabs button:hover { color: var(--text); }
.app-tabs button[data-pending] { border-color: #65686e; cursor: progress; }
.app-tabs button[aria-selected="true"] {
  border-color: #838587;
  background: var(--selected);
  color: var(--text);
}
.app-tabs button:focus-visible { outline: 2px solid #8d9096; outline-offset: 1px; }

.app-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  margin-top: 1.4rem;
  padding-block: 0.5rem;
}

.app-panel[hidden], .app-tabs[hidden] { display: none; }

.screenshot-note { margin-top: 0.75rem; color: var(--muted); font-size: 0.85rem; }

.app-preview[data-enhanced] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
}

.app-preview[data-enhanced] .app-panels { display: grid; }

.app-preview[data-enhanced] .app-panel {
  display: block;
  grid-area: 1 / 1;
  margin: 0;
}

/* Reserve the largest description so changing tabs cannot move the device. */
.app-preview[data-enhanced] .app-panel[hidden] { visibility: hidden; }

.app-panel h3 {
  max-width: 15ch;
  font-size: clamp(1.75rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: pretty;
}

.app-panel p {
  max-width: 29ch;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.55;
}

.app-screen {
  width: min(100%, 16rem);
  height: auto;
  margin-inline: auto;
  border-radius: 1.2rem;
  box-shadow: 0 1rem 2rem #0008, 0 0 0 1px #ffffff1a;
}

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.5rem; padding-block: 0.5rem; }

.document {
  min-height: calc(100vh - 10.25rem);
  max-width: 50rem;
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
}

.document h1 {
  max-width: 15ch;
  font-size: clamp(2.85rem, 6.2vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.document p {
  max-width: 42rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.document .document-intro { margin-top: 1.3rem; font-size: clamp(1.125rem, 2.1vw, 1.375rem); }
.document .document-date { font-size: 0.9rem; }
.document a:not(.action) { color: var(--text); text-underline-offset: 0.24em; }
.document a:not(.action):hover { color: var(--muted); }
.document .action { margin-top: 1.5rem; overflow-wrap: anywhere; }
.document-sections { margin-top: clamp(2.75rem, 6vw, 4rem); }
.document-section { padding-block: 1.6rem; border-top: 1px solid var(--line); }
.document-section h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -0.03em; }

.privacy-document .document-date time { color: var(--text); }
.privacy-document .document-sections { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.privacy-document .document-section h2 { scroll-margin-top: 1rem; }

.privacy-contents {
  margin-top: 1.75rem;
  padding: 1rem clamp(1.15rem, 4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.privacy-contents h2 { font-size: 1rem; }

.privacy-contents ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  column-gap: 1.75rem;
  margin: 0.35rem 0 0;
  padding-inline-start: 1.4rem;
  color: var(--muted);
}

.privacy-contents a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

.about-page { max-width: var(--shell); }
.about-page .document-intro { max-width: 41rem; }
.about-page .document-sections { max-width: 42rem; margin-top: clamp(1.75rem, 4vw, 3rem); }

@media (max-width: 52rem) {
  .brand-hero::before {
    background:
      linear-gradient(0deg, #12131516, transparent 40%),
      linear-gradient(90deg, #121315fa 0%, #121315f0 26%, #121315de 42%, #121315b2 56%, #1213157a 69%, #12131542 81%, #12131516 91%, transparent 100%);
  }

  .app-panel { gap: 1.5rem; }
}

@media (max-width: 46rem) {
  .header-inner { min-height: 4.125rem; }
  .brand { gap: 0.48rem; font-size: 1rem; }
  .brand img { width: 1.5rem; height: 1.5rem; }
  .header-nav { flex-wrap: nowrap; }
  .nav-link { padding-inline: 0.7rem; }

  .brand-hero {
    align-items: start;
    min-height: 36.5rem;
  }

  .hero-landscape img { object-position: 76% bottom; }

  .brand-hero::before {
    background: linear-gradient(180deg, #121315fa 0%, #121315ef 20%, #121315d8 36%, #121315ac 49%, #12131571 60%, #1213153b 71%, #12131515 82%, transparent 92%);
  }

  .hero-copy { padding-block: clamp(3.1rem, 12vw, 4.5rem) 11rem; }
  .hero-copy h1 { font-size: clamp(3rem, 13.5vw, 6rem); }
  .hero-copy > p { max-width: 26rem; margin-top: 1.2rem; text-wrap: pretty; }
  .hero-copy .action { margin-top: 1.3rem; }

  .first-product {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "visual";
    gap: 1.6rem;
    --light-y: 68%;
  }

  .first-product, .app-preview[data-enhanced] { --light-width: 78%; --light-x: 50%; }
  .first-product-visual { --device-width: 13rem; }
  .apps-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .app-product { padding-top: 1rem; }
  .app-summary { gap: 0.55rem 0.75rem; }
  .app-tabs { margin-top: 0.7rem; }
  .app-preview { margin-top: 0.65rem; }
  .app-panel, .app-preview[data-enhanced] { grid-template-columns: minmax(0, 1fr); }
  .app-preview[data-enhanced] { --device-width: 16.75rem; --light-y: 59%; gap: 0.7rem; }
  .app-preview[data-enhanced] .app-panel { padding-block: 0; }
  .app-panel h3 { max-width: 100%; font-size: clamp(1.5rem, 6vw, 2rem); }
  .app-panel p { max-width: none; margin-top: 0.42rem; }
  .app-panel .app-screen { width: min(100%, clamp(13rem, 64vw, 16rem)); }
  .footer-inner { min-height: 4.75rem; gap: 0.75rem; }
  .footer-links { gap: 0 0.8rem; }
}

@media (min-width: 35rem) and (max-width: 46rem) {
  .hero-landscape img { object-position: center 67%; }
}

@media (max-width: 29rem) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.7rem;
    padding-block: 0.6rem;
  }

  .header-nav { grid-area: 2 / 1 / 3 / -1; justify-self: start; }
  .language-menu { grid-area: 1 / 2; }
}

@media (max-width: 22.5rem) {
  .header-inner { gap: 0.65rem; }
  .nav-link { padding-inline: 0.48rem; font-size: 0.8125rem; }
  .hero-copy h1 { font-size: clamp(2.75rem, 13.8vw, 3rem); }
  .hero-landscape img { object-position: 88% bottom; }
  .app-tabs { display: flex; }
  .app-tabs button { flex: 1 1 auto; font-size: 0.8125rem; }
}

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