html { scrollbar-gutter: stable; }

.header {
  width: min(790px, 94%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px) minmax(0, 1fr);
  align-items: center;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .header { view-transition-name: site-header; }
  ::view-transition-group(site-header) { animation-duration: .22s; }

  ::view-transition-old(root) {
    animation: page-fade-out .22s ease both;
  }
  ::view-transition-new(root) {
    animation: page-fade-in .36s cubic-bezier(.2,.7,.3,1) both;
  }
  @keyframes page-fade-out {
    to { opacity: 0; }
  }
  @keyframes page-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.header > .brand {
  justify-self: start;
  display: flex;
  align-items: center;
  min-height: 36px;
  line-height: 1.2;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: normal;
}
.hero-actions {

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-actions .button { border-radius: 14px; min-height: 46px; padding: 10px 18px; }
.hero-actions .button {
  background: linear-gradient(to bottom, #decfff, #ac8df0);
  color: #241733;
  border: 0;
  box-shadow: inset 0 0 0 1px #63419665;
}

@media (hover: hover) {
  :is(button, .button, .account-button):not(:disabled):hover:not(:focus-visible) {
    box-shadow: inset 0 0 0 .5px #fff;
  }
}
.header nav { align-items: center; line-height: 1.25; }
.header .brand > span {
  display: block;
  transform: translateY(-2px);
}
.header nav a { display: flex; align-items: center; min-height: 36px; }
.header > nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.header > nav a { justify-content: center; white-space: nowrap; }
.header-actions, .account-page .header > #theme { justify-self: end; }
.header-actions { gap: 8px; }
.header-actions > *, .account-page .header > #theme { min-height: 36px; }
.header-actions .account-button {
  width: 94px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
  white-space: nowrap;
}
.header-actions .account-button svg { width: 18px; height: 18px; }
.header-actions svg { flex: none; }
.header-actions :is(#theme, .language-button) {
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px #ffffff55;
}
.language-flag {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #24173340;
  background: linear-gradient(#fff 33.33%, #2552a3 33.33% 66.66%, #ce343b 66.66%);
}
:root[lang="en"] .language-flag {
  background: linear-gradient(#214479, #214479) left top / 44% 54% no-repeat,
              repeating-linear-gradient(#b82e3b 0 1px, #fff 1px 2px);
}
#theme {
  position: relative;
  width: 36px;
  padding: 0;
  justify-content: center;
  flex: none;
}
.theme-symbol {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 17px;
  transform: rotate(0) scale(1);
}
.theme-symbol-sun { opacity: 0; transform: rotate(-60deg) scale(.55); }
[data-theme="light"] .theme-symbol-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-symbol-moon { opacity: 0; transform: rotate(60deg) scale(.55); }
@media (prefers-reduced-motion: no-preference) {
  .theme-transition .theme-symbol { transition: transform .32s ease, opacity .24s ease; }
  .theme-transition :is(.header, .account-card, .account-card input, .account-card button, .account-card p, .account-card dt) {
    transition: color .35s ease, background-color .35s ease, border-color .35s ease, box-shadow .35s ease;
  }
}

.hero h1, .section h2, .account-card h1 { text-wrap: balance; }
.hero { padding-top: clamp(152px, 34svh, 320px); }
.hero h1 {
  font-size: clamp(42px, 4.15vw, 76px);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.055em;
}
.hero-description {
  max-width: 44ch;
  margin: 24px auto;
  font-size: clamp(16px, 1.2vw, 20px);
  text-wrap: balance;
}
.client-gui { grid-template-rows: minmax(0, 1fr); }
.gui-main { min-height: 0; display: grid; grid-template-rows: 6.82cqw minmax(0, 1fr); }
.gui-content { height: auto; min-height: 0; }
.gui-header > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gui-search { min-width: 0; }

.features-layout, .faq {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.features-layout > div:first-child p, .faq > div:first-child p { max-width: 38ch; }
.features-layout { --feature-top: clamp(5px, .6vw, 10px); }
.features-layout > div:first-child > h2 { margin-top: 0; }
.feature-list {
  padding-top: var(--feature-top);
  padding-left: clamp(18px, 4vw, 54px);
}
.feature-list h3 { line-height: 1.25; }
.feature-list p { margin-top: 6px; }
.faq .eyebrow { display: block; margin-bottom: 12px; color: var(--muted); font-size: .875rem; }
.questions summary { display: grid; grid-template-columns: .65em minmax(0, 1fr); align-items: baseline; gap: .5em; }
.questions summary::before { justify-self: start; margin: 0; }
.questions summary > span:empty { display: none; }
.questions details p { margin: 10px 0 0 1.15em; max-width: 62ch; }

.pricing.pricing-open { width: min(1220px, 92%); }
.pricing-open .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-open .plan { min-width: 0; padding-inline: 0; }
.pricing-open .price { line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan-includes li { align-items: baseline; }
.plan-includes li::before { flex: 0 0 1em; }
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; }
.footer .brand { line-height: 1; }
.footer a:last-child { justify-self: end; }

.password-input input { display: block; }
.account-card form > .button { min-height: 48px; }
.account-link { min-height: 38px; }

@media (max-width: 700px) {
  .header { grid-template-columns: auto minmax(0, 1fr) auto; }
  .header nav { justify-content: center; }
  .hero { padding-top: clamp(128px, 26svh, 210px); }
  .hero h1 { font-size: clamp(31px, 8.6vw, 58px); }
  .features-layout, .faq, .pricing-open .plans { grid-template-columns: minmax(0, 1fr); }
  .feature-list { padding-top: 0; }
  .pricing-open .plan + .plan { border-top: 1px solid var(--edge); padding-top: 28px; }
}

@media (max-width: 380px) {
  .header { column-gap: 6px; }
  .header > .brand { font-size: 21px; }
  .header nav { gap: 8px; font-size: 12px; }
}

@media (max-width: 810px) {
  .header { grid-template-columns: auto minmax(0, 1fr) auto; }
  .header > nav {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
  .header > nav a:last-child { display: flex; }
  .header-actions, .account-page .header > #theme { grid-column: 3; grid-row: 1; }
  .header-actions .account-button { width: 36px; }
  .header-actions .account-button span { display: none; }
}
