/* =====================================================================================================
   ATROPI — Account Types (page-templates/account-types.php). Scoped under the page body class and the page's
   section ids (#hero #accounts #compare #why). Tokens only; Day + Night; RTL twin generated by tools/build.mjs.
   Signature: the account deck (cards ⇄ comparison) in the hero, the cards that fly into the comparison header
   (.at-ghost, assets/js/pages/account-types.js), a spread meter per account (an LTR price axis — never mirrored).
   ===================================================================================================== */

/* ---------------------------------------------------------------- shared: tier signal + spread meter */
/*rtl:begin:ignore*/
.atropi-tpl-account-types .at-tier { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; direction: ltr; flex: none; }
.atropi-tpl-account-types .at-tier i { display: block; width: 4px; border-radius: 1.5px; background: var(--line-strong); }
.atropi-tpl-account-types .at-tier i:nth-child(1) { height: 6px; }
.atropi-tpl-account-types .at-tier i:nth-child(2) { height: 10px; }
.atropi-tpl-account-types .at-tier i:nth-child(3) { height: 14px; }
.atropi-tpl-account-types .at-tier[data-lv="1"] i:nth-child(1),
.atropi-tpl-account-types .at-tier[data-lv="2"] i:nth-child(-n+2),
.atropi-tpl-account-types .at-tier[data-lv="3"] i { background: var(--tier, var(--brand)); }

.atropi-tpl-account-types .at-meter { --s: 0; --f: 0; direction: ltr; text-align: left; }
.atropi-tpl-account-types .at-meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.atropi-tpl-account-types .at-meter-l { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.atropi-tpl-account-types .at-meter-v { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; unicode-bidi: plaintext; }
.atropi-tpl-account-types .at-meter-v .ico { width: 13px; height: 13px; color: var(--muted); }
.atropi-tpl-account-types .at-meter-track {
  position: relative; height: 26px; margin: 0 30px 0 28px;
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 1px 7px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) 25% 100% / 1px 5px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) 50% 100% / 1px 7px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) 75% 100% / 1px 5px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) 100% 100% / 1px 7px no-repeat;
}
.atropi-tpl-account-types .at-meter-zone { position: absolute; left: 0; bottom: 0; width: calc(var(--f) * 100%); height: 14px; background: repeating-linear-gradient(-45deg, var(--line-strong) 0 1px, transparent 1px 5px); border-radius: 2px 2px 0 0; }
.atropi-tpl-account-types .at-meter-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--bear-vivid) 22%, transparent), color-mix(in srgb, var(--brand) 26%, transparent)); transform-origin: 0 50%; transform: scaleX(var(--s)); transition: transform .8s var(--ease-out); border-radius: 2px 2px 0 0; }
.atropi-tpl-account-types .at-meter-jaw { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.atropi-tpl-account-types .at-meter-jaw i { position: absolute; left: -1.5px; top: 4px; bottom: 0; width: 3px; border-radius: 2px; background: var(--bear-vivid); transition: background-color .5s, box-shadow .5s; }
.atropi-tpl-account-types .at-meter-jaw--ask i { background: var(--brand); }
.atropi-tpl-account-types .at-meter-jaw em { position: absolute; top: 0; font-style: normal; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.atropi-tpl-account-types .at-meter-jaw--bid em { right: 7px; color: var(--bear); }
.atropi-tpl-account-types .at-meter-jaw--ask em { left: 7px; color: var(--brand-ink); }
.atropi-tpl-account-types .at-meter-run { position: absolute; inset: 0; transform: translate3d(calc(var(--s) * 100%), 0, 0); transition: transform .8s var(--ease-out); }
.atropi-tpl-account-types .at-meter.is-zero .at-meter-jaw i { background: var(--bull-vivid); box-shadow: 0 0 0 3px var(--bull-bg); }
.atropi-tpl-account-types .at-meter.is-zero .at-meter-v { color: var(--bull); }
/* fixed: locked jaws around a hatched band, no figures on the scale */
.atropi-tpl-account-types .at-meter-band { position: absolute; left: 36%; width: 28%; bottom: 0; height: 14px; border-radius: 2px 2px 0 0; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--brand) 34%, transparent) 0 1.5px, transparent 1.5px 5px), var(--brand-50); }
.atropi-tpl-account-types .at-meter-jaw--bid.is-lock { left: 36%; }
.atropi-tpl-account-types .at-meter-jaw--ask.is-lock { left: 64%; }
.atropi-tpl-account-types .at-meter-scale { position: relative; height: 12px; margin: 7px 30px 0 28px; font-size: 9.5px; color: var(--muted); }
.atropi-tpl-account-types .at-meter-scale span { position: absolute; top: 0; transform: translateX(-50%); line-height: 1; }
.atropi-tpl-account-types .at-meter-scale span:nth-child(1) { left: 0; }
.atropi-tpl-account-types .at-meter-scale span:nth-child(2) { left: 25%; }
.atropi-tpl-account-types .at-meter-scale span:nth-child(3) { left: 50%; }
.atropi-tpl-account-types .at-meter-scale span:nth-child(4) { left: 75%; }
.atropi-tpl-account-types .at-meter-scale span:nth-child(5) { left: 100%; }
/* mini (hero deck) */
.atropi-tpl-account-types .at-meter.is-mini .at-meter-head { margin-bottom: 7px; }
.atropi-tpl-account-types .at-meter.is-mini .at-meter-l { display: none; }
.atropi-tpl-account-types .at-meter.is-mini .at-meter-v { font-size: 11px; }
.atropi-tpl-account-types .at-meter.is-mini .at-meter-track { height: 18px; margin: 0 4px; }
.atropi-tpl-account-types .at-meter.is-mini .at-meter-zone,
.atropi-tpl-account-types .at-meter.is-mini .at-meter-fill,
.atropi-tpl-account-types .at-meter.is-mini .at-meter-band { height: 10px; }
.atropi-tpl-account-types .at-meter.is-mini .at-meter-jaw i { top: 2px; width: 2.5px; left: -1.25px; }
.atropi-tpl-account-types .at-meter.is-mini .at-meter-scale { margin: 5px 4px 0; height: 10px; font-size: 8.5px; }
.atropi-tpl-account-types .at-meter.is-mini .at-meter-scale span:nth-child(2n) { display: none; }
.atropi-tpl-account-types .at-meter.is-mini .at-meter-scale span:nth-child(1) { transform: none; }
.atropi-tpl-account-types .at-meter.is-mini .at-meter-scale span:nth-child(5) { transform: translateX(-100%); }
/*rtl:end:ignore*/

/* ---------------------------------------------------------------- 01 hero — the account deck */
#hero .at-deck { position: relative; width: 100%; max-width: 540px; margin-inline: auto; }
#hero .at-deck-glow { position: absolute; inset: 10% -8% -6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 20%, transparent), transparent); opacity: .9; pointer-events: none; }
#hero .at-deck-panel {
  position: relative; padding: 14px;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  background: var(--surface-glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .6);
}
:root[data-theme="dark"] #hero .at-deck-panel { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06); }
#hero .at-deck-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; }
#hero .at-deck-k { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#hero .at-deck-k b { font-weight: 500; color: var(--ink); }
#hero .at-deck-live { width: 6px; height: 6px; border-radius: 50%; background: var(--bull-vivid); box-shadow: 0 0 0 3px var(--bull-bg); }
#hero .at-deck-mode { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
#hero .at-deck-mode-i { position: relative; z-index: 1; padding: 5px 12px; text-align: center; color: var(--muted); transition: color .45s; white-space: nowrap; }
#hero .at-deck-mode-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .7s var(--ease-out); }
:root[data-theme="dark"] #hero .at-deck-mode-ind { background: var(--surface-3); }
#hero .at-deck.is-table .at-deck-mode-ind { transform: translateX(100%); }
#hero .at-deck:not(.is-table) .at-deck-mode-i.is-a, #hero .at-deck.is-table .at-deck-mode-i.is-b { color: var(--ink); }

#hero .at-deck-stage { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; padding-top: 10px; }
#hero .at-deck-frame { position: absolute; inset: 0; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); opacity: 0; transform: scale(.985); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
#hero .at-deck.is-table .at-deck-frame { opacity: 1; transform: none; }

#hero .at-dk { position: relative; min-width: 0; transition: transform .8s var(--ease-out); }
#hero .at-dk.is-featured { transform: translate3d(0, -10px, 0); }
#hero .at-deck.is-table .at-dk { transform: none; }
#hero .at-dk-in { position: relative; height: 100%; padding: 14px 12px 12px; }
/* card shell (fades out in table mode) */
#hero .at-dk-in::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); transition: opacity .55s var(--ease-out); }
#hero .at-dk.is-featured .at-dk-in::before { border-color: color-mix(in srgb, var(--brand) 38%, transparent); box-shadow: var(--shadow-lg), 0 0 0 3px var(--brand-50); }
#hero .at-deck.is-table .at-dk-in::before { opacity: 0; }
/* table-mode column: featured band + separators */
#hero .at-dk-in::after { content: ""; position: absolute; inset: 0 -5px; z-index: -1; background: linear-gradient(180deg, var(--brand-50), transparent 90%); opacity: 0; transition: opacity .6s var(--ease-out); }
#hero .at-deck.is-table .at-dk.is-featured .at-dk-in::after { opacity: 1; }
#hero .at-dk + .at-dk::before { content: ""; position: absolute; top: 14px; bottom: 14px; inset-inline-start: -5.5px; width: 1px; background: var(--line); opacity: 0; transition: opacity .6s; }
#hero .at-deck.is-table .at-dk + .at-dk::before { opacity: 1; }
#hero .at-dk-edge { position: absolute; top: 0; inset-inline: 12px; height: 2px; border-radius: 0 0 2px 2px; background: var(--tier); transform-origin: 50% 0; transition: transform .6s var(--ease-out); }
#hero .at-deck.is-table .at-dk-edge { transform: scaleX(.4); }

#hero .at-dk-head { display: flex; align-items: center; gap: 8px; height: 22px; }
#hero .at-dk-name { min-width: 0; font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hero .at-dk-price { display: flex; flex-direction: column; gap: 3px; height: 60px; padding-top: 10px; }
#hero .at-dk-price .num { font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
#hero .at-dk-price .mono { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hero .at-dk-body { position: relative; height: 176px; margin-top: 6px; }
#hero .at-dk-a, #hero .at-dk-b { position: absolute; inset: 0; }
#hero .at-dk-a { display: flex; flex-direction: column; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
#hero .at-dk-minis { display: grid; }
#hero .at-dk-mini { display: flex; flex-direction: column; gap: 3px; min-height: 44px; padding: 8px 2px 2px; border-top: 1px dashed var(--line); }
#hero .at-dk-mini .mono { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hero .at-dk-mini .num { font-size: 12px; line-height: 1.3; font-weight: 500; color: var(--ink); unicode-bidi: plaintext; overflow-wrap: anywhere; }
#hero .at-deck.is-table .at-dk-a { opacity: 0; transform: translate3d(0, -10px, 0); }
#hero .at-dk-b { margin: 0; display: grid; grid-template-rows: repeat(4, 1fr); }
#hero .at-dk-row { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .4s var(--ease-out), transform .6s var(--ease-out); }
#hero .at-dk-row::before { content: ""; position: absolute; top: 0; inset-inline: -12px -6px; height: 1px; background: var(--line); }
#hero .at-dk:last-child .at-dk-row::before { inset-inline-end: -12px; }
#hero .at-deck.is-table .at-dk-row { opacity: 1; transform: none; transition-delay: calc(var(--r) * 70ms + 160ms); }
#hero .at-dk-row dt { font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hero .at-dk-row dd { margin: 0; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
#hero .at-dk-mini .num.is-word, #hero .at-dk-row dd.is-word { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; font-weight: 600; }
#hero .at-yn { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
#hero .at-yn .ico { width: 11px; height: 11px; stroke-width: 2.2; }
#hero .at-yn.is-yes { background: var(--bull-bg); color: var(--bull); }
#hero .at-yn.is-no { background: var(--bear-bg); color: var(--bear); }
.ac-paused #hero .at-deck-live, #hero.ac-paused .at-deck-live { animation-play-state: paused; }
@media (prefers-reduced-motion: no-preference) {
  #hero .at-deck-live { animation: at-live 2.4s var(--ease-io) infinite; }
}
@keyframes at-live { 50% { box-shadow: 0 0 0 6px transparent; } }
:root[dir="rtl"] #hero .at-dk-row dt, :root[dir="rtl"] #hero .at-dk-price .mono, :root[dir="rtl"] #hero .at-dk-mini .mono, :root[dir="rtl"] #hero .at-deck-k, :root[dir="rtl"] #hero .at-deck-mode { letter-spacing: 0; }
@media (max-width: 480px) {
  #hero .at-deck-panel { padding: 10px; border-radius: var(--r-lg); }
  #hero .at-deck-stage { gap: 7px; }
  #hero .at-dk-in { padding: 12px 8px 10px; }
  #hero .at-dk-name { font-size: 13px; }
  #hero .at-tier { display: none; }
  #hero .at-dk-price { height: 50px; }
  #hero .at-dk-price .num { font-size: 21px; }
  #hero .at-dk-body { height: 160px; }
  #hero .at-dk-row dd { font-size: 10.5px; }
  #hero .at-deck-mode-i { padding: 5px 9px; }
  /* Phones: the cards are ~100px wide, so values wrap ("$5 per lot (round-turn)" takes 3 lines) and the fixed body
     clipped them. The three cards share the deck's row tracks through subgrid (head · price · four table rows); the
     two layers (cards · table) stack over the four row tracks instead of being absolutely placed. Every body is as
     tall as the tallest content of the deck, in any language, and the table rows stay aligned across the columns. */
  @supports (grid-template-rows: subgrid) {
    #hero .at-deck-stage { grid-template-rows: auto auto repeat(4, auto); }
    #hero .at-dk { grid-row: span 6; display: grid; grid-template-rows: subgrid; }
    #hero .at-dk-in { grid-row: span 6; display: grid; grid-template-rows: subgrid; height: auto; }
    #hero .at-dk-body { grid-row: span 4; display: grid; grid-template-rows: subgrid; height: auto; min-height: 160px; }
    #hero .at-dk-a, #hero .at-dk-b { position: relative; inset: auto; grid-column: 1; grid-row: 1 / -1; }
    #hero .at-dk-b { grid-template-rows: subgrid; }
    #hero .at-dk-a { gap: 6px; }
  }
}

/* ---------------------------------------------------------------- 02 the line-up (cards) */
#accounts .chapter-head { margin-bottom: clamp(44px, 5vw, 72px); }
#accounts .at-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); align-items: stretch; padding-top: 14px; }
#accounts .at-cards-i { display: flex; min-width: 0; }
#accounts .at-card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  padding: clamp(22px, 2.1vw, 32px); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out), opacity .4s;
}
#accounts .at-card:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--shadow-md); }
#accounts .at-card.is-featured { border-color: color-mix(in srgb, var(--brand) 36%, transparent); box-shadow: var(--shadow-lg), 0 0 0 4px var(--brand-50); }
#accounts .at-card-edge { position: absolute; inset: 0 0 auto; height: 150px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 10%, transparent), transparent); box-shadow: inset 0 2px 0 var(--tier); pointer-events: none; }
#accounts .at-card-a, #accounts .at-card-b { position: relative; min-width: 0; }
#accounts .at-card-b { display: flex; flex-direction: column; flex: 1; }
#accounts .at-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
#accounts .at-card-idx { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .06em; color: var(--muted); }
#accounts .at-card-idx b { font-weight: 500; color: var(--ink); }
#accounts .at-card-idx i { display: block; width: 18px; height: 1px; background: var(--line-strong); }
#accounts .at-card-name { font-size: clamp(24px, 2vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); }
#accounts .at-card-tag { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: balance; }
#accounts .at-card-price { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
#accounts .at-card-dep .num { display: inline-block; font-size: clamp(40px, 3.6vw, 54px); font-weight: 600; line-height: 1; letter-spacing: -.045em; color: var(--ink); }
#accounts .at-card-dep-l { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#accounts .at-card .at-meter { margin-top: 22px; padding: 14px 14px 10px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
#accounts .at-card-rows { margin-top: 18px; }
#accounts .at-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.5; color: var(--text); }
#accounts .at-row > .ico { flex: none; margin-top: 2px; color: var(--muted); }
#accounts .at-row p { margin: 0; min-width: 0; }
#accounts .at-row.is-best p b { font-weight: 600; color: var(--ink); }
#accounts .at-row-k { color: var(--muted); white-space: nowrap; }
#accounts .at-row-v { margin-inline-start: auto; text-align: end; color: var(--ink); font-weight: 500; }
#accounts .at-row-v b { font-family: var(--font-mono); font-weight: 600; letter-spacing: -.01em; }
#accounts .at-row.is-markets { color: var(--ink); font-weight: 500; }
#accounts .at-row.is-markets > .ico { color: var(--tier); }
#accounts .at-card-feats { display: grid; gap: 10px; margin: 18px 0 26px; }
#accounts .at-card-feats li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text); }
#accounts .at-card-feats .ico { flex: none; margin-top: 4px; color: var(--brand); stroke-width: 2; }
#accounts .at-card-cta { margin-top: auto; }
#accounts .at-card-cta .btn { width: 100%; justify-content: center; }
#accounts .at-cards-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-top: clamp(40px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); }
#accounts .at-cards-note { display: flex; align-items: flex-start; gap: 8px; max-width: 62ch; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
#accounts .at-cards-note .ico { flex: none; margin-top: 2px; }
#accounts .at-compare-go .at-compare-ico { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
#accounts .at-compare-go:hover .at-compare-ico { transform: translate3d(0, 3px, 0); }
:root[dir="rtl"] #accounts .at-card-dep-l, :root[dir="rtl"] #accounts .at-card-idx { letter-spacing: 0; }
@media (min-width: 1100px) {
  #accounts .at-cards-i.is-featured .at-card { transform: translate3d(0, -14px, 0); }
  #accounts .at-cards-i.is-featured .at-card:hover { transform: translate3d(0, -18px, 0); }
}
@media (max-width: 1099px) {
  #accounts .at-cards { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin-inline: auto; gap: 18px; }
  #accounts .at-card { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); column-gap: clamp(24px, 4vw, 44px); }
  #accounts .at-card-rows { margin-top: 0; }
}
@media (max-width: 680px) {
  #accounts .at-card { display: flex; }
  #accounts .at-card-rows { margin-top: 18px; }
  #accounts .at-cards-foot { flex-direction: column; align-items: stretch; }
  #accounts .at-compare-go { justify-content: center; }
}

/* ---------------------------------------------------------------- the morph: cards fly into the comparison header */
.atropi-tpl-account-types .at-morph { position: relative; }
.atropi-tpl-account-types .at-ghosts { position: absolute; inset: 0; z-index: 10; pointer-events: none; overflow: visible; }
.atropi-tpl-account-types .at-ghost {
  position: absolute; transform-origin: 0 0; will-change: transform, opacity;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tier, var(--brand)) 14%, transparent), transparent 46%), color-mix(in srgb, var(--surface) 62%, transparent);
  -webkit-backdrop-filter: blur(8px) saturate(130%); backdrop-filter: blur(8px) saturate(130%);
  box-shadow: var(--shadow-lg), inset 0 2px 0 var(--tier, var(--brand));
}
.atropi-tpl-account-types .at-ghost.is-featured { border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.atropi-tpl-account-types .at-ghost-name { position: absolute; transform-origin: 0 0; will-change: transform; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; color: var(--ink); white-space: nowrap; }
.atropi-tpl-account-types .at-morph.is-morphing .at-card { opacity: .35; }
.atropi-tpl-account-types .at-morph.is-morphing .at-th-card { opacity: 0; }
.atropi-tpl-account-types .at-morph.is-docked .at-th-card { animation: at-dock .9s var(--ease-out) both; }
@keyframes at-dock { from { opacity: 0; } to { opacity: 1; } }
.atropi-tpl-account-types .at-morph.is-docked .at-th-edge { animation: at-dock-edge 1.1s var(--ease-out) both; }
@keyframes at-dock-edge { from { transform: scaleX(0); } to { transform: none; } }

/* ---------------------------------------------------------------- 03 the comparison table */
#compare .chapter-head { margin-bottom: clamp(40px, 5vw, 64px); }
#compare .chapter-head .h2 { max-width: 22ch; }
#compare .at-cmp {
  --at-sticky: var(--header-h);
  position: relative; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow-md);
}
#compare .at-cmp-table thead th:first-child { border-start-start-radius: calc(var(--r-lg) - 1px); }
#compare .at-cmp-table thead th:last-child { border-start-end-radius: calc(var(--r-lg) - 1px); }
#compare .at-tr:last-child > :first-child { border-end-start-radius: calc(var(--r-lg) - 1px); }
#compare .at-tr:last-child > :last-child { border-end-end-radius: calc(var(--r-lg) - 1px); }
html.header-hidden #compare .at-cmp { --at-sticky: 0px; }
.admin-bar #compare .at-cmp { --at-sticky: calc(var(--header-h) + var(--adminbar-h, 0px)); }
html.header-hidden .admin-bar #compare .at-cmp { --at-sticky: var(--adminbar-h, 0px); }
#compare .at-cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14.5px; line-height: 1.45; }
#compare .at-cmp-table thead th {
  position: sticky; top: var(--at-sticky); z-index: 2;
  padding: 16px 12px 14px; vertical-align: bottom; text-align: center; font-weight: 400;
  background: var(--surface-float); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-strong);
  transition: top .45s var(--ease-out);
}
#compare .at-cmp-table thead th.at-th-k { width: 25%; text-align: start; padding-inline: 24px 12px; vertical-align: bottom; }
#compare .at-th-k-in { display: block; padding-bottom: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#compare .at-th-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px 14px; border-radius: var(--r-md);
  transform-origin: 50% 0;
  transform: translate3d(0, calc((1 - var(--p, 1)) * -40px), 0) scale(calc(1 + (1 - var(--p, 1)) * .04));
}
/* the card it used to be: a lifted shell that fades as the header settles */
#compare .at-th-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: calc(1 - var(--p, 1)); }
#compare .at-th-acc.is-feat .at-th-card { background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-100); }
#compare .at-th-edge { position: absolute; top: 0; inset-inline: 22%; height: 2px; border-radius: 0 0 2px 2px; background: var(--tier); }
#compare .at-th-top { display: inline-flex; align-items: center; gap: 8px; }
#compare .at-th-name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
#compare .at-th-short { display: none; }
#compare .at-th-tag { font-size: 12.5px; line-height: 1.35; color: var(--muted); min-height: 2.7em; text-wrap: balance; }
#compare .at-th-btn { margin-top: 4px; }
#compare .at-tr > * { padding: 15px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: center; color: var(--text); transition: background-color .25s; }
#compare .at-tr:last-child > * { border-bottom: 0; }
#compare .at-tr:hover > * { background-color: var(--brand-50); }
#compare .at-tr > .at-tr-k { position: relative; text-align: start; padding-inline: 24px 12px; font-weight: 600; color: var(--ink); }
#compare .at-tr-kin { display: inline-flex; align-items: center; gap: 6px; }
#compare .at-tr:hover .at-tr-k { box-shadow: inset 2px 0 0 var(--brand); }
#compare .at-td.is-feat { background-color: color-mix(in srgb, var(--brand) 4.5%, transparent); box-shadow: inset 1px 0 0 var(--brand-100), inset -1px 0 0 var(--brand-100); }
#compare .at-tr:hover .at-td.is-feat { background-color: var(--brand-100); }
#compare .at-td.is-mono .at-td-v { font-family: var(--font-mono); font-size: 14px; color: var(--ink); letter-spacing: -.01em; }
#compare .at-td-v { display: inline-block; max-width: 30ch; text-wrap: balance; }
#compare .at-td.is-word .at-td-v { font-family: var(--font-sans); letter-spacing: 0; }
#compare .at-td.is-mono.is-word .at-n { font-family: var(--font-mono); letter-spacing: -.01em; }
#compare .at-yn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
#compare .at-yn .ico { width: 15px; height: 15px; stroke-width: 2.1; }
#compare .at-yn.is-yes { background: var(--bull-bg); color: var(--bull); }
#compare .at-yn.is-no { background: var(--bear-bg); color: var(--bear); }
#compare .at-cmp-foot td { padding: 14px 8px 16px; border-top: 1px solid var(--line-strong); text-align: center; }
/* row cascade on entry (armed by JS, so no-JS shows everything) */
html.js #compare .at-cmp.is-armed:not(.is-in) .at-tr { opacity: 0; transform: translate3d(0, 14px, 0); }
#compare .at-tr { transition: opacity .6s var(--ease-out) calc(var(--r, 0) * 45ms + 120ms), transform .8s var(--ease-out) calc(var(--r, 0) * 45ms + 120ms); }

/* glossary tooltip */
#compare .at-tip-wrap { position: relative; display: inline-flex; flex: none; }
#compare .at-tip-btn { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); transition: color .2s, background-color .2s; }
#compare .at-tip-btn::before { content: ""; position: absolute; inset: -8px; }
#compare .at-tip-btn .ico { width: 16px; height: 16px; }
#compare .at-tip-btn:hover, #compare .at-tip-btn[aria-expanded="true"] { color: var(--brand); background: var(--brand-50); }
#compare .at-tip {
  position: absolute; z-index: 5; inset-inline-start: -14px; bottom: calc(100% + 10px);
  width: max-content; max-width: min(300px, 76vw); padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 400; line-height: 1.5; text-align: start; letter-spacing: 0; text-transform: none;
  opacity: 0; visibility: hidden; transform: translate3d(0, 4px, 0); pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .3s var(--ease-out), visibility 0s linear .3s;
}
#compare .at-tip::after { content: ""; position: absolute; top: 100%; inset-inline-start: 22px; border: 6px solid transparent; border-top-color: var(--ink); }
#compare .at-tip-wrap:hover .at-tip,
#compare .at-tip-btn:focus-visible + .at-tip,
#compare .at-tip-btn[aria-expanded="true"] + .at-tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
#compare .at-tip-wrap.is-dismissed .at-tip { opacity: 0; visibility: hidden; }

@media (min-width: 760px) {
  #compare .at-cmp-foot { display: none; }
}
@media (max-width: 1023px) and (min-width: 760px) {
  #compare .at-cmp-table thead th.at-th-k { width: 22%; padding-inline: 16px 8px; }
  #compare .at-tr > .at-tr-k { padding-inline: 16px 8px; }
  #compare .at-th-card { padding: 14px 6px 12px; }
  #compare .at-th-tag { font-size: 11.5px; }
  #compare .at-th-btn { padding-inline: 12px; font-size: 13px; }
  #compare .at-tr > * { padding: 14px 8px; font-size: 13.5px; }
}
/* phones: label line over three value cells; the header keeps the three names; buttons move to the foot */
@media (max-width: 759px) {
  #compare .at-cmp { border-radius: var(--r-md); }
  #compare .at-cmp-table thead th:first-child, #compare .at-cmp-table thead th:last-child { border-radius: 0; }
  #compare .at-tr:last-child > * { border-radius: 0; }
  #compare .at-cmp-table, #compare .at-cmp-table thead, #compare .at-cmp-table tbody, #compare .at-cmp-table tfoot { display: block; }
  #compare .at-cmp-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #compare .at-cmp-table thead { position: sticky; top: var(--at-sticky); z-index: 3; border-radius: calc(var(--r-md) - 1px) calc(var(--r-md) - 1px) 0 0; background: var(--surface-float); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-strong); transition: top .45s var(--ease-out); }
  #compare .at-cmp-table thead th { position: static; padding: 8px 4px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; }
  #compare .at-cmp-table thead th.at-th-k { display: none; }
  #compare .at-th-card { padding: 10px 4px 9px; gap: 0; transform: none; }
  #compare .at-th-card::before { opacity: 0; }
  #compare .at-th-tag, #compare .at-th-btn { display: none; }
  #compare .at-th-name { font-size: 14px; }
  #compare .at-th-name:has(.at-th-short) .at-th-full { display: none; }
  #compare .at-th-short { display: inline; }
  #compare .at-th-top { gap: 6px; }
  #compare .at-th-edge { inset-inline: 30%; }
  #compare .at-tr > * { display: block; padding: 4px 6px 14px; font-size: 13px; line-height: 1.4; border-bottom: 0; }
  #compare .at-tr { border-bottom: 1px solid var(--line); }
  #compare .at-tr:last-child { border-bottom: 0; }
  #compare .at-tr > .at-tr-k { grid-column: 1 / -1; padding: 13px 14px 6px; font-size: 13px; }
  #compare .at-tr:hover .at-tr-k { box-shadow: none; }
  #compare .at-td.is-mono .at-td-v { font-size: 13px; }
  #compare .at-yn { width: 26px; height: 26px; }
  #compare .at-cmp-foot td { padding: 12px 4px 14px; }
  #compare .at-cmp-foot .at-tf-k { display: none; }
  #compare .at-tf-btn { width: 100%; min-width: 0; justify-content: center; padding-inline: 6px; font-size: 13px; }
  #compare .at-tip { inset-inline-start: -60px; }
  #compare .at-tip::after { inset-inline-start: 68px; }
}
:root[dir="rtl"] #compare .at-th-k-in { letter-spacing: 0; }

/* ---------------------------------------------------------------- RTL: Arabic-script labels use the sans face (the mono face has no
   Arabic glyphs), no tracking, no uppercase; the meter head reads RTL while its price axis stays LTR */
:root[dir="rtl"] :is(#hero .at-deck-k, #hero .at-deck-mode, #hero .at-dk-price .mono, #hero .at-dk-mini .mono, #hero .at-dk-row dt,
  .atropi-tpl-account-types .at-meter-l, #accounts .at-card-dep-l, #compare .at-th-k-in) { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; }
:root[dir="rtl"] :is(#hero .at-dk-price .mono, #hero .at-dk-mini .mono, #hero .at-dk-row dt) { font-size: 10.5px; }
:root[dir="rtl"] .atropi-tpl-account-types .at-meter-l { font-size: 11.5px; }
:root[dir="rtl"] #accounts .at-card-dep-l { font-size: 13px; }
:root[dir="rtl"] #compare .at-th-k-in { font-size: 12.5px; }
:root[dir="rtl"] #hero .at-deck-mode { font-size: 11.5px; }
:root[dir="rtl"] #hero .at-deck-k { font-size: 12px; }
/*rtl:raw:
.atropi-tpl-account-types .at-meter-head { direction: rtl; }
*/

/* ---------------------------------------------------------------- 04 why (bento from the component) */
#why .ac-feats--bento > .is-lg .ac-feat-stat .num { font-size: clamp(48px, 5vw, 76px); }

/* shared hero proof strip: Arabic-script labels leave the mono face (component-level RTL gap, worked around here) */
:root[dir="rtl"] #hero .ac-hero-proof li > span { font-family: var(--font-sans); letter-spacing: 0; text-transform: none; font-size: 12px; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .atropi-tpl-account-types .at-meter-fill, .atropi-tpl-account-types .at-meter-run { transition: none; }
  #compare .at-th-card { transform: none; }
  #compare .at-th-card::before { opacity: 0; }
  #compare .at-tr { transition: none; }
  html.js #compare .at-cmp.is-armed:not(.is-in) .at-tr { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- ru (Russian runs ~25% longer: long words) */
html[lang^="ru"] .atropi-tpl-account-types #hero .ac-hero-title.is-long { font-size: clamp(34px, 3.75vw, 54px); }

/* ---------------------------------------------------------------- RTL (fa · ar): Persian/Arabic labels that carry .mono are LTR islands in
   RTL (base.css), so they sat at the left of their cell (values at the right) and truncated at their logical start. They read RTL here
   (start-aligned, ellipsis at the logical end) and the deck's price block aligns to the start like the account name. Raw = RTL build only
   (rtlcss flips a plain `direction`). */
/*rtl:raw:
:root[dir="rtl"] :is(#hero .at-dk-row dt, #hero .at-dk-mini .mono, #hero .at-dk-price .mono, #compare .at-th-k-in) { direction: rtl; }
:root[dir="rtl"] #hero .at-dk-price { align-items: flex-start; }
*/

/* ---------------------------------------------------------------- ru: deck micro-labels — Cyrillic caps are wide ("КРЕДИТНОЕ ПЛЕЧО"),
   and the phone deck's Nano meter value ("Фиксированный") outgrows its 100px card */
html[lang^="ru"] :is(#hero .at-dk-mini .mono, #hero .at-dk-row dt) { letter-spacing: .04em; }
@media (max-width: 759px) {
  /* phone comparison cells are ~110px wide: «профессионалов,» ran into the table edge — hyphenate long Russian words */
  html[lang^="ru"] #compare .at-td-v { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 13 6 5; overflow-wrap: break-word; }
}
@media (max-width: 480px) {
  html[lang^="ru"] #hero .at-meter.is-mini .at-meter-v { font-size: 9.5px; letter-spacing: -.02em; }
  html[lang^="ru"] #hero .at-meter.is-mini .at-meter-v .ico { display: none; }
}
