/* Aerethis site frame — site-shell.css v6
   Stable global navigation plus the editorial/account refresh shared by the
   remaining public surfaces. The Aerenium landing and Community retain their
   own content systems; only the global frame is shared with them. */

.site-frame {
  --header: 56px;
}

.site-frame .site-header {
  height: var(--header);
  background: rgba(10, 11, 18, .9);
  border-bottom-color: rgba(239, 240, 244, .085);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}

.site-frame .nav {
  max-width: calc(var(--max) + 48px);
  height: var(--header);
  padding-inline: 24px;
}

.site-frame .logo {
  gap: 8px;
  font-size: 16px;
}

.site-frame .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-frame .logo-mark {
  position: relative;
}

.site-frame .logo-mark-fallback {
  display: none;
}

.site-frame .logo-mark img {
  position: relative;
  z-index: 1;
}

.site-frame .nav-links {
  gap: 2px;
}

.site-frame .nav-links > a,
.site-frame .nav-auth > a {
  position: relative;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
}

.site-frame .nav-links > a.is-current:not(.nav-cta),
.site-frame .nav-auth > a.is-current {
  color: var(--text-1);
  background: rgba(239, 240, 244, .045);
}

.site-frame .nav-links > a.is-current:not(.nav-cta)::after,
.site-frame .nav-auth > a.is-current::after {
  position: absolute;
  right: 8px;
  bottom: -11px;
  left: 8px;
  height: 1px;
  background: var(--accent-3);
  content: '';
}

.site-frame .nav-cta {
  margin-left: 2px;
  padding: 7px 12px;
  box-shadow: 0 2px 10px rgba(226, 169, 69, .2);
}

.site-frame .nav-auth {
  margin-left: 2px;
}

.site-frame .nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-frame .nav-cart-standalone {
  position: relative;
  width: 34px;
  height: 32px;
  flex: 0 0 34px;
  justify-content: center;
  margin-left: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  background: rgba(239, 240, 244, .025);
}

.site-frame .nav-cart-standalone:hover,
.site-frame .nav-cart-standalone.is-current {
  border-color: var(--border-strong);
  color: var(--text-1);
  background: rgba(239, 240, 244, .06);
}

.site-frame .nav-cart-standalone.is-current {
  box-shadow: inset 0 -1px var(--accent-3);
}

.site-frame .nav-cart-icon {
  width: 18px;
  height: 18px;
}

.site-frame .nav-cart-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-frame .nav-cart-count {
  min-width: 18px;
  height: 18px;
  padding-inline: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-4);
  color: var(--text-1);
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.site-frame .nav-cart-count[hidden] {
  display: none;
}

.site-frame .nav-cart-standalone .nav-cart-count {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding-inline: 4px;
  border: 2px solid var(--bg-0);
  font-size: 9px;
}

.site-frame .ccy-picker {
  margin-left: 8px;
}

.site-frame .ccy-btn {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}

.site-frame .mobile-menu-btn {
  width: 32px;
  height: 32px;
}

.site-frame .mobile-menu a.is-current {
  padding-left: 12px;
  color: var(--text-1);
  border-left: 2px solid var(--accent-3);
}

.site-frame.menu-open {
  overflow: hidden;
}

.site-frame .site-footer {
  padding: 40px 24px 48px;
  background: rgba(10, 11, 18, .68);
}

.site-frame .site-footer-inner {
  align-items: end;
}

.site-frame .footer-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-frame .locale-picker {
  position: relative;
}

.site-frame .locale-btn {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-frame .locale-btn:hover,
.site-frame .locale-btn[aria-expanded="true"] {
  border-color: var(--border-strong);
  background: rgba(239, 240, 244, .035);
  color: var(--text-1);
}

.site-frame .locale-btn:focus-visible,
.site-frame .locale-option:focus-visible {
  outline: 2px solid var(--air);
  outline-offset: 2px;
}

.site-frame .locale-btn svg {
  width: 15px;
  height: 15px;
  color: currentColor;
}

.site-frame .locale-menu {
  position: absolute;
  z-index: 80;
  bottom: calc(100% + 8px);
  left: 0;
  width: 210px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-1);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .4);
}

.site-frame .locale-menu[hidden] {
  display: none;
}

.site-frame .locale-menu-label {
  padding: 7px 9px 8px;
  color: var(--text-4);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.site-frame .locale-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-frame .locale-option:hover,
.site-frame .locale-option[aria-selected="true"] {
  background: rgba(239, 240, 244, .05);
  color: var(--text-1);
}

.site-frame .locale-option-code {
  color: var(--text-4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}

.site-frame .locale-option[aria-selected="true"] .locale-option-code {
  color: var(--accent-3);
}

.site-frame .footer-brand-mark {
  height: 54px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 12px;
}

@media (max-width: 940px) {
  .site-frame button,
  .site-frame [role="button"] {
    min-width: 44px;
    min-height: 44px;
  }

  .site-frame .btn,
  .site-frame summary,
  .site-frame select {
    min-height: 44px;
  }

  .site-frame .ccy-btn,
  .site-frame .locale-btn,
  .site-frame .pill-reveal-close {
    min-width: 44px;
    min-height: 44px;
  }

  .site-frame .footer-links a {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
  }

  .site-frame .nav-links {
    display: none;
  }

  .site-frame .mobile-menu-btn {
    display: flex;
    width: 44px;
    height: 44px;
    margin-left: auto;
  }

  .site-frame .ccy-picker {
    margin-left: auto;
  }

  .site-frame .ccy-picker ~ .mobile-menu-btn {
    margin-left: 8px;
  }

  .site-frame .mobile-menu {
    inset: var(--header) 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: calc(100vh - var(--header));
    padding: 10px 16px 14px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-strong);
    background: var(--bg-0);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .36);
  }

  .site-frame .mobile-menu.active {
    display: grid;
    animation: site-menu-in .18s ease-out;
  }

  @keyframes site-menu-in {
    from { transform: translateY(-6px); }
  }

  .site-frame .mobile-menu a {
    min-height: 44px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 15px;
    font-weight: 560;
  }

  .site-frame .mobile-menu a:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .site-frame .mobile-menu a:hover {
    padding-left: 12px;
    background: rgba(239, 240, 244, .035);
  }
}

/* Editorial page family */
.editorial-ui .hero {
  min-height: 0 !important;
  padding: clamp(116px, 13vh, 148px) 24px clamp(68px, 8vw, 96px) !important;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 110% at 92% 0%, rgba(155, 178, 217, .12), transparent 66%),
    radial-gradient(42% 90% at 3% 100%, rgba(var(--air-rgb), .055), transparent 72%),
    var(--bg-0);
}

.editorial-ui .hero-inner {
  width: min(var(--max), 100%);
  max-width: var(--max);
  margin-inline: auto;
  text-align: left;
}

.editorial-ui .hero-badge {
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--air);
  letter-spacing: .14em;
}

.editorial-ui .hero-badge::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: '';
}

.editorial-ui .hero h1 {
  max-width: 930px;
  margin: 24px 0 0;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 630;
  letter-spacing: -.064em;
  line-height: .98;
}

.editorial-ui .hero-lead {
  max-width: 720px !important;
  margin: 28px 0 0;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.68;
}

.editorial-ui .hero-actions,
.editorial-ui .trust-strip,
.editorial-ui .hero-proof {
  justify-content: flex-start;
}

.editorial-ui .hero-foot {
  max-width: 760px;
  text-align: left;
}

.editorial-ui .section-header {
  max-width: var(--max);
  margin-inline: auto;
  text-align: left;
}

.editorial-ui .section-header h2 {
  max-width: 820px;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 620;
  letter-spacing: -.05em;
  line-height: 1.03;
}

.editorial-ui .eyebrow,
.editorial-ui .narrative-eyebrow {
  color: var(--air);
}

.editorial-ui .feature-grid {
  gap: 0;
  overflow: hidden;
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
  border-radius: 0;
}

.editorial-ui .feature-card {
  min-height: 310px;
  padding: clamp(28px, 3.5vw, 42px);
  border: 0;
  border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  border-radius: 0;
  background: rgba(18, 19, 28, .36);
  box-shadow: none;
}

.editorial-ui .feature-card:hover {
  border-color: var(--border-strong);
  background: rgba(27, 29, 41, .56);
  box-shadow: none;
  transform: none;
}

.editorial-ui .feature-card h3 {
  font-size: 23px;
  letter-spacing: -.025em;
}

.editorial-ui .persona-grid {
  gap: 0;
  border-block: 1px solid var(--border-strong);
}

.editorial-ui .persona {
  min-height: 116px;
  padding: 28px 24px;
  border: 0;
  border-right: 1px solid var(--border-strong);
  border-radius: 0;
  background: transparent;
}

.editorial-ui .persona:last-child {
  border-right: 0;
}

.editorial-ui .persona:hover {
  background: rgba(239, 240, 244, .035);
  transform: none;
}

.editorial-ui .plans {
  gap: 12px;
}

.editorial-ui .plan {
  border-radius: 10px;
  background: rgba(18, 19, 28, .7);
}

.editorial-ui .plan:hover {
  transform: translateY(-1px);
}

.editorial-ui .period-switch,
.editorial-ui .trial-side-badge,
.editorial-ui .plan-badge {
  border-radius: 6px;
}

.editorial-ui .faq {
  max-width: 900px;
  margin-left: 0;
}

.editorial-ui .faq-item {
  margin-bottom: 0;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

.editorial-ui .faq-item.open {
  border-color: var(--border-strong);
  background: rgba(239, 240, 244, .025);
}

.editorial-ui .faq-q {
  padding: 24px 0;
  font-size: 16px;
}

.editorial-ui .faq-item.open .faq-q,
.editorial-ui .faq-item.open .faq-a {
  padding-inline: 18px;
}

.editorial-ui .contact-section {
  padding-top: calc(var(--header) + clamp(58px, 7vw, 88px));
}

.editorial-ui .contact-section > .contact-inner > .section-header {
  margin-bottom: clamp(62px, 8vw, 92px);
}

.editorial-ui .contact-section > .contact-inner > .section-header h2 {
  margin-top: 16px;
  font-size: clamp(42px, 5.4vw, 64px);
}

.editorial-ui .contact-form {
  border-radius: 12px;
  background: rgba(18, 19, 28, .72);
}

.editorial-ui .kind-opt,
.editorial-ui .form-flag {
  border-radius: 6px;
}

.editorial-ui .dl-wrap {
  max-width: var(--max);
  padding-top: calc(var(--header) + clamp(56px, 7vw, 88px));
}

.editorial-ui .dl-head {
  max-width: 780px;
  margin: 0 0 clamp(54px, 7vw, 84px);
  text-align: left;
}

.editorial-ui .dl-head h1 {
  font-size: clamp(44px, 5.8vw, 68px);
  letter-spacing: -.06em;
  line-height: .98;
}

.editorial-ui .dl-head p {
  font-size: 19px;
}

.editorial-ui .os-grid {
  gap: 0;
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
}

.editorial-ui .os-card {
  border-width: 0 1px 1px 0;
  border-radius: 0;
  background: rgba(18, 19, 28, .45);
}

.editorial-ui .os-card.selected {
  background: var(--bg-2);
  box-shadow: inset 0 -2px var(--accent-3);
}

.editorial-ui .os-reco,
.editorial-ui .inst-tag {
  border-radius: 5px;
}

.editorial-ui .inst-card {
  border-radius: 12px;
  background: rgba(27, 29, 41, .66);
}

.editorial-ui .subnav {
  background: rgba(10, 11, 18, .94);
}

.editorial-ui .subnav a {
  border-radius: 5px;
}

.editorial-ui .subnav a.active {
  border-color: transparent;
  background: rgba(239, 240, 244, .055);
  color: var(--text-1);
  box-shadow: inset 0 -1px var(--accent-3);
}

.editorial-ui .checkout-shell {
  max-width: var(--max);
}

.editorial-ui .shell-head {
  max-width: 820px;
  margin-bottom: 54px;
}

.editorial-ui .cr-h1 {
  font-size: clamp(44px, 6vw, 72px);
  letter-spacing: -.055em;
  line-height: 1;
}

/* Account workspace */
.account-ui .account-shell {
  max-width: 1240px;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 0 72px;
  padding-top: calc(var(--header) + 48px);
}

.account-ui .account-masthead {
  grid-column: 1 / -1;
  max-width: 930px;
  margin-bottom: 48px;
}

.account-ui .account-masthead p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--air);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.account-ui .account-masthead p::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: '';
}

.account-ui .account-masthead h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 620;
  letter-spacing: -.058em;
  line-height: 1.02;
}

.account-ui .account-masthead > span {
  display: block;
  max-width: 670px;
  margin-top: 24px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
}

.account-ui .acct-nav {
  top: calc(var(--header) + 28px);
  padding-top: 3px;
  border-top: 1px solid var(--border-strong);
}

.account-ui .acct-nav-title {
  padding: 18px 0 12px;
  color: var(--text-4);
}

.account-ui .acct-nav a {
  min-height: 44px;
  padding: 11px 14px;
  border-left-width: 1px;
  border-radius: 0;
}

.account-ui .acct-nav a.active {
  border-left-color: var(--accent-3);
  background: rgba(239, 240, 244, .035);
}

.account-ui .acct-main {
  min-width: 0;
}

.account-ui .sec-head {
  margin-bottom: 9px;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 620;
  letter-spacing: -.035em;
}

.account-ui .sec-sub {
  max-width: 690px;
  margin-bottom: 32px;
  font-size: 14px;
}

.account-ui .account-shell .glass {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 11px;
  background: rgba(18, 19, 28, .7);
  box-shadow: none;
}

.account-ui .account-shell .glass:hover {
  transform: none;
  box-shadow: none;
}

.account-ui .license-card {
  padding-block: 17px;
}

.account-ui .allowance-source {
  border-radius: 7px;
}

.account-ui .pay-table th,
.account-ui .pay-table td {
  padding-block: 13px;
}

.account-ui .device-link-panel {
  border-radius: 11px;
  background: linear-gradient(120deg, rgba(155, 178, 217, .075), rgba(18, 19, 28, .72));
}

.account-ui input,
.account-ui select {
  border-radius: 7px !important;
}

@media (max-width: 900px) {
  .editorial-ui .persona-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-ui .persona:nth-child(2) {
    border-right: 0;
  }

  .editorial-ui .persona:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-strong);
  }

  .account-ui .account-shell {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .account-ui .account-masthead {
    margin-bottom: 28px;
  }

  .account-ui .acct-nav {
    position: sticky;
    top: var(--header);
    z-index: 20;
    margin-inline: -24px;
    padding-inline: 24px;
    border-top: 0;
    background: rgba(10, 11, 18, .95);
    backdrop-filter: blur(16px);
  }
}

@media (max-width: 700px) {
  .editorial-ui .hero {
    padding-top: 106px !important;
  }

  .editorial-ui .hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .editorial-ui .feature-grid,
  .editorial-ui .persona-grid {
    grid-template-columns: 1fr;
  }

  .editorial-ui .persona {
    border-right: 0;
    border-bottom: 1px solid var(--border-strong);
  }

  .editorial-ui .persona:last-child {
    border-bottom: 0;
  }

  .editorial-ui .contact-section {
    padding-top: calc(var(--header) + 58px);
  }

  .editorial-ui .dl-wrap {
    padding-top: calc(var(--header) + 58px);
  }

  .account-ui .account-shell {
    padding-top: calc(var(--header) + 34px);
  }

  .account-ui .account-masthead h1 {
    font-size: clamp(36px, 10.5vw, 46px);
  }

  .account-ui .account-masthead > span {
    margin-top: 18px;
    font-size: 15px;
  }

  .site-frame .site-footer {
    padding: 34px 24px 40px;
  }

  .site-frame .site-footer-inner,
  .site-frame .footer-meta {
    align-items: flex-start;
  }

  .site-frame .footer-meta {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .site-frame .locale-menu {
    right: auto;
    left: 0;
  }

  .site-frame .footer-brand-mark {
    width: min(72vw, 270px);
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-frame .mobile-menu.active { animation: none; }
}
