:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #102339;
  background: #fff;
  --muted: #4b6076;
  --rule: #e0eaf2;
  --gutter: clamp(1rem, 5vw, 4rem);
  --content: 72rem;
}

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

html { scroll-padding-top: 6.5rem; }

body {
  display: flow-root;
  margin: 0;
  background:
    radial-gradient(ellipse 64rem 36rem at 12% 0, #dff4ff 0%, transparent 75%) top center / 100% 44rem no-repeat,
    radial-gradient(ellipse 54rem 37rem at 92% 3%, #dbe8ff 0%, transparent 80%) top center / 100% 48rem no-repeat;
  line-height: 1.6;
}

.home-page {
  background:
    radial-gradient(ellipse 62rem 36rem at 15% 0, #e0f3ff 0%, transparent 78%) top center / 100% 47rem no-repeat,
    radial-gradient(ellipse 57rem 40rem at 95% 4%, #e0f4eb 0%, transparent 82%) top center / 100% 53rem no-repeat;
}

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

a:focus-visible {
  outline: 2px solid #0878aa;
  outline-offset: 4px;
}

img { display: block; max-width: 100%; }
h1, h2, p, figure { margin: 0; }

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 1;
  width: min(54rem, calc(100% - var(--gutter) * 2));
  margin: 1.25rem auto 0;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid #fff;
  border-radius: 1.125rem;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 8px 30px rgb(29 68 109 / 9%), 0 0 0 1px rgb(65 110 158 / 8%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-size: 1.17rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  border-radius: 0.5rem;
}

.nav-links {
  display: flex;
  gap: clamp(0.125rem, 2vw, 1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li > a,
.language-picker summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-inline: clamp(0.375rem, 1.15vw, 0.875rem);
  border-radius: 0.625rem;
  color: #334e68;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.language-picker summary:hover { background: #e8f4fc; color: #102339; }

.language-picker { position: relative; }

.language-picker summary {
  gap: 0.625rem;
  cursor: pointer;
  list-style: none;
}

.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:focus-visible { outline: 2px solid #0878aa; outline-offset: 3px; }

.language-picker summary::after {
  width: 0.375rem;
  height: 0.375rem;
  margin-top: -0.1875rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  content: '';
}

.language-picker[open] summary::after { margin-top: 0.1875rem; transform: rotate(225deg); }

.language-options {
  position: absolute;
  inset: calc(100% + 0.5rem) 0 auto auto;
  min-width: 9rem;
  margin: 0;
  padding: 0.375rem;
  border: 1px solid var(--rule);
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 10px 28px rgb(29 68 109 / 16%);
  list-style: none;
}

.language-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  padding-inline: 0.625rem;
  border-radius: 0.5rem;
  color: #334e68;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.language-options a:hover, .language-options a[aria-current="page"] { background: #edf6fc; color: #163d57; }
.language-options a[aria-current="page"] { font-weight: 620; }

.language-options a[aria-current="page"]::after {
  width: 0.3125rem;
  height: 0.5625rem;
  margin-inline-start: 0.625rem;
  margin-top: -0.1875rem;
  border: solid #1672a2;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  content: '';
}

.hero-content {
  display: grid;
  justify-items: center;
  padding: clamp(2.4rem, 4.25vw, 4rem) var(--gutter) 0;
  text-align: center;
}

.hero-icon {
  width: clamp(4.25rem, 7vw, 5.25rem);
  height: auto;
  margin-bottom: 0.875rem;
  filter: drop-shadow(0 10px 19px rgb(10 107 162 / 20%));
}

.hero h1 {
  max-width: 56rem;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero h1 span { color: #14618e; }

.hero-description {
  max-width: 37rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  line-height: 1.75;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  width: min(100%, 27rem);
  margin-top: 1.5rem;
}

.primary-button {
  display: grid;
  place-items: center;
  min-height: 3.25rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.9rem;
  color: #fff;
  background: #102d44;
  box-shadow: 0 5px 14px rgb(20 55 78 / 18%);
  font-weight: 620;
}

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

.platform {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-preview, .features, .site-footer {
  width: min(var(--content), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.hero-preview { margin-top: clamp(2.5rem, 4.75vw, 4.75rem); }

.device-pair, .insight-pair {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.device-pair { grid-template-areas: "mac iphone"; }
.mac-preview { grid-area: mac; }
.iphone-preview { grid-area: iphone; }

.preview-media {
  display: grid;
  align-items: center;
  min-height: clamp(19rem, 36vw, 29rem);
}

.screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(0.875rem, 2.1vw, 1.5rem);
  box-shadow: 0 14px 34px rgb(16 43 71 / 12%);
}

.recording-media { position: relative; }
.recording-media video { display: block; width: 100%; height: auto; border-radius: inherit; }

.recording-toggle {
  position: absolute;
  inset: 0.5rem 0.5rem auto auto;
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 50%;
  color: #fff;
  background: rgb(10 25 41 / 84%);
  cursor: pointer;
}

.recording-toggle[hidden] { display: none; }
.recording-toggle:focus-visible { outline: 2px solid #6ed7ff; outline-offset: 3px; }

.recording-toggle::before {
  margin-left: 0.13rem;
  border-block: 0.34rem solid transparent;
  border-left: 0.53rem solid currentColor;
  content: '';
}

.recording-toggle[data-playing]::before {
  width: 0.56rem;
  height: 0.68rem;
  margin-left: 0;
  border-block: 0;
  border-inline: 2px solid currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .recording-toggle[data-playing] { opacity: 0; }
  .recording-media:hover .recording-toggle,
  .recording-toggle:focus-visible { opacity: 1; }
}

.screenshot-portrait {
  justify-self: center;
  width: clamp(9rem, 15vw, 13rem);
  border: 1px solid rgb(16 35 57 / 16%);
  border-radius: clamp(1.1rem, 2.6vw, 1.8rem);
}

.device-preview figcaption {
  max-width: 33rem;
  margin: clamp(1.1rem, 3vw, 1.85rem) auto 0;
  text-align: center;
}

.device-preview h2 { font-size: clamp(1.35rem, 2.65vw, 2rem); }
.device-preview figcaption p { text-wrap: balance; }

.device-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  margin-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4.75rem);
  padding-block-start: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}

.sync-note {
  max-width: 33rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.8;
}

.widget-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  padding: 0.7rem;
  border: 1px solid #e0eee8;
  border-radius: 1.125rem;
  background: #f2f9f6;
}

.widget-preview .screenshot { border-radius: 0.65rem; box-shadow: none; }

.widget-preview figcaption {
  padding-inline-end: 0.25rem;
  font-weight: 650;
  line-height: 1.5;
}

h2 {
  font-size: clamp(1.65rem, 3.25vw, 2.5rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.3;
  text-wrap: balance;
}

.device-preview figcaption p, .feature-copy p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.85;
}

kbd {
  display: inline-block;
  padding: 0 0.42em;
  border: 1px solid #d6e2ed;
  border-radius: 0.375rem;
  background: #f3f7fa;
  color: #264861;
  font: inherit;
  font-size: 0.85em;
  font-weight: 650;
  white-space: nowrap;
}

.keep-together { display: inline-block; }

.feature {
  padding-block: clamp(2.5rem, 6.5vw, 5.25rem);
  border-top: 1px solid var(--rule);
}

.amber-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  gap: clamp(1.5rem, 5.5vw, 5rem);
  align-items: center;
}

.policy {
  width: min(44rem, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.75rem);
}

.policy h1 {
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.policy .policy-date { margin-top: 0.625rem; }

.policy section { margin-top: clamp(1.625rem, 4vw, 2.375rem); }

.policy h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  letter-spacing: -0.025em;
  text-wrap: initial;
}

.policy p {
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.8;
}

.policy a {
  color: #14618e;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 6rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer span { font-weight: 700; }

.footer-links {
  display: flex;
  gap: clamp(0.875rem, 4vw, 2rem);
}

.site-footer a {
  padding-block: 0.625rem;
  border-radius: 0.25rem;
}

.site-footer a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

@media (max-width: 47rem) {
  .device-pair, .insight-pair, .device-details, .amber-feature { grid-template-columns: minmax(0, 1fr); }
  .device-pair { grid-template-areas: "iphone" "mac"; }
  .device-pair, .insight-pair { gap: clamp(2.25rem, 7vw, 3.25rem); }
  .preview-media { min-height: 0; }
  .screenshot-portrait { width: min(13rem, 66%); }
  .device-details { justify-items: center; }
  .sync-note { text-align: center; }
  .widget-preview { width: min(100%, 30rem); }
  .amber-feature { gap: 1.375rem; }
  .feature-copy { max-width: 32rem; }
  .site-header { margin-top: 0.75rem; top: 0.75rem; }
}

@media (max-width: 35rem) {
  .nav-links > li:not(.language-item, .demo-nav-item) { display: none; }

  .home-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 1.125rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0 0.875rem;
  }
}

@media (max-width: 22rem) {
  .hero-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
